/* ========================================
   DASHBOARD PAGE
   ======================================== */

.dashboard-page {
    display: flex;
    min-height: 100vh;
    padding-top: var(--header-height);
    background: var(--bg-primary);
}

/* ===== SIDEBAR ===== */
.dashboard-sidebar {
    flex: 0 0 300px;
    background: var(--bg-secondary);
    border-right: 1px solid rgba(139, 92, 246, 0.15);
    padding: 20px 0;
    position: sticky;
    top: var(--header-height);
    height: calc(100vh - var(--header-height));
    overflow-y: auto;
}

.btn-secondary {
    background: var(--accent-dark-violet);
    color: #fff;
    border: none;
    padding: 8px 18px;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
}

.btn-primary {
    background: var(--accent-violet);
    color: #fff;
    border: none;
    padding: 8px 18px;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
}

.btn-primary:hover,
.btn-secondary:hover {
    opacity: 0.5;
    cursor: pointer;
}

.dashboard-sidebar nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.dashboard-sidebar nav ul li {
    margin: 4px 12px;
}

.dashboard-sidebar nav ul li button {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 10px 16px;
    background: transparent;
    border: none;
    border-radius: 10px;
    color: var(--text-muted);
    font-size: 0.95rem;
    cursor: pointer;
    transition: 0.2s;
    text-align: left;
    position: relative;
}

.dashboard-sidebar nav ul li button img {
    width: 30px;
    height: 30px;
    transition: 0.2s;
}

.dashboard-sidebar nav ul li button:hover {
    background: rgba(139, 92, 246, 0.05);
    color: var(--text-primary);
}

.dashboard-sidebar nav ul li button:hover img {
    opacity: 1;
}

.dashboard-sidebar nav ul li button.active {
    background: rgba(139, 92, 246, 0.1);
    color: var(--accent-violet);
}

/* ===== CONTENT ===== */
.dashboard-content {
    flex: 1;
    padding: 30px 40px;
    max-width: calc(100% - 240px);
    overflow-y: hidden;
}

.dashboard-section {
    display: none;
    animation: sectionFadeIn 0.25s ease-out;
}

.dashboard-section.active {
    display: block;
}

@keyframes sectionFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section-header {
    margin-bottom: 30px;
}


.upload-form-row {
    display: flex !important;
    gap: 10px;
    align-items: center;
}

.upload-form-row div {
    width: 100%;
}

