@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&display=swap');
@import url('components/toast.css');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background: #f8fafc;
}

/* Auth Page Styles */
.auth-page {
    min-height: 100vh;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.auth-container {
    width: 100%;
    max-width: 420px;
    animation: fadeIn 0.6s ease-out;
}

.auth-box {
    background: white;
    border-radius: 16px;
    padding: 48px 40px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(226, 232, 240, 0.8);
}

.logo-section {
    text-align: center;
    margin-bottom: 40px;
}

.logo-mark {
    font-size: 32px;
    color: #0f172a;
    margin-bottom: 12px;
}

.brand-name {
    font-size: 24px;
    font-weight: 700;
    color: #0f172a;
    letter-spacing: -0.5px;
}

.tab-container {
    display: flex;
    gap: 8px;
    margin-bottom: 32px;
    background: #f8fafc;
    padding: 4px;
    border-radius: 10px;
}

.tab {
    flex: 1;
    padding: 10px 20px;
    border: none;
    background: transparent;
    color: #64748b;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.tab.active {
    background: white;
    color: #0f172a;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.input-group label {
    font-size: 13px;
    font-weight: 500;
    color: #475569;
}

.input-group input {
    padding: 12px 16px;
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    font-size: 15px;
    color: #0f172a;
    background: white;
    transition: all 0.2s ease;
    outline: none;
    font-family: 'DM Sans', sans-serif;
}

.input-group input:focus {
    border-color: #94a3b8;
}

.input-group input::placeholder {
    color: #94a3b8;
}

.forgot-password {
    text-align: right;
    margin-top: -8px;
}

.forgot-password a {
    font-size: 13px;
    color: #475569;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.forgot-password a:hover {
    color: #0f172a;
}

.submit-btn {
    padding: 14px;
    background: #0f172a;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 8px;
    transition: all 0.2s ease;
    letter-spacing: 0.01em;
}

.submit-btn:hover {
    background: #1e293b;
}

.divider {
    position: relative;
    text-align: center;
    margin: 32px 0 24px;
}

.divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #e2e8f0;
}

.divider span {
    background: white;
    padding: 0 16px;
    font-size: 13px;
    color: #94a3b8;
    position: relative;
    z-index: 1;
}

.social-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.social-btn {
    padding: 12px;
    border: 1.5px solid #e2e8f0;
    background: white;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #475569;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.social-btn:hover {
    background: #f8fafc;
}

.social-icon {
    font-size: 12px;
    font-weight: 700;
}

/* Main Layout */
.main-layout {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 260px;
    background: white;
    border-right: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
}

.sidebar-header {
    padding: 24px 20px;
    border-bottom: 1px solid #e2e8f0;
}

.sidebar-logo {
    font-size: 18px;
    font-weight: 700;
    color: #0f172a;
}

.nav {
    flex: 1;
    padding: 20px 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border: none;
    background: transparent;
    color: #64748b;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.2s ease;
    text-decoration: none;
}

.nav-item:hover {
    background: #f8fafc;
}

.nav-item.active {
    background: #f8fafc;
    color: #0f172a;
}

.nav-icon {
    font-size: 18px;
}

.sidebar-footer {
    padding: 20px;
    border-top: 1px solid #e2e8f0;
}

.logout-btn {
    width: 100%;
    padding: 12px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #475569;
    cursor: pointer;
    transition: all 0.2s ease;
}

.logout-btn:hover {
    background: #e2e8f0;
}

/* Main Content */
.main-content {
    flex: 1;
    overflow: auto;
    padding: 40px;
}

.content-container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Home Page */
.home-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 40px;
}

.home-header h1 {
    font-size: 32px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.home-header p {
    font-size: 16px;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 8px;
}

.streak-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #ff6b35 0%, #ff8c42 100%);
    padding: 6px 12px;
    border-radius: 20px;
    color: white;
    font-weight: 600;
    font-size: 15px;
}

.flame {
    font-size: 18px;
    animation: flicker 2s infinite;
}

.streak-number {
    font-weight: 700;
}

