:root {
    --primary: #1976d2;
    --primary-dark: #1565c0;
    --secondary: #424242;
    --surface: #ffffff;
    --background: #f5f5f5;
    --on-surface: #212121;
    --on-background: #212121;
    --outline: #e0e0e0;
    --shadow: rgba(0,0,0,0.12);
}

[data-theme="dark"] {
    --primary: #2196f3;
    --primary-dark: #1976d2;
    --secondary: #757575;
    --surface: #1e1e1e;
    --background: #121212;
    --on-surface: #ffffff;
    --on-background: #ffffff;
    --outline: #333333;
    --shadow: rgba(0,0,0,0.24);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    background: var(--background);
    color: var(--on-background);
    transition: all 0.3s ease;
}

.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.login-card {
    background: var(--surface);
    border-radius: 16px;
    padding: 40px;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 8px 32px var(--shadow);
    position: relative;
}

.login-header {
    text-align: center;
    margin-bottom: 32px;
}

.login-header h1 {
    font-size: 28px;
    font-weight: 500;
    color: var(--primary);
    margin-bottom: 8px;
}

.login-header p {
    color: var(--secondary);
    font-size: 16px;
}

.input-group {
    position: relative;
    margin-bottom: 24px;
}

.input-group input {
    width: 100%;
    padding: 16px 48px 16px 16px;
    border: 2px solid var(--outline);
    border-radius: 8px;
    background: transparent;
    color: var(--on-surface);
    font-size: 16px;
    transition: all 0.3s ease;
}

.input-group input:focus {
    outline: none;
    border-color: var(--primary);
}

.input-group label {
    position: absolute;
    left: 16px;
    top: 16px;
    color: var(--secondary);
    font-size: 16px;
    pointer-events: none;
    transition: all 0.3s ease;
}

.input-group input:focus + label,
.input-group input:valid + label {
    top: -8px;
    left: 12px;
    font-size: 12px;
    background: var(--surface);
    padding: 0 4px;
    color: var(--primary);
}

.input-group .material-icons {
    position: absolute;
    right: 16px;
    top: 16px;
    color: var(--secondary);
}

.btn-primary {
    width: 100%;
    padding: 16px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px var(--shadow);
}

.theme-toggle {
    position: absolute;
    top: 16px;
    right: 16px;
}

.btn-icon {
    width: 48px;
    height: 48px;
    border: none;
    border-radius: 50%;
    background: transparent;
    color: var(--secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.btn-icon:hover {
    background: var(--outline);
}

.sidebar {
    width: 280px;
    height: 100vh;
    background: var(--surface);
    position: fixed;
    left: 0;
    top: 0;
    z-index: 1000;
    box-shadow: 0 8px 32px var(--shadow);
    transition: all 0.3s ease;
    border-right: 1px solid var(--outline);
    display: flex;
    flex-direction: column;
}

.sidebar-header {
    padding: 32px 24px 24px;
    border-bottom: 1px solid var(--outline);
    display: flex;
    align-items: center;
    gap: 12px;
}

.sidebar-logo {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
}

.sidebar-title {
    color: var(--on-surface);
    font-size: 20px;
    font-weight: 600;
    margin: 0;
}

.sidebar-subtitle {
    color: var(--secondary);
    font-size: 12px;
    font-weight: 400;
    margin: 0;
    margin-top: 2px;
}

.sidebar-menu {
    padding: 16px 12px;
    overflow-y: auto;
    flex: 1;
}

.sidebar-menu::-webkit-scrollbar {
    width: 6px;
}

.sidebar-menu::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar-menu::-webkit-scrollbar-thumb {
    background: var(--outline);
    border-radius: 3px;
}

.sidebar-menu::-webkit-scrollbar-thumb:hover {
    background: var(--secondary);
}

.menu-section {
    margin-bottom: 24px;
}

.menu-section-title {
    color: var(--secondary);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0 16px 8px;
    margin-bottom: 8px;
}

.menu-item {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: var(--on-surface);
    text-decoration: none;
    transition: all 0.3s ease;
    gap: 16px;
    border-radius: 12px;
    margin-bottom: 4px;
    position: relative;
    font-weight: 500;
}

.menu-item:hover {
    background: var(--outline);
    transform: translateX(4px);
}

.menu-item.active {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    box-shadow: 0 4px 16px rgba(25, 118, 210, 0.3);
}

.menu-item.active::before {
    content: '';
    position: absolute;
    left: -12px;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 24px;
    background: var(--primary);
    border-radius: 2px;
}

.menu-item .material-icons {
    font-size: 20px;
    opacity: 0.8;
}

.menu-item.active .material-icons {
    opacity: 1;
}

.menu-item-text {
    font-size: 14px;
    font-weight: 500;
}

.menu-divider {
    height: 1px;
    background: var(--outline);
    margin: 16px 16px;
}

/* Dropdown Menu Styles */
.menu-dropdown {
    position: relative;
}

.dropdown-toggle {
    justify-content: flex-start;
}

.dropdown-toggle .dropdown-arrow {
    margin-left: auto;
}

.dropdown-arrow {
    font-size: 18px;
    transition: transform 0.3s ease;
}

.dropdown-toggle.expanded .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: var(--outline);
    border-radius: 8px;
    margin: 4px 0 8px 0;
}

.dropdown-content.show {
    max-height: 200px;
}

.dropdown-item {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: var(--on-surface);
    text-decoration: none;
    transition: all 0.3s ease;
    gap: 16px;
    border-radius: 12px;
    margin: 2px 8px;
    font-weight: 500;
    font-size: 14px;
    position: relative;
}

.dropdown-item:hover {
    background: var(--surface);
    transform: translateX(4px);
}

.dropdown-item.active {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    box-shadow: 0 4px 16px rgba(25, 118, 210, 0.3);
}

.dropdown-item .material-icons {
    font-size: 20px;
    opacity: 0.8;
}

.dropdown-item.active .material-icons {
    opacity: 1;
}

.dropdown-item .menu-item-text {
    font-size: 14px;
    font-weight: 500;
}

.main-content {
    margin-left: 280px;
    min-height: 100vh;
    background: var(--background);
    position: relative;
    z-index: 1;
}

.topbar {
    height: 72px;
    background: var(--surface);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 32px;
    box-shadow: 0 4px 16px var(--shadow);
    border-bottom: 1px solid var(--outline);
    position: sticky;
    top: 0;
    z-index: 100;
}

.topbar-title {
    font-size: 24px;
    font-weight: 600;
    color: var(--on-surface);
    margin: 0 0 0 270px;
}

.topbar-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 4px;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.user-info:hover {
    transform: translateY(-1px);
}

.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(25, 118, 210, 0.2);
    transition: all 0.3s ease;
}