.doc-description {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.section-header h1 {
    font-size: 2.2rem;
    background: linear-gradient(135deg, var(--accent-violet), var(--accent-pink));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 4px;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1rem;
}

.section-header .btn-primary {
    margin-top: 10px;
}

/* ===== WIDGET GRID ===== */
.widget-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.widget-card {
    background: var(--bg-secondary);
    border: 1px solid rgba(139, 92, 246, 0.1);
    border-radius: 16px;
    padding: 10px;
    transition: 0.2s;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.widget-card:hover {
    border-color: rgba(139, 92, 246, 0.3);
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.widget-card .widget-icon {
    margin-bottom: 10px;
}

.widget-card .widget-icon img {
    width: 30px;
    height: 30px;
    opacity: 0.7;
}

.widget-card h3 {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-bottom: 4px;
}

.widget-card .widget-value {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
}

.widget-card .widget-status {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 4px;
}

/* ===== ACTIVITY LIST ===== */
.activity-list {
    background: var(--bg-secondary);
    border-radius: 16px;
    padding: 20px;
    border: 1px solid rgba(139, 92, 246, 0.1);
}

.activity-list h3 {
    font-size: 1rem;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.activity-list ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.activity-list ul li {
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    color: var(--text-muted);
    font-size: 0.95rem;
}

.activity-list ul li:last-child {
    border-bottom: none;
}

.activity-list .activity-time {
    color: var(--accent-violet);
    font-weight: 500;
}

/* ===== PROFILE FORM ===== */
.profile-form, .company-form {
    background: var(--bg-secondary);
    border-radius: 16px;
    padding: 24px;
    border: 1px solid rgba(139, 92, 246, 0.1);
}

.profile-form .form-row, .company-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.profile-form .form-row .full-width, .company-form .form-row .full-width {
    grid-column: 1 / -1;
}

.profile-form .form-group, .company-form .form-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.profile-form .form-group label, .company-form .form-group label {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.profile-form .form-group input,
.profile-form .form-group textarea,
.company-form .form-group input,
.company-form .form-group textarea {
    padding: 10px 14px;
    background: var(--bg-card);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 1rem;
    outline: none;
}

.profile-form .form-group input:disabled,
.profile-form .form-group textarea:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.avatar-upload,
.logo-upload {
    display: flex;
    align-items: center;
    gap: 16px;
}

.avatar-upload .avatar-preview {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
}

.logo-upload .logo-preview {
    width: auto;
    height: 64px;
    border-radius: 10px;
    object-fit: cover;
}

.logo-upload img {
    border-radius: 10px;
}

.radio-group {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.radio-group label {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.radio-group input[type="radio"]:disabled {
    accent-color: var(--accent-violet);
}

.profile-form .form-actions {
    margin-top: 10px;
}

/* ===== LICENSE CARD ===== */
.license-card {
    background: var(--bg-secondary);
    border-radius: 16px;
    padding: 24px;
    border: 1px solid rgba(139, 92, 246, 0.15);
}

.license-card .license-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.license-card .license-badge {
    background: var(--accent-violet);
    color: #fff;
    padding: 4px 14px;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 600;
}

.license-card .license-status {
    padding: 4px 12px;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 500;
}

.license-card .license-status.active {
    background: rgba(76, 175, 80, 0.2);
    color: #4caf50;
}

.license-card .license-status.expired {
    background: rgba(236, 72, 153, 0.2);
    color: var(--accent-pink);
}

.license-card .license-details ul {
    list-style: none;
    padding: 0;
    margin: 8px 0 16px;
}

.license-card .license-details ul li {
    color: var(--text-muted);
    font-size: 0.95rem;
    padding: 2px 0;
}

.license-card .license-actions {
    display: flex;
    gap: 12px;
}

/* ===== WALLET ===== */
.wallet-balance {
    display: flex;
    align-items: center;
    gap: 20px;
    background: var(--bg-secondary);
    border-radius: 16px;
    padding: 24px;
    border: 1px solid rgba(139, 92, 246, 0.15);
    margin-bottom: 24px;
}

.wallet-balance .wallet-amount {
    font-size: 2.4rem;
    font-weight: 700;
    color: var(--text-primary);
}

.status-badge {
    padding: 2px 12px;
    border-radius: 30px;
    font-size: 0.75rem;
    font-weight: 500;
}

.status-badge.success {
    background: rgba(76, 175, 80, 0.15);
    color: #4caf50;
}

.status-badge.active {
    background: rgba(139, 92, 246, 0.15);
    color: var(--accent-violet);
}

.status-badge.inactive {
    background: rgba(236, 72, 153, 0.15);
    color: var(--accent-pink);
}

.btn-icon {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px 6px;
    transition: 0.2s;
}

.btn-icon img {
    width: 20px;
    height: 20px;
}

.btn-icon:hover {
    opacity: 0.5;
}

/* ===== SETTINGS ===== */
.settings-group {
    background: var(--bg-secondary);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid rgba(139, 92, 246, 0.1);
}

.settings-group h3 {
    font-size: 1rem;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.settings-group label {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-muted);
    font-size: 0.95rem;
    cursor: pointer;
}

.settings-radio-group {
    margin-top: 10px;
}

.settings-group .btn-secondary,
.settings-group .btn-danger {
    margin-right: 10px;
}

.btn-danger {
    background: var(--accent-pink);
    color: #fff;
    border: none;
    padding: 8px 18px;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
}

.btn-danger:hover {
    opacity: 0.8;
}

section {
    display: unset !important;
}

/* ===== CUSTOM CHECKBOXEN (für Einstellungen) ===== */
.settings-group .custom-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    position: relative;
    padding-left: 28px;
    user-select: none;
    color: var(--text-muted);
    font-size: 0.95rem;
    padding: 6px 0 6px 28px;
    transition: 0.2s;
}

.settings-group .custom-checkbox:hover {
    color: var(--text-primary);
}

.settings-group .custom-checkbox input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.settings-group .custom-checkbox .checkmark {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 20px;
    width: 20px;
    background: var(--bg-card);
    border: 2px solid rgba(139, 92, 246, 0.3);
    border-radius: 4px;
    transition: 0.2s;
}

.settings-group .custom-checkbox input:checked~.checkmark {
    background: var(--accent-violet);
    border-color: var(--accent-violet);
}

.settings-group .custom-checkbox .checkmark::after {
    content: '';
    position: absolute;
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    display: none;
}

.settings-group .custom-checkbox input:checked~.checkmark::after {
    display: block;
}

/* ===== CUSTOM RADIO BUTTONS (für Profil) ===== */
.custom-radio {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 0.95rem;
    color: var(--text-muted);
    position: relative;
    user-select: none;
    padding-left: 28px;
}

.custom-radio input[type="radio"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.custom-radio .radio-mark {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid rgba(139, 92, 246, 0.3);
    background: var(--bg-card);
    transition: 0.2s;
    flex-shrink: 0;
}

.custom-radio .radio-mark::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--accent-violet);
    transition: 0.2s;
}

.custom-radio input:checked~.radio-mark {
    border-color: var(--accent-violet);
}

.custom-radio input:checked~.radio-mark::after {
    transform: translate(-50%, -50%) scale(1);
}

.custom-radio:hover .radio-mark {
    border-color: var(--accent-violet);
}

.custom-radio input:disabled~.radio-mark {
    opacity: 0.5;
    cursor: not-allowed;
}

.custom-radio input:disabled~.radio-mark::after {
    background: var(--text-muted);
}

.custom-radio input:disabled~.radio-mark {
    border-color: var(--text-muted);
}

/* ========================================
   DASHBOARD CUSTOM DROPDOWNS
   ======================================== */

/* Container */
.custom-dropdown {
    position: relative;
    width: 100%;
    user-select: none;
}

/* Trigger (wie ein Input-Feld) */
.custom-dropdown .dropdown-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    background: var(--bg-card);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 10px;
    cursor: pointer;
    transition: 0.2s;
    min-height: 46px;
}

.custom-dropdown .dropdown-trigger:hover {
    border-color: rgba(139, 92, 246, 0.4);
}

.custom-dropdown.open .dropdown-trigger {
    border-color: var(--accent-violet);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.15);
}

/* Ausgewählter Text */
.custom-dropdown .dropdown-selected {
    color: var(--text-muted);
    flex: 1;
    font-size: 1rem;
}

.custom-dropdown .dropdown-selected.has-value {
    color: var(--text-primary);
}

/* Pfeil */
.custom-dropdown .dropdown-arrow {
    color: var(--text-muted);
    font-size: 1rem;
    transition: 0.2s;
    margin-left: 8px;
}

.custom-dropdown.open .dropdown-arrow {
    transform: rotate(180deg);
    color: var(--accent-violet);
}

/* Dropdown-Liste */
.custom-dropdown .dropdown-list {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: var(--bg-secondary);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 10px;
    padding: 6px 0;
    max-height: 200px;
    overflow-y: auto;
    display: none;
    z-index: 100;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.custom-dropdown.open .dropdown-list {
    display: block;
}

/* Items */
.custom-dropdown .dropdown-item {
    padding: 8px 16px;
    color: var(--text-muted);
    cursor: pointer;
    transition: 0.15s;
    font-size: 0.95rem;
}

.custom-dropdown .dropdown-item:hover {
    background: rgba(139, 92, 246, 0.1);
    color: var(--text-primary);
}

.custom-dropdown .dropdown-item.selected {
    background: rgba(139, 92, 246, 0.15);
    color: var(--accent-violet);
}

/* Scrollbar */
.custom-dropdown .dropdown-list::-webkit-scrollbar {
    width: 4px;
}

.custom-dropdown .dropdown-list::-webkit-scrollbar-track {
    background: transparent;
}

.custom-dropdown .dropdown-list::-webkit-scrollbar-thumb {
    background: var(--accent-violet);
    border-radius: 2px;
}

/* Fehlerzustand (optional) */
.custom-dropdown.error .dropdown-trigger {
    border-color: var(--accent-pink);
}

.custom-dropdown.error .dropdown-trigger:focus {
    box-shadow: 0 0 0 3px rgba(236, 72, 153, 0.15);
}

#license-card-container {
    display: flex;
    gap: 20px;
}

.creator-file-types {
    display: flex;
    align-items: center;
    gap: 5px;
}

.upload-multi-icons {
    gap: 5px;

}

.upload-multi-icons img,
.upload-icon img {
    width: 50px;
    height: auto;
}

.upload-icon {
    display: flex !important;
    flex-direction: row;
    align-items: center;
    justify-content: center;
}

.full-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 0 10px;
}

.sidebar-info {
    width: 15px !important;
    position: absolute;
    right: 15px;
    top: 11px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
    .dashboard-sidebar {
        flex: 0 0 180px;
    }

    .dashboard-content {
        padding: 20px;
    }
}

@media (max-width: 768px) {
    .dashboard-page {
        flex-direction: column;
    }

    .dashboard-sidebar {
        flex: unset;
        position: static;
        height: auto;
        padding: 12px 16px;
        border-right: none;
        border-bottom: 1px solid rgba(139, 92, 246, 0.15);
    }

    .dashboard-sidebar nav ul {
        display: flex;
        flex-wrap: wrap;
        gap: 4px;
    }

    .dashboard-sidebar nav ul li {
        margin: 0;
    }

    .dashboard-sidebar nav ul li button {
        padding: 8px 12px;
        font-size: 0.85rem;
    }

    .dashboard-sidebar nav ul li button span {
        display: none;
    }

    .dashboard-content {
        max-width: 100%;
        padding: 16px;
    }

    .widget-grid {
        grid-template-columns: 1fr 1fr;
    }

    .profile-form .form-row {
        grid-template-columns: 1fr;
    }

    .wallet-balance {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .widget-grid {
        grid-template-columns: 1fr;
    }
}