@keyframes flicker {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.home-grid {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 32px;
}

.main-feed {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Goal Card */
.goal-card {
    background: white;
    padding: 24px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.goal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.goal-header h3 {
    font-size: 18px;
    font-weight: 600;
    color: #0f172a;
}

.goal-progress {
    font-size: 13px;
    color: #64748b;
    font-weight: 500;
}

.goal-bar {
    width: 100%;
    height: 8px;
    background: #f1f5f9;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 16px;
}

.goal-fill {
    height: 100%;
    background: linear-gradient(90deg, #10b981 0%, #059669 100%);
    border-radius: 4px;
    transition: width 0.3s ease;
}

.goal-items {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.goal-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    color: #64748b;
}

.goal-item.completed {
    color: #94a3b8;
    text-decoration: line-through;
}

.goal-item .check {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
}

.goal-item.completed .check {
    background: #10b981;
    color: white;
}

.goal-item:not(.completed) .check {
    border: 2px solid #cbd5e1;
    color: #cbd5e1;
}

/* Quick Actions */
.quick-actions {
    background: white;
    padding: 24px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.quick-actions h3 {
    font-size: 18px;
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 16px;
}

.action-buttons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 20px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    text-decoration: none;
    color: #0f172a;
    transition: all 0.2s ease;
}

.action-btn:hover {
    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.action-icon {
    font-size: 28px;
}

.action-btn span:last-child {
    font-size: 13px;
    font-weight: 500;
}

/* Activity Feed */
.activity-feed {
    background: white;
    padding: 24px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.activity-feed h3 {
    font-size: 18px;
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 20px;
}

.feed-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.feed-item {
    display: flex;
    gap: 12px;
    padding-bottom: 16px;
    border-bottom: 1px solid #f1f5f9;
}

.feed-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.feed-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 12px;
    font-weight: 600;
    flex-shrink: 0;
}

.feed-content {
    flex: 1;
}

.feed-text {
    font-size: 14px;
    color: #475569;
    line-height: 1.5;
    margin-bottom: 4px;
}

.feed-text strong {
    color: #0f172a;
    font-weight: 600;
}

.feed-time {
    font-size: 12px;
    color: #94a3b8;
}

.feed-score {
    font-size: 16px;
    font-weight: 700;
    color: #10b981;
}

/* Side Panel */
.side-panel {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Stats Card */
.stats-card {
    background: white;
    padding: 24px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.stats-card h3 {
    font-size: 18px;
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 20px;
}

.stat-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f1f5f9;
}

.stat-row:last-child {
    border-bottom: none;
}

.stat-label {
    font-size: 14px;
    color: #64748b;
}

.stat-value {
    font-size: 14px;
    font-weight: 600;
    color: #0f172a;
}

/* Friends Card */
.friends-card {
    background: white;
    padding: 24px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.friends-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.friends-header h3 {
    font-size: 18px;
    font-weight: 600;
    color: #0f172a;
}

.add-friend-btn {
    padding: 6px 12px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    color: #475569;
    cursor: pointer;
    transition: all 0.2s ease;
}

.add-friend-btn:hover {
    background: #e2e8f0;
}

.friends-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.friend-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: #f8fafc;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.friend-item:hover {
    background: #f1f5f9;
}

.friend-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 11px;
    font-weight: 600;
}

.friend-info {
    flex: 1;
}

.friend-name {
    font-size: 14px;
    font-weight: 500;
    color: #192135;
    margin-bottom: 2px;
}

.friend-level {
    font-size: 14px;
    font-weight: 500;
    color: #0f172a;
    margin-bottom: 2px;
}

.friend-streak {
    font-size: 12px;
    color: #64748b;
}

.friend-status {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #cbd5e1;
}

.friend-status.online {
    background: #10b981;
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2);
}

/* Leaderboard Preview */
.leaderboard-preview {
    background: white;
    padding: 24px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.leaderboard-preview h3 {
    font-size: 18px;
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 16px;
}

.leaderboard-mini {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
}

.leaderboard-mini-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: #f8fafc;
    border-radius: 8px;
}

.leaderboard-mini-item.highlight {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
}

.mini-rank {
    font-size: 18px;
}

.mini-name {
    flex: 1;
    font-size: 14px;
    font-weight: 500;
    color: #0f172a;
}

.mini-score {
    font-size: 14px;
    font-weight: 600;
    color: #64748b;
}

.view-full-link {
    display: block;
    text-align: center;
    font-size: 13px;
    color: #475569;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.view-full-link:hover {
    color: #0f172a;
}

.welcome-header {
    margin-bottom: 40px;
}

.welcome-header h1 {
    font-size: 32px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.welcome-header p {
    font-size: 16px;
    color: #64748b;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
    margin-bottom: 48px;
}

.feature-card {
    background: white;
    padding: 32px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.feature-icon {
    font-size: 36px;
    margin-bottom: 16px;
}

.feature-card h3 {
    font-size: 18px;
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 8px;
}

.feature-card p {
    font-size: 14px;
    color: #64748b;
    margin-bottom: 16px;
}

.feature-count {
    font-size: 13px;
    color: #94a3b8;
    font-weight: 500;
}

.recent-activity {
    background: white;
    padding: 32px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.recent-activity h2 {
    font-size: 20px;
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 24px;
}

.activity-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.activity-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: #f8fafc;
    border-radius: 8px;
}

.activity-icon {
    font-size: 24px;
}

.activity-content {
    flex: 1;
}

.activity-title {
    font-size: 14px;
    font-weight: 500;
    color: #0f172a;
    margin-bottom: 4px;
}

.activity-time {
    font-size: 13px;
    color: #94a3b8;
}

.activity-progress {
    font-size: 16px;
    font-weight: 600;
    color: #0f172a;
}

/* Section Header */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
}

.section-header h2 {
    font-size: 24px;
    font-weight: 600;
    color: #0f172a;
}

.content-container > h2 {
    font-size: 24px;
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 32px;
}

.create-btn {
    padding: 12px 24px;
    background: #0f172a;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
}

.create-btn:hover {
    background: #1e293b;
}

.back-btn {
    padding: 10px 20px;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #475569;
    cursor: pointer;
    margin-bottom: 24px;
    transition: all 0.2s ease;
}

.back-btn:hover {
    background: #f8fafc;
}

/* Items Grid */
.items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}

.item-card {
    background: white;
    padding: 24px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.item-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.item-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 12px;
}

.item-header h3 {
    font-size: 16px;
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 4px;
}

.item-count {
    font-size: 12px;
    color: #94a3b8;
    background: #f8fafc;
    padding: 4px 12px;
    border-radius: 12px;
}

.item-summary {
    font-size: 14px;
    color: #64748b;
    margin-bottom: 16px;
    line-height: 1.5;
}

.study-btn {
    width: 100%;
    padding: 10px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #0f172a;
    cursor: pointer;
    transition: all 0.2s ease;
}

.study-btn:hover {
    background: #e2e8f0;
}

/* Flashcard Viewer */
.flashcard-viewer {
    max-width: 600px;
    margin: 0 auto;
}

.card-counter {
    text-align: center;
    font-size: 14px;
    color: #64748b;
    margin-bottom: 24px;
}

.flashcard {
    background: white;
    padding: 80px 40px;
    border-radius: 16px;
    border: 2px solid #e2e8f0;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.6s;
    margin-bottom: 32px;
}

.flashcard:hover {
    border-color: #cbd5e1;
}

.flashcard-content {
    font-size: 20px;
    color: #0f172a;
    text-align: center;
    line-height: 1.6;
}

.flashcard-controls {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.nav-btn {
    padding: 12px 24px;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #475569;
    cursor: pointer;
    transition: all 0.2s ease;
}

.nav-btn:hover {
    background: #f8fafc;
}

.nav-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.flip-btn {
    padding: 12px 32px;
    background: #0f172a;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    color: white;
    cursor: pointer;
    transition: background 0.2s ease;
}

.flip-btn:hover {
    background: #1e293b;
}

/* Test Viewer */
.test-viewer {
    max-width: 800px;
    margin: 0 auto;
}

.test-viewer h2 {
    font-size: 24px;
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 8px;
}

.test-progress {
    font-size: 14px;
    color: #64748b;
    margin-bottom: 32px;
}

.question-card {
    background: white;
    padding: 24px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    margin-bottom: 24px;
}

.question-text {
    font-size: 16px;
    font-weight: 500;
    color: #0f172a;
    margin-bottom: 20px;
}

.options-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.option-label {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: #f8fafc;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.option-label:hover {
    background: #e2e8f0;
}

.option-label input {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.option-label span {
    font-size: 14px;
    color: #0f172a;
}

.submit-test-btn {
    width: 100%;
    padding: 16px;
    background: #0f172a;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 8px;
    transition: background 0.2s ease;
}

.submit-test-btn:hover {
    background: #1e293b;
}

.test-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 16px;
}

.test-time {
    font-size: 13px;
    color: #64748b;
}

/* Practice Section */
.practice-options {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 24px;
    margin-bottom: 48px;
}

.practice-card {
    background: white;
    padding: 32px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    text-align: center;
}

.practice-card h3 {
    font-size: 18px;
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 8px;
}

.practice-card p {
    font-size: 14px;
    color: #64748b;
    margin-bottom: 20px;
}

.start-btn {
    width: 100%;
    padding: 12px;
    background: #0f172a;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
}

.start-btn:hover {
    background: #1e293b;
}

.stats-section {
    background: white;
    padding: 32px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.stats-section h3 {
    font-size: 18px;
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 24px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
}

.stat-card {
    text-align: center;
    padding: 24px;
    background: #f8fafc;
    border-radius: 8px;
}

.stat-value {
    font-size: 32px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 14px;
    color: #64748b;
}

/* Games Section */
.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 24px;
    margin-bottom: 48px;
}

.game-card {
    background: white;
    padding: 32px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    text-align: center;
    transition: all 0.3s ease;
}

.game-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.game-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.game-card h3 {
    font-size: 18px;
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 8px;
}

.game-card p {
    font-size: 14px;
    color: #64748b;
    margin-bottom: 20px;
}

.play-btn {
    width: 100%;
    padding: 12px;
    background: #0f172a;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
}

.play-btn:hover {
    background: #1e293b;
}

.leaderboard {
    background: white;
    padding: 32px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.leaderboard h3 {
    font-size: 18px;
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 24px;
}

.leaderboard-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.leaderboard-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: #f8fafc;
    border-radius: 8px;
}

.rank {
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
    min-width: 40px;
}

.player-name {
    flex: 1;
    font-size: 14px;
    font-weight: 500;
    color: #0f172a;
}

.score {
    font-size: 14px;
    font-weight: 600;
    color: #64748b;
}

/* Upload Section */
.upload-zone {
    position: relative;
    background: white;
    border: 2px dashed #cbd5e1;
    border-radius: 12px;
    padding: 64px 32px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 32px;
}

.upload-zone:hover {
    border-color: #0f172a;
    background: #f8fafc;
}

.upload-zone.drag-active {
    border-color: #0f172a;
    background: #f8fafc;
}

.upload-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.upload-zone h3 {
    font-size: 18px;
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 8px;
}

.upload-zone p {
    font-size: 14px;
    color: #64748b;
}

#uploaded-files {
    background: white;
    padding: 24px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    margin-bottom: 32px;
}

#uploaded-files h3 {
    font-size: 16px;
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 16px;
}

.file-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: #f8fafc;
    border-radius: 8px;
    margin-bottom: 8px;
}

.file-name {
    flex: 1;
    font-size: 14px;
    color: #0f172a;
}

.file-size {
    font-size: 13px;
    color: #94a3b8;
}

.process-btn {
    padding: 8px 16px;
    background: #0f172a;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s ease;
}

.process-btn:hover {
    background: #1e293b;
}

.upload-instructions {
    background: white;
    padding: 24px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.upload-instructions h3 {
    font-size: 16px;
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 16px;
}

.upload-instructions ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.upload-instructions li {
    font-size: 14px;
    color: #64748b;
    padding-left: 24px;
    position: relative;
    line-height: 1.5;
}

.upload-instructions li::before {
    content: '•';
    position: absolute;
    left: 8px;
    color: #94a3b8;
}

/* Summaries Section */
.summaries-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.summary-card {
    background: white;
    padding: 32px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.summary-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 24px;
}

.summary-header h3 {
    font-size: 18px;
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 8px;
}

.summary-type {
    font-size: 13px;
    color: #64748b;
}

.summary-count {
    font-size: 13px;
    color: #94a3b8;
    background: #f8fafc;
    padding: 6px 16px;
    border-radius: 12px;
}

.summary-content {
    margin-bottom: 24px;
}

.summary-content h4 {
    font-size: 14px;
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 12px;
}

.summary-content p {
    font-size: 14px;
    color: #64748b;
    line-height: 1.6;
}

.keywords-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.keyword {
    font-size: 13px;
    color: #475569;
    background: #f8fafc;
    padding: 6px 12px;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
}

.summary-actions {
    display: flex;
    gap: 12px;
}

.view-btn {
    flex: 1;
    padding: 12px;
    background: #0f172a;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s ease;
}

.view-btn:hover {
    background: #1e293b;
}

.export-btn {
    flex: 1;
    padding: 12px;
    background: white;
    color: #0f172a;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.export-btn:hover {
    background: #f8fafc;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .sidebar {
        width: 200px;
    }
    
    .main-content {
        padding: 20px;
    }
    
    .cards-grid,
    .items-grid,
    .practice-options,
    .games-grid {
        grid-template-columns: 1fr;
    }

    .home-grid {
        grid-template-columns: 1fr;
    }

    .home-header {
        flex-direction: column;
        gap: 16px;
        align-items: flex-start;
    }

    .action-buttons {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 1024px) {
    .home-grid {
        grid-template-columns: 1fr;
    }
}

/* New Home Page Styles */

/* Page Header with Create Button */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 32px;
}

.page-header h1 {
    font-size: 32px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}

.streak-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #fff7ed;
    padding: 8px 16px;
    border-radius: 20px;
    border: 1px solid #fed7aa;
}

.flame-icon {
    font-size: 18px;
}

.streak-number {
    font-size: 16px;
    font-weight: 700;
    color: #ea580c;
}

.streak-text {
    font-size: 14px;
    color: #9a3412;
}

.plus-icon {
    font-size: 18px;
    font-weight: 700;
}

/* Overview Cards */
.overview-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.overview-card {
    background: white;
    padding: 24px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    gap: 16px;
}

.overview-icon {
    font-size: 32px;
}

.overview-content {
    flex: 1;
}

.overview-value {
    font-size: 24px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 4px;
}

.overview-label {
    font-size: 13px;
    color: #64748b;
}

/* Home Grid Layout */
.home-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 24px;
}

