/* ============================================================================
 * CABINET STYLES - MUSOFIR SHOU
 * ========================================================================== */

:root {
    --primary: #6c5ce7;
    --primary-dark: #5f3dc4;
    --secondary: #00b894;
    --danger: #e74c3c;
    --sidebar-width: 280px;
    --sidebar-width-mobile: 0;
}

body.theme-light .cabinet-sidebar {
    background: rgba(255, 255, 255, 0.95);
    border-right: 1px solid rgba(15, 23, 42, 0.08);
}

body.theme-light .sidebar-header .logo {
    color: #0f172a;
}

body.theme-light .nav-link {
    color: rgba(15, 23, 42, 0.7);
}

body.theme-light .nav-link:hover,
body.theme-light .nav-link.active {
    color: #0f172a;
    background: rgba(108, 92, 231, 0.1);
}

body.theme-light .sidebar-footer {
    border-top: 1px solid rgba(15, 23, 42, 0.08);
}

body.theme-light .lang-btn {
    background: rgba(108, 92, 231, 0.08);
    border: 1px solid rgba(108, 92, 231, 0.2);
    color: rgba(15, 23, 42, 0.7);
}

body.theme-light .lang-btn:hover,
body.theme-light .lang-btn.active {
    color: #ffffff;
}

body.theme-light .cabinet-header {
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

body.theme-light .user-info h2,
body.theme-light .page-title,
body.theme-light .action-card h3,
body.theme-light .subscription-card h3,
body.theme-light .referral-card h3,
body.theme-light .stats-card h5,
body.theme-light .bonus-card h5,
body.theme-light .stat-value {
    color: #0f172a;
}

body.theme-light .stat-card h6,
body.theme-light .activity-list li,
body.theme-light .subscription-card p,
body.theme-light .form-card .form-label,
body.theme-light .table,
body.theme-light .table thead th {
    color: rgba(15, 23, 42, 0.7);
}

/* Cabinet Container Layout */
.cabinet-container {
    display: flex;
    min-height: 100vh;
    position: relative;
    z-index: 1;
}

/* Sidebar Styles */
.cabinet-sidebar {
    width: var(--sidebar-width);
    background: rgba(25, 30, 60, 0.95);
    border-right: 1px solid rgba(108, 92, 231, 0.2);
    padding: 2rem 0;
    position: fixed;
    left: 0;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    backdrop-filter: blur(10px);
}

.sidebar-header {
    padding: 0 1.5rem;
    margin-bottom: 2rem;
}

.sidebar-header .logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    transition: color 0.3s ease;
}

.sidebar-header .logo:hover {
    color: var(--primary);
}

.sidebar-header .logo i {
    font-size: 1.5rem;
    color: var(--primary);
}

/* Sidebar Navigation */
.sidebar-nav {
    flex: 1;
    padding: 0 1rem;
}

.sidebar-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-nav li {
    margin-bottom: 0.5rem;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.nav-link:hover,
.nav-link.active {
    color: #fff;
    background: rgba(108, 92, 231, 0.2);
    border-left: 3px solid var(--primary);
    padding-left: calc(1rem - 3px);
}

.nav-link i {
    font-size: 1.2rem;
}

/* Sidebar Footer */
.sidebar-footer {
    padding: 1.5rem;
    border-top: 1px solid rgba(108, 92, 231, 0.2);
}

.lang-switcher {
    display: flex;
    gap: 0.5rem;
}

.lang-btn {
    flex: 1;
    padding: 0.5rem;
    background: rgba(108, 92, 231, 0.2);
    border: 1px solid rgba(108, 92, 231, 0.4);
    color: rgba(255, 255, 255, 0.7);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: bold;
    font-size: 0.85rem;
}

.lang-btn:hover,
.lang-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

/* Cabinet Main Content */
.cabinet-main {
    flex: 1;
    margin-left: var(--sidebar-width);
    padding: 2rem;
    overflow-y: auto;
}

/* Cabinet Header */
.cabinet-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(108, 92, 231, 0.2);
}

.user-info {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.user-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 2px solid var(--primary);
    object-fit: cover;
}

.user-info h2 {
    margin: 0;
    font-size: 1.5rem;
    color: #fff;
}

.user-info p {
    margin: 0.25rem 0 0 0;
}

#mobileMenuBtn {
    display: none;
}

/* Page Title */
.page-title {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 2rem;
    color: #fff;
    position: relative;
    padding-bottom: 1rem;
}

.page-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 2px;
}

/* Stat Cards */
.stat-card {
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    border-color: rgba(108, 92, 231, 0.5);
}