.user-details {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 90px;
}

.user-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--on-surface);
    line-height: 1.2;
    transition: color 0.3s ease;
}

.user-role {
    font-size: 12px;
    font-weight: 500;
    color: var(--secondary);
    text-transform: capitalize;
    line-height: 1.2;
    transition: color 0.3s ease;
}

.user-info:hover .user-name {
    color: var(--primary);
}

.user-info:hover .user-role {
    color: var(--primary);
}

.user-info:hover .user-avatar {
    box-shadow: 0 4px 16px rgba(25, 118, 210, 0.3);
    transform: scale(1.05);
}

/* Dark mode user-info adjustments */
[data-theme="dark"] .user-info:hover .user-name,
[data-theme="dark"] .user-info:hover .user-role {
    color: var(--primary);
}

[data-theme="dark"] .user-avatar {
    box-shadow: 0 2px 8px rgba(25, 118, 210, 0.3);
}

[data-theme="dark"] .user-info:hover .user-avatar {
    box-shadow: 0 4px 16px rgba(25, 118, 210, 0.4);
}

/* User info animation on load */
.user-info {
    animation: fadeInSlide 0.4s ease-out;
}

@keyframes fadeInSlide {
    from {
        opacity: 0;
        transform: translateX(10px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.content {
    padding: 24px;
}

.card {
    background: var(--surface);
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 4px 16px var(--shadow);
    margin-bottom: 24px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-bottom: 32px;
}

@media (max-width: 1200px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .topbar-actions {
        gap: 8px;
    }
    
    .user-info {
        gap: 8px;
        padding: 2px;
    }
    
    .user-details {
        min-width: 70px;
    }
    
    .user-name {
        font-size: 13px;
    }
    
    .user-role {
        font-size: 11px;
    }
    
    .user-avatar {
        width: 32px;
        height: 32px;
        font-size: 13px;
    }
}

.stat-card {
    background: var(--surface);
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 4px 16px var(--shadow);
    border: 1px solid var(--outline);
    transition: all 0.3s ease;
    min-height: 120px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    margin-bottom: 4px;
}

.stat-icon.users { background: linear-gradient(135deg, #4caf50, #388e3c); }
.stat-icon.bots { background: linear-gradient(135deg, #9c27b0, #7b1fa2); }
.stat-icon.real-users { background: linear-gradient(135deg, #2196f3, #1976d2); }
.stat-icon.male { background: linear-gradient(135deg, #03a9f4, #0288d1); }
.stat-icon.female { background: linear-gradient(135deg, #e91e63, #c2185b); }
.stat-icon.matches { background: linear-gradient(135deg, #e91e63, #c2185b); }
.stat-icon.messages { background: linear-gradient(135deg, #2196f3, #1976d2); }
.stat-icon.reports { background: linear-gradient(135deg, #ff9800, #f57c00); }

/* Matches Page Styles */
.user-info-cell {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-info-cell .user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.user-info-cell .user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-info-cell .avatar-placeholder {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.user-info-cell .avatar-placeholder .material-icons {
    font-size: 20px;
}

.user-info-cell .user-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.user-info-cell .user-details strong {
    font-weight: 600;
    color: var(--on-surface);
    font-size: 14px;
}

.user-info-cell .user-details small {
    color: var(--secondary);
    font-size: 12px;
}

/* Visits, Kiss and Likes Cards */
.visits-grid,
.kisses-grid,
.likes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 24px;
    padding: 24px;
}

.visit-card,
.kiss-card,
.like-card {
    background: var(--surface);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 16px var(--shadow);
    border: 1px solid var(--outline);
    transition: all 0.3s ease;
    position: relative;
}

.visit-card:hover,
.kiss-card:hover,
.like-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 32px var(--shadow);
}

.visit-header,
.kiss-header,
.like-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
    position: relative;
}

.visit-avatars,
.kiss-avatars,
.like-avatars {
    position: relative;
}

.avatar-stack {
    position: relative;
    width: 80px;
    height: 60px;
}

.avatar-bottom,
.avatar-top {
    position: absolute;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--surface);
    box-shadow: 0 2px 8px var(--shadow);
}

.avatar-bottom {
    left: 0;
    top: 10px;
    z-index: 1;
}

.avatar-top {
    right: 0;
    top: 0;
    z-index: 2;
}

.avatar-bottom img,
.avatar-top img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-bottom .avatar-placeholder,
.avatar-top .avatar-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.avatar-bottom .avatar-placeholder .material-icons,
.avatar-top .avatar-placeholder .material-icons {
    font-size: 24px;
}

.visit-id,
.kiss-id,
.like-id {
    background: var(--outline);
    color: var(--on-surface);
    padding: 6px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.visit-content,
.kiss-content,
.like-content {
    margin-bottom: 0;
}

.visit-info,
.kiss-info,
.like-info {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 16px;
}

.visitor-info,
.visited-info,
.sender-info,
.receiver-info,
.liker-info,
.liked-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.visitor-info .label,
.visited-info .label,
.sender-info .label,
.receiver-info .label,
.liker-info .label,
.liked-info .label {
    font-size: 12px;
    font-weight: 600;
    color: var(--secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.visitor-info strong,
.visited-info strong,
.sender-info strong,
.receiver-info strong,
.liker-info strong,
.liked-info strong {
    font-size: 16px;
    font-weight: 600;
    color: var(--on-surface);
}

.visitor-info small,
.visited-info small,
.sender-info small,
.receiver-info small,
.liker-info small,
.liked-info small {
    font-size: 14px;
    color: var(--secondary);
}

.visit-date,
.kiss-date,
.like-date {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--secondary);
    font-size: 14px;
    font-weight: 500;
    background: var(--outline);
    padding: 8px 12px;
    border-radius: 8px;
}

.visit-date .material-icons,
.kiss-date .material-icons,
.like-date .material-icons {
    font-size: 18px;
}

.visit-actions,
.kiss-actions,
.like-actions {
    display: flex;
    justify-content: center;
    padding-top: 16px;
    border-top: 1px solid var(--outline);
}

.btn-delete {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: #f44336;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-delete:hover {
    background: #d32f2f;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(244, 67, 54, 0.3);
}

.btn-delete .material-icons {
    font-size: 18px;
}

@media (max-width: 768px) {
    .visits-grid,
    .kisses-grid,
    .likes-grid {
        grid-template-columns: 1fr;
        padding: 16px;
    }
    
    .visit-card,
    .kiss-card,
    .like-card {
        padding: 20px;
    }
}



.badge-success {
    background: rgba(76, 175, 80, 0.1);
    color: #4caf50;
}

.badge-secondary {
    background: rgba(158, 158, 158, 0.1);
    color: #9e9e9e;
}

.btn-sm {
    width: 32px;
    height: 32px;
    font-size: 16px;
}

.btn-danger:hover {
    background: #f44336;
    color: white;
}

.text-center {
    text-align: center;
    color: var(--secondary);
    font-style: italic;
    padding: 40px 20px;
}
.stat-icon.quizzes { background: linear-gradient(135deg, #ff9800, #f57c00); }
.stat-icon.lessons { background: linear-gradient(135deg, #2196f3, #1976d2); }
.stat-icon.tests { background: linear-gradient(135deg, #9c27b0, #7b1fa2); }

/* Modern Dashboard Styles */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--outline);
}

.page-title h1 {
    font-size: 32px;
    font-weight: 700;
    color: var(--on-surface);
    margin: 0 0 8px 0;
}

.page-title p {
    color: var(--secondary);
    font-size: 16px;
    margin: 0;
}

.page-actions {
    display: flex;
    gap: 12px;
}

.btn-secondary {
    padding: 12px 20px;
    background: var(--outline);
    color: var(--on-surface);
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: var(--secondary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px var(--shadow);
}

.btn-success {
    padding: 12px 24px;
    background: linear-gradient(135deg, #4caf50, #388e3c);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(76, 175, 80, 0.2);
}

.btn-success:hover {
    background: linear-gradient(135deg, #388e3c, #2e7d32);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.4);
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px var(--shadow);
}

.stat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.stat-trend {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 12px;
}

.stat-trend.positive {
    background: rgba(76, 175, 80, 0.1);
    color: #4caf50;
}

.stat-trend.negative {
    background: rgba(244, 67, 54, 0.1);
    color: #f44336;
}

.stat-trend.neutral {
    background: rgba(158, 158, 158, 0.1);
    color: #9e9e9e;
}

.stat-content h3 {
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 4px 0;
    color: var(--on-surface);
}

.stat-content p {
    font-size: 14px;
    font-weight: 500;
    color: var(--secondary);
    margin: 0 0 8px 0;
}

.stat-subtitle {
    font-size: 12px;
    color: var(--secondary);
    opacity: 0.8;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 24px;
    margin-top: 32px;
}

@media (max-width: 1024px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
}

.card.modern {
    background: var(--surface);
    border-radius: 16px;
    padding: 0;
    box-shadow: 0 4px 16px var(--shadow);
    border: 1px solid var(--outline);
    overflow: hidden;
}

.card-header {
    padding: 24px 24px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--outline);
}

.card-header h2 {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
    color: var(--on-surface);
}

.activity-list {
    padding: 16px 0;
}

.activity-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 24px;
    transition: all 0.3s ease;
}

.activity-item:hover {
    background: var(--outline);
}

.activity-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--outline);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary);
}

.activity-content p {
    font-size: 14px;
    font-weight: 500;
    margin: 0 0 4px 0;
    color: var(--on-surface);
}

.activity-content span {
    font-size: 12px;
    color: var(--secondary);
}

.quick-actions {
    padding: 16px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.quick-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 20px 16px;
    background: var(--outline);
    border-radius: 12px;
    text-decoration: none;
    color: var(--on-surface);
    transition: all 0.3s ease;
    font-size: 12px;
    font-weight: 500;
}

.quick-action:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(25, 118, 210, 0.3);
}

.quick-action .material-icons {
    font-size: 24px;
}

/* Users Page Styles */
.stat-icon.premium { background: linear-gradient(135deg, #ffc107, #ff8f00); }
.stat-icon.active { background: linear-gradient(135deg, #00bcd4, #0097a7); }
.stat-icon.conversion { background: linear-gradient(135deg, #8bc34a, #689f38); }

.table-actions {
    display: flex;
    gap: 16px;
    align-items: center;
}

.search-box {
    position: relative;
    display: flex;
    align-items: center;
}

.search-box .material-icons {
    position: absolute;
    left: 12px;
    color: var(--secondary);
    font-size: 20px;
}

.search-box input {
    padding: 10px 12px 10px 40px;
    border: 1px solid var(--outline);
    border-radius: 8px;
    background: var(--surface);
    color: var(--on-surface);
    font-size: 14px;
    width: 250px;
}

.search-box input:focus {
    outline: none;
    border-color: var(--primary);
}

.filter-select {
    padding: 10px 16px;
    border: 1px solid var(--outline);
    border-radius: 8px;
    background: var(--surface);
    color: var(--on-surface);
    font-size: 14px;
    cursor: pointer;
}

.table-container {
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th {
    padding: 16px;
    text-align: left;
    font-weight: 600;
    color: var(--secondary);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 1px solid var(--outline);
}

.data-table td {
    padding: 16px;
    border-bottom: 1px solid var(--outline);
    color: var(--on-surface);
}

.data-table tr:hover {
    background: var(--outline);
}

.user-cell {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 14px;
    overflow: hidden;
    position: relative;
}

.avatar-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.avatar-initial {
    color: white;
    font-weight: 600;
    font-size: 14px;
}

.user-name {
    font-weight: 500;
    font-size: 14px;
    color: var(--on-surface);
}

.user-id {
    font-size: 12px;
    color: var(--secondary);
}

.status-badge {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.status-badge.active {
    background: rgba(76, 175, 80, 0.1);
    color: #4caf50;
}

.premium-badge {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px 12px;
    border-radius: 12px;
    background: rgba(255, 193, 7, 0.1);
    color: #ffc107;
    font-size: 12px;
    font-weight: 500;
}

.premium-badge .material-icons {
    font-size: 14px;
}

.free-badge {
    padding: 4px 12px;
    border-radius: 12px;
    background: rgba(158, 158, 158, 0.1);
    color: #9e9e9e;
    font-size: 12px;
    font-weight: 500;
}

.action-buttons {
    display: flex;
    gap: 8px;
}

.btn-icon.danger:hover {
    background: #f44336;
    color: white;
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 24px;
    border-top: 1px solid var(--outline);
}

.page-link {
    padding: 8px 12px;
    border-radius: 8px;
    text-decoration: none;
    color: var(--on-surface);
    font-weight: 500;
    transition: all 0.3s ease;
}

.page-link:hover,
.page-link.active {
    background: var(--primary);
    color: white;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
}

.empty-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.empty-content .material-icons {
    font-size: 64px;
    color: var(--secondary);
    opacity: 0.5;
}

.empty-content h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--on-surface);
    margin: 0;
}

.empty-content p {
    color: var(--secondary);
    font-size: 14px;
    margin: 0;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: var(--surface);
    border-radius: 16px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 16px 64px var(--shadow);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 24px 16px;
    border-bottom: 1px solid var(--outline);
}

.modal-header h2 {
    font-size: 20px;
    font-weight: 600;
    margin: 0;
    color: var(--on-surface);
}

.form-group {
    margin-bottom: 20px;
    padding: 0 24px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--on-surface);
    margin-bottom: 8px;
}

.form-group input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--outline);
    border-radius: 8px;
    background: var(--surface);
    color: var(--on-surface);
    font-size: 14px;
    transition: all 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary);
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
}

.checkbox-label input[type="checkbox"] {
    width: auto;
    margin: 0;
}

.modal-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    padding: 16px 24px 24px;
    border-top: 1px solid var(--outline);
}

.user-details {
    padding: 24px;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--outline);
}

.detail-item:last-child {
    border-bottom: none;
}

.detail-item label {
    font-weight: 600;
    color: var(--secondary);
}

.detail-item span {
    color: var(--on-surface);
}

/* Lessons Page Styles */
.stat-icon.subjects { background: linear-gradient(135deg, #673ab7, #512da8); }

.lessons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
    padding: 24px;
}

.lesson-card {
    background: var(--surface);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 16px var(--shadow);
    border: 1px solid var(--outline);
    transition: all 0.3s ease;
}

.lesson-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 32px var(--shadow);
}

.lesson-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.lesson-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.lesson-actions {
    display: flex;
    gap: 8px;
}

.lesson-content h3 {
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 16px 0;
    color: var(--on-surface);
}

.lesson-stats {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--secondary);
    font-size: 14px;
}

.stat-item .material-icons {
    font-size: 18px;
}

.lesson-footer {
    border-top: 1px solid var(--outline);
    padding-top: 16px;
}

.lesson-footer .btn-secondary {
    width: 100%;
    justify-content: center;
}

/* Subjects Page Styles */
.stat-icon.content { background: linear-gradient(135deg, #795548, #5d4037); }

.subjects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
    padding: 24px;
}

.subject-card {
    background: var(--surface);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 16px var(--shadow);
    border: 1px solid var(--outline);
    transition: all 0.3s ease;
}

.subject-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 32px var(--shadow);
}

.subject-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
}

.subject-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, #673ab7, #512da8);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.subject-badges {
    flex: 1;
    display: flex;
    justify-content: center;
}

.subject-actions {
    display: flex;
    gap: 8px;
}

.subject-content h3 {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 8px 0;
    color: var(--on-surface);
}

.subject-lesson {
    color: var(--secondary);
    font-size: 14px;
    margin: 0 0 16px 0;
    font-weight: 500;
}

.subject-stats {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.subject-stats .stat-item {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--secondary);
    font-size: 13px;
}

.subject-stats .stat-item .material-icons {
    font-size: 16px;
}

.form-group select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--outline);
    border-radius: 8px;
    background: var(--surface);
    color: var(--on-surface);
    font-size: 14px;
    transition: all 0.3s ease;
}

.form-group select:focus {
    outline: none;
    border-color: var(--primary);
}

.form-group small {
    color: var(--secondary);
    font-size: 12px;
    margin-top: 4px;
    display: block;
}

/* Quizzes Page Styles */
.stat-icon.questions { background: linear-gradient(135deg, #607d8b, #455a64); }
.stat-icon.duration { background: linear-gradient(135deg, #795548, #5d4037); }

.quizzes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 24px;
    padding: 24px;
}

.quiz-card {
    background: var(--surface);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 16px var(--shadow);
    border: 1px solid var(--outline);
    transition: all 0.3s ease;
}

.quiz-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 32px var(--shadow);
}

.quiz-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
}

.quiz-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, #ff9800, #f57c00);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.quiz-badges {
    flex: 1;
    display: flex;
    justify-content: center;
}

.quiz-actions {
    display: flex;
    gap: 8px;
}

.quiz-content h3 {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 8px 0;
    color: var(--on-surface);
}

.quiz-subject {
    color: var(--secondary);
    font-size: 14px;
    margin: 0 0 16px 0;
    font-weight: 500;
}

.quiz-stats {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
}

.quiz-stats .stat-item {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--secondary);
    font-size: 13px;
}

.quiz-stats .stat-item .material-icons {
    font-size: 16px;
}

.quiz-footer {
    border-top: 1px solid var(--outline);
    padding-top: 16px;
}

.quiz-footer .btn-secondary {
    width: 100%;
    justify-content: center;
}

/* Questions Page Styles */
.stat-icon.complete { background: linear-gradient(135deg, #4caf50, #388e3c); }
.stat-icon.incomplete { background: linear-gradient(135deg, #ff9800, #f57c00); }

.questions-list {
    padding: 24px;
}

.question-card {
    background: var(--surface);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 16px;
    box-shadow: 0 2px 8px var(--shadow);
    border: 1px solid var(--outline);
    transition: all 0.3s ease;
}

.question-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px var(--shadow);
}

.question-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.question-number {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
}

.question-status .status-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 500;
}

.status-badge.complete {
    background: rgba(76, 175, 80, 0.1);
    color: #4caf50;
}

.status-badge.incomplete {
    background: rgba(255, 152, 0, 0.1);
    color: #ff9800;
}

.question-actions {
    display: flex;
    gap: 8px;
}

.question-content p {
    font-size: 16px;
    line-height: 1.5;
    color: var(--on-surface);
    margin: 0;
}

.question-image {
    margin-top: 12px;
}

.question-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    border: 1px solid var(--outline);
}

.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--outline);
    border-radius: 8px;
    background: var(--surface);
    color: var(--on-surface);
    font-size: 14px;
    font-family: inherit;
    resize: vertical;
    min-height: 100px;
    transition: all 0.3s ease;
}

.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
}

/* Options Form Styles */
.options-section {
    margin: 24px 0;
    padding: 20px;
    background: var(--outline);
    border-radius: 12px;
}

.options-section h3 {
    margin: 0 0 16px 0;
    color: var(--on-surface);
    font-size: 16px;
    font-weight: 600;
}

.options-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.option-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--surface);
    border-radius: 8px;
    border: 1px solid var(--outline);
}

.option-item label:first-child {
    font-weight: 600;
    color: var(--on-surface);
    min-width: 24px;
}

.option-item input[type="text"] {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid var(--outline);
    border-radius: 6px;
    background: var(--surface);
    color: var(--on-surface);
    font-size: 14px;
}

.option-item input[type="text"]:focus {
    outline: none;
    border-color: var(--primary);
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 500;
    color: var(--secondary);
    min-width: 60px;
}

.radio-label input[type="radio"] {
    margin: 0;
}

.radio-mark {
    width: 16px;
    height: 16px;
    border: 2px solid var(--outline);
    border-radius: 50%;
    position: relative;
}

.radio-label input[type="radio"]:checked + .radio-mark {
    border-color: var(--primary);
    background: var(--primary);
}

.radio-label input[type="radio"]:checked + .radio-mark::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: white;
}

/* Options Display Modal */
.options-display {
    padding: 24px;
}

.question-text-display {
    background: var(--outline);
    padding: 16px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.question-text-display p {
    margin: 0;
    color: var(--on-surface);
    line-height: 1.5;
}

.options-list-display {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.option-display {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: var(--surface);
    border: 2px solid var(--outline);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.option-display.correct {
    border-color: #4caf50;
    background: rgba(76, 175, 80, 0.1);
}

.option-label {
    font-weight: 600;
    color: var(--on-surface);
    min-width: 24px;
}

.option-text {
    flex: 1;
    color: var(--on-surface);
    font-size: 14px;
}

.correct-indicator {
    color: #4caf50;
}

.correct-indicator .material-icons {
    font-size: 20px;
}

.no-options {
    text-align: center;
    color: var(--secondary);
    font-style: italic;
    padding: 40px 20px;
}

/* JSON Import Styles */
.json-format-info {
    background: var(--outline);
    padding: 16px;
    border-radius: 8px;
    margin: 16px 0;
}

.json-format-info h4 {
    margin: 0 0 12px 0;
    color: var(--on-surface);
    font-size: 14px;
}

.json-format-info p {
    margin: 8px 0;
    font-size: 12px;
    color: var(--secondary);
    line-height: 1.4;
}

.form-group input[type="file"] {
    width: 100%;
    padding: 12px 16px;
    border: 2px dashed var(--outline);
    border-radius: 8px;
    background: var(--surface);
    color: var(--on-surface);
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.form-group input[type="file"]:hover {
    border-color: var(--primary);
    background: var(--outline);
}

/* Sample JSON Modal Styles */
.sample-json-content {
    padding: 24px;
}

.json-example {
    background: #1e1e1e;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 20px;
    max-height: 400px;
    overflow-y: auto;
}

.json-example pre {
    color: #d4d4d4;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    line-height: 1.4;
    margin: 0;
    white-space: pre-wrap;
    word-wrap: break-word;
}

/* Trial Tests Page Styles */
.stat-icon.tests { background: linear-gradient(135deg, #2196f3, #1976d2); }
.stat-icon.ayt { background: linear-gradient(135deg, #e91e63, #c2185b); }
.stat-icon.tyt { background: linear-gradient(135deg, #9c27b0, #7b1fa2); }

.tests-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 24px;
    padding: 24px;
}

.test-card {
    background: var(--surface);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 16px var(--shadow);
    border: 1px solid var(--outline);
    transition: all 0.3s ease;
}

.test-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 32px var(--shadow);
}

.test-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
}

.test-type {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    color: white;
}

.test-type.ayt {
    background: linear-gradient(135deg, #e91e63, #c2185b);
}

.test-type.tyt {
    background: linear-gradient(135deg, #9c27b0, #7b1fa2);
}

.test-badges {
    flex: 1;
    display: flex;
    justify-content: center;
}

.test-actions {
    display: flex;
    gap: 8px;
}

.test-content h3 {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 16px 0;
    color: var(--on-surface);
}

.test-stats {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.test-stats .stat-item {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--secondary);
    font-size: 13px;
}

.test-stats .stat-item .material-icons {
    font-size: 16px;
}

/* Trial Test Questions Page Styles */
.test-subjects-list {
    padding: 24px;
}

.test-subject-card {
    background: var(--surface);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 16px;
    box-shadow: 0 2px 8px var(--shadow);
    border: 1px solid var(--outline);
    transition: all 0.3s ease;
}

.test-subject-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px var(--shadow);
}

.subject-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
}

.subject-info h3 {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 8px 0;
    color: var(--on-surface);
}

.subject-meta {
    display: flex;
    gap: 16px;
    align-items: center;
}

.question-target {
    color: var(--secondary);
    font-size: 14px;
}

.question-status .status-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.subject-actions {
    display: flex;
    gap: 8px;
}

.progress-bar {
    width: 100%;
    height: 6px;
    background: var(--outline);
    border-radius: 3px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--primary-dark));
    border-radius: 3px;
    transition: width 0.3s ease;
}

/* Trial Subject Questions Page Styles */
.stat-icon.target { background: linear-gradient(135deg, #ff9800, #f57c00); }
.stat-icon.remaining { background: linear-gradient(135deg, #f44336, #d32f2f); }
.stat-icon.progress { background: linear-gradient(135deg, #4caf50, #388e3c); }

.trial-questions-list {
    padding: 24px;
}

.trial-question-card {
    background: var(--surface);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 16px;
    box-shadow: 0 2px 8px var(--shadow);
    border: 1px solid var(--outline);
    transition: all 0.3s ease;
}

.trial-question-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px var(--shadow);
}

.trial-question-card .question-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.trial-question-card .question-number {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
}

.trial-question-card .question-content p {
    font-size: 16px;
    line-height: 1.5;
    color: var(--on-surface);
    margin: 0 0 16px 0;
}

.question-options {
    display: grid;
    gap: 8px;
}

.question-options .option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: var(--outline);
    border-radius: 6px;
    font-size: 14px;
}

.question-options .option.correct {
    background: rgba(76, 175, 80, 0.1);
    border: 1px solid #4caf50;
    color: #4caf50;
}

.option-label {
    font-weight: 600;
    min-width: 20px;
}

/* Contents Page Styles */
.stat-icon.length { background: linear-gradient(135deg, #607d8b, #455a64); }
.stat-icon.coverage { background: linear-gradient(135deg, #3f51b5, #303f9f); }

.contents-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 24px;
    padding: 24px;
}

.content-card {
    background: var(--surface);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 16px var(--shadow);
    border: 1px solid var(--outline);
    transition: all 0.3s ease;
}

.content-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 32px var(--shadow);
}

.content-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.content-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, #795548, #5d4037);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.content-actions {
    display: flex;
    gap: 8px;
}

.content-body h3 {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 8px 0;
    color: var(--on-surface);
}

.content-lesson {
    color: var(--secondary);
    font-size: 14px;
    margin: 0 0 16px 0;
    font-weight: 500;
}

.content-preview {
    color: var(--on-surface);
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 16px;
    background: var(--outline);
    padding: 12px;
    border-radius: 8px;
}

.content-stats {
    display: flex;
    gap: 16px;
}

.content-stats .stat-item {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--secondary);
    font-size: 12px;
}

.content-stats .stat-item .material-icons {
    font-size: 16px;
}

/* Large Modal */
.modal-content.large {
    max-width: 800px;
    width: 90vw;
}

.content-view {
    padding: 24px;
    max-height: 60vh;
    overflow-y: auto;
}

.content-view p {
    line-height: 1.6;
    margin-bottom: 16px;
    color: var(--on-surface);
}

.content-view strong {
    font-weight: 600;
    color: var(--primary);
}

.content-view em {
    font-style: italic;
    color: var(--secondary);
}

.content-view h1 {
    font-size: 24px;
    font-weight: 700;
    margin: 24px 0 16px 0;
    color: var(--primary);
    border-bottom: 2px solid var(--outline);
    padding-bottom: 8px;
}

.content-view h2 {
    font-size: 20px;
    font-weight: 600;
    margin: 20px 0 12px 0;
    color: var(--primary);
}

.content-view h3 {
    font-size: 18px;
    font-weight: 600;
    margin: 16px 0 8px 0;
    color: var(--on-surface);
}

.content-view ul {
    margin: 12px 0;
    padding-left: 20px;
}

.content-view li {
    margin: 4px 0;
    color: var(--on-surface);
    list-style-type: disc;
}

.question-image {
    margin: 12px 0;
}

.question-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    border: 1px solid var(--outline);
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.toast {
    min-width: 300px;
    padding: 16px 20px;
    background: var(--surface);
    border-radius: 8px;
    box-shadow: 0 8px 32px var(--shadow);
    display: flex;
    align-items: center;
    gap: 12px;
    transform: translateX(400px);
    opacity: 0;
    transition: all 0.3s ease;
    border-left: 4px solid var(--primary);
}

.toast.show {
    transform: translateX(0);
    opacity: 1;
}

.toast.success {
    border-left-color: #4caf50;
}

.toast.error {
    border-left-color: #f44336;
}

.toast.warning {
    border-left-color: #ff9800;
}

.toast.info {
    border-left-color: #2196f3;
}

.toast-icon {
    color: var(--primary);
    font-size: 20px;
}

.toast.success .toast-icon {
    color: #4caf50;
}

.toast.error .toast-icon {
    color: #f44336;
}

.toast.warning .toast-icon {
    color: #ff9800;
}

.toast.info .toast-icon {
    color: #2196f3;
}

.toast-content {
    flex: 1;
}

.toast-title {
    font-weight: 500;
    font-size: 14px;
    margin-bottom: 4px;
    color: var(--on-surface);
}

.toast-message {
    font-size: 13px;
    color: var(--secondary);
    line-height: 1.4;
}

.toast-close {
    background: none;
    border: none;
    color: var(--secondary);
    cursor: pointer;
    padding: 4px;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.toast-close:hover {
    background: var(--outline);
}

/* Bot and User badges */
.bot-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    background: #e8f5e8;
    color: #2e7d32;
    border: 1px solid #c8e6c9;
}

.user-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    background: #e3f2fd;
    color: #1976d2;
    border: 1px solid #bbdefb;
}

.bot-badge .material-icons,
.user-badge .material-icons {
    font-size: 14px;
}

/* Form textarea styling */
textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
    font-family: inherit;
    resize: vertical;
    min-height: 80px;
}

textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(25, 118, 210, 0.1);
}

/* Add User Form Styles */
.form-container {
    max-width: 1000px;
    margin: 0 auto;
}

.form-section {
    background: var(--surface);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 4px 16px var(--shadow);
    border: 1px solid var(--outline);
}

.section-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--outline);
}

.section-header .material-icons {
    color: var(--primary);
    font-size: 24px;
}

.section-header h3 {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
    color: var(--on-surface);
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--on-surface);
    font-size: 14px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--outline);
    border-radius: 8px;
    font-size: 14px;
    background: var(--surface);
    color: var(--on-surface);
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(25, 118, 210, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.form-help {
    display: block;
    font-size: 12px;
    color: var(--secondary);
    margin-top: 4px;
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    margin-top: 8px;
    padding: 8px 0;
}

.checkbox-group input[type="checkbox"] {
    width: auto;
    margin: 0;
    cursor: pointer;
    display: none; /* Hide default checkbox */
}

.label-text {
    font-weight: 500;
    color: var(--on-surface);
    cursor: pointer;
    line-height: 24px; /* Match toggle height */
    display: flex;
    align-items: center;
}

/* Toggle Switch Styles */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
    background-color: #ccc;
    border-radius: 24px;
    transition: background-color 0.3s;
    cursor: pointer;
    flex-shrink: 0;
}

.toggle-switch::before {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 20px;
    height: 20px;
    background-color: white;
    border-radius: 50%;
    transition: transform 0.3s;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.checkbox-group input[type="checkbox"]:checked + .toggle-switch {
    background-color: var(--primary);
}

.checkbox-group input[type="checkbox"]:checked + .toggle-switch::before {
    transform: translateX(26px);
}

.toggle-switch:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.checkbox-group input[type="checkbox"]:focus + .toggle-switch {
    box-shadow: 0 0 0 3px rgba(25, 118, 210, 0.2);
}

/* Photo Upload Styles */
.photo-upload-container {
    margin-top: 20px;
}

.upload-area {
    border: 2px dashed var(--outline);
    border-radius: 16px;
    padding: 40px;
    text-align: center;
    background: var(--surface);
    transition: all 0.3s ease;
    cursor: pointer;
}

.upload-area:hover {
    border-color: var(--primary);
    background: var(--outline);
}

.upload-content .material-icons {
    font-size: 48px;
    color: var(--secondary);
    margin-bottom: 16px;
}

.upload-content h4 {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 8px 0;
    color: var(--on-surface);
}

.upload-content p {
    color: var(--secondary);
    margin: 0 0 20px 0;
}

.photo-preview {
    margin-top: 24px;
}

.photo-preview h4 {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 16px 0;
    color: var(--on-surface);
}

.preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
}

.preview-item {
    background: var(--surface);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px var(--shadow);
    border: 1px solid var(--outline);
}

.preview-image {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
}

.preview-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.preview-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.preview-item:hover .preview-overlay {
    opacity: 1;
}

.btn-remove {
    padding: 8px;
    background: #f44336;
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.btn-remove:hover {
    background: #d32f2f;
    transform: scale(1.1);
}

.btn-primary-photo {
    padding: 8px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.btn-primary-photo:hover {
    background: var(--primary-dark);
    transform: scale(1.1);
}

.preview-info {
    padding: 12px;
}

.photo-name {
    display: block;
    font-weight: 500;
    font-size: 14px;
    color: var(--on-surface);
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.photo-size {
    display: block;
    font-size: 12px;
    color: var(--secondary);
    margin-bottom: 8px;
}

.primary-badge {
    display: inline-block;
    padding: 2px 8px;
    background: var(--primary);
    color: white;
    font-size: 10px;
    font-weight: 600;
    border-radius: 12px;
    text-transform: uppercase;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 16px;
    margin-top: 32px;
    padding: 24px;
    background: var(--surface);
    border-radius: 16px;
    box-shadow: 0 4px 16px var(--shadow);
    border: 1px solid var(--outline);
}

.rotating {
    animation: rotate 1s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Toast Styles */
.toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--surface);
    border-radius: 12px;
    padding: 16px 20px;
    box-shadow: 0 8px 32px var(--shadow);
    border: 1px solid var(--outline);
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 10001;
    transform: translateX(400px);
    opacity: 0;
    transition: all 0.3s ease;
    max-width: 400px;
}

.toast.show {
    transform: translateX(0);
    opacity: 1;
}

.toast-success {
    border-left: 4px solid #4caf50;
}

.toast-error {
    border-left: 4px solid #f44336;
}

.toast-info {
    border-left: 4px solid var(--primary);
}

.toast-content {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
}

.toast-success .material-icons {
    color: #4caf50;
}

.toast-error .material-icons {
    color: #f44336;
}

.toast-info .material-icons {
    color: var(--primary);
}

.toast-message {
    color: var(--on-surface);
    font-weight: 500;
}

.toast-close {
    background: none;
    border: none;
    color: var(--secondary);
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.toast-close:hover {
    background: var(--outline);
    color: var(--on-surface);
}

@media (max-width: 768px) {
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .preview-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
}

/* Existing Photos Styles */
.existing-photos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
}

.existing-photo-item {
    background: var(--surface);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px var(--shadow);
    border: 1px solid var(--outline);
    transition: all 0.3s ease;
}

.existing-photo-image {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
}

.existing-photo-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.existing-photo-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.existing-photo-item:hover .existing-photo-overlay {
    opacity: 1;
}

.existing-photo-info {
    padding: 12px;
    text-align: center;
}

@media (max-width: 768px) {
    .existing-photos-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
}

/* User Profile View Styles */
.user-profile-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.profile-header-section {
    background: var(--surface);
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 4px 16px var(--shadow);
    border: 1px solid var(--outline);
    display: flex;
    gap: 32px;
    align-items: flex-start;
}

.profile-avatar-large {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: 0 8px 24px var(--shadow);
}

.profile-avatar-large img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.avatar-placeholder .material-icons {
    font-size: 48px;
}

.profile-header-info {
    flex: 1;
}

.profile-name-section h2 {
    font-size: 32px;
    font-weight: 700;
    margin: 0 0 16px 0;
    color: var(--on-surface);
}

.profile-badges {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.verified-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 600;
    background: #e8f5e8;
    color: #2e7d32;
    border: 1px solid #c8e6c9;
}

.profile-quick-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.quick-info-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--secondary);
    font-size: 14px;
}

.quick-info-item .material-icons {
    font-size: 18px;
    color: var(--primary);
}

.profile-stats-section {
    background: var(--surface);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 16px var(--shadow);
    border: 1px solid var(--outline);
}

.profile-stats-section h3 {
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 20px 0;
    color: var(--on-surface);
}

.stats-grid-profile {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.stat-card-profile {
    background: var(--surface);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    border: 1px solid var(--outline);
    transition: all 0.3s ease;
}

.stat-card-profile:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px var(--shadow);
}

.stat-icon-profile {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
}

.stat-icon-profile.likes { background: linear-gradient(135deg, #e91e63, #c2185b); }
.stat-icon-profile.received { background: linear-gradient(135deg, #4caf50, #388e3c); }
.stat-icon-profile.matches { background: linear-gradient(135deg, #ff9800, #f57c00); }
.stat-icon-profile.messages { background: linear-gradient(135deg, #2196f3, #1976d2); }
.stat-icon-profile.tokens { background: linear-gradient(135deg, #ffc107, #ff8f00); }

.stat-card-profile .stat-content h4 {
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 4px 0;
    color: var(--on-surface);
}

.stat-card-profile .stat-content p {
    font-size: 14px;
    color: var(--secondary);
    margin: 0;
}

.profile-details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.detail-section {
    background: var(--surface);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 16px var(--shadow);
    border: 1px solid var(--outline);
}

.detail-section .section-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--outline);
}

.detail-section .section-header .material-icons {
    color: var(--primary);
    font-size: 24px;
}

.detail-section .section-header h3 {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
    color: var(--on-surface);
}

.detail-items {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
}

.detail-item label {
    font-weight: 500;
    color: var(--secondary);
    font-size: 14px;
}

.detail-item span {
    color: var(--on-surface);
    font-size: 14px;
    text-align: right;
}

.bio-section {
    background: var(--surface);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 16px var(--shadow);
    border: 1px solid var(--outline);
}

.bio-section .section-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--outline);
}

.bio-section .section-header .material-icons {
    color: var(--primary);
    font-size: 24px;
}

.bio-section .section-header h3 {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
    color: var(--on-surface);
}

.bio-content p {
    color: var(--on-surface);
    line-height: 1.6;
    font-size: 14px;
    margin: 0;
}

.interests-section {
    background: var(--surface);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 16px var(--shadow);
    border: 1px solid var(--outline);
}

.interests-section .section-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--outline);
}

.interests-section .section-header .material-icons {
    color: var(--primary);
    font-size: 24px;
}

.interests-section .section-header h3 {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
    color: var(--on-surface);
}

.interests-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.interest-tag {
    padding: 6px 12px;
    background: var(--outline);
    color: var(--on-surface);
    border-radius: 16px;
    font-size: 12px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.interest-tag:hover {
    background: var(--primary);
    color: white;
}

.photos-section {
    background: var(--surface);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 16px var(--shadow);
    border: 1px solid var(--outline);
}

.photos-section .section-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--outline);
}

.photos-section .section-header .material-icons {
    color: var(--primary);
    font-size: 24px;
}

.photos-section .section-header h3 {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
    color: var(--on-surface);
}

.photos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
}

.photo-item {
    position: relative;
    aspect-ratio: 1;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.photo-item:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 24px var(--shadow);
}

.photo-item.primary-photo {
    border-color: var(--primary);
}

.photo-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.3s ease;
}

.photo-item:hover img {
    transform: scale(1.1);
}

.primary-indicator {
    position: absolute;
    top: 8px;
    right: 8px;
    background: var(--primary);
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
    text-transform: uppercase;
}

.primary-indicator .material-icons {
    font-size: 12px;
}

.photo-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

.photo-modal-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
}

.photo-modal-content img {
    max-width: 100%;
    max-height: 100%;
    border-radius: 8px;
    box-shadow: 0 16px 64px rgba(0, 0, 0, 0.5);
}

.photo-modal-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.photo-modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

@media (max-width: 768px) {
    .profile-header-section {
        flex-direction: column;
        text-align: center;
        gap: 24px;
    }
    
    .profile-avatar-large {
        align-self: center;
    }
    
    .stats-grid-profile {
        grid-template-columns: 1fr;
    }
    
    .profile-details-grid {
        grid-template-columns: 1fr;
    }
    
    .photos-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
    
    .profile-name-section h2 {
        font-size: 24px;
    }
}