.home-left,
.home-right {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Section Cards */
.section-card {
    /* background: white; */
    padding: 24px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.section-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.section-card-header h2 {
    font-size: 18px;
    font-weight: 600;
    color: #0f172a;
}

.view-all-link {
    font-size: 13px;
    color: #64748b;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.view-all-link:hover {
    color: #0f172a;
}

.view-all-link-bottom {
    display: block;
    text-align: center;
    padding: 12px;
    font-size: 13px;
    color: #64748b;
    text-decoration: none;
    font-weight: 500;
    border-top: 1px solid #e2e8f0;
    margin: 16px -24px -24px;
    border-radius: 0 0 12px 12px;
    transition: background 0.2s ease;
}

.view-all-link-bottom:hover {
    background: #f8fafc;
}

/* Continue Studying */
.continue-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.continue-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: #f8fafc;
    border-radius: 8px;
    text-decoration: none;
    color: inherit;
    transition: background 0.2s ease;
}

.continue-item:hover {
    background: #e2e8f0;
}

.continue-icon {
    font-size: 28px;
}

.continue-content {
    flex: 1;
}

.continue-title {
    font-size: 15px;
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 8px;
}

.continue-progress {
    display: flex;
    align-items: center;
    gap: 12px;
}

.progress-bar {
    flex: 1;
    height: 6px;
    background: #e2e8f0;
    border-radius: 3px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: #0f172a;
    border-radius: 3px;
    transition: width 0.3s ease;
}

.progress-text {
    font-size: 12px;
    color: #64748b;
    white-space: nowrap;
}

/* Activity Timeline */
.activity-timeline {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.timeline-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: #f8fafc;
    border-radius: 8px;
}

.timeline-icon {
    font-size: 24px;
}

.timeline-content {
    flex: 1;
}

.timeline-title {
    font-size: 14px;
    font-weight: 500;
    color: #0f172a;
    margin-bottom: 4px;
}

.timeline-time {
    font-size: 12px;
    color: #94a3b8;
}

.timeline-badge {
    font-size: 13px;
    font-weight: 600;
    color: #0f172a;
    background: white;
    padding: 4px 12px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

/* Friends List */
.add-friend-btn {
    padding: 6px 16px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    color: #475569;
    cursor: pointer;
    transition: all 0.2s ease;
}

.add-friend-btn:hover {
    background: #e2e8f0;
}

.friends-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 16px;
}

.friend-item {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    padding: 12px;
    background: #f8fafc;
    border-radius: 8px;
    transition: background 0.2s ease;
}

.friend-item:hover {
    background: #e2e8f0;
}

.friend-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 16px;
}