.stat-icon {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.stat-card h6 {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.75rem;
}

.stat-value {
    font-size: 1.8rem;
    font-weight: bold;
    color: #fff;
    margin: 0;
}

/* Action Cards */
.action-card {
    padding: 2rem;
}

.action-card h3 {
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
    color: #fff;
}

.action-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.action-buttons .btn {
    flex: 1;
    min-width: 150px;
}

/* Activity List */
.activity-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.activity-list li {
    padding: 0.75rem 0;
    color: rgba(255, 255, 255, 0.8);
    border-bottom: 1px solid rgba(108, 92, 231, 0.1);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.95rem;
}

.activity-list li:last-child {
    border-bottom: none;
}

.activity-list i {
    font-size: 0.5rem;
    color: var(--secondary);
}

/* Form Styles */
.form-card {
    padding: 2rem;
}

.form-card .form-label {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.form-card .form-control {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(108, 92, 231, 0.3);
    color: #fff;
}

.form-card .form-control:focus {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--primary);
    box-shadow: 0 0 0 0.2rem rgba(108, 92, 231, 0.25);
    color: #fff;
}

.form-card .form-control::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.form-card .form-control:disabled {
    background: rgba(255, 255, 255, 0.02);
    color: rgba(255, 255, 255, 0.5);
}

/* Subscription Card */
.subscription-card {
    padding: 2rem;
}

.subscription-card h3 {
    color: #fff;
    margin-bottom: 1.5rem;
}

.subscription-card hr {
    border-color: rgba(108, 92, 231, 0.2);
    margin: 1.5rem 0;
}

.subscription-card p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1rem;
}

/* Referral Card */
.referral-card {
    padding: 2rem;
}

.referral-card h3 {
    color: #fff;
    margin-bottom: 1rem;
}

.input-group .form-control {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(108, 92, 231, 0.3);
}

/* Stats Card */
.stats-card,
.bonus-card {
    padding: 2rem;
}

.stats-card h5,
.bonus-card h5 {
    color: #fff;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: rgba(108, 92, 231, 0.1);
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.9);
}

.stat-item span {
    font-weight: 500;
}

.stat-item strong {
    color: var(--primary);
}

/* Table Styles */
.table {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 0;
}

.table thead {
    border-bottom: 2px solid rgba(108, 92, 231, 0.3);
}

.table thead th {
    color: rgba(255, 255, 255, 0.7);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    border: none;
}

.table tbody tr {
    border-bottom: 1px solid rgba(108, 92, 231, 0.1);
    transition: all 0.3s ease;
}

.table tbody tr:hover {
    background: rgba(108, 92, 231, 0.05);
}

.table tbody td {
    border: none;
    padding: 1rem;
    vertical-align: middle;
}

/* Page Content */
.page-content {
    display: none;
    animation: fadeIn 0.3s ease;
}

.page-content.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Button Styles */
.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border: none;
    color: #fff;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(108, 92, 231, 0.4);
    color: #fff;
}

.btn-outline-light {
    color: rgba(255, 255, 255, 0.9);
    border-color: rgba(255, 255, 255, 0.3);
}

.btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
    color: #fff;
}

.btn-outline-danger {
    color: var(--danger);
    border-color: var(--danger);
}

.btn-outline-danger:hover {
    background: var(--danger);
    border-color: var(--danger);
    color: #fff;
}

/* Glass Card */
.glass-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.glass-card:hover {
    border-color: rgba(108, 92, 231, 0.3);
    background: rgba(255, 255, 255, 0.07);
}

/* Responsive Design */
@media (max-width: 768px) {
    :root {
        --sidebar-width: 0;
        --sidebar-width-mobile: 250px;
    }

    .cabinet-container {
        flex-direction: column;
    }

    .cabinet-sidebar {
        width: var(--sidebar-width-mobile);
        height: auto;
        position: fixed;
        left: -var(--sidebar-width-mobile);
        top: 0;
        z-index: 1000;
        transition: left 0.3s ease;
    }

    .cabinet-sidebar.active {
        left: 0;
    }

    .cabinet-main {
        margin-left: 0;
        padding: 1.5rem;
    }

    .cabinet-header {
        margin-bottom: 1.5rem;
    }

    #mobileMenuBtn {
        display: block;
    }

    .page-title {
        font-size: 1.5rem;
    }

    .stat-card {
        padding: 1.5rem;
    }

    .stat-value {
        font-size: 1.3rem;
    }

    .action-buttons {
        flex-direction: column;
    }

    .action-buttons .btn {
        width: 100%;
    }

    .row > .col-lg-8,
    .row > .col-lg-6,
    .row > .col-md-6 {
        width: 100% !important;
    }

    .table-responsive {
        font-size: 0.9rem;
    }

    .table tbody td {
        padding: 0.75rem 0.5rem;
    }
}

@media (max-width: 480px) {
    .cabinet-main {
        padding: 1rem;
    }

    .cabinet-header {
        padding-bottom: 1rem;
    }

    .user-avatar {
        width: 50px;
        height: 50px;
    }

    .user-info h2 {
        font-size: 1.2rem;
    }

    .page-title {
        font-size: 1.3rem;
        margin-bottom: 1.5rem;
    }

    .stat-card {
        padding: 1rem;
    }

    .form-card {
        padding: 1.5rem;
    }

    .row.g-4 {
        gap: 1rem !important;
    }
}