.friend-content {
    display: flex;
    align-items: center; 
    gap: 8px;             
    flex: 1;
}

.friend-name {
    font-size: 14px;
    font-weight: 500;
    color: #0f172a;
    margin-bottom: 4px;
}

.friend-status {
    font-size: 12px;
    color: #64748b;
}

.friend-streak {
    font-size: 12px;
    color: #ea580c;
}

.friend-score {
    font-size: 13px;
    font-weight: 600;
    color: #64748b;
}

/* Daily Goal */
.goal-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 16px 0;
}

.goal-circle {
    position: relative;
    width: 120px;
    height: 120px;
}

.goal-svg {
    transform: rotate(-90deg);
}

.goal-percentage {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 24px;
    font-weight: 700;
    color: #0f172a;
}

.goal-text {
    text-align: center;
}

.goal-label {
    font-size: 14px;
    font-weight: 500;
    color: #0f172a;
    margin-bottom: 4px;
}

.goal-progress-text {
    font-size: 13px;
    color: #64748b;
}

/* Achievements */
.achievements-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.achievement-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: #f8fafc;
    border-radius: 8px;
}

.achievement-icon {
    font-size: 28px;
}

.achievement-content {
    flex: 1;
}

.achievement-title {
    font-size: 14px;
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 2px;
}

.achievement-desc {
    font-size: 12px;
    color: #64748b;
}

/* Responsive for Home Grid */
@media (max-width: 1024px) {
    .home-grid {
        grid-template-columns: 1fr;
    }
}

/* New Sidebar Styles */

.nav-divider {
    height: 1px;
    background: #e2e8f0;
    margin: 12px 0;
}

.nav-section-header {
    padding: 8px 16px;
    font-size: 11px;
    font-weight: 600;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 4px;
}

.folder-item {
    padding-left: 20px !important;
}

.new-folder-btn {
    color: #64748b !important;
    font-style: italic;
    border: 1px dashed #e2e8f0;
    margin: 4px 8px;
}

.new-folder-btn:hover {
    background: #f8fafc !important;
    border-color: #cbd5e1;
}

/* Folder View Page */

.folder-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 40px;
}

.folder-title-section {
    flex: 1;
}

.folder-title {
    font-size: 36px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.folder-shareCode {
    font-size: 16px;
    color: #64748b;
}

.study-options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    margin-bottom: 48px;
}

.study-option-card {
    background: white;
    padding: 32px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    transition: all 0.3s ease;
}

.study-option-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.study-option-icon {
    font-size: 40px;
    margin-bottom: 16px;
}

.study-option-card h3 {
    font-size: 18px;
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 8px;
}

.study-option-card p {
    font-size: 14px;
    color: #64748b;
    margin-bottom: 16px;
    line-height: 1.5;
}

.study-option-count {
    font-size: 13px;
    color: #94a3b8;
    font-weight: 500;
}

/* Folder Contents */

.folder-contents {
    background: white;
    padding: 32px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.folder-contents h2 {
    font-size: 20px;
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 24px;
}

.recent-items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.recent-item-card {
    padding: 20px;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.recent-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.recent-item-type {
    font-size: 12px;
    color: #64748b;
    font-weight: 500;
}

.recent-item-date {
    font-size: 12px;
    color: #94a3b8;
}

.recent-item-card h3 {
    font-size: 16px;
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 8px;
}

.recent-item-card p {
    font-size: 13px;
    color: #64748b;
    margin-bottom: 16px;
}

.continue-btn {
    width: 100%;
    padding: 10px;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    color: #0f172a;
    cursor: pointer;
    transition: all 0.2s ease;
}

.continue-btn:hover {
    background: #0f172a;
    color: white;
}

/* Breadcrumb */

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 24px;
    font-size: 14px;
}

.breadcrumb a {
    color: #64748b;
    text-decoration: none;
    transition: color 0.2s ease;
}

.breadcrumb a:hover {
    color: #0f172a;
}

.breadcrumb-separator {
    color: #cbd5e1;
}

.breadcrumb-current {
    color: #0f172a;
    font-weight: 500;
}

/* Library Page */

.page-subtitle {
    font-size: 16px;
    color: #64748b;
    margin-bottom: 32px;
}

.library-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 24px;
}

.library-card {
    background: white;
    padding: 32px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.library-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.library-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.library-card h3 {
    font-size: 18px;
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 8px;
}

.library-card p {
    font-size: 13px;
    color: #64748b;
}

/* Friends Page */

.friends-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 24px;
}

.friend-card {
    background: white;
    padding: 32px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    text-align: center;
}

.friend-card-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 32px;
    margin: 0 auto 16px;
}

.friend-card h3 {
    font-size: 18px;
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 8px;
}

.friend-card-streak {
    font-size: 14px;
    color: #ea580c;
    margin-bottom: 4px;
}

.friend-card-score {
    font-size: 14px;
    color: #64748b;
    margin-bottom: 16px;
}

.message-btn {
    width: 100%;
    padding: 10px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #0f172a;
    cursor: pointer;
    transition: all 0.2s ease;
}

.message-btn:hover {
    background: #0f172a;
    color: white;
}

/* ============================================ */
/* RESPONSIVE DESIGN - Mobile, Tablet, Laptop */
/* ============================================ */

/* Small Phones (320px - 480px) */
@media (max-width: 480px) {
    /* Hide sidebar, show mobile nav */
    .sidebar {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
        height: auto;
        border-right: none;
        border-top: 1px solid #e2e8f0;
        z-index: 1000;
        flex-direction: row;
    }

    .sidebar-header,
    .sidebar-footer,
    .nav-divider,
    .nav-section-header,
    .folder-item,
    .new-folder-btn {
        display: none;
    }

    .nav {
        flex-direction: row;
        padding: 8px;
        justify-content: space-around;
        gap: 0;
    }

    .nav-item {
        flex-direction: column;
        gap: 4px;
        padding: 8px 12px;
        font-size: 11px;
        text-align: center;
        min-width: 60px;
    }

    .nav-icon {
        font-size: 20px;
    }

    /* Main content with bottom padding */
    .main-content {
        padding: 16px;
        padding-bottom: 80px;
        margin-left: 0;
    }

    .main-layout {
        flex-direction: column;
    }

    /* Page header adjustments */
    .page-header {
        flex-direction: column;
        gap: 16px;
        align-items: flex-start;
    }

    .page-header h1 {
        font-size: 24px;
    }

    .folder-title {
        font-size: 28px;
    }

    .create-btn {
        width: 100%;
        justify-content: center;
    }

    /* Overview cards - stack on mobile */
    .overview-section {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .overview-card {
        padding: 16px;
    }

    /* Home grid - stack completely */
    .home-grid {
        grid-template-columns: 1fr;
    }

    /* Section cards */
    .section-card {
        padding: 16px;
    }

    /* Continue items */
    .continue-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .continue-icon {
        font-size: 32px;
    }

    .progress-bar {
        width: 100%;
    }

    /* Friends list - smaller */
    .friend-avatar {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }

    .friend-name {
        font-size: 13px;
    }

    .friend-score {
        font-size: 12px;
    }

    /* Study options grid */
    .study-options-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .study-option-card {
        padding: 20px;
    }

    /* Items grid */
    .items-grid,
    .recent-items-grid,
    .library-grid,
    .friends-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    /* Cards grid */
    .cards-grid,
    .practice-options,
    .games-grid {
        grid-template-columns: 1fr;
    }

    /* Auth page */
    .auth-container {
        max-width: 100%;
    }

    .auth-box {
        padding: 32px 24px;
    }

    /* Breadcrumb */
    .breadcrumb {
        font-size: 12px;
        flex-wrap: wrap;
    }

    /* Stats grid */
    .stats-grid {
        grid-template-columns: 1fr;
    }

    /* Folder contents */
    .folder-contents {
        padding: 20px;
    }

    /* Activity timeline - more compact */
    .timeline-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .timeline-badge {
        align-self: flex-start;
    }

    /* Goal circle - smaller */
    .goal-svg {
        width: 100px;
        height: 100px;
    }

    .goal-percentage {
        font-size: 20px;
    }

    /* Achievements - stack */
    .achievement-icon {
        font-size: 24px;
    }

    /* Friend cards */
    .friend-card-avatar {
        width: 60px;
        height: 60px;
        font-size: 24px;
    }

    /* Flashcard viewer */
    .flashcard {
        padding: 40px 20px;
        min-height: 250px;
    }

    .flashcard-content {
        font-size: 18px;
    }

    .flashcard-controls {
        flex-direction: column;
        width: 100%;
    }

    .nav-btn,
    .flip-btn {
        width: 100%;
    }

    /* Test viewer */
    .question-card {
        padding: 16px;
    }

    /* Social buttons */
    .social-buttons {
        grid-template-columns: 1fr;
    }

    /* Section header */
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .section-header h2 {
        font-size: 20px;
    }
}

/* Phones (481px - 768px) */
@media (min-width: 481px) and (max-width: 768px) {
    /* Similar to small phones but slightly larger */
    .sidebar {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
        height: auto;
        border-right: none;
        border-top: 1px solid #e2e8f0;
        z-index: 1000;
    }

    .sidebar-header,
    .sidebar-footer,
    .nav-divider,
    .nav-section-header,
    .folder-item,
    .new-folder-btn {
        display: none;
    }

    .nav {
        flex-direction: row;
        padding: 12px;
        justify-content: space-around;
    }

    .nav-item {
        flex-direction: column;
        gap: 6px;
        padding: 10px 16px;
        font-size: 12px;
        text-align: center;
    }

    .nav-icon {
        font-size: 22px;
    }

    .main-content {
        padding: 24px;
        padding-bottom: 90px;
    }

    .main-layout {
        flex-direction: column;
    }

    /* Page header */
    .page-header {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .page-header h1 {
        font-size: 28px;
    }

    /* Overview - 2 columns */
    .overview-section {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Home grid - stack */
    .home-grid {
        grid-template-columns: 1fr;
    }

    /* Study options - 2 columns */
    .study-options-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Items - 2 columns */
    .items-grid,
    .library-grid,
    .friends-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .cards-grid,
    .practice-options,
    .games-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Auth page */
    .auth-container {
        max-width: 480px;
    }

    .auth-box {
        padding: 40px 32px;
    }
}

/* Tablets (769px - 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
    /* Sidebar stays but narrower */
    .sidebar {
        width: 200px;
    }

    .sidebar-logo {
        font-size: 16px;
    }

    .nav-item {
        font-size: 13px;
        padding: 10px 12px;
    }

    .nav-icon {
        font-size: 16px;
    }

    /* Main content */
    .main-content {
        padding: 32px;
    }

    .content-container {
        max-width: 100%;
    }

    /* Page header */
    .page-header h1 {
        font-size: 28px;
    }

    .folder-title {
        font-size: 32px;
    }

    /* Overview - 2 columns */
    .overview-section {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Home grid - keep 2 column but adjust ratio */
    .home-grid {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }

    /* Study options - 2 columns */
    .study-options-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Items - 2 columns */
    .items-grid,
    .library-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .friends-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .cards-grid,
    .practice-options,
    .games-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Friend cards - smaller */
    .friend-card-avatar {
        width: 60px;
        height: 60px;
        font-size: 24px;
    }

    /* Auth page */
    .auth-container {
        max-width: 420px;
    }
}

/* Small Laptops (1025px - 1366px) */
@media (min-width: 1025px) and (max-width: 1366px) {
    .sidebar {
        width: 240px;
    }

    .main-content {
        padding: 36px;
    }

    .content-container {
        max-width: 1100px;
    }

    /* Overview - 4 columns on smaller laptops */
    .overview-section {
        grid-template-columns: repeat(4, 1fr);
    }

    /* Home grid - original ratio */
    .home-grid {
        grid-template-columns: 1.5fr 1fr;
    }

    /* Study options - 3 columns */
    .study-options-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    /* Items - 2-3 columns based on space */
    .items-grid,
    .library-grid,
    .friends-grid,
    .cards-grid,
    .practice-options,
    .games-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
}

/* Landscape phones */
@media (max-height: 500px) and (orientation: landscape) {
    .sidebar {
        display: none;
    }

    .main-content {
        padding: 16px;
        padding-bottom: 16px;
    }

    .overview-section {
        grid-template-columns: repeat(4, 1fr);
        gap: 12px;
    }

    .overview-card {
        padding: 12px;
    }

    .overview-value {
        font-size: 20px;
    }

    .overview-label {
        font-size: 11px;
    }

    .home-grid {
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }

    .section-card {
        padding: 16px;
    }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    /* Larger touch targets */
    .nav-item,
    .study-btn,
    .create-btn,
    .continue-btn,
    .message-btn,
    .play-btn,
    .start-btn {
        min-height: 44px;
    }

    .nav-item {
        padding: 12px 16px;
    }

    /* Remove hover effects on touch devices */
    .nav-item:hover,
    .feature-card:hover,
    .study-option-card:hover,
    .item-card:hover,
    .game-card:hover,
    .library-card:hover {
        transform: none;
    }

    /* Add active states instead */
    .nav-item:active,
    .feature-card:active,
    .study-option-card:active {
        opacity: 0.8;
    }

    /* Larger flashcard */
    .flashcard {
        padding: 60px 30px;
    }
}

/* Print styles */
@media print {
    .sidebar,
    .sidebar-footer,
    .create-btn,
    .logout-btn,
    .nav,
    .breadcrumb {
        display: none;
    }

    .main-content {
        margin: 0;
        padding: 0;
    }

    .section-card {
        page-break-inside: avoid;
    }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    body {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Dark mode support (optional) */
@media (prefers-color-scheme: dark) {
    /* Uncomment to enable dark mode */
    /* 
    body {
        background: #0f172a;
        color: #e2e8f0;
    }
    
    .sidebar,
    .auth-box,
    .section-card,
    .overview-card {
        background: #1e293b;
        border-color: #334155;
    }
    
    .nav-item.active {
        background: #334155;
    }
    */
}


/* Mobile Menu Toggle (Hamburger) */
.mobile-menu-toggle {
    display: none;
    position: fixed;
    top: 16px;
    left: 16px;
    z-index: 1001;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 10px;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.mobile-menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: #0f172a;
    margin: 5px 0;
    transition: all 0.3s ease;
}

.mobile-sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
}

.mobile-sidebar {
    display: none;
    position: fixed;
    top: 0;
    left: -280px;
    width: 280px;
    height: 100%;
    background: white;
    z-index: 1000;
    transition: left 0.3s ease;
    overflow-y: auto;
    box-shadow: 2px 0 12px rgba(0, 0, 0, 0.15);
}

.mobile-sidebar.active {
    left: 0;
}

.mobile-sidebar-overlay.active {
    display: block;
}

.mobile-sidebar-header {
    padding: 20px;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mobile-sidebar-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #64748b;
    padding: 4px;
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }

    .mobile-sidebar {
        display: block;
    }

    /* Adjust main content for hamburger button */
    .main-content {
        padding-top: 70px;
    }

    .page-header {
        padding-top: 0;
    }

    /* Mobile sidebar full navigation */
    .mobile-sidebar .nav {
        display: flex;
        flex-direction: column;
        padding: 20px 12px;
    }

    .mobile-sidebar .nav-item {
        flex-direction: row;
        text-align: left;
        justify-content: flex-start;
        padding: 12px 16px;
    }

    .mobile-sidebar .nav-icon {
        font-size: 18px;
    }

    .mobile-sidebar .nav-divider {
        display: block;
    }

    .mobile-sidebar .nav-section-header {
        display: block;
    }

    .mobile-sidebar .folder-item,
    .mobile-sidebar .new-folder-btn {
        display: flex;
    }

    .mobile-sidebar .sidebar-footer {
        display: block;
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
    }
}

/* Very small screens - adjust fonts */
@media (max-width: 360px) {
    body {
        font-size: 14px;
    }

    .page-header h1 {
        font-size: 20px;
    }

    .folder-title {
        font-size: 24px;
    }

    .section-card-header h2,
    .content-container > h2 {
        font-size: 16px;
    }

    .overview-value {
        font-size: 20px;
    }

    .overview-label {
        font-size: 11px;
    }

    .create-btn,
    .study-btn {
        font-size: 13px;
        padding: 10px;
    }

    .streak-number {
        font-size: 14px;
    }

    .streak-text {
        font-size: 12px;
    }
}

/* iPad Pro and large tablets */
@media (min-width: 1024px) and (max-width: 1366px) {
    .sidebar {
        width: 240px;
    }

    .content-container {
        max-width: 1100px;
    }
}

/* Ultra-wide screens */
@media (min-width: 1920px) {
    .content-container {
        max-width: 1400px;
    }

    .sidebar {
        width: 280px;
    }
}


/* Summary Section Styles */

.summary-section {
    margin-top: 48px;
    padding: 32px;
    background: white;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.summary-label {
    font-size: 14px;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
}

.summary-input-container {
    position: relative;
}

/* Add Summary Button - Subtle and Hidden */
.add-summary-btn {
    width: 100%;
    padding: 20px;
    background: rgba(248, 250, 252, 0.5);
    border: 2px dashed rgba(203, 213, 225, 0.5);
    border-radius: 8px;
    color: rgba(100, 116, 139, 0.7);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.add-summary-btn:hover {
    background: rgba(248, 250, 252, 0.8);
    border-color: rgba(203, 213, 225, 0.8);
    color: rgba(100, 116, 139, 1);
}

/* Summary Input Area */
.summary-input-area {
    animation: fadeIn 0.3s ease-out;
}

.summary-textarea {
    width: 100%;
    padding: 16px;
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    font-size: 15px;
    font-family: 'DM Sans', sans-serif;
    color: #0f172a;
    background: white;
    resize: vertical;
    min-height: 100px;
    transition: border-color 0.2s ease;
    outline: none;
}

.summary-textarea:focus {
    border-color: #94a3b8;
}

.summary-textarea::placeholder {
    color: #cbd5e1;
}

.summary-actions {
    display: flex;
    gap: 12px;
    margin-top: 12px;
    justify-content: flex-end;
}

.summary-save-btn {
    padding: 10px 24px;
    background: #0f172a;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
}

.summary-save-btn:hover {
    background: #1e293b;
}

.summary-cancel-btn {
    padding: 10px 24px;
    background: white;
    color: #64748b;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.summary-cancel-btn:hover {
    background: #f8fafc;
}

/* Summary Display */
.summary-display {
    position: relative;
    animation: fadeIn 0.3s ease-out;
}

.summary-text {
    padding: 20px;
    background: #f8fafc;
    border-radius: 8px;
    font-size: 15px;
    line-height: 1.6;
    color: #475569;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.summary-edit-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 6px 16px;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s ease;
    opacity: 0.7;
}

.summary-edit-btn:hover {
    opacity: 1;
    background: #f8fafc;
}

/* Add Folder Card Styling */
.add-folder-card {
    background: rgba(128, 128, 128, 0.15);
    border: 2px dashed rgba(128, 128, 128, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
}

.add-folder-card:hover {
    background: rgba(128, 128, 128, 0.25);
    border-color: rgba(128, 128, 128, 0.6);
    transform: translateY(-2px);
}

.add-folder-card .add-icon {
    font-size: 3rem;
    color: rgba(128, 128, 128, 0.6);
    font-weight: 300;
}

.add-folder-card h3 {
    color: rgba(0, 0, 0, 0.5);
}

.add-folder-card p {
    color: rgba(0, 0, 0, 0.4);
}

.friend-card-level {
    font-size: 0.9rem;
    color: #64748b;
    font-weight: 600;
    margin: 0.25rem 0;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .summary-section {
        padding: 20px;
        margin-top: 32px;
    }

    .add-summary-btn {
        padding: 16px;
        font-size: 13px;
    }

    .summary-textarea {
        font-size: 14px;
        padding: 12px;
    }

    .summary-actions {
        flex-direction: column;
    }

    .summary-save-btn,
    .summary-cancel-btn {
        width: 100%;
    }

    .summary-edit-btn {
        position: static;
        width: 100%;
        margin-top: 12px;
    }
}

/* Study options grid adjustment for 4 items */
@media (min-width: 769px) {
    .study-options-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 768px) {
    .study-options-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .study-options-grid {
        grid-template-columns: 1fr;
    }
}

/* Modal Overlay */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.2s ease-out;
}

.modal-overlay.active {
    display: flex;
}

/* Modal Box */
.modal-box {
    background: white;
    border-radius: 16px;
    width: 90%;
    max-width: 480px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Modal Header */
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 24px 20px;
    border-bottom: 1px solid #e2e8f0;
}

.modal-header h3 {
    font-size: 20px;
    font-weight: 600;
    color: #0f172a;
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    font-size: 28px;
    color: #94a3b8;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.modal-close:hover {
    background: #f8fafc;
    color: #64748b;
}

/* Modal Body */
.modal-body {
    padding: 24px;
}

.modal-body .input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.modal-body .input-group label {
    font-size: 14px;
    font-weight: 500;
    color: #475569;
}

.modal-body .input-group input {
    padding: 12px 16px;
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    font-size: 15px;
    color: #0f172a;
    background: white;
    transition: all 0.2s ease;
    outline: none;
    font-family: 'DM Sans', sans-serif;
}

.modal-body .input-group input:focus {
    border-color: #94a3b8;
    box-shadow: 0 0 0 3px rgba(148, 163, 184, 0.1);
}

.modal-body .input-group input::placeholder {
    color: #cbd5e1;
}

.input-hint {
    font-size: 12px;
    color: #94a3b8;
}

/* Modal Footer */
.modal-footer {
    display: flex;
    gap: 12px;
    padding: 20px 24px 24px;
    border-top: 1px solid #e2e8f0;
}

.modal-btn {
    flex: 1;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}

.cancel-btn {
    background: white;
    color: #64748b;
    border: 1px solid #e2e8f0;
}

.cancel-btn:hover {
    background: #f8fafc;
}

.create-btn-modal {
    background: #0f172a;
    color: white;
}

.create-btn-modal:hover {
    background: #1e293b;
}

.create-btn-modal:disabled {
    background: #cbd5e1;
    cursor: not-allowed;
}

/* Mobile Responsive */
@media (max-width: 480px) {
    .modal-box {
        width: 95%;
        margin: 20px;
    }

    .modal-header {
        padding: 20px 20px 16px;
    }

    .modal-header h3 {
        font-size: 18px;
    }

    .modal-body {
        padding: 20px;
    }

    .modal-footer {
        flex-direction: column;
        padding: 16px 20px 20px;
    }

    .modal-btn {
        width: 100%;
    }
}

/* Click outside to close */
.modal-overlay::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
}

.modal-body .input-group input.error {
    border-color: #ef4444;
    background: #fef2f2;
}

.modal-body .input-group input.error:focus {
    border-color: #dc2626;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.input-hint.error {
    color: #dc2626;
    font-weight: 500;
}

.header-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Phones */
@media (max-width: 600px) {
    .header-row {
        flex-direction: column;
        align-items: flex-start; /* looks more natural on mobile */
        gap: 6px;
    }
}

.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: #94a3b8;
}

.empty-state-icon {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.empty-state-text {
    font-size: 15px;
    color: #64748b;
    margin-bottom: 8px;
}

.empty-state-hint {
    font-size: 13px;
    color: #94a3b8;
}
.user-profile-section {
    display: flex;
    align-items: center;
    gap: 16px;
}

.user-profile-section .friend-avatar {
    width: 56px;
    height: 56px;
    font-size: 24px;
    flex-shrink: 0;
}

.user-profile-section h1 {
    font-size: 32px;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
    letter-spacing: -0.5px;
    line-height: 1;
}

.user-profile-section .streak-badge {
    flex-shrink: 0;
}

/* Mobile - stack vertically */
@media (max-width: 600px) {
    .user-profile-section {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .user-profile-section .friend-avatar {
        width: 48px;
        height: 48px;
        font-size: 20px;
    }
    
    .user-profile-section h1 {
        font-size: 24px;
    }
}
.avatar-picker {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-top: 8px;
}

.avatar-option {
    cursor: pointer;
    transition: transform 0.2s ease;
    border-radius: 50%;
    overflow: hidden;
}

.avatar-option:hover {
    transform: scale(1.1);
}

.avatar-option.selected {
    border: 3px solid #0f172a;
    box-shadow: 0 0 0 2px white, 0 0 0 5px #0f172a;
}

.avatar-img {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: block;
    object-fit: cover;
}

@media (max-width: 480px) {
    .avatar-picker {
        grid-template-columns: repeat(4, 1fr);
        gap: 8px;
    }
    
    .avatar-img {
        width: 48px;
        height: 48px;
    }
}
.profile-grid {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 24px;
}

.profile-main {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.profile-sidebar {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.profile-header-card {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 8px 0;
}

.profile-avatar-large {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 40px;
    font-weight: 700;
    flex-shrink: 0;
    background-size: cover;
    background-position: center;
}

.profile-info {
    flex: 1;
}

.profile-info h2 {
    font-size: 28px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 4px;
}

.profile-handle {
    font-size: 14px;
    color: #64748b;
    font-family: 'Courier New', monospace;
    margin-bottom: 8px;
}

.profile-email {
    font-size: 14px;
    color: #94a3b8;
}

.setting-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.setting-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.setting-header h3 {
    font-size: 16px;
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 4px;
}

.setting-description {
    font-size: 13px;
    color: #64748b;
}

.secondary-btn {
    padding: 8px 20px;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #0f172a;
    cursor: pointer;
    transition: all 0.2s ease;
}

.secondary-btn:hover {
    background: #f8fafc;
}

.danger-zone {
    border-color: #fee2e2;
    background: #fef2f2;
}

.danger-btn {
    padding: 8px 20px;
    background: white;
    border: 1px solid #fecaca;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #dc2626;
    cursor: pointer;
    transition: all 0.2s ease;
}

.danger-btn:hover {
    background: #fee2e2;
    border-color: #fca5a5;
}

.setting-info {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px;
    background: #f8fafc;
    border-radius: 8px;
    font-size: 13px;
    color: #64748b;
}

.info-icon {
    font-size: 16px;
}

.stat-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 16px;
}

.stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.stat-item .stat-label {
    font-size: 14px;
    color: #64748b;
}

.stat-item .stat-value {
    font-size: 14px;
    font-weight: 600;
    color: #0f172a;
}

.quick-action-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 16px;
}

.quick-action-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: #f8fafc;
    border-radius: 8px;
    text-decoration: none;
    color: #0f172a;
    font-size: 14px;
    font-weight: 500;
    transition: background 0.2s ease;
}

.quick-action-item:hover {
    background: #e2e8f0;
}

.quick-action-item span:first-child {
    font-size: 18px;
}

@media (max-width: 1024px) {
    .profile-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .profile-header-card {
        flex-direction: column;
        text-align: center;
    }

    .profile-avatar-large {
        width: 80px;
        height: 80px;
        font-size: 32px;
    }

    .setting-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .secondary-btn,
    .danger-btn {
        width: 100%;
    }
}
.nav-icon-img {
    width: 18px;
    height: 18px;
    object-fit: contain;
}

.modal-box-large {
    max-width: 600px;
}

.avatar-picker-scrollable {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 12px;
    max-height: 400px;
    overflow-y: auto;
    padding: 8px;
}

.avatar-picker-scrollable::-webkit-scrollbar {
    width: 8px;
}

.avatar-picker-scrollable::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 4px;
}

.avatar-picker-scrollable::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

.avatar-picker-scrollable::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

@media (max-width: 600px) {
    .avatar-picker-scrollable {
        grid-template-columns: repeat(4, 1fr);
        gap: 8px;
        max-height: 300px;
    }
}
