@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;700&display=swap');

:root {
    --primary-color: #4CAF50; /* Green */
    --secondary-color: #2c3e50; /* Dark Blue/Grey */
    --accent-color: #3498db; /* Blue for highlights */
    --background-color: #ecf0f1; /* Light Grey */
    --card-background: #ffffff;
    --text-color: #34495e; /* Darker text */
    --light-text-color: #7f8c8d; /* Lighter text */
    --border-color: #e0e6ed;
    --shadow-color: rgba(0, 0, 0, 0.08);
    --font-family: 'Inter', sans-serif;
}

body {
    font-family: var(--font-family);
    margin: 0;
    padding: 0;
    background: linear-gradient(-45deg, #667eea, #764ba2, #f093fb, #f5576c, #4facfe, #00f2fe);
    background-size: 400% 400%;
    background-attachment: fixed;
    animation: gradientShift 15s ease infinite;
    color: var(--text-color);
    line-height: 1.6;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
    padding: 30px;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    position: relative;
    overflow-x: hidden;
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Floating particles animation - soft glowing particles */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.1) 2px, transparent 2px),
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.08) 1px, transparent 1px),
        radial-gradient(circle at 40% 40%, rgba(255, 255, 255, 0.06) 1.5px, transparent 1.5px),
        radial-gradient(circle at 60% 70%, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
    background-size: 400px 400px, 300px 300px, 500px 500px, 350px 350px;
    animation: floatingParticles 25s linear infinite;
    pointer-events: none;
    z-index: -1;
}

@keyframes floatingParticles {
    0% {
        transform: translateY(0px) rotate(0deg);
        opacity: 0.8;
    }
    50% {
        opacity: 1;
    }
    100% {
        transform: translateY(-50px) rotate(180deg);
        opacity: 0.6;
    }
}

/* Version Badge */
.version-badge {
    position: fixed;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    color: #666;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    z-index: 1000;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    user-select: none;
    pointer-events: none;
}

.version-badge:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

/* Responsive version badge */
@media (max-width: 768px) {
    .version-badge {
        top: 10px;
        right: 10px;
        padding: 6px 12px;
        font-size: 0.75rem;
    }
}

/* Removed gradient animation for cleaner look */

.container {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    border-radius: 16px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.04), 0 0 0 1px rgba(255, 255, 255, 0.3);
    width: 100%;
    max-width: 1200px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(255, 255, 255, 0.5);
    position: relative;
}

.container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    pointer-events: none;
    border-radius: 20px;
}

header {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(8px);
    color: var(--text-color);
    padding: 1em 1.5em;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
    position: relative;
}


/* Removed header shine animation for cleaner look */

header h1 {
    margin: 0;
    font-size: 1.1em;
    font-weight: 600;
    color: var(--secondary-color);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 180px;
    flex-shrink: 0;
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 8px; /* Further reduced space between nav items */
}

nav ul li a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 0.9em;
    font-weight: 500;
    padding: 8px 14px;
    border-radius: 8px;
    transition: all 0.3s ease;
    background: transparent;
    white-space: nowrap;
    display: inline-block;
    min-width: fit-content;
    text-align: center;
    position: relative;
    z-index: 10002;
}

nav ul li a:hover {
    background: rgba(52, 152, 219, 0.08);
    color: var(--accent-color);
    transform: translateY(-0.5px);
}

nav ul li a.active {
    background: var(--accent-color);
    color: white;
    font-weight: 600;
    box-shadow: 0 2px 6px rgba(52, 152, 219, 0.25);
}

/* Removed underline animation for cleaner look */

.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-shrink: 0;
}

.header-donate-btn {
    background: linear-gradient(135deg, #FF6B6B 0%, #FF8E53 50%, #FFD93D 100%);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 0.9em;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-width: 100px;
    height: 40px;
    position: relative;
    overflow: hidden;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.header-donate-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.6s;
}

.header-donate-btn:hover::before {
    left: 100%;
}

.header-donate-btn:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 8px 25px rgba(255, 107, 107, 0.4);
    background: linear-gradient(135deg, #FF5722 0%, #FF7043 50%, #FFC107 100%);
}

.header-donate-btn:active {
    transform: translateY(0) scale(1.02);
}

.profile-section {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-shrink: 0;
}

#username-display {
    color: var(--text-color);
    font-weight: 600;
    font-size: 1em;
}

#edit-username-btn {
    background: var(--accent-color);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9em;
    transition: all 0.3s ease;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(52, 152, 219, 0.2);
}

#edit-username-btn:hover {
    background: #2980b9;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
}

main {
    padding: 2.5em; /* Increased padding */
    display: flex;
    flex-direction: column;
    gap: 2.5em; /* Increased gap */
}

section {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    padding: 2em;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    pointer-events: none;
    border-radius: 16px;
}

section:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
    border-color: rgba(255, 255, 255, 0.25);
}

.score-chart {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    min-height: 400px;
    max-height: 500px;
    padding: 1em;
}

.chart-header {
    width: 100%;
    text-align: center;
    margin-bottom: 20px;
    padding: 15px;
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.06), rgba(52, 152, 219, 0.03));
    border-radius: 12px;
    border: 1px solid rgba(52, 152, 219, 0.12);
}

.chart-header h2 {
    margin: 0;
    font-size: 1.5em;
    font-weight: 600;
    color: var(--accent-color);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border: none;
    padding: 0;
}

.score-chart canvas {
    max-width: 100% !important;
    max-height: 350px !important;
    height: auto !important;
}

canvas {
    max-width: 100%;
    height: auto;
}

h2 {
    color: var(--secondary-color); /* Darker heading color */
    margin-top: 0;
    font-size: 1.6em; /* Slightly larger heading */
    border-bottom: 2px solid var(--accent-color); /* Accent color for underline */
    padding-bottom: 0.6em;
    margin-bottom: 1.2em;
    font-weight: 600;
}

.form-group {
    margin-bottom: 1.2em; /* Increased margin */
}

.form-group label {
    display: block;
    margin-bottom: 0.6em; /* Adjusted margin */
    font-weight: 600; /* Bolder label */
    color: var(--text-color);
    font-size: 1.05em;
}

.date-input-group {
    display: flex;
    align-items: center;
    gap: 12px; /* Adjusted gap */
}

.form-group input[type="date"] {
    flex-grow: 1;
    padding: 12px; /* Increased padding */
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 1em;
    box-sizing: border-box;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input[type="date"]:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.15);
    outline: none;
}

.form-group input[type="number"] {
    width: calc(100% - 20px);
    padding: 12px; /* Increased padding */
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 1em;
    box-sizing: border-box;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input[type="number"]:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.15);
    outline: none;
}

.form-group input[type="checkbox"] {
    margin-right: 8px; /* Adjusted margin */
    transform: scale(1.2); /* Slightly larger checkbox */
}

.form-group label[for="today-checkbox"] {
    margin-bottom: 0;
    font-weight: 400; /* Lighter font weight */
    color: var(--light-text-color);
    font-size: 0.95em;
}

button[type="submit"] {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 14px 30px; /* Increased padding */
    border-radius: 6px;
    cursor: pointer;
    font-size: 1.15em; /* Slightly larger font */
    transition: background-color 0.3s ease, transform 0.2s ease;
    font-weight: 600;
    letter-spacing: 0.5px;
    box-shadow: 0 3px 8px rgba(76, 175, 80, 0.15);
}

button[type="submit"]:hover {
    background-color: #45a049;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(76, 175, 80, 0.2);
}

#scores-display {
    list-style: none;
    padding: 0;
    margin: 0;
}

#scores-display li {
    background-color: var(--background-color); /* Lighter background for list items */
    border: 1px solid var(--border-color);
    border-radius: 8px; /* Slightly more rounded */
    padding: 1.2em 1.5em; /* Adjusted padding */
    margin-bottom: 1em; /* Increased margin */
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1em;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04); /* Subtle shadow */
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

#scores-display li:hover {
    transform: translateX(5px); /* Slight movement on hover */
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.06);
}

#scores-display li strong {
    color: var(--secondary-color); /* Darker label for strong text */
}

#scores-display li span {
    font-weight: 700; /* Bolder score numbers */
    color: var(--primary-color);
    font-size: 1.1em;
}

#scores-display li .delete-btn {
    background-color: #e74c3c; /* Red for delete button */
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.85em;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

#scores-display li .delete-btn:hover {
    background-color: #c0392b;
    transform: translateY(-1px);
}

footer {
    background-color: var(--secondary-color);
    color: white;
    text-align: center;
    padding: 1.2em 0; /* Adjusted padding */
    font-size: 0.9em;
    border-top: none; /* Removed border */
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
}

.modal.show {
    display: flex;
    opacity: 1;
    animation: modalFadeIn 0.3s ease;
}

.modal-content {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    margin: auto;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    width: 90%;
    max-width: 500px;
    text-align: center;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.3);
    transform: scale(0.7);
    transition: all 0.3s ease;
}

.modal.show .modal-content {
    transform: scale(1);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        backdrop-filter: blur(0px);
    }
    to {
        opacity: 1;
        backdrop-filter: blur(8px);
    }
}

@keyframes modalSlideIn {
    from {
        transform: scale(0.7) translateY(-50px);
        opacity: 0;
    }
    to {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}

.modal-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    pointer-events: none;
    border-radius: 20px;
}

.modal-content h2 {
    color: var(--secondary-color);
    margin-bottom: 1.5em;
    font-size: 1.8em;
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 0.5em;
}

#setup-form .form-group {
    margin-bottom: 1.5em;
    text-align: left;
}

#setup-form label {
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 0.7em;
    display: block;
}

#setup-form input[type="text"],
#setup-form input[type="number"] {
    width: calc(100% - 24px); /* Account for padding */
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 1em;
    box-sizing: border-box;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

#setup-form input[type="text"]:focus,
#setup-form input[type="number"]:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
    outline: none;
}

#setup-form button[type="submit"] {
    width: 100%;
    padding: 15px;
    font-size: 1.2em;
    margin-top: 1em;
}

/* Profile Modal Specific Styles */
#profile-edit-form .form-group {
    margin-bottom: 1.5em;
    text-align: left;
}

#profile-edit-form label {
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 0.7em;
    display: block;
}

#profile-edit-form input[type="text"],
#profile-edit-form input[type="number"] {
    width: calc(100% - 24px); /* Account for padding */
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 1em;
    box-sizing: border-box;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

#profile-edit-form input[type="text"]:focus,
#profile-edit-form input[type="number"]:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
    outline: none;
}

#profile-edit-form button[type="submit"] {
    width: 100%;
    padding: 15px;
    font-size: 1.2em;
    margin-top: 1em;
}

.secondary-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 14px 28px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1em;
    transition: all 0.3s ease;
    font-weight: 600;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    min-width: 140px;
    white-space: nowrap;
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    line-height: 1.2;
}

.secondary-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.secondary-btn:hover::before {
    left: 100%;
}

.secondary-btn:hover {
    background: linear-gradient(135deg, #5a67d8 0%, #6b46c1 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.secondary-btn:active {
    transform: translateY(0);
}

/* Dashboard Styles */
.dashboard {
    padding: 2em 0;
}

.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5em;
    margin-bottom: 2em;
}

.stat-card {
    background-color: var(--card-background);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 1.5em;
    text-align: center;
    box-shadow: 0 4px 12px var(--shadow-color);
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
}

.stat-card h3 {
    color: var(--secondary-color);
    margin: 0 0 0.5em 0;
    font-size: 1.1em;
    font-weight: 600;
}

.stat-number {
    font-size: 2.5em;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0;
}

.recent-scores {
    background-color: var(--card-background);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 1.5em;
    box-shadow: 0 4px 12px var(--shadow-color);
}

.recent-scores h3 {
    color: var(--secondary-color);
    margin-top: 0;
    margin-bottom: 1em;
    font-size: 1.4em;
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 0.5em;
}

.recent-score-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8em;
    margin-bottom: 0.5em;
    background-color: var(--background-color);
    border-radius: 6px;
    border: 1px solid var(--border-color);
}

.recent-score-item span {
    font-weight: 500;
}

.recent-score-item span:first-child {
    color: var(--secondary-color);
}

.recent-score-item span:not(:first-child) {
    color: var(--primary-color);
    font-weight: 600;
}

/* Planner Styles */
.planner {
    padding: 2em 0;
}

.planner-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2em;
    flex-wrap: wrap;
    gap: 1em;
}

.left-controls {
    display: flex;
    gap: 1em;
    flex-wrap: wrap;
}

.primary-btn {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85em;
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.2);
}

.primary-btn:hover {
    background-color: #45a049;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

.view-controls {
    display: flex;
    gap: 0.5em;
}

.view-btn {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(248, 249, 250, 0.9));
    color: var(--text-color);
    border: 2px solid rgba(52, 152, 219, 0.2);
    padding: 10px 20px;
    border-radius: 12px;
    cursor: pointer;
    font-size: 0.95em;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.view-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(52, 152, 219, 0.1), transparent);
    transition: left 0.5s;
}

.view-btn:hover::before {
    left: 100%;
}

.view-btn:hover {
    background: linear-gradient(135deg, var(--accent-color), #2980b9);
    color: white;
    border-color: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(52, 152, 219, 0.3);
}

.view-btn.active {
    background: linear-gradient(135deg, var(--accent-color), #2980b9);
    color: white;
    border-color: var(--accent-color);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.4);
    transform: translateY(-1px);
}

.view-btn:active {
    transform: translateY(0);
}

.planner-content {
    position: relative;
}

.planner-view {
    display: none;
}

.planner-view.active {
    display: block;
}

/* Daily Planner Styles */
.date-selector, .week-selector {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2em;
    margin-bottom: 2em;
    padding: 1em;
    background-color: var(--card-background);
    border-radius: 8px;
    box-shadow: 0 2px 8px var(--shadow-color);
}

.date-selector button, .week-selector button {
    background-color: var(--accent-color);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2em;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.date-selector button:hover, .week-selector button:hover {
    background-color: #2980b9;
    transform: scale(1.1);
}

.date-selector span, .week-selector span {
    font-size: 1.3em;
    font-weight: 600;
    color: var(--secondary-color);
    min-width: 300px;
    text-align: center;
}

.schedule-grid {
    display: flex;
    flex-direction: column;
    gap: 0.5em;
}

.time-slot {
    display: flex;
    min-height: 60px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background-color: var(--card-background);
    transition: box-shadow 0.2s ease;
}

.time-slot:hover {
    box-shadow: 0 2px 8px var(--shadow-color);
}

.time-label {
    width: 80px;
    padding: 1em;
    background-color: var(--background-color);
    border-right: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: var(--secondary-color);
    border-radius: 6px 0 0 6px;
}

.time-content {
    flex: 1;
    padding: 0.5em;
    display: flex;
    flex-direction: column;
    gap: 0.5em;
}

.study-session {
    background: linear-gradient(135deg, var(--primary-color), #45a049);
    color: white;
    padding: 1.2em;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.25);
    transition: all 0.3s ease;
    border-left: 4px solid #2e7d32;
    position: relative;
    overflow: hidden;
}

.study-session::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #4CAF50, #8BC34A, #4CAF50);
    background-size: 200% 100%;
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.study-session:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.3);
}

.study-session.completed {
    background: linear-gradient(135deg, #95a5a6, #7f8c8d);
    border-left-color: #34495e;
    opacity: 0.8;
}

.study-session.completed::before {
    background: linear-gradient(90deg, #95a5a6, #bdc3c7, #95a5a6);
}

.session-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.8em;
}

.session-info {
    flex: 1;
}

.session-subject {
    font-weight: 700;
    font-size: 1.2em;
    margin-bottom: 0.5em;
    display: block;
}

.session-time-range {
    display: flex;
    align-items: center;
    gap: 0.5em;
    margin-top: 0.3em;
}

.time-badge {
    background: rgba(255, 255, 255, 0.2);
    padding: 0.3em 0.8em;
    border-radius: 20px;
    font-size: 0.85em;
    font-weight: 600;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.time-separator {
    font-size: 1.2em;
    font-weight: bold;
    opacity: 0.8;
}

.completion-status {
    margin-left: 1em;
}

.checkbox-container {
    display: block;
    position: relative;
    cursor: pointer;
    font-size: 1.2em;
    user-select: none;
}

.checkbox-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    position: relative;
    display: inline-block;
    height: 25px;
    width: 25px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.5);
    transition: all 0.3s ease;
}

.checkbox-container:hover .checkmark {
    background-color: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.checkbox-container input:checked ~ .checkmark {
    background-color: #fff;
    border-color: #fff;
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
    left: 8px;
    top: 4px;
    width: 6px;
    height: 12px;
    border: solid var(--primary-color);
    border-width: 0 3px 3px 0;
    transform: rotate(45deg);
}

.checkbox-container input:checked ~ .checkmark:after {
    display: block;
}

.session-topic {
    font-size: 1em;
    margin-bottom: 0.5em;
    font-weight: 500;
    opacity: 0.95;
}

.session-notes {
    font-size: 0.9em;
    opacity: 0.85;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.5em 0.8em;
    border-radius: 8px;
    margin-bottom: 0.8em;
    border-left: 3px solid rgba(255, 255, 255, 0.3);
}

.session-actions {
    display: flex;
    gap: 0.5em;
    margin-top: 0.8em;
    justify-content: flex-end;
}

.complete-btn, .delete-session-btn {
    padding: 8px 12px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85em;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.3em;
}

.complete-btn {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.complete-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
}

.delete-session-btn {
    background: rgba(231, 76, 60, 0.8);
    color: white;
    border: 1px solid rgba(231, 76, 60, 0.9);
}

.delete-session-btn:hover {
    background: rgba(231, 76, 60, 0.9);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(231, 76, 60, 0.3);
}

/* Weekly Planner Styles */
.week-header {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1px;
    margin-bottom: 1em;
    background-color: var(--border-color);
    border-radius: 8px;
    overflow: hidden;
}

.day-header {
    background-color: var(--secondary-color);
    color: white;
    padding: 1em;
    text-align: center;
}

.day-name {
    font-weight: 600;
    font-size: 0.9em;
}

.day-date {
    font-size: 0.8em;
    opacity: 0.8;
    margin-top: 0.2em;
}

.week-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    grid-template-rows: 1fr;
    gap: 1px;
    background-color: var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    height: 500px;
}

.day-column {
    background-color: var(--card-background);
    padding: 0.5em;
    display: flex;
    flex-direction: column;
    gap: 0.3em;
    overflow-y: auto;
    min-height: 0;
}

.weekly-session {
    background: linear-gradient(135deg, var(--primary-color), #45a049);
    color: white;
    padding: 0.5em;
    border-radius: 6px;
    font-size: 0.75em;
    cursor: pointer;
    transition: all 0.3s ease;
    border-left: 2px solid #2e7d32;
    margin-bottom: 0.3em;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

.weekly-session::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
}

.weekly-session:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 12px rgba(76, 175, 80, 0.25);
}

.weekly-session.completed {
    background: linear-gradient(135deg, #95a5a6, #7f8c8d);
    border-left-color: #34495e;
    opacity: 0.8;
}

.weekly-session-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.3em;
}

.session-time-compact {
    display: flex;
    align-items: center;
    gap: 0.3em;
}

.time-badge-small {
    background: rgba(255, 255, 255, 0.2);
    padding: 0.1em 0.4em;
    border-radius: 10px;
    font-size: 0.7em;
    font-weight: 600;
    backdrop-filter: blur(5px);
}

.time-separator-small {
    font-size: 0.9em;
    font-weight: bold;
    opacity: 0.8;
}

.weekly-session-actions {
    display: flex;
    gap: 0.2em;
    align-items: center;
}

.weekly-complete-btn, .weekly-delete-btn {
    width: 20px;
    height: 20px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8em;
    font-weight: bold;
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
    flex-shrink: 0;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.weekly-complete-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.weekly-delete-btn {
    background: rgba(231, 76, 60, 0.7);
    border-color: rgba(231, 76, 60, 0.8);
}

.weekly-delete-btn:hover {
    background: rgba(231, 76, 60, 0.9);
    border-color: rgba(231, 76, 60, 1);
    transform: scale(1.1);
}

.weekly-complete-btn.completed {
    background: #fff;
    color: var(--primary-color);
    border-color: #fff;
}

.weekly-session .session-subject {
    font-weight: 600;
    margin-bottom: 0.2em;
    font-size: 0.85em;
    line-height: 1.2;
}

.weekly-session .session-topic {
    font-size: 0.75em;
    opacity: 0.9;
    font-weight: 400;
    line-height: 1.2;
}

/* Drag & Drop Styles */
.weekly-session[draggable="true"] {
    cursor: grab;
}

.weekly-session.dragging {
    opacity: 0.5;
    transform: rotate(5deg);
    cursor: grabbing;
    z-index: 1000;
}

.day-column.drag-over {
    background-color: rgba(76, 175, 80, 0.1);
    border: 2px dashed var(--primary-color);
    border-radius: 8px;
}

.day-column.drag-over .add-session-btn {
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.2), rgba(76, 175, 80, 0.1));
    border-color: var(--primary-color);
    color: var(--primary-color);
}

/* Drag feedback - Fixed hover persistence issue */
.weekly-session:hover[draggable="true"]:not(.dragging) {
    cursor: grab;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
    transform: translateY(-1px);
}

.weekly-session:active[draggable="true"] {
    cursor: grabbing;
}

/* Remove hover effects when dragging */
.weekly-session.dragging:hover {
    box-shadow: none;
    transform: rotate(5deg);
}

/* Trash Drop Zone Styles */
.trash-drop-zone {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    border-radius: 50%;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(231, 76, 60, 0.3);
    z-index: 9999;
    transition: all 0.3s ease;
    border: 3px solid transparent;
    cursor: pointer;
    pointer-events: auto;
}

.trash-drop-zone.show {
    display: flex;
    animation: trashBounce 0.5s ease;
}

.trash-drop-zone.drag-over {
    transform: scale(1.2);
    background: linear-gradient(135deg, #c0392b, #a93226);
    border-color: #fff;
    box-shadow: 0 6px 25px rgba(231, 76, 60, 0.5);
}

.trash-icon {
    font-size: 2em;
    margin-bottom: 0.2em;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.trash-text {
    font-size: 0.7em;
    font-weight: 600;
    color: white;
    text-align: center;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    opacity: 0.9;
}

.trash-drop-zone.drag-over .trash-text {
    opacity: 1;
    font-weight: 700;
}

@keyframes trashBounce {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Trash zone pulse animation when dragging */
.trash-drop-zone.show {
    animation: trashPulse 2s infinite;
}

@keyframes trashPulse {
    0%, 100% {
        box-shadow: 0 4px 20px rgba(231, 76, 60, 0.3);
    }
    50% {
        box-shadow: 0 4px 20px rgba(231, 76, 60, 0.6);
    }
}

/* Add Session Button for Weekly View */
.add-session-btn {
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.1), rgba(52, 152, 219, 0.05));
    border: 1px dashed var(--accent-color);
    color: var(--accent-color);
    padding: 0.5em;
    border-radius: 6px;
    cursor: pointer;
    text-align: center;
    transition: all 0.3s ease;
    margin-bottom: 0.3em;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 0.4em;
    font-size: 0.75em;
    font-weight: 500;
    min-height: 35px;
    flex-shrink: 0;
}

.add-session-btn:hover {
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.15), rgba(52, 152, 219, 0.1));
    border-color: #2980b9;
    color: #2980b9;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(52, 152, 219, 0.15);
}

.add-icon {
    font-size: 1.2em;
    font-weight: bold;
    line-height: 1;
}

.add-text {
    font-size: 0.85em;
    opacity: 0.8;
    white-space: nowrap;
}

.add-session-btn:hover .add-text {
    opacity: 1;
}

/* Notification Styles */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 1em 1.5em;
    border-radius: 8px;
    color: white;
    font-weight: 500;
    z-index: 10003;
    max-width: 300px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transform: translateX(100%);
    animation: slideIn 0.3s ease forwards;
    pointer-events: auto;
}

@keyframes slideIn {
    to {
        transform: translateX(0);
    }
}

.notification.fade-out {
    animation: slideOut 0.3s ease forwards;
}

@keyframes slideOut {
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

.notification.success {
    background: linear-gradient(135deg, #4CAF50, #45a049);
}

.notification.warning {
    background: linear-gradient(135deg, #ff9800, #f57c00);
}

.notification.info {
    background: linear-gradient(135deg, #2196F3, #1976D2);
}

.notification.reminder {
    background: linear-gradient(135deg, #9C27B0, #7B1FA2);
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0%, 100% { transform: translateX(0) scale(1); }
    50% { transform: translateX(0) scale(1.02); }
}

/* Responsive Design Updates */
@media (max-width: 768px) {
    .left-controls {
        flex-direction: column;
        width: 100%;
    }
    
    .left-controls button {
        width: 100%;
    }
    
    .notification {
        right: 10px;
        left: 10px;
        max-width: none;
    }
}

/* Study Session Modal Styles */
.modal-buttons {
    display: flex;
    gap: 1em;
    margin-top: 1.2em;
    align-items: center;
    justify-content: center;
}

.modal-buttons .primary-btn {
    flex: 1;
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    line-height: 1.3;
    padding: 10px 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.modal-buttons .secondary-btn {
    flex: 1;
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    line-height: 1.2;
    padding: 14px 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.modal-buttons .primary-btn {
    min-width: 140px;
}

.modal-buttons .secondary-btn {
    min-width: 140px;
}

#study-session-form select {
    width: calc(100% - 24px);
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 1em;
    box-sizing: border-box;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    background-color: white;
}

#study-session-form select:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
    outline: none;
}

#study-session-form textarea {
    width: calc(100% - 24px);
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 1em;
    box-sizing: border-box;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    font-family: var(--font-family);
    resize: vertical;
}

#study-session-form textarea:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
    outline: none;
}

/* Responsive Design for Planner */
@media (max-width: 768px) {
    .planner-controls {
        flex-direction: column;
        align-items: stretch;
    }
    
    .view-controls {
        justify-content: center;
    }
    
    .date-selector span, .week-selector span {
        min-width: 200px;
        font-size: 1.1em;
    }
    
    .time-slot {
        flex-direction: column;
    }
    
    .time-label {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid var(--border-color);
        border-radius: 6px 6px 0 0;
    }
    
    .week-header,
    .week-grid {
        grid-template-columns: 1fr;
    }
    
    .day-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
}

/* Completion Indicator Styles */
.completion-indicator {
    width: 25px;
    height: 25px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9em;
    font-weight: bold;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.5);
    transition: all 0.3s ease;
    cursor: pointer;
    flex-shrink: 0;
}

.completion-indicator:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.completion-indicator.completed {
    background: #fff;
    color: var(--primary-color);
    border-color: #fff;
}

.completion-indicator.completed:hover {
    background: #f0f0f0;
    transform: scale(1.1);
}

/* Make sessions clickable */
.study-session {
    cursor: pointer;
    user-select: none;
}

.weekly-session {
    cursor: pointer;
    user-select: none;
}

.study-session:hover {
    cursor: pointer;
}

.weekly-session:hover {
    cursor: pointer;
}

/* Prevent text selection during click but allow buttons to work */
.study-session *,
.weekly-session * {
    pointer-events: none;
}

.study-session .delete-session-btn,
.weekly-session .weekly-delete-btn {
    pointer-events: all;
}

/* University Search Button Styles */
.university-search-button {
    position: fixed;
    top: 30px;
    left: 30px;
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #4CAF50 0%, #66BB6A 50%, #8BC34A 100%);
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 8px 30px rgba(76, 175, 80, 0.5);
    z-index: 9999;
    transition: all 0.4s ease;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.3);
    animation: universityPulse 3s infinite;
}

@keyframes universityPulse {
    0%, 100% {
        box-shadow: 0 8px 30px rgba(76, 175, 80, 0.5);
        border-color: rgba(255, 255, 255, 0.3);
    }
    50% {
        box-shadow: 0 12px 40px rgba(76, 175, 80, 0.8);
        border-color: rgba(255, 255, 255, 0.6);
    }
}

.university-search-button:hover {
    transform: scale(1.15) rotate(-5deg);
    box-shadow: 0 15px 50px rgba(76, 175, 80, 0.8);
    background: linear-gradient(135deg, #45a049 0%, #5cb85c 50%, #7cb342 100%);
}

.university-search-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transition: left 0.6s;
}

.university-search-button:hover::before {
    left: 100%;
}

.university-search-button .search-icon {
    font-size: 2.2em;
    margin-bottom: 2px;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.university-search-button .search-text {
    font-size: 0.65em;
    font-weight: 700;
    color: white;
    text-align: center;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    opacity: 0.95;
    letter-spacing: 0.5px;
}

.university-search-button:hover .search-icon {
    transform: scale(1.1);
}

.university-search-button:hover .search-text {
    opacity: 1;
    font-weight: 800;
}

/* Responsive adjustments for university search button */
@media (max-width: 768px) {
    .university-search-button {
        top: 20px;
        left: 20px;
        width: 60px;
        height: 60px;
    }

    .university-search-button .search-icon {
        font-size: 1.8em;
    }

    .university-search-button .search-text {
        font-size: 0.6em;
    }
}

@media (max-width: 480px) {
    .university-search-button {
        width: 55px;
        height: 55px;
    }

    .university-search-button .search-icon {
        font-size: 1.6em;
    }

    .university-search-button .search-text {
        font-size: 0.55em;
    }
}

/* AI Chatbot Button Styles - Modern Robot Design */
.chatbot-button {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 8px 30px rgba(102, 126, 234, 0.5);
    z-index: 9999;
    transition: all 0.4s ease;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.3);
    animation: robotPulse 3s infinite;
}

.chatbot-button:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(102, 126, 234, 0.6);
}

.chatbot-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s;
}

.chatbot-button:hover::before {
    left: 100%;
}

.chatbot-icon {
    font-size: 1.8em;
    margin-bottom: 2px;
}

.chatbot-text {
    font-size: 0.6em;
    font-weight: 600;
    color: white;
    text-align: center;
    opacity: 0.9;
}

/* Chatbot Modal Styles */
.chatbot-modal-content {
    max-width: 600px;
    width: 90%;
    height: 70vh;
    max-height: 600px;
    display: flex;
    flex-direction: column;
    padding: 0;
    overflow: hidden;
}

.chatbot-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 20px 20px 0 0;
}

.chatbot-header h2 {
    margin: 0;
    font-size: 1.4em;
    border: none;
    padding: 0;
}

.close-btn {
    background: none;
    border: none;
    color: white;
    font-size: 1.5em;
    cursor: pointer;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.close-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.chatbot-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    background: rgba(255, 255, 255, 0.95);
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.message {
    display: flex;
    gap: 10px;
    max-width: 80%;
    animation: messageSlideIn 0.3s ease;
}

@keyframes messageSlideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.ai-message {
    align-self: flex-start;
}

.user-message {
    align-self: flex-end;
    flex-direction: row-reverse;
}

.message-avatar {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2em;
    flex-shrink: 0;
}

.ai-message .message-avatar {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.user-message .message-avatar {
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    color: white;
}

.message-content {
    background: rgba(255, 255, 255, 0.9);
    padding: 12px 16px;
    border-radius: 18px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    font-size: 0.95em;
    line-height: 1.4;
    backdrop-filter: blur(10px);
}

.ai-message .message-content {
    background: rgba(102, 126, 234, 0.1);
    border-color: rgba(102, 126, 234, 0.2);
}

.user-message .message-content {
    background: rgba(76, 175, 80, 0.1);
    border-color: rgba(76, 175, 80, 0.2);
}

.chatbot-input-area {
    display: flex;
    gap: 10px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 0 0 20px 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

#chatbot-input {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid rgba(0, 0, 0, 0.2);
    border-radius: 25px;
    font-size: 0.95em;
    outline: none;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
}

#chatbot-input:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2);
}

.send-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(102, 126, 234, 0.3);
}

.send-btn:hover {
    background: linear-gradient(135deg, #5a67d8 0%, #6b46c1 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.send-btn:active {
    transform: translateY(0);
}

/* Responsive Design for Chatbot */
@media (max-width: 768px) {
    .chatbot-modal-content {
        width: 95%;
        height: 80vh;
        margin: 10px;
    }
    
    .chatbot-button {
        bottom: 20px;
        left: 20px;
        width: 50px;
        height: 50px;
    }
    
    .chatbot-icon {
        font-size: 1.5em;
    }
    
    .chatbot-text {
        font-size: 0.5em;
    }
}

/* AI Chatbot Button Styles - Modern Robot Design */
.chatbot-button {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 8px 30px rgba(102, 126, 234, 0.5);
    z-index: 9999;
    transition: all 0.4s ease;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.3);
    animation: robotPulse 3s infinite;
}

@keyframes robotPulse {
    0%, 100% { 
        box-shadow: 0 8px 30px rgba(102, 126, 234, 0.5);
        border-color: rgba(255, 255, 255, 0.3);
    }
    50% { 
        box-shadow: 0 12px 40px rgba(102, 126, 234, 0.8);
        border-color: rgba(255, 255, 255, 0.6);
    }
}

.chatbot-button:hover {
    transform: scale(1.15) rotate(5deg);
    box-shadow: 0 15px 50px rgba(102, 126, 234, 0.8);
    background: linear-gradient(135deg, #5a67d8 0%, #6b46c1 50%, #ec4899 100%);
}

.chatbot-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transition: left 0.6s;
}

.chatbot-button:hover::before {
    left: 100%;
}

/* Robot Head */
.robot-head {
    width: 35px;
    height: 25px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 12px 12px 8px 8px;
    position: relative;
    margin-bottom: 3px;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Robot Eyes */
.robot-eyes {
    display: flex;
    justify-content: space-between;
    padding: 4px 6px 0;
}

.robot-eye {
    width: 6px;
    height: 6px;
    background: #667eea;
    border-radius: 50%;
    animation: robotBlink 4s infinite;
}

@keyframes robotBlink {
    0%, 90%, 100% { transform: scaleY(1); }
    95% { transform: scaleY(0.1); }
}

.robot-eye.left-eye {
    animation-delay: 0.1s;
}

.robot-eye.right-eye {
    animation-delay: 0.2s;
}

/* Robot Mouth */
.robot-mouth {
    position: absolute;
    bottom: 3px;
    left: 50%;
    transform: translateX(-50%);
    width: 12px;
    height: 3px;
    background: #667eea;
    border-radius: 2px;
    animation: robotTalk 2s infinite;
}

@keyframes robotTalk {
    0%, 50%, 100% { width: 12px; }
    25%, 75% { width: 8px; }
}

/* Robot Body */
.robot-body {
    width: 25px;
    height: 20px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 6px;
    position: relative;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.robot-chest {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background: #667eea;
    border-radius: 2px;
    animation: robotHeartbeat 2s infinite;
}

@keyframes robotHeartbeat {
    0%, 100% { transform: translate(-50%, -50%) scale(1); }
    50% { transform: translate(-50%, -50%) scale(1.2); }
}

/* Hover effects for robot parts */
.chatbot-button:hover .robot-eye {
    background: #ec4899;
    animation-duration: 1s;
}

.chatbot-button:hover .robot-mouth {
    background: #ec4899;
    animation-duration: 0.5s;
}

.chatbot-button:hover .robot-chest {
    background: #ec4899;
    animation-duration: 1s;
}

/* Danger button for clear week */
.danger-btn {
    background: linear-gradient(135deg, #ff4757, #ff3838);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(255, 71, 87, 0.3);
}

.danger-btn:hover {
    background: linear-gradient(135deg, #ff3838, #ff2f2f);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 71, 87, 0.4);
}

.danger-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(255, 71, 87, 0.3);
}

/* Modern logout button */
.modern-logout-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.modern-logout-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.modern-logout-btn:hover {
    background: linear-gradient(135deg, #5a67d8 0%, #6b46c1 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.modern-logout-btn:hover::before {
    left: 100%;
}

.modern-logout-btn:active {
    transform: translateY(0);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.modern-logout-btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.3);
}

/* Profile modal button layout - Completely Fixed */
.modal-buttons {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 25px;
    align-items: center;
    width: 100%;
}

.primary-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    align-items: stretch;
    width: 100%;
    margin-bottom: 0;
}

/* Reset all button styles first */
.primary-buttons button {
    /* Reset */
    all: unset;
    
    /* Common styles */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    width: 48%;
    min-width: 120px;
    max-width: 160px;
    height: 50px;
    padding: 0 16px;
    margin: 0;
    border: none;
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.2;
    text-align: center;
    white-space: nowrap;
    cursor: pointer;
    box-sizing: border-box;
    transition: all 0.3s ease;
}

.primary-buttons .primary-btn {
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: white;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
}

.primary-buttons .primary-btn:hover {
    background: linear-gradient(135deg, #45a049, #3d8b40);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.4);
}

.primary-buttons .secondary-btn {
    background: linear-gradient(135deg, #95a5a6, #7f8c8d);
    color: white;
    box-shadow: 0 4px 15px rgba(149, 165, 166, 0.3);
}

.primary-buttons .secondary-btn:hover {
    background: linear-gradient(135deg, #7f8c8d, #6c7b7d);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(149, 165, 166, 0.4);
}

.achievements-button-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding-top: 15px;
    width: 100%;
}

.logout-button-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    width: 100%;
}

.achievements-btn {
    /* Reset */
    all: unset;
    
    /* Styles */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 180px;
    height: 52px;
    padding: 0;
    margin: 0;
    border: none;
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    font-weight: 600;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
    cursor: pointer;
    box-sizing: border-box;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
    position: relative;
    overflow: hidden;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.achievements-btn:hover {
    background: linear-gradient(135deg, #FFA500, #FF8C00);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.4);
}

.logout-button-container .modern-logout-btn {
    /* Reset */
    all: unset;
    
    /* Styles */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 180px;
    height: 52px;
    padding: 0;
    margin: 0;
    border: none;
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    font-weight: 600;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
    cursor: pointer;
    box-sizing: border-box;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    position: relative;
    overflow: hidden;
}

.logout-button-container .modern-logout-btn:hover {
    background: linear-gradient(135deg, #5a67d8, #6b46c1);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

/* Responsive adjustments */
@media (max-width: 480px) {
    .primary-buttons {
        flex-direction: column;
        gap: 12px;
        width: 100%;
    }
    
    .primary-buttons button {
        flex: 0 0 auto;
        width: 100%;
        min-width: 100%;
        max-width: 100%;
        height: 52px;
        min-height: 52px;
        max-height: 52px;
        font-size: 1em;
        padding: 0 20px;
    }
    
    .achievements-btn {
        flex: 0 0 auto;
        width: 100%;
        min-width: 100%;
        max-width: 100%;
        height: 52px;
        min-height: 52px;
        max-height: 52px;
        font-size: 1em;
        padding: 0 20px;
    }
    
    .logout-button-container .modern-logout-btn {
        flex: 0 0 auto;
        width: 100%;
        min-width: 100%;
        max-width: 100%;
        height: 52px;
        min-height: 52px;
        max-height: 52px;
        font-size: 1em;
        padding: 0 20px;
    }
}

@media (max-width: 768px) {
    .primary-buttons button {
        flex: 0 0 160px;
        font-size: 0.9em;
        width: 160px;
        min-width: 160px;
        max-width: 160px;
        height: 52px;
        min-height: 52px;
        max-height: 52px;
    }
    
    .achievements-btn {
        flex: 0 0 160px;
        width: 160px;
        min-width: 160px;
        max-width: 160px;
        height: 52px;
        min-height: 52px;
        max-height: 52px;
        font-size: 0.9em;
    }
    
    .logout-button-container .modern-logout-btn {
        flex: 0 0 160px;
        width: 160px;
        min-width: 160px;
        max-width: 160px;
        height: 52px;
        min-height: 52px;
        max-height: 52px;
        font-size: 0.9em;
    }
}

/* Profile Stats */
.profile-stats {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 25px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-item:last-child {
    border-bottom: none;
}

.stat-label {
    font-weight: 500;
    color: var(--text-color);
}

.stat-value {
    font-weight: 700;
    color: #667eea;
    font-size: 1.1em;
}

/* Planner Notification Styles */
.planner-notification {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    padding: 12px 20px;
    border-radius: 25px;
    color: white;
    font-weight: 600;
    font-size: 0.9em;
    z-index: 9998;
    max-width: 400px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    opacity: 0;
    transform: translateX(-50%) translateY(-20px);
    transition: all 0.4s ease;
}

.planner-notification.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.planner-notification.fade-out {
    opacity: 0;
    transform: translateX(-50%) translateY(-20px);
}

.planner-notification.success {
    background: linear-gradient(135deg, #4CAF50, #45a049);
    border-color: rgba(76, 175, 80, 0.3);
}

.planner-notification.info {
    background: linear-gradient(135deg, #2196F3, #1976D2);
    border-color: rgba(33, 150, 243, 0.3);
}

.planner-notification.warning {
    background: linear-gradient(135deg, #ff9800, #f57c00);
    border-color: rgba(255, 152, 0, 0.3);
}

.notification-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.notification-icon {
    font-size: 1.1em;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2));
}

.notification-text {
    line-height: 1.3;
}

/* Newly Added Session Highlight Animation */
.newly-added {
    animation: newSessionHighlight 2s ease-in-out;
    position: relative;
    overflow: hidden;
}

@keyframes newSessionHighlight {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 215, 0, 0.8);
    }
    25% {
        transform: scale(1.05);
        box-shadow: 0 0 0 10px rgba(255, 215, 0, 0.4);
    }
    50% {
        transform: scale(1.02);
        box-shadow: 0 0 0 15px rgba(255, 215, 0, 0.2);
    }
    75% {
        transform: scale(1.01);
        box-shadow: 0 0 0 20px rgba(255, 215, 0, 0.1);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 25px rgba(255, 215, 0, 0);
    }
}

.newly-added::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.6), transparent);
    animation: newSessionShine 2s ease-in-out;
    z-index: 1;
}

@keyframes newSessionShine {
    0% {
        left: -100%;
    }
    50% {
        left: 0%;
    }
    100% {
        left: 100%;
    }
}

/* Enhanced weekly session highlighting */
.weekly-session.newly-added {
    border: 2px solid #FFD700;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.5);
}

.weekly-session.newly-added::before {
    height: 100%;
    border-radius: 6px;
}

/* Enhanced daily session highlighting */
.study-session.newly-added {
    border-left: 6px solid #FFD700;
    box-shadow: 0 4px 20px rgba(255, 215, 0, 0.4);
}

.study-session.newly-added::before {
    background: linear-gradient(90deg, #FFD700, #FFA500, #FFD700);
    height: 4px;
}

/* Responsive adjustments for notifications */
@media (max-width: 768px) {
    .planner-notification {
        left: 10px;
        right: 10px;
        transform: translateX(0);
        max-width: none;
    }
    
    .planner-notification.show {
        transform: translateX(0) translateY(0);
    }
    
    .planner-notification.fade-out {
        transform: translateX(0) translateY(-20px);
    }
}

/* Department Selection Styles */
.department-selection {
    margin-bottom: 25px;
}

.department-selection label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-color);
    font-size: 1.05em;
}

.department-selection select {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 1em;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    cursor: pointer;
}

.department-selection select:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
    outline: none;
}

.department-selection select:hover {
    border-color: var(--accent-color);
    background: rgba(255, 255, 255, 1);
}

/* Topic Tracking Container */
.topic-tracking {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 25px;
    margin-top: 25px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.topic-tracking h3 {
    color: var(--text-color);
    margin: 0 0 20px 0;
    font-size: 1.4em;
    font-weight: 600;
    text-align: center;
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 10px;
}

/* Subject Sections */
.subject-section {
    margin-bottom: 30px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.subject-section:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.subject-section:last-child {
    margin-bottom: 0;
}

.subject-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.subject-title {
    font-size: 1.2em;
    font-weight: 600;
    color: var(--secondary-color);
    margin: 0;
}

.subject-progress {
    display: flex;
    align-items: center;
    gap: 10px;
}

.progress-text {
    font-size: 0.9em;
    font-weight: 500;
    color: var(--light-text-color);
}

.progress-bar {
    width: 100px;
    height: 8px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), #45a049);
    border-radius: 4px;
    transition: width 0.5s ease;
    box-shadow: 0 0 10px rgba(76, 175, 80, 0.3);
}

/* Topic Grid */
.topic-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 12px;
    margin-top: 15px;
}

/* Topic Item */
.topic-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    user-select: none;
}

.topic-item:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateX(3px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.topic-item.completed {
    background: rgba(76, 175, 80, 0.1);
    border-color: rgba(76, 175, 80, 0.3);
}

.topic-item.completed:hover {
    background: rgba(76, 175, 80, 0.15);
    border-color: rgba(76, 175, 80, 0.4);
}

/* 3-State Topic Status Indicator */
.topic-status-indicator {
    position: relative;
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.topic-status-indicator.not-started {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.topic-status-indicator.in-progress {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    border: 2px solid #FFD700;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.4);
}

.topic-status-indicator.completed {
    background: linear-gradient(135deg, #4CAF50, #45a049);
    border: 2px solid #4CAF50;
    box-shadow: 0 0 10px rgba(76, 175, 80, 0.4);
}

.topic-status-indicator:hover {
    transform: scale(1.1);
}

.topic-status-indicator.not-started:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: #FFD700;
}

.status-icon {
    font-size: 14px;
    line-height: 1;
}

/* Topic Label */
.topic-label {
    flex: 1;
    font-size: 0.95em;
    font-weight: 500;
    color: var(--text-color);
    line-height: 1.3;
    transition: all 0.3s ease;
}

.topic-item.not-started .topic-label {
    color: var(--text-color);
    font-weight: 500;
}

.topic-item.in-progress .topic-label {
    color: #FF8C00;
    font-weight: 600;
}

.topic-item.completed .topic-label {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: line-through;
    opacity: 0.8;
}

/* Empty State */
.topic-tracking-empty {
    text-align: center;
    padding: 40px 20px;
    color: var(--light-text-color);
}

.topic-tracking-empty .empty-icon {
    font-size: 3em;
    margin-bottom: 15px;
    opacity: 0.5;
}

.topic-tracking-empty .empty-text {
    font-size: 1.1em;
    font-weight: 500;
    margin-bottom: 10px;
}

.topic-tracking-empty .empty-subtext {
    font-size: 0.9em;
    opacity: 0.8;
}

/* Responsive Design for Topic Tracking */
@media (max-width: 768px) {
    .topic-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    
    .topic-item {
        padding: 10px 12px;
    }
    
    .subject-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .subject-progress {
        width: 100%;
        justify-content: space-between;
    }
    
    .progress-bar {
        flex: 1;
        margin-left: 10px;
    }
    
    .topic-tracking {
        padding: 20px 15px;
    }
    
    .subject-section {
        padding: 15px;
    }
}

/* Animation for topic state change */
.topic-item.state-changed {
    animation: topicStateChanged 0.6s ease;
}

@keyframes topicStateChanged {
    0% {
        transform: scale(1);
        background: rgba(255, 255, 255, 0.05);
    }
    50% {
        transform: scale(1.05);
        background: rgba(52, 152, 219, 0.2);
        box-shadow: 0 0 20px rgba(52, 152, 219, 0.4);
    }
    100% {
        transform: scale(1);
        background: rgba(255, 255, 255, 0.05);
    }
}

/* Topic item state backgrounds */
.topic-item.not-started {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
}

.topic-item.in-progress {
    background: rgba(255, 215, 0, 0.1);
    border-color: rgba(255, 215, 0, 0.3);
}

.topic-item.completed {
    background: rgba(76, 175, 80, 0.1);
    border-color: rgba(76, 175, 80, 0.3);
}

.topic-item.in-progress:hover {
    background: rgba(255, 215, 0, 0.15);
    border-color: rgba(255, 215, 0, 0.4);
}

.topic-item.completed:hover {
    background: rgba(76, 175, 80, 0.15);
    border-color: rgba(76, 175, 80, 0.4);
}

/* Topic Tracking Container Styles */
.topic-tracking-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
    padding: 20px 0;
}

/* Exam Type Section */
.exam-type-section {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 25px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.exam-type-section:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.exam-type-title {
    font-size: 1.5em;
    font-weight: 700;
    color: var(--secondary-color);
    margin: 0 0 20px 0;
    text-align: center;
    padding: 15px;
    background: linear-gradient(135deg, var(--accent-color), #2980b9);
    color: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
}

.subjects-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* No AYT subjects message */
.no-ayt-subjects {
    text-align: center;
    padding: 40px 20px;
    color: var(--light-text-color);
    font-style: italic;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border: 2px dashed rgba(255, 255, 255, 0.2);
}

/* Enhanced hover effects for topic tracking page */
.exam-type-section .subject-section:hover {
    transform: translateX(5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.exam-type-section .topic-item:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Responsive Design for Topic Tracking Page */
@media (max-width: 768px) {
    .topic-tracking-container {
        gap: 20px;
        padding: 10px 0;
    }
    
    .exam-type-section {
        padding: 20px 15px;
    }
    
    .exam-type-title {
        font-size: 1.3em;
        padding: 12px;
    }
    
    .subjects-container {
        gap: 15px;
    }
}

/* Progress bar animation */
.progress-fill.updating {
    animation: progressUpdate 0.8s ease;
}

@keyframes progressUpdate {
    0% {
        box-shadow: 0 0 10px rgba(76, 175, 80, 0.3);
    }
    50% {
        box-shadow: 0 0 20px rgba(76, 175, 80, 0.6);
    }
    100% {
        box-shadow: 0 0 10px rgba(76, 175, 80, 0.3);
    }
}
/* Score Entry Tabs */
.score-input-tabs {
    display: flex;
    margin-bottom: 20px;
    border-bottom: 2px solid #e0e0e0;
}

.tab-btn {
    background: none;
    border: none;
    padding: 12px 24px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    color: #666;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
}

.tab-btn.active {
    color: #2196F3;
    border-bottom-color: #2196F3;
}

.tab-btn:hover {
    color: #2196F3;
    background-color: rgba(33, 150, 243, 0.05);
}

/* Score Entry Forms */
.score-entry-form {
    display: none;
}

.score-entry-form.active {
    display: block;
}

.detailed-subjects {
    margin-top: 20px;
}

.detailed-subjects h3 {
    color: #333;
    margin-bottom: 15px;
    font-size: 18px;
    font-weight: 600;
    border-bottom: 2px solid #e0e0e0;
    padding-bottom: 8px;
}

.subject-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin-bottom: 25px;
}

.subject-input {
    display: flex;
    flex-direction: column;
}

.subject-input label {
    font-weight: 500;
    color: #555;
    margin-bottom: 5px;
    font-size: 14px;
}

.subject-input input {
    padding: 10px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.subject-input input:focus {
    outline: none;
    border-color: #2196F3;
    box-shadow: 0 0 0 3px rgba(33, 150, 243, 0.1);
}

/* Score List Improvements */
.score-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    margin-bottom: 10px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: all 0.3s ease;
    border-left: 4px solid #e0e0e0;
}

.score-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.score-item.detailed-score {
    border-left-color: #2196F3;
}

.score-date {
    font-weight: 600;
    color: #333;
}

.score-nets {
    color: #666;
    font-size: 14px;
}

.detail-indicator {
    font-size: 18px;
    margin-left: 10px;
}

/* Score Details Modal */
.score-details-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    backdrop-filter: blur(5px);
}

.score-details-content {
    background: white;
    border-radius: 16px;
    padding: 30px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.score-details-content h3 {
    color: #333;
    margin-bottom: 25px;
    text-align: center;
    font-size: 20px;
    font-weight: 600;
}

.score-details-content h4 {
    color: #2196F3;
    margin: 20px 0 15px 0;
    font-size: 16px;
    font-weight: 600;
    border-bottom: 2px solid #e0e0e0;
    padding-bottom: 8px;
}

.subject-breakdown {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
    margin-bottom: 20px;
}

.subject-score {
    background: #f8f9fa;
    padding: 12px;
    border-radius: 8px;
    font-weight: 500;
    color: #333;
    border-left: 4px solid #2196F3;
}

.ai-analysis {
    background: linear-gradient(135deg, #e3f2fd, #f3e5f5);
    padding: 20px;
    border-radius: 12px;
    margin-top: 20px;
}

.ai-analysis h4 {
    color: #7b1fa2;
    margin-bottom: 15px;
    border: none;
    padding: 0;
}

.ai-analysis p {
    color: #333;
    line-height: 1.6;
    margin: 0;
}

.close-details-btn {
    background: #2196F3;
    color: white;
    border: none;
    padding: 14px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    margin-top: 20px;
    width: 100%;
    transition: background-color 0.3s ease;
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    line-height: 1.2;
}

.close-details-btn:hover {
    background: #1976D2;
}

/* Theme Toggle Button */
.theme-toggle-btn {
    background: none;
    border: 2px solid #e0e0e0;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    margin-right: 15px;
}

.theme-toggle-btn:hover {
    border-color: #2196F3;
    background-color: rgba(33, 150, 243, 0.1);
    transform: scale(1.1);
}

/* Dark Mode Styles */
[data-theme="dark"] {
    --bg-color: #1a1a1a;
    --text-color: #e0e0e0;
    --card-bg: #2d2d2d;
    --border-color: #404040;
    --primary-color: #4CAF50;
    --accent-color: #2196F3;
    --header-bg: rgba(45, 45, 45, 0.95);
}

[data-theme="dark"] body {
    background: linear-gradient(135deg, #1a1a1a, #2d2d2d);
    color: var(--text-color);
}

[data-theme="dark"] .container {
    background: var(--card-bg);
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
}

[data-theme="dark"] header {
    background: var(--header-bg);
    border-bottom: 1px solid var(--border-color);
}

[data-theme="dark"] .nav-link {
    color: var(--text-color);
    border: 1px solid var(--border-color);
}

[data-theme="dark"] .nav-link:hover,
[data-theme="dark"] .nav-link.active {
    background: var(--accent-color);
    color: white;
}

[data-theme="dark"] .stat-card,
[data-theme="dark"] .modal-content,
[data-theme="dark"] .score-item,
[data-theme="dark"] .topic-item,
[data-theme="dark"] .study-session,
[data-theme="dark"] .weekly-session {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    color: var(--text-color);
}

[data-theme="dark"] input,
[data-theme="dark"] select,
[data-theme="dark"] textarea {
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    color: var(--text-color);
}

[data-theme="dark"] input:focus,
[data-theme="dark"] select:focus,
[data-theme="dark"] textarea:focus {
    border-color: var(--accent-color);
}

[data-theme="dark"] .theme-toggle-btn {
    border-color: var(--border-color);
    color: var(--text-color);
}

[data-theme="dark"] .theme-toggle-btn:hover {
    border-color: var(--accent-color);
    background-color: rgba(33, 150, 243, 0.2);
}

[data-theme="dark"] .chatbot-modal .modal-content {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
}

[data-theme="dark"] .chatbot-messages {
    background: #1a1a1a;
}

[data-theme="dark"] .message.ai-message .message-content {
    background: var(--card-bg);
    color: var(--text-color);
}

[data-theme="dark"] .score-details-content {
    background: var(--card-bg);
    color: var(--text-color);
}

/* Authentication Modal Styles */
.auth-tabs {
    display: flex;
    margin-bottom: 25px;
    border-bottom: 2px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px 8px 0 0;
    overflow: hidden;
}

.auth-tab {
    flex: 1;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    padding: 15px 20px;
    cursor: pointer;
    font-size: 1em;
    font-weight: 600;
    color: var(--text-color);
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
}

.auth-tab:hover {
    background: rgba(52, 152, 219, 0.1);
    color: var(--accent-color);
}

.auth-tab.active {
    background: var(--accent-color);
    color: white;
    border-bottom-color: #2980b9;
    box-shadow: 0 2px 8px rgba(52, 152, 219, 0.3);
}

.auth-form-container {
    display: none;
    animation: fadeIn 0.3s ease;
}

.auth-form-container.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.auth-form-container h2 {
    text-align: center;
    margin-bottom: 25px;
    color: var(--secondary-color);
    font-size: 1.6em;
    font-weight: 600;
}

.auth-form-container .form-group {
    margin-bottom: 20px;
}

.auth-form-container label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-color);
    font-size: 1em;
}

.auth-form-container input[type="text"],
.auth-form-container input[type="email"],
.auth-form-container input[type="password"],
.auth-form-container input[type="number"] {
    width: calc(100% - 24px);
    padding: 14px 12px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1em;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
}

.auth-form-container input:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
    outline: none;
    background: rgba(255, 255, 255, 1);
}

.auth-form-container input:hover {
    border-color: rgba(52, 152, 219, 0.5);
}

.auth-form-container .primary-btn {
    width: 100%;
    padding: 16px;
    font-size: 1.1em;
    font-weight: 600;
    margin-top: 10px;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--primary-color), #45a049);
    transition: all 0.3s ease;
}

.auth-form-container .primary-btn:hover {
    background: linear-gradient(135deg, #45a049, #3d8b40);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.4);
}

.auth-switch {
    text-align: center;
    margin-top: 20px;
    color: var(--light-text-color);
    font-size: 0.95em;
}

.auth-switch a {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.auth-switch a:hover {
    color: #2980b9;
    text-decoration: underline;
}

/* Logout Button */
.logout-btn {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.2em;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(231, 76, 60, 0.3);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logout-btn:hover {
    background: linear-gradient(135deg, #c0392b, #a93226);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.4);
}

/* Dark Mode Authentication Styles */
[data-theme="dark"] .auth-tab {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-color);
    border-bottom: 3px solid transparent;
}

[data-theme="dark"] .auth-tab:hover {
    background: rgba(33, 150, 243, 0.2);
    color: var(--accent-color);
}

[data-theme="dark"] .auth-tab.active {
    background: var(--accent-color);
    color: white;
    border-bottom-color: #1976D2;
}

[data-theme="dark"] .auth-form-container input {
    background: var(--card-bg);
    border-color: var(--border-color);
    color: var(--text-color);
}

[data-theme="dark"] .auth-form-container input:focus {
    background: #404040;
    border-color: var(--accent-color);
}

[data-theme="dark"] .auth-form-container input:hover {
    border-color: rgba(33, 150, 243, 0.5);
}

[data-theme="dark"] .logout-btn {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
}

[data-theme="dark"] .logout-btn:hover {
    background: linear-gradient(135deg, #c0392b, #a93226);
}

/* Authentication Modal Responsive Design */
@media (max-width: 768px) {
    .auth-tabs {
        flex-direction: column;
    }
    
    .auth-tab {
        border-radius: 0;
        border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    }
    
    .auth-tab:last-child {
        border-bottom: none;
    }
    
    .auth-form-container {
        padding: 0 10px;
    }
    
    .auth-form-container input {
        width: calc(100% - 20px);
        padding: 12px 10px;
    }
}

/* Authentication Notification Styles */
.auth-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10001;
    max-width: 400px;
    min-width: 300px;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation: authNotificationSlideIn 0.4s ease;
    overflow: hidden;
}

.auth-notification.success {
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.95), rgba(69, 160, 73, 0.95));
    border-color: rgba(76, 175, 80, 0.3);
}

.auth-notification.error {
    background: linear-gradient(135deg, rgba(244, 67, 54, 0.95), rgba(229, 57, 53, 0.95));
    border-color: rgba(244, 67, 54, 0.3);
}

.auth-notification.warning {
    background: linear-gradient(135deg, rgba(255, 152, 0, 0.95), rgba(245, 124, 0, 0.95));
    border-color: rgba(255, 152, 0, 0.3);
}

.auth-notification.info {
    background: linear-gradient(135deg, rgba(33, 150, 243, 0.95), rgba(25, 118, 210, 0.95));
    border-color: rgba(33, 150, 243, 0.3);
}

.auth-notification-content {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    color: white;
}

.auth-notification-icon {
    font-size: 1.2em;
    flex-shrink: 0;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2));
}

.auth-notification-text {
    flex: 1;
    font-size: 0.95em;
    font-weight: 500;
    line-height: 1.4;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.auth-notification-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.4em;
    cursor: pointer;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
    opacity: 0.8;
}

.auth-notification-close:hover {
    background: rgba(255, 255, 255, 0.2);
    opacity: 1;
    transform: scale(1.1);
}

.auth-notification.fade-out {
    animation: authNotificationSlideOut 0.3s ease forwards;
}

@keyframes authNotificationSlideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes authNotificationSlideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* Dark Mode Authentication Notification Styles */
[data-theme="dark"] .auth-notification {
    backdrop-filter: blur(15px);
    border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .auth-notification.success {
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.9), rgba(69, 160, 73, 0.9));
}

[data-theme="dark"] .auth-notification.error {
    background: linear-gradient(135deg, rgba(244, 67, 54, 0.9), rgba(229, 57, 53, 0.9));
}

[data-theme="dark"] .auth-notification.warning {
    background: linear-gradient(135deg, rgba(255, 152, 0, 0.9), rgba(245, 124, 0, 0.9));
}

[data-theme="dark"] .auth-notification.info {
    background: linear-gradient(135deg, rgba(33, 150, 243, 0.9), rgba(25, 118, 210, 0.9));
}

/* Remember Me Checkbox Styles */
.remember-me-group {
    margin-bottom: 20px !important;
}

.remember-me-label {
    display: flex !important;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    font-size: 0.95em !important;
    font-weight: 500 !important;
    color: var(--text-color) !important;
    margin-bottom: 0 !important;
    user-select: none;
}

.remember-me-label input[type="checkbox"] {
    display: none;
}

.checkmark-custom {
    position: relative;
    width: 20px;
    height: 20px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid var(--border-color);
    border-radius: 4px;
    transition: all 0.3s ease;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.remember-me-label:hover .checkmark-custom {
    border-color: var(--accent-color);
    background: rgba(52, 152, 219, 0.1);
    transform: scale(1.05);
}

.remember-me-label input[type="checkbox"]:checked + .checkmark-custom {
    background: var(--accent-color);
    border-color: var(--accent-color);
    box-shadow: 0 0 10px rgba(52, 152, 219, 0.3);
}

.checkmark-custom::after {
    content: '';
    position: absolute;
    display: none;
    left: 6px;
    top: 2px;
    width: 6px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.remember-me-label input[type="checkbox"]:checked + .checkmark-custom::after {
    display: block;
}

/* Dark Mode Remember Me Styles */
[data-theme="dark"] .checkmark-custom {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--border-color);
}

[data-theme="dark"] .remember-me-label:hover .checkmark-custom {
    border-color: var(--accent-color);
    background: rgba(33, 150, 243, 0.2);
}

[data-theme="dark"] .remember-me-label input[type="checkbox"]:checked + .checkmark-custom {
    background: var(--accent-color);
    border-color: var(--accent-color);
}

/* Responsive Design for Authentication Notifications */
@media (max-width: 768px) {
    .auth-notification {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
        min-width: auto;
    }
    
    .auth-notification-content {
        padding: 14px 16px;
    }
    
    .auth-notification-text {
        font-size: 0.9em;
    }
    
    .remember-me-label {
        font-size: 0.9em !important;
        gap: 10px;
    }
    
    .checkmark-custom {
        width: 18px;
        height: 18px;
    }
    
    .checkmark-custom::after {
        left: 5px;
        top: 1px;
        width: 5px;
        height: 9px;
    }
}

/* Real-time update animations */
@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

@keyframes sessionPulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 rgba(76, 175, 80, 0.6);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 20px rgba(76, 175, 80, 0.8);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 rgba(76, 175, 80, 0.6);
    }
}

/* Topic progress update animations */
.progress-fill.updating {
    animation: progressPulse 0.8s ease-in-out;
}

@keyframes progressPulse {
    0% {
        background-color: #4CAF50;
        box-shadow: 0 0 0 rgba(76, 175, 80, 0.4);
    }
    50% {
        background-color: #66BB6A;
        box-shadow: 0 0 10px rgba(76, 175, 80, 0.6);
    }
    100% {
        background-color: #4CAF50;
        box-shadow: 0 0 0 rgba(76, 175, 80, 0.4);
    }
}

/* Topic progress notification */
.topic-progress-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #4CAF50;
    color: white;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 600;
    z-index: 10000;
    animation: slideInRight 0.5s ease-out;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.topic-progress-notification.fade-out {
    animation: slideOutRight 0.3s ease-in;
}

/* Score added notification */
.score-added-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #4CAF50;
    color: white;
    padding: 15px 20px;
    border-radius: 8px;
    font-weight: 600;
    z-index: 10000;
    animation: slideInRight 0.5s ease-out;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Planner notification enhancements */
.planner-notification {
    position: fixed;
    top: 80px;
    right: 20px;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 600;
    z-index: 9999;
    max-width: 300px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateX(100%);
    opacity: 0;
    transition: all 0.3s ease-out;
}

.planner-notification.show {
    transform: translateX(0);
    opacity: 1;
}

.planner-notification.fade-out {
    transform: translateX(100%);
    opacity: 0;
}

.planner-notification.info {
    background: #2196F3;
    color: white;
}

.planner-notification.success {
    background: #4CAF50;
    color: white;
}

.planner-notification.warning {
    background: #FF9800;
    color: white;
}

/* Session highlighting */
.newly-added {
    animation: sessionPulse 1s ease-in-out;
    border: 2px solid #4CAF50 !important;
    background: rgba(76, 175, 80, 0.1) !important;
}

/* Dashboard stat card animations */
.stat-card .stat-number {
    transition: all 0.3s ease;
}

.recent-score-item {
    transition: all 0.5s ease;
    padding: 8px 12px;
    margin: 4px 0;
    border-radius: 6px;
}

/* Enhanced topic state change animation */
.topic-item.state-changed {
    animation: topicStateChange 0.6s ease-in-out;
}

@keyframes topicStateChange {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 rgba(76, 175, 80, 0);
    }
    50% {
        transform: scale(1.1);
        box-shadow: 0 0 15px rgba(76, 175, 80, 0.6);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 rgba(76, 175, 80, 0);
    }
}


/* Enhanced Session Gradual Appearance Effects */
.session-appear-effect {
    opacity: 0;
    transform: scale(0.8) translateY(20px) rotateX(15deg);
    filter: blur(3px);
    transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.session-appear-effect.show {
    opacity: 1;
    transform: scale(1) translateY(0) rotateX(0deg);
    filter: blur(0px);
}

/* Gradual Session Highlight Animation */
.gradual-session-highlight {
    position: relative;
    overflow: hidden;
    animation: gradualSessionGlow 2s ease-in-out;
}

@keyframes gradualSessionGlow {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 215, 0, 0.8);
        border-color: rgba(255, 215, 0, 0.3);
    }
    25% {
        box-shadow: 0 0 20px 5px rgba(255, 215, 0, 0.6);
        border-color: rgba(255, 215, 0, 0.8);
    }
    50% {
        box-shadow: 0 0 30px 10px rgba(255, 215, 0, 0.4);
        border-color: rgba(255, 215, 0, 1);
    }
    75% {
        box-shadow: 0 0 20px 5px rgba(255, 215, 0, 0.3);
        border-color: rgba(255, 215, 0, 0.6);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 215, 0, 0);
        border-color: transparent;
    }
}

.gradual-session-highlight::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.4), transparent);
    animation: gradualSessionShine 2s ease-in-out;
    z-index: 1;
    border-radius: inherit;
}

@keyframes gradualSessionShine {
    0% {
        left: -100%;
        opacity: 0;
    }
    50% {
        left: 0%;
        opacity: 1;
    }
    100% {
        left: 100%;
        opacity: 0;
    }
}

/* Enhanced bounce effect for new sessions */
.session-bounce-in {
    animation: sessionBounceIn 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes sessionBounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3) translateY(-50px) rotateX(90deg);
        filter: blur(5px);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.1) translateY(5px) rotateX(-5deg);
        filter: blur(1px);
    }
    70% {
        opacity: 1;
        transform: scale(0.95) translateY(-2px) rotateX(2deg);
        filter: blur(0px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0) rotateX(0deg);
        filter: blur(0px);
    }
}

/* Color flash effect for newly created sessions */
.session-color-flash {
    animation: sessionColorFlash 1.5s ease-in-out;
}

@keyframes sessionColorFlash {
    0%, 100% {
        background: linear-gradient(135deg, var(--primary-color), #45a049);
    }
    25% {
        background: linear-gradient(135deg, #FFD700, #FFA500);
    }
    50% {
        background: linear-gradient(135deg, #FF6B6B, #FF8E53);
    }
    75% {
        background: linear-gradient(135deg, #4ECDC4, #44A08D);
    }
}

/* Staggered animation delays for multiple sessions */
.session-appear-delay-1 { animation-delay: 0.2s; }
.session-appear-delay-2 { animation-delay: 0.4s; }
.session-appear-delay-3 { animation-delay: 0.6s; }
.session-appear-delay-4 { animation-delay: 0.8s; }
.session-appear-delay-5 { animation-delay: 1.0s; }
.session-appear-delay-6 { animation-delay: 1.2s; }
.session-appear-delay-7 { animation-delay: 1.4s; }
.session-appear-delay-8 { animation-delay: 1.6s; }

/* Responsive adjustments for session animations */
@media (max-width: 768px) {
    .session-appear-effect {
        transform: scale(0.9) translateY(15px);
        transition-duration: 0.4s;
    }
    
    .gradual-session-highlight {
        animation-duration: 1.5s;
    }
    
    .session-bounce-in {
        animation-duration: 0.6s;
    }
}

/* Reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
    .session-appear-effect,
    .gradual-session-highlight,
    .session-bounce-in,
    .session-color-flash {
        animation: none;
        transition: opacity 0.3s ease;
    }
    
    .session-appear-effect.show {
        opacity: 1;
        transform: none;
        filter: none;
    }
}

/* University Details Modal Styles */
.university-details-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    transition: all 0.3s ease;
}

.university-details-modal.show {
    display: flex;
    opacity: 1;
    animation: modalFadeIn 0.3s ease;
}

.university-modal-content {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 30px;
    max-width: 700px;
    width: 90%;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.3);
    position: relative;
    transform: scale(0.7);
    transition: all 0.3s ease;
}

.university-details-modal.show .university-modal-content {
    transform: scale(1);
    animation: modalSlideIn 0.3s ease;
}

.university-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid rgba(102, 126, 234, 0.2);
}

.university-modal-title {
    font-size: 1.8em;
    font-weight: 700;
    color: var(--secondary-color);
    margin: 0;
    flex: 1;
    line-height: 1.3;
}

.university-modal-close {
    background: none;
    border: none;
    font-size: 1.8em;
    cursor: pointer;
    color: var(--light-text-color);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
    margin-left: 15px;
}

.university-modal-close:hover {
    background: rgba(231, 76, 60, 0.1);
    color: #e74c3c;
    transform: scale(1.1);
}

.university-basic-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 25px;
    padding: 20px;
    background: rgba(102, 126, 234, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(102, 126, 234, 0.1);
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.info-label {
    font-size: 0.9em;
    font-weight: 600;
    color: var(--light-text-color);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-value {
    font-size: 1.1em;
    font-weight: 600;
    color: var(--secondary-color);
}

.info-value.ranking {
    color: #667eea;
    font-size: 1.2em;
}

.info-value.score {
    color: var(--primary-color);
    font-size: 1.15em;
}

.programs-section {
    margin-bottom: 25px;
}

.programs-section h3 {
    font-size: 1.4em;
    font-weight: 600;
    color: var(--secondary-color);
    margin: 0 0 15px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--accent-color);
}

.programs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 15px;
}

.program-item {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.program-item:hover {
    background: rgba(255, 255, 255, 0.95);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-color: rgba(102, 126, 234, 0.3);
}

.program-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(135deg, #667eea, #764ba2);
    transition: width 0.3s ease;
}

.program-item:hover::before {
    width: 6px;
}

.program-name {
    font-size: 1.2em;
    font-weight: 600;
    color: var(--secondary-color);
    margin: 0 0 10px 0;
    line-height: 1.3;
}

.program-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 10px;
}

.program-score {
    font-size: 1.1em;
    font-weight: 600;
    color: var(--primary-color);
    background: rgba(76, 175, 80, 0.1);
    padding: 5px 12px;
    border-radius: 20px;
    border: 1px solid rgba(76, 175, 80, 0.2);
}

.program-quota {
    font-size: 0.95em;
    font-weight: 500;
    color: var(--light-text-color);
    background: rgba(0, 0, 0, 0.05);
    padding: 5px 12px;
    border-radius: 20px;
}

.program-advice {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    border: 1px solid rgba(102, 126, 234, 0.2);
    border-radius: 8px;
    padding: 12px;
    margin-top: 10px;
    font-size: 0.95em;
    line-height: 1.4;
    color: var(--text-color);
    position: relative;
}

.program-advice::before {
    content: '💡';
    position: absolute;
    top: -5px;
    left: 10px;
    background: rgba(255, 255, 255, 0.9);
    padding: 2px 6px;
    border-radius: 50%;
    font-size: 0.9em;
}

.modal-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.add-to-goals-btn {
    background: linear-gradient(135deg, var(--primary-color), #45a049);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 1em;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
    display: flex;
    align-items: center;
    gap: 8px;
}

.add-to-goals-btn:hover {
    background: linear-gradient(135deg, #45a049, #3d8b40);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.4);
}

.close-modal-btn {
    background: linear-gradient(135deg, #95a5a6, #7f8c8d);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 1em;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(149, 165, 166, 0.3);
}

.close-modal-btn:hover {
    background: linear-gradient(135deg, #7f8c8d, #6c7b7d);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(149, 165, 166, 0.4);
}

/* Dark Mode University Modal Styles */
[data-theme="dark"] .university-modal-content {
    background: rgba(45, 45, 45, 0.98);
    border-color: var(--border-color);
}

[data-theme="dark"] .university-modal-title {
    color: var(--text-color);
}

[data-theme="dark"] .university-basic-info {
    background: rgba(102, 126, 234, 0.1);
    border-color: rgba(102, 126, 234, 0.2);
}

[data-theme="dark"] .info-value {
    color: var(--text-color);
}

[data-theme="dark"] .program-item {
    background: var(--card-bg);
    border-color: var(--border-color);
}

[data-theme="dark"] .program-item:hover {
    background: #404040;
    border-color: rgba(102, 126, 234, 0.4);
}

[data-theme="dark"] .program-name {
    color: var(--text-color);
}

[data-theme="dark"] .program-advice {
    background: rgba(102, 126, 234, 0.15);
    border-color: rgba(102, 126, 234, 0.3);
    color: var(--text-color);
}

[data-theme="dark"] .modal-actions {
    border-top-color: var(--border-color);
}

/* Responsive Design for University Modal */
@media (max-width: 768px) {
    .university-modal-content {
        width: 95%;
        padding: 20px;
        max-height: 90vh;
    }
    
    .university-modal-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .university-modal-close {
        position: absolute;
        top: 15px;
        right: 15px;
        margin: 0;
    }
    
    .university-modal-title {
        font-size: 1.5em;
        padding-right: 50px;
    }
    
    .university-basic-info {
        grid-template-columns: 1fr;
        gap: 10px;
        padding: 15px;
    }
    
    .programs-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .program-item {
        padding: 15px;
    }
    
    .program-stats {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .modal-actions {
        flex-direction: column;
        gap: 10px;
    }
    
    .add-to-goals-btn,
    .close-modal-btn {
        width: 100%;
        justify-content: center;
    }
}

/* Gamification System Styles */
.achievements-container {
    padding: 2em 0;
    display: flex;
    flex-direction: column;
    gap: 2em;
}

/* Points and Streak Cards */
.points-streak-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5em;
    margin-bottom: 2em;
}

.points-card, .streak-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 2em;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.points-card::before, .streak-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    pointer-events: none;
    border-radius: 20px;
}

.points-card:hover, .streak-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.points-card {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1), rgba(255, 193, 7, 0.05));
    border-color: rgba(255, 215, 0, 0.3);
}

.streak-card {
    background: linear-gradient(135deg, rgba(255, 87, 34, 0.1), rgba(255, 152, 0, 0.05));
    border-color: rgba(255, 87, 34, 0.3);
}

.card-icon {
    font-size: 3em;
    margin-bottom: 0.5em;
    display: block;
}

.points-card .card-icon {
    color: #FFD700;
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
    animation: pointsGlow 2s ease-in-out infinite alternate;
}

.streak-card .card-icon {
    color: #FF5722;
    text-shadow: 0 0 20px rgba(255, 87, 34, 0.5);
    animation: streakFire 1.5s ease-in-out infinite;
}

@keyframes pointsGlow {
    0% { text-shadow: 0 0 20px rgba(255, 215, 0, 0.5); }
    100% { text-shadow: 0 0 30px rgba(255, 215, 0, 0.8); }
}

@keyframes streakFire {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.card-value {
    font-size: 2.5em;
    font-weight: 700;
    margin: 0.2em 0;
    color: var(--secondary-color);
}

.card-label {
    font-size: 1.1em;
    font-weight: 600;
    color: var(--text-color);
    opacity: 0.8;
}

/* Achievement Cards */
.achievements-section {
    margin-bottom: 2em;
}

.achievements-section h3 {
    color: var(--secondary-color);
    font-size: 1.6em;
    font-weight: 600;
    margin-bottom: 1.5em;
    text-align: center;
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 0.5em;
}

.achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5em;
}

.achievement-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(15px);
    border-radius: 16px;
    padding: 1.5em;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.achievement-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.achievement-card.unlocked {
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.1), rgba(129, 199, 132, 0.05));
    border-color: rgba(76, 175, 80, 0.3);
    animation: achievementUnlock 0.8s ease-out;
}

.achievement-card.locked {
    background: rgba(255, 255, 255, 0.5);
    border-color: rgba(0, 0, 0, 0.1);
    opacity: 0.6;
}

@keyframes achievementUnlock {
    0% {
        transform: scale(0.8);
        opacity: 0;
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.achievement-header {
    display: flex;
    align-items: center;
    gap: 1em;
    margin-bottom: 1em;
}

.achievement-icon {
    font-size: 2.5em;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--accent-color), #2980b9);
    color: white;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
}

.achievement-card.unlocked .achievement-icon {
    background: linear-gradient(135deg, var(--primary-color), #45a049);
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.4);
    animation: iconPulse 2s ease-in-out infinite;
}

.achievement-card.locked .achievement-icon {
    background: linear-gradient(135deg, #95a5a6, #7f8c8d);
    box-shadow: 0 4px 15px rgba(149, 165, 166, 0.3);
}

@keyframes iconPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.achievement-info {
    flex: 1;
}

.achievement-title {
    font-size: 1.2em;
    font-weight: 600;
    color: var(--secondary-color);
    margin: 0 0 0.3em 0;
}

.achievement-description {
    font-size: 0.9em;
    color: var(--light-text-color);
    line-height: 1.4;
    margin: 0;
}

.achievement-progress {
    margin-top: 1em;
}

.progress-bar-container {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    height: 8px;
    overflow: hidden;
    margin-bottom: 0.5em;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), #45a049);
    border-radius: 10px;
    transition: width 0.5s ease;
    box-shadow: 0 0 10px rgba(76, 175, 80, 0.3);
}

.achievement-card.locked .progress-bar-fill {
    background: linear-gradient(90deg, #95a5a6, #7f8c8d);
    box-shadow: 0 0 10px rgba(149, 165, 166, 0.3);
}

.progress-text {
    font-size: 0.8em;
    color: var(--light-text-color);
    text-align: center;
}

/* Daily Goals Section */
.daily-goals-section {
    margin-bottom: 2em;
}

.daily-goals-section h3 {
    color: var(--secondary-color);
    font-size: 1.6em;
    font-weight: 600;
    margin-bottom: 1.5em;
    text-align: center;
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 0.5em;
}

.daily-goals-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1em;
}

.daily-goal-item {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(15px);
    border-radius: 12px;
    padding: 1.2em;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 1em;
}

.daily-goal-item:hover {
    transform: translateX(3px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.daily-goal-item.completed {
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.1), rgba(129, 199, 132, 0.05));
    border-color: rgba(76, 175, 80, 0.3);
}

.goal-checkbox {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid var(--accent-color);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.goal-checkbox:hover {
    transform: scale(1.1);
    box-shadow: 0 0 10px rgba(52, 152, 219, 0.3);
}

.goal-checkbox.completed {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.goal-text {
    flex: 1;
    font-size: 1em;
    font-weight: 500;
    color: var(--text-color);
}

.daily-goal-item.completed .goal-text {
    text-decoration: line-through;
    opacity: 0.7;
}

/* Leaderboard Section */
.leaderboard-section {
    margin-bottom: 2em;
}

.leaderboard-section h3 {
    color: var(--secondary-color);
    font-size: 1.6em;
    font-weight: 600;
    margin-bottom: 1.5em;
    text-align: center;
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 0.5em;
}

.leaderboard-list {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(15px);
    border-radius: 16px;
    padding: 1.5em;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.leaderboard-item {
    display: flex;
    align-items: center;
    gap: 1em;
    padding: 1em;
    border-radius: 12px;
    margin-bottom: 0.5em;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.leaderboard-item:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: translateX(3px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.leaderboard-item.current-user {
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.1), rgba(41, 128, 185, 0.05));
    border-color: rgba(52, 152, 219, 0.3);
}

.rank-number {
    font-size: 1.2em;
    font-weight: 700;
    color: var(--accent-color);
    min-width: 30px;
    text-align: center;
}

.rank-number.first {
    color: #FFD700;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.rank-number.second {
    color: #C0C0C0;
    text-shadow: 0 0 10px rgba(192, 192, 192, 0.5);
}

.rank-number.third {
    color: #CD7F32;
    text-shadow: 0 0 10px rgba(205, 127, 50, 0.5);
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-color), #2980b9);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 1.1em;
}

.user-info {
    flex: 1;
}

.user-name {
    font-size: 1em;
    font-weight: 600;
    color: var(--secondary-color);
    margin: 0;
}

.user-level {
    font-size: 0.8em;
    color: var(--light-text-color);
    margin: 0;
}

.user-points {
    font-size: 1.1em;
    font-weight: 700;
    color: var(--primary-color);
}

/* Level Progress */
.level-progress-container {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(15px);
    border-radius: 16px;
    padding: 1.5em;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    margin-bottom: 2em;
}

.level-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1em;
}

.current-level {
    font-size: 1.4em;
    font-weight: 700;
    color: var(--accent-color);
}

.next-level {
    font-size: 1em;
    color: var(--light-text-color);
}

.level-progress-bar {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 15px;
    height: 12px;
    overflow: hidden;
    margin-bottom: 0.5em;
}

.level-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-color), #2980b9);
    border-radius: 15px;
    transition: width 0.8s ease;
    box-shadow: 0 0 15px rgba(52, 152, 219, 0.4);
    animation: levelProgressGlow 2s ease-in-out infinite alternate;
}

@keyframes levelProgressGlow {
    0% { box-shadow: 0 0 15px rgba(52, 152, 219, 0.4); }
    100% { box-shadow: 0 0 25px rgba(52, 152, 219, 0.6); }
}

.level-progress-text {
    font-size: 0.9em;
    color: var(--light-text-color);
    text-align: center;
}

/* Achievement Notifications */
.achievement-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, var(--primary-color), #45a049);
    color: white;
    padding: 1em 1.5em;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(76, 175, 80, 0.4);
    z-index: 10003;
    transform: translateX(100%);
    opacity: 0;
    transition: all 0.4s ease;
    max-width: 350px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    pointer-events: auto;
}

.achievement-notification.show {
    transform: translateX(0);
    opacity: 1;
    animation: achievementNotificationPulse 0.6s ease-out;
}

.achievement-notification.fade-out {
    transform: translateX(100%);
    opacity: 0;
}

@keyframes achievementNotificationPulse {
    0% {
        transform: translateX(0) scale(0.8);
    }
    50% {
        transform: translateX(0) scale(1.05);
    }
    100% {
        transform: translateX(0) scale(1);
    }
}

.notification-content {
    display: flex;
    align-items: center;
    gap: 1em;
}

.notification-icon {
    font-size: 2em;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.notification-text {
    flex: 1;
}

.notification-title {
    font-size: 1.1em;
    font-weight: 600;
    margin: 0 0 0.2em 0;
}

.notification-description {
    font-size: 0.9em;
    opacity: 0.9;
    margin: 0;
}

/* Dark Mode Gamification Styles */
[data-theme="dark"] .points-card,
[data-theme="dark"] .streak-card,
[data-theme="dark"] .achievement-card,
[data-theme="dark"] .daily-goal-item,
[data-theme="dark"] .leaderboard-list,
[data-theme="dark"] .level-progress-container {
    background: var(--card-bg);
    border-color: var(--border-color);
}

[data-theme="dark"] .card-value,
[data-theme="dark"] .achievement-title,
[data-theme="dark"] .user-name {
    color: var(--text-color);
}

[data-theme="dark"] .card-label,
[data-theme="dark"] .achievement-description,
[data-theme="dark"] .goal-text,
[data-theme="dark"] .user-level,
[data-theme="dark"] .progress-text,
[data-theme="dark"] .level-progress-text {
    color: var(--light-text-color);
}

[data-theme="dark"] .progress-bar-container,
[data-theme="dark"] .level-progress-bar {
    background: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .leaderboard-item {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--border-color);
}

[data-theme="dark"] .leaderboard-item:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Responsive Design for Gamification */
@media (max-width: 768px) {
    .points-streak-section {
        grid-template-columns: 1fr;
        gap: 1em;
    }
    
    .achievements-grid {
        grid-template-columns: 1fr;
        gap: 1em;
    }
    
    .daily-goals-grid {
        grid-template-columns: 1fr;
    }
    
    .achievement-header {
        flex-direction: column;
        text-align: center;
        gap: 0.5em;
    }
    
    .achievement-icon {
        font-size: 2em;
        width: 50px;
        height: 50px;
    }
    
    .leaderboard-item {
        padding: 0.8em;
    }
    
    .user-avatar {
        width: 35px;
        height: 35px;
        font-size: 1em;
    }
    
    .achievement-notification {
        right: 10px;
        left: 10px;
        max-width: none;
        transform: translateY(-100%);
    }
    
    .achievement-notification.show {
        transform: translateY(0);
    }
    
    .achievement-notification.fade-out {
        transform: translateY(-100%);
    }
}

@media (max-width: 480px) {
    .achievements-container {
        padding: 1em 0;
        gap: 1.5em;
    }
    
    .points-card, .streak-card {
        padding: 1.5em;
    }
    
    .card-icon {
        font-size: 2.5em;
    }
    
    .card-value {
        font-size: 2em;
    }
    
    .achievement-card {
        padding: 1.2em;
    }
    
    .daily-goal-item {
        padding: 1em;
    }
    
    .level-progress-container,
    .leaderboard-list {
        padding: 1.2em;
    }
}

@media (max-width: 480px) {
    .university-modal-content {
        width: 98%;
        padding: 15px;
        border-radius: 15px;
    }
    
    .university-modal-title {
        font-size: 1.3em;
    }
    
    .program-name {
        font-size: 1.1em;
    }
    
    .info-value {
        font-size: 1em;
    }
}



/* Friends System Styles */
.friends-section {
    margin-bottom: 2em;
}

.friends-section h3 {
    color: var(--secondary-color);
    font-size: 1.6em;
    font-weight: 600;
    margin-bottom: 1.5em;
    text-align: center;
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 0.5em;
}

.friends-controls {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    align-items: center;
    flex-wrap: wrap;
}

.friend-input {
    flex: 1;
    min-width: 200px;
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: 25px;
    font-size: 1em;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    outline: none;
}

.friend-input:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
    background: rgba(255, 255, 255, 1);
}

.friend-input::placeholder {
    color: var(--light-text-color);
    opacity: 0.7;
}

.add-friend-btn {
    background: linear-gradient(135deg, var(--primary-color), #45a049);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 1em;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.add-friend-btn:hover {
    background: linear-gradient(135deg, #45a049, #3d8b40);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.4);
}

.add-friend-btn:active {
    transform: translateY(0);
}

.friends-list {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(15px);
    border-radius: 16px;
    padding: 1.5em;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.friend-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-radius: 12px;
    margin-bottom: 8px;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.friend-item:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: translateX(3px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.friend-item:last-child {
    margin-bottom: 0;
}

.friend-info {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.friend-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-color), #2980b9);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 1.1em;
    flex-shrink: 0;
}

.friend-details {
    flex: 1;
}

.friend-name {
    font-size: 1em;
    font-weight: 600;
    color: var(--secondary-color);
    margin: 0 0 2px 0;
}

.friend-status {
    font-size: 0.85em;
    color: var(--light-text-color);
    margin: 0;
}

.friend-points {
    font-size: 1em;
    font-weight: 700;
    color: var(--primary-color);
    margin-right: 12px;
}

.remove-friend-btn {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.85em;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(231, 76, 60, 0.3);
    display: flex;
    align-items: center;
    gap: 4px;
}

.remove-friend-btn:hover {
    background: linear-gradient(135deg, #c0392b, #a93226);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.4);
}

.remove-friend-btn:active {
    transform: translateY(0);
}

.no-friends-message {
    text-align: center;
    padding: 40px 20px;
    color: var(--light-text-color);
    font-style: italic;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border: 2px dashed rgba(255, 255, 255, 0.2);
}

.no-friends-icon {
    font-size: 3em;
    margin-bottom: 15px;
    opacity: 0.5;
    display: block;
}

.no-friends-text {
    font-size: 1.1em;
    font-weight: 500;
    margin-bottom: 10px;
}

.no-friends-subtext {
    font-size: 0.9em;
    opacity: 0.8;
}

/* Enhanced Leaderboard for Friends */
.friends-leaderboard {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(15px);
    border-radius: 16px;
    padding: 1.5em;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.friends-leaderboard h4 {
    color: var(--secondary-color);
    font-size: 1.3em;
    font-weight: 600;
    margin: 0 0 15px 0;
    text-align: center;
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 8px;
}

.friends-leaderboard-item {
    display: flex;
    align-items: center;
    gap: 1em;
    padding: 12px 16px;
    border-radius: 12px;
    margin-bottom: 8px;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.friends-leaderboard-item:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: translateX(3px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.friends-leaderboard-item.current-user {
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.1), rgba(41, 128, 185, 0.05));
    border-color: rgba(52, 152, 219, 0.3);
    box-shadow: 0 0 15px rgba(52, 152, 219, 0.2);
}

.friends-leaderboard-item:last-child {
    margin-bottom: 0;
}

/* Friend Request Notification */
.friend-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, var(--primary-color), #45a049);
    color: white;
    padding: 12px 20px;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(76, 175, 80, 0.4);
    z-index: 10000;
    transform: translateX(100%);
    opacity: 0;
    transition: all 0.4s ease;
    max-width: 350px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.friend-notification.show {
    transform: translateX(0);
    opacity: 1;
}

.friend-notification.fade-out {
    transform: translateX(100%);
    opacity: 0;
}

.friend-notification.error {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    box-shadow: 0 8px 25px rgba(231, 76, 60, 0.4);
}

.friend-notification.warning {
    background: linear-gradient(135deg, #f39c12, #e67e22);
    box-shadow: 0 8px 25px rgba(243, 156, 18, 0.4);
}

/* Dark Mode Friends System Styles */
[data-theme="dark"] .friends-list,
[data-theme="dark"] .friends-leaderboard {
    background: var(--card-bg);
    border-color: var(--border-color);
}

[data-theme="dark"] .friend-input {
    background: var(--card-bg);
    border-color: var(--border-color);
    color: var(--text-color);
}

[data-theme="dark"] .friend-input:focus {
    background: #404040;
    border-color: var(--accent-color);
}

[data-theme="dark"] .friend-input::placeholder {
    color: var(--light-text-color);
}

[data-theme="dark"] .friend-item,
[data-theme="dark"] .friends-leaderboard-item {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--border-color);
}

[data-theme="dark"] .friend-item:hover,
[data-theme="dark"] .friends-leaderboard-item:hover {
    background: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .friend-name {
    color: var(--text-color);
}

[data-theme="dark"] .friend-status {
    color: var(--light-text-color);
}

[data-theme="dark"] .no-friends-message {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
    color: var(--light-text-color);
}

/* Responsive Design for Friends System */
@media (max-width: 768px) {
    .friends-controls {
        flex-direction: column;
        gap: 12px;
    }
    
    .friend-input {
        min-width: 100%;
    }
    
    .add-friend-btn {
        width: 100%;
        justify-content: center;
    }
    
    .friend-item,
    .friends-leaderboard-item {
        padding: 10px 12px;
    }
    
    .friend-avatar {
        width: 35px;
        height: 35px;
        font-size: 1em;
    }
    
    .friend-name {
        font-size: 0.95em;
    }
    
    .friend-status {
        font-size: 0.8em;
    }
    
    .friend-points {
        font-size: 0.9em;
    }
    
    .remove-friend-btn {
        padding: 6px 10px;
        font-size: 0.8em;
    }
    
    .friend-notification {
        right: 10px;
        left: 10px;
        max-width: none;
        transform: translateY(-100%);
    }
    
    .friend-notification.show {
        transform: translateY(0);
    }
    
    .friend-notification.fade-out {
        transform: translateY(-100%);
    }
}

@media (max-width: 480px) {
    .friends-section {
        margin-bottom: 1.5em;
    }
    
    .friends-list,
    .friends-leaderboard {
        padding: 1.2em;
    }
    
    .friend-item,
    .friends-leaderboard-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        padding: 12px;
    }
    
    .friend-info {
        width: 100%;
    }
    
    .friend-points {
        margin-right: 0;
        margin-bottom: 8px;
    }
    
    .remove-friend-btn {
        align-self: flex-end;
    }
    
    .no-friends-message {
        padding: 30px 15px;
    }
    
    .no-friends-icon {
        font-size: 2.5em;
    }
}

/* Animation for adding/removing friends */
.friend-item.adding {
    animation: friendItemSlideIn 0.5s ease-out;
}

.friend-item.removing {
    animation: friendItemSlideOut 0.3s ease-in forwards;
}

@keyframes friendItemSlideIn {
    from {
        opacity: 0;
        transform: translateX(-20px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

@keyframes friendItemSlideOut {
    from {
        opacity: 1;
        transform: translateX(0) scale(1);
        max-height: 100px;
        margin-bottom: 8px;
    }
    to {
        opacity: 0;
        transform: translateX(20px) scale(0.9);
        max-height: 0;
        margin-bottom: 0;
        padding-top: 0;
        padding-bottom: 0;
    }
}

/* Floating Buttons Container */
.floating-buttons {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 9998;
}

/* Completed quest fade out animation */
.daily-goal-item.completed,
.weekly-quest-item.completed {
    opacity: 0.6;
    transform: scale(0.98);
    transition: all 0.5s ease;
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.1), rgba(76, 175, 80, 0.05));
    border: 1px solid rgba(76, 175, 80, 0.3);
}

.daily-goal-item.completed .goal-title,
.weekly-quest-item.completed .quest-title {
    text-decoration: line-through;
    color: var(--text-color-secondary);
}

.daily-goal-item.completed .goal-checkbox,
.weekly-quest-item.completed .quest-checkbox {
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: white;
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.3);
}

/* Quest completion animation */
@keyframes questComplete {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(0.98); opacity: 0.6; }
}

.daily-goal-item.just-completed,
.weekly-quest-item.just-completed {
    animation: questComplete 0.8s ease-out forwards;
}

/* Floating Donate Button Styles */
.floating-donate-btn {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #FF6B6B 0%, #FF8E53 50%, #FFD93D 100%);
    border-radius: 22px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 10px 35px rgba(255, 107, 107, 0.4);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    border: 3px solid rgba(255, 255, 255, 0.4);
    animation: floatingDonatePulse 3s infinite;
    text-decoration: none;
    color: white;
    position: relative;
}

@keyframes floatingDonatePulse {
    0%, 100% {
        box-shadow: 0 10px 35px rgba(255, 107, 107, 0.4);
        border-color: rgba(255, 255, 255, 0.4);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 15px 45px rgba(255, 107, 107, 0.6);
        border-color: rgba(255, 255, 255, 0.7);
        transform: scale(1.02);
    }
}

.floating-donate-btn:hover {
    transform: scale(1.12) translateY(-3px);
    box-shadow: 0 20px 60px rgba(255, 107, 107, 0.6);
    background: linear-gradient(135deg, #FF5722 0%, #FF7043 50%, #FFC107 100%);
    color: white;
    text-decoration: none;
    border-color: rgba(255, 255, 255, 0.8);
}

.floating-donate-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transition: left 0.6s;
}

.floating-donate-btn:hover::before {
    left: 100%;
}

.floating-donate-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.4s ease;
}

.floating-donate-btn:hover::after {
    width: 100px;
    height: 100px;
}

.floating-donate-icon {
    font-size: 2.4em;
    margin-bottom: 2px;
    animation: floatingCoffeeFloat 2.5s ease-in-out infinite;
    position: relative;
    z-index: 2;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

@keyframes floatingCoffeeFloat {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    25% { transform: translateY(-2px) rotate(2deg); }
    50% { transform: translateY(-4px) rotate(0deg); }
    75% { transform: translateY(-2px) rotate(-2deg); }
}

.floating-donate-text {
    font-size: 0.68em;
    font-weight: 700;
    color: white;
    text-align: center;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    opacity: 0.95;
    letter-spacing: 0.8px;
    position: relative;
    z-index: 2;
    line-height: 1;
}

.floating-donate-btn:hover .floating-donate-icon {
    animation-duration: 0.8s;
    transform: scale(1.15) rotate(5deg);
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

.floating-donate-btn:hover .floating-donate-text {
    opacity: 1;
    font-weight: 800;
    transform: scale(1.05);
}

.floating-donate-btn:active {
    transform: scale(1.05) translateY(-1px);
    transition: all 0.1s ease;
}

/* Floating Chatbot Button Styles */
.floating-chatbot-btn {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 8px 30px rgba(102, 126, 234, 0.5);
    transition: all 0.4s ease;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.3);
    animation: floatingRobotPulse 3s infinite;
    text-decoration: none;
    color: white;
}

@keyframes floatingRobotPulse {
    0%, 100% {
        box-shadow: 0 8px 30px rgba(102, 126, 234, 0.5);
        border-color: rgba(255, 255, 255, 0.3);
    }
    50% {
        box-shadow: 0 12px 40px rgba(102, 126, 234, 0.8);
        border-color: rgba(255, 255, 255, 0.6);
    }
}

.floating-chatbot-btn:hover {
    transform: scale(1.15) rotate(5deg);
    box-shadow: 0 15px 50px rgba(102, 126, 234, 0.8);
    background: linear-gradient(135deg, #5a67d8 0%, #6b46c1 50%, #ec4899 100%);
    color: white;
    text-decoration: none;
}

.floating-chatbot-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transition: left 0.6s;
}

.floating-chatbot-btn:hover::before {
    left: 100%;
}

/* Robot Head for Floating Button */
.floating-robot-head {
    width: 35px;
    height: 25px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 12px 12px 8px 8px;
    position: relative;
    margin-bottom: 3px;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
    z-index: 1;
}

/* Robot Eyes for Floating Button */
.floating-robot-eyes {
    display: flex;
    justify-content: space-between;
    padding: 4px 6px 0;
}

.floating-robot-eye {
    width: 6px;
    height: 6px;
    background: #667eea;
    border-radius: 50%;
    animation: floatingRobotBlink 4s infinite;
}

@keyframes floatingRobotBlink {
    0%, 90%, 100% { transform: scaleY(1); }
    95% { transform: scaleY(0.1); }
}

.floating-robot-eye.left-eye {
    animation-delay: 0.1s;
}

.floating-robot-eye.right-eye {
    animation-delay: 0.2s;
}

/* Robot Mouth for Floating Button */
.floating-robot-mouth {
    position: absolute;
    bottom: 3px;
    left: 50%;
    transform: translateX(-50%);
    width: 12px;
    height: 3px;
    background: #667eea;
    border-radius: 2px;
    animation: floatingRobotTalk 2s infinite;
}

@keyframes floatingRobotTalk {
    0%, 50%, 100% { width: 12px; }
    25%, 75% { width: 8px; }
}

/* Robot Body for Floating Button */
.floating-robot-body {
    width: 25px;
    height: 20px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 6px;
    position: relative;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
    z-index: 1;
}

.floating-robot-chest {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background: #667eea;
    border-radius: 2px;
    animation: floatingRobotHeartbeat 2s infinite;
}

@keyframes floatingRobotHeartbeat {
    0%, 100% { transform: translate(-50%, -50%) scale(1); }
    50% { transform: translate(-50%, -50%) scale(1.2); }
}

/* Hover effects for floating robot parts */
.floating-chatbot-btn:hover .floating-robot-eye {
    background: #ec4899;
    animation-duration: 1s;
}

.floating-chatbot-btn:hover .floating-robot-mouth {
    background: #ec4899;
    animation-duration: 0.5s;
}

.floating-chatbot-btn:hover .floating-robot-chest {
    background: #ec4899;
    animation-duration: 1s;
}

/* Enhanced Donate Modal Styles */
.donate-modal-content {
    max-width: 650px;
    width: 92%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 0;
    border-radius: 24px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.donate-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 35px;
    background: linear-gradient(135deg, #FF6B35 0%, #F7931E 30%, #FFD23F 70%, #FF8C42 100%);
    color: white;
    border-radius: 24px 24px 0 0;
    position: relative;
    overflow: hidden;
}

.donate-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255,255,255,0.15) 50%, transparent 70%);
    animation: donateHeaderShine 4s ease-in-out infinite;
}

@keyframes donateHeaderShine {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.donate-header h2 {
    margin: 0;
    font-size: 1.8em;
    border: none;
    padding: 0;
    text-shadow: 0 3px 6px rgba(0, 0, 0, 0.3);
    z-index: 1;
    position: relative;
    font-weight: 700;
    background: linear-gradient(45deg, #fff, #ffe4b5);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.donate-content {
    padding: 35px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(255, 248, 240, 0.95));
    backdrop-filter: blur(15px);
}

.donate-message {
    text-align: center;
    margin-bottom: 35px;
    padding: 25px;
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.08), rgba(255, 210, 63, 0.08));
    border-radius: 18px;
    border: 2px solid rgba(255, 107, 53, 0.15);
    position: relative;
    overflow: hidden;
}

.donate-message::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #FF6B35, #F7931E, #FFD23F, #FF6B35);
    background-size: 200% 100%;
    animation: messageShine 3s linear infinite;
}

@keyframes messageShine {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.donate-message p {
    margin: 0 0 18px 0;
    font-size: 1.15em;
    line-height: 1.7;
    color: var(--text-color);
    font-weight: 500;
}

.donate-message p:last-child {
    margin-bottom: 0;
    font-weight: 700;
    color: #FF6B35;
    font-size: 1.2em;
}

.donation-methods {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-bottom: 35px;
}

.donation-method {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(255, 248, 240, 0.9));
    border: 2px solid rgba(255, 107, 53, 0.2);
    border-radius: 20px;
    padding: 30px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.1);
}

.donation-method::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #FF6B35, #F7931E, #FFD23F, #FF8C42);
    background-size: 200% 100%;
    animation: methodShine 4s linear infinite;
}

@keyframes methodShine {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.donation-method:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 40px rgba(255, 107, 53, 0.25);
    border-color: rgba(255, 107, 53, 0.4);
    background: linear-gradient(135deg, rgba(255, 255, 255, 1), rgba(255, 248, 240, 0.95));
}

.donation-method h3 {
    margin: 0 0 20px 0;
    font-size: 1.4em;
    font-weight: 800;
    color: #FF6B35;
    display: flex;
    align-items: center;
    gap: 10px;
    text-shadow: 0 2px 4px rgba(255, 107, 53, 0.2);
}

.iban-container,
.papara-container {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    align-items: stretch;
}

.iban-container input,
.papara-container input {
    flex: 1;
    padding: 16px 20px;
    border: 2px solid rgba(255, 107, 53, 0.25);
    border-radius: 12px;
    font-size: 1.05em;
    font-weight: 600;
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.05), rgba(255, 210, 63, 0.03));
    color: var(--text-color);
    text-align: center;
    letter-spacing: 1.2px;
    transition: all 0.3s ease;
    font-family: 'Courier New', monospace;
    box-shadow: inset 0 2px 4px rgba(255, 107, 53, 0.1);
}

.iban-container input:focus,
.papara-container input:focus {
    outline: none;
    border-color: #FF6B35;
    box-shadow: 0 0 0 4px rgba(255, 107, 53, 0.15), inset 0 2px 4px rgba(255, 107, 53, 0.1);
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.08), rgba(255, 210, 63, 0.05));
    transform: translateY(-1px);
}

.copy-btn {
    background: linear-gradient(135deg, #FF6B35, #F7931E, #FFD23F);
    color: white;
    border: none;
    padding: 16px 24px;
    border-radius: 12px;
    cursor: pointer;
    font-size: 0.95em;
    font-weight: 700;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.3);
    white-space: nowrap;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
    min-width: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.copy-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s;
}

.copy-btn:hover::before {
    left: 100%;
}

.copy-btn:hover {
    background: linear-gradient(135deg, #F7931E, #FF6B35, #FF8C42);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 10px 30px rgba(255, 107, 53, 0.4);
}

.copy-btn:active {
    transform: translateY(-1px) scale(1.02);
}

.copy-btn.copied {
    background: linear-gradient(135deg, #4CAF50, #45a049, #66BB6A);
    animation: copySuccess 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes copySuccess {
    0% { transform: scale(1); }
    25% { transform: scale(1.1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.bank-info,
.papara-info {
    margin: 8px 0 0 0;
    font-size: 0.92em;
    color: var(--light-text-color);
    text-align: center;
    font-style: italic;
    padding: 8px 12px;
    background: rgba(255, 107, 53, 0.05);
    border-radius: 8px;
    border-left: 3px solid rgba(255, 107, 53, 0.3);
}

.donate-footer {
    text-align: center;
    padding: 25px;
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.06), rgba(255, 210, 63, 0.06));
    border-radius: 18px;
    border: 2px solid rgba(255, 107, 53, 0.12);
    position: relative;
    overflow: hidden;
}

.donate-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #FF6B35, #F7931E, #FFD23F);
    background-size: 200% 100%;
    animation: footerShine 3s linear infinite;
}

@keyframes footerShine {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.donate-footer p {
    margin: 0 0 12px 0;
    font-size: 1em;
    color: var(--text-color);
    line-height: 1.6;
    font-weight: 500;
}

.donate-footer p:last-child {
    margin-bottom: 0;
    font-weight: 700;
    color: #FF6B35;
    font-size: 1.1em;
}

/* Copy notification */
.copy-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: white;
    padding: 12px 20px;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(76, 175, 80, 0.4);
    z-index: 10003;
    transform: translateX(100%);
    opacity: 0;
    transition: all 0.4s ease;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    pointer-events: auto;
}

.copy-notification.show {
    transform: translateX(0);
    opacity: 1;
}

.copy-notification.fade-out {
    transform: translateX(100%);
    opacity: 0;
}

/* Dark Mode Donate Styles */
[data-theme="dark"] .donate-modal-content {
    background: var(--card-bg);
}

[data-theme="dark"] .donate-content {
    background: var(--card-bg);
}

[data-theme="dark"] .donate-message {
    background: rgba(255, 107, 53, 0.15);
    border-color: rgba(255, 107, 53, 0.3);
}

[data-theme="dark"] .donation-method {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 107, 53, 0.3);
}

[data-theme="dark"] .donation-method:hover {
    background: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .iban-container input,
[data-theme="dark"] .papara-container input {
    background: rgba(255, 107, 53, 0.1);
    border-color: rgba(255, 107, 53, 0.4);
    color: var(--text-color);
}

[data-theme="dark"] .donate-footer {
    background: rgba(255, 107, 53, 0.1);
    border-color: rgba(255, 107, 53, 0.2);
}

/* Responsive Design for Donate */
@media (max-width: 768px) {
    .donate-button {
        top: 20px;
        left: 20px;
        width: 60px;
        height: 60px;
    }
    
    .donate-icon {
        font-size: 1.8em;
    }
    
    .donate-text {
        font-size: 0.6em;
    }
    
    .donate-modal-content {
        width: 95%;
        margin: 10px;
    }
    
    .donate-header {
        padding: 20px;
    }
    
    .donate-header h2 {
        font-size: 1.4em;
    }
    
    .donate-content {
        padding: 20px;
    }
    
    .donation-method {
        padding: 20px;
    }
    
    .iban-container,
    .papara-container {
        flex-direction: column;
        gap: 12px;
    }
    
    .copy-btn {
        width: 100%;
        padding: 14px;
    }
    
    .copy-notification {
        right: 10px;
        left: 10px;
        max-width: none;
        transform: translateY(-100%);
    }
    
    .copy-notification.show {
        transform: translateY(0);
    }
    
    .copy-notification.fade-out {
        transform: translateY(-100%);
    }
}

@media (max-width: 480px) {
    .donate-button {
        width: 55px;
        height: 55px;
    }
    
    .donate-icon {
        font-size: 1.6em;
    }
    
    .donate-text {
        font-size: 0.55em;
    }
    
    .donate-modal-content {
        width: 98%;
        border-radius: 15px;
    }
    
    .donate-header {
        padding: 15px;
        border-radius: 15px 15px 0 0;
    }
    
    .donate-header h2 {
        font-size: 1.3em;
    }
    
    .donate-content {
        padding: 15px;
    }
    
    .donation-method {
        padding: 15px;
    }
    
    .donation-method h3 {
        font-size: 1.2em;
    }
}

/* Hover effects for donate button positioning */
.donate-button:hover {
    animation-play-state: paused;
}

/* Ensure donate button doesn't interfere with other elements */
.donate-button {
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

/* Friends leaderboard update animation */
.friends-leaderboard-item.position-changed {
    animation: positionChange 0.6s ease-in-out;
}

@keyframes positionChange {
    0% {
        transform: translateX(0);
        background: rgba(255, 255, 255, 0.5);
    }
    50% {
        transform: translateX(10px);
        background: rgba(52, 152, 219, 0.2);
        box-shadow: 0 0 20px rgba(52, 152, 219, 0.3);
    }
    100% {
        transform: translateX(0);
        background: rgba(255, 255, 255, 0.5);
    }
}

/* Enhanced Profile Page Styles */
.enhanced-profile-page {
    padding: 2em 0;
    display: flex;
    flex-direction: column;
    gap: 2em;
}

/* Profile Header */
.profile-header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 2em;
    display: flex;
    align-items: center;
    gap: 2em;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    position: relative;
    overflow: hidden;
}

.profile-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.05) 0%, rgba(155, 89, 182, 0.05) 100%);
    pointer-events: none;
    border-radius: 20px;
}

.profile-avatar {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1em;
}

.avatar-circle {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-color), #2980b9);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5em;
    font-weight: 700;
    color: white;
    box-shadow: 0 8px 25px rgba(52, 152, 219, 0.3);
    border: 4px solid rgba(255, 255, 255, 0.8);
    position: relative;
    overflow: hidden;
}

.avatar-circle::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: avatarShine 3s ease-in-out infinite;
}

@keyframes avatarShine {
    0% { left: -100%; }
    100% { left: 100%; }
}

.level-badge {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: white;
    padding: 0.5em 1em;
    border-radius: 20px;
    font-size: 0.9em;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.profile-info {
    flex: 1;
    z-index: 1;
}

.profile-name {
    font-size: 2.2em;
    font-weight: 700;
    color: var(--secondary-color);
    margin: 0 0 0.3em 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.profile-subtitle {
    font-size: 1.2em;
    color: var(--light-text-color);
    margin: 0 0 1em 0;
    font-weight: 500;
}

.profile-stats-mini {
    display: flex;
    gap: 1.5em;
    flex-wrap: wrap;
}

.stat-mini {
    background: rgba(255, 255, 255, 0.8);
    padding: 0.5em 1em;
    border-radius: 15px;
    font-size: 0.95em;
    font-weight: 600;
    color: var(--text-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

/* Profile Statistics Grid */
.profile-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5em;
}

.profile-stat-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 16px;
    padding: 1.5em;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
    display: flex;
    align-items: flex-start;
    gap: 1em;
    position: relative;
    overflow: hidden;
}

.profile-stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    pointer-events: none;
    border-radius: 16px;
}

.profile-stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15);
}

.stat-icon {
    font-size: 2.5em;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--accent-color), #2980b9);
    color: white;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
    flex-shrink: 0;
}

.stat-content {
    flex: 1;
    z-index: 1;
}

.stat-content h3 {
    font-size: 1.3em;
    font-weight: 600;
    color: var(--secondary-color);
    margin: 0 0 1em 0;
    border: none;
    padding: 0;
}

.stat-details p {
    margin: 0.5em 0;
    font-size: 1em;
    color: var(--text-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.stat-details strong {
    color: var(--accent-color);
    font-weight: 700;
}

.progress-bar-mini {
    width: 100%;
    height: 8px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    overflow: hidden;
    margin: 0.5em 0;
}

.progress-fill-mini {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), #45a049);
    border-radius: 4px;
    transition: width 0.5s ease;
    box-shadow: 0 0 10px rgba(76, 175, 80, 0.3);
}

.progress-text-mini {
    font-size: 0.9em;
    color: var(--light-text-color);
    text-align: center;
    margin: 0.5em 0 0 0;
}

/* Profile Settings Section */
.profile-settings-section {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 16px;
    padding: 2em;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.profile-settings-section h2 {
    color: var(--secondary-color);
    font-size: 1.6em;
    font-weight: 600;
    margin: 0 0 1.5em 0;
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 0.5em;
}

.profile-form-enhanced {
    display: flex;
    flex-direction: column;
    gap: 1.5em;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5em;
}

.profile-form-enhanced .form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5em;
}

.profile-form-enhanced label {
    font-size: 1.1em;
    font-weight: 600;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 0.5em;
}

.profile-form-enhanced input,
.profile-form-enhanced select {
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    font-size: 1em;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.profile-form-enhanced input:focus,
.profile-form-enhanced select:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
    outline: none;
    background: rgba(255, 255, 255, 1);
}

.profile-form-enhanced input[readonly] {
    background: rgba(0, 0, 0, 0.05);
    color: var(--light-text-color);
    cursor: not-allowed;
}

.profile-form-enhanced small {
    font-size: 0.85em;
    color: var(--light-text-color);
    font-style: italic;
}

.form-actions {
    display: flex;
    justify-content: center;
    margin-top: 1em;
}

.save-profile-btn {
    background: linear-gradient(135deg, var(--primary-color), #45a049);
    color: white;
    border: none;
    padding: 14px 30px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 1.1em;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
    display: flex;
    align-items: center;
    gap: 0.5em;
}

.save-profile-btn:hover {
    background: linear-gradient(135deg, #45a049, #3d8b40);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.4);
}

/* Account Actions Section */
.account-actions-section {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 16px;
    padding: 2em;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.account-actions-section h2 {
    color: var(--secondary-color);
    font-size: 1.6em;
    font-weight: 600;
    margin: 0 0 1.5em 0;
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 0.5em;
}

.action-buttons-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5em;
}

.action-btn {
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5em;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 0.5em;
    font-size: 1em;
    font-weight: 600;
    color: var(--text-color);
    position: relative;
    overflow: hidden;
    min-height: 120px;
    max-height: 120px;
    justify-content: center;
    align-items: flex-start;
    width: 100%;
    box-sizing: border-box;
}

.action-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--accent-color);
    transition: width 0.3s ease;
}

.action-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-color: var(--accent-color);
}

.action-btn:hover::before {
    width: 6px;
}

.action-btn small {
    font-size: 0.85em;
    color: var(--light-text-color);
    font-weight: 400;
    line-height: 1.4;
}

.export-btn {
    border-color: rgba(52, 152, 219, 0.3);
}

.export-btn::before {
    background: var(--accent-color);
}

.achievements-btn {
    border-color: rgba(255, 215, 0, 0.3);
}

.achievements-btn::before {
    background: #FFD700;
}

.manage-btn {
    border-color: rgba(155, 89, 182, 0.3);
}

.manage-btn::before {
    background: #9b59b6;
}

.logout-btn {
    border-color: rgba(231, 76, 60, 0.3);
}

.logout-btn::before {
    background: #e74c3c;
}

.admin-btn {
    border-color: rgba(102, 126, 234, 0.3);
}

.admin-btn::before {
    background: #667eea;
}

/* Dark Mode Enhanced Profile Styles */
[data-theme="dark"] .enhanced-profile-page {
    color: var(--text-color);
}

[data-theme="dark"] .profile-header,
[data-theme="dark"] .profile-stat-card,
[data-theme="dark"] .profile-settings-section,
[data-theme="dark"] .account-actions-section {
    background: var(--card-bg);
    border-color: var(--border-color);
}

[data-theme="dark"] .profile-name {
    color: var(--text-color);
}

[data-theme="dark"] .stat-mini {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--border-color);
    color: var(--text-color);
}

[data-theme="dark"] .stat-content h3 {
    color: var(--text-color);
}

[data-theme="dark"] .profile-form-enhanced input,
[data-theme="dark"] .profile-form-enhanced select {
    background: var(--card-bg);
    border-color: var(--border-color);
    color: var(--text-color);
}

[data-theme="dark"] .profile-form-enhanced input:focus,
[data-theme="dark"] .profile-form-enhanced select:focus {
    background: #404040;
    border-color: var(--accent-color);
}

[data-theme="dark"] .profile-form-enhanced input[readonly] {
    background: rgba(255, 255, 255, 0.05);
    color: var(--light-text-color);
}

[data-theme="dark"] .action-btn {
    background: var(--card-bg);
    border-color: var(--border-color);
    color: var(--text-color);
}

[data-theme="dark"] .action-btn:hover {
    background: #404040;
}

[data-theme="dark"] .progress-bar-mini {
    background: rgba(255, 255, 255, 0.1);
}

/* Responsive Design for Enhanced Profile */
@media (max-width: 768px) {
    .enhanced-profile-page {
        padding: 1em 0;
        gap: 1.5em;
    }
    
    .profile-header {
        flex-direction: column;
        text-align: center;
        padding: 1.5em;
        gap: 1.5em;
    }
    
    .avatar-circle {
        width: 80px;
        height: 80px;
        font-size: 2em;
    }
    
    .profile-name {
        font-size: 1.8em;
    }
    
    .profile-stats-mini {
        justify-content: center;
        gap: 1em;
    }
    
    .profile-stats-grid {
        grid-template-columns: 1fr;
        gap: 1em;
    }
    
    .profile-stat-card {
        padding: 1.2em;
    }
    
    .stat-icon {
        width: 50px;
        height: 50px;
        font-size: 2em;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 1em;
    }
    
    .action-buttons-grid {
        grid-template-columns: 1fr;
        gap: 1em;
    }
    
    .profile-settings-section,
    .account-actions-section {
        padding: 1.5em;
    }
}

@media (max-width: 480px) {
    .profile-header {
        padding: 1.2em;
    }
    
    .avatar-circle {
        width: 70px;
        height: 70px;
        font-size: 1.8em;
    }
    
    .profile-name {
        font-size: 1.6em;
    }
    
    .profile-subtitle {
        font-size: 1em;
    }
    
    .stat-mini {
        padding: 0.4em 0.8em;
        font-size: 0.9em;
    }
    
    .profile-stat-card {
        padding: 1em;
        flex-direction: column;
        text-align: center;
        gap: 1em;
    }
    
    .stat-icon {
        width: 45px;
        height: 45px;
        font-size: 1.8em;
        align-self: center;
    }
    
    .action-btn {
        padding: 1.2em;
    }
    
    /* Admin Panel Styles */
    .admin-panel {
        padding: 2em 0;
        display: flex;
        flex-direction: column;
        gap: 2em;
    }
    
    /* Admin Header */
    .admin-header {
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        color: white;
        border-radius: 20px;
        padding: 2em;
        display: flex;
        justify-content: space-between;
        align-items: center;
        box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
        position: relative;
        overflow: hidden;
    }
    
    .admin-header::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(45deg, transparent 30%, rgba(255,255,255,0.1) 50%, transparent 70%);
        animation: adminHeaderShine 3s ease-in-out infinite;
    }
    
    @keyframes adminHeaderShine {
        0% { transform: translateX(-100%); }
        100% { transform: translateX(100%); }
    }
    
    .admin-title h1 {
        margin: 0 0 0.5em 0;
        font-size: 2.2em;
        font-weight: 700;
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
        z-index: 1;
        position: relative;
    }
    
    .admin-title p {
        margin: 0;
        font-size: 1.1em;
        opacity: 0.9;
        z-index: 1;
        position: relative;
    }
    
    .admin-user-info {
        display: flex;
        flex-direction: column;
        align-items: flex-end;
        gap: 0.5em;
        z-index: 1;
        position: relative;
    }
    
    .admin-badge {
        background: rgba(255, 255, 255, 0.2);
        padding: 0.5em 1em;
        border-radius: 20px;
        font-size: 0.9em;
        font-weight: 600;
        backdrop-filter: blur(10px);
        border: 1px solid rgba(255, 255, 255, 0.3);
    }
    
    .admin-username {
        font-size: 1.2em;
        font-weight: 600;
        text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    }
    
    /* Admin Statistics */
    .admin-stats-section {
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(20px);
        border-radius: 16px;
        padding: 2em;
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
        border: 1px solid rgba(255, 255, 255, 0.3);
    }
    
    .admin-stats-section h2 {
        color: var(--secondary-color);
        font-size: 1.6em;
        font-weight: 600;
        margin: 0 0 1.5em 0;
        border-bottom: 2px solid var(--accent-color);
        padding-bottom: 0.5em;
    }
    
    .admin-stats-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1.5em;
    }
    
    .admin-stat-card {
        background: rgba(255, 255, 255, 0.9);
        border-radius: 12px;
        padding: 1.5em;
        display: flex;
        align-items: center;
        gap: 1em;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
        border: 1px solid rgba(255, 255, 255, 0.3);
        transition: all 0.3s ease;
    }
    
    .admin-stat-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    }
    
    .admin-stat-card .stat-icon {
        font-size: 2.5em;
        width: 60px;
        height: 60px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        background: linear-gradient(135deg, var(--accent-color), #2980b9);
        color: white;
        box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
        flex-shrink: 0;
    }
    
    .admin-stat-card .stat-content h3 {
        margin: 0 0 0.5em 0;
        font-size: 1.1em;
        font-weight: 600;
        color: var(--secondary-color);
        border: none;
        padding: 0;
    }
    
    .admin-stat-card .stat-number {
        font-size: 2em;
        font-weight: 700;
        color: var(--accent-color);
        margin: 0.2em 0;
    }
    
    .admin-stat-card small {
        font-size: 0.85em;
        color: var(--light-text-color);
        margin: 0;
    }
    
    /* Admin Users Section */
    .admin-users-section {
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(20px);
        border-radius: 16px;
        padding: 2em;
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
        border: 1px solid rgba(255, 255, 255, 0.3);
    }
    
    .admin-users-section h2 {
        color: var(--secondary-color);
        font-size: 1.6em;
        font-weight: 600;
        margin: 0 0 1.5em 0;
        border-bottom: 2px solid var(--accent-color);
        padding-bottom: 0.5em;
    }
    
    .admin-users-controls {
        display: flex;
        gap: 1em;
        margin-bottom: 1.5em;
        flex-wrap: wrap;
    }
    
    .admin-btn {
        padding: 12px 24px;
        border: none;
        border-radius: 8px;
        cursor: pointer;
        font-size: 1em;
        font-weight: 600;
        transition: all 0.3s ease;
        display: flex;
        align-items: center;
        gap: 0.5em;
    }
    
    .admin-btn.primary {
        background: linear-gradient(135deg, var(--primary-color), #45a049);
        color: white;
        box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
    }
    
    .admin-btn.primary:hover {
        background: linear-gradient(135deg, #45a049, #3d8b40);
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(76, 175, 80, 0.4);
    }
    
    .admin-btn.secondary {
        background: linear-gradient(135deg, var(--accent-color), #2980b9);
        color: white;
        box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
    }
    
    .admin-btn.secondary:hover {
        background: linear-gradient(135deg, #2980b9, #1976d2);
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(52, 152, 219, 0.4);
    }
    
    .admin-btn.small {
        padding: 8px 16px;
        font-size: 0.9em;
    }
    
    /* Admin User Item */
    .admin-user-item {
        display: flex;
        align-items: center;
        gap: 1.5em;
        padding: 1.5em;
        background: rgba(255, 255, 255, 0.8);
        border-radius: 12px;
        margin-bottom: 1em;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        border: 1px solid rgba(255, 255, 255, 0.3);
        transition: all 0.3s ease;
    }
    
    .admin-user-item:hover {
        transform: translateX(5px);
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    }
    
    .admin-user-item .user-avatar {
        width: 50px;
        height: 50px;
        border-radius: 50%;
        background: linear-gradient(135deg, var(--accent-color), #2980b9);
        display: flex;
        align-items: center;
        justify-content: center;
        color: white;
        font-weight: 700;
        font-size: 1.2em;
        flex-shrink: 0;
    }
    
    .admin-user-item .user-details {
        flex: 1;
    }
    
    .admin-user-item .user-details h4 {
        margin: 0 0 0.5em 0;
        font-size: 1.2em;
        font-weight: 600;
        color: var(--secondary-color);
    }
    
    .admin-user-item .user-details p {
        margin: 0.2em 0;
        font-size: 0.9em;
        color: var(--light-text-color);
    }
    
    .admin-user-item .user-stats {
        display: flex;
        flex-direction: column;
        gap: 0.3em;
        margin-right: 1em;
    }
    
    .user-stat {
        font-size: 0.85em;
        color: var(--text-color);
        background: rgba(52, 152, 219, 0.1);
        padding: 0.3em 0.8em;
        border-radius: 15px;
        white-space: nowrap;
    }
    
    .admin-user-item .user-actions {
        display: flex;
        gap: 0.5em;
        flex-shrink: 0;
    }
    
    /* Admin System Section */
    .admin-system-section {
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(20px);
        border-radius: 16px;
        padding: 2em;
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
        border: 1px solid rgba(255, 255, 255, 0.3);
    }
    
    .admin-system-section h2 {
        color: var(--secondary-color);
        font-size: 1.6em;
        font-weight: 600;
        margin: 0 0 1.5em 0;
        border-bottom: 2px solid var(--accent-color);
        padding-bottom: 0.5em;
    }
    
    .admin-system-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1.5em;
    }
    
    .admin-action-btn {
        background: rgba(255, 255, 255, 0.9);
        border: 2px solid var(--border-color);
        border-radius: 12px;
        padding: 1.5em;
        cursor: pointer;
        transition: all 0.3s ease;
        text-align: left;
        display: flex;
        flex-direction: column;
        gap: 0.5em;
        font-size: 1em;
        font-weight: 600;
        color: var(--text-color);
        position: relative;
        overflow: hidden;
        min-height: 100px;
        justify-content: center;
    }
    
    .admin-action-btn::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 4px;
        height: 100%;
        background: var(--accent-color);
        transition: width 0.3s ease;
    }
    
    .admin-action-btn:hover {
        transform: translateY(-3px);
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
        border-color: var(--accent-color);
    }
    
    .admin-action-btn:hover::before {
        width: 6px;
    }
    
    .admin-action-btn small {
        font-size: 0.85em;
        color: var(--light-text-color);
        font-weight: 400;
        line-height: 1.4;
    }
    
    /* Quick Actions */
    .admin-quick-actions {
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(20px);
        border-radius: 16px;
        padding: 2em;
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
        border: 1px solid rgba(255, 255, 255, 0.3);
    }
    
    .admin-quick-actions h2 {
        color: var(--secondary-color);
        font-size: 1.6em;
        font-weight: 600;
        margin: 0 0 1.5em 0;
        border-bottom: 2px solid var(--accent-color);
        padding-bottom: 0.5em;
    }
    
    .quick-actions-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 1em;
    }
    
    .quick-action-btn {
        background: linear-gradient(135deg, #667eea, #764ba2);
        color: white;
        border: none;
        border-radius: 10px;
        padding: 1em;
        cursor: pointer;
        font-size: 0.95em;
        font-weight: 600;
        transition: all 0.3s ease;
        box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
        text-align: center;
    }
    
    .quick-action-btn:hover {
        background: linear-gradient(135deg, #5a67d8, #6b46c1);
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
    }
    
    .no-users {
        text-align: center;
        padding: 2em;
        color: var(--light-text-color);
        font-style: italic;
        background: rgba(255, 255, 255, 0.5);
        border-radius: 12px;
        border: 2px dashed rgba(0, 0, 0, 0.1);
    }
    
    /* Dark Mode Admin Styles */
    [data-theme="dark"] .admin-stats-section,
    [data-theme="dark"] .admin-users-section,
    [data-theme="dark"] .admin-system-section,
    [data-theme="dark"] .admin-quick-actions {
        background: var(--card-bg);
        border-color: var(--border-color);
    }
    
    [data-theme="dark"] .admin-stat-card,
    [data-theme="dark"] .admin-user-item,
    [data-theme="dark"] .admin-action-btn {
        background: rgba(255, 255, 255, 0.05);
        border-color: var(--border-color);
    }
    
    [data-theme="dark"] .admin-stat-card:hover,
    [data-theme="dark"] .admin-user-item:hover,
    [data-theme="dark"] .admin-action-btn:hover {
        background: rgba(255, 255, 255, 0.1);
    }
    
    [data-theme="dark"] .admin-stat-card .stat-content h3,
    [data-theme="dark"] .admin-user-item .user-details h4 {
        color: var(--text-color);
    }
    
    [data-theme="dark"] .no-users {
        background: rgba(255, 255, 255, 0.05);
        border-color: rgba(255, 255, 255, 0.1);
        color: var(--light-text-color);
    }
    
    /* Responsive Design for Admin Panel */
    @media (max-width: 768px) {
        .admin-header {
            flex-direction: column;
            text-align: center;
            gap: 1em;
        }
        
        .admin-user-info {
            align-items: center;
        }
        
        .admin-stats-grid {
            grid-template-columns: 1fr;
        }
        
        .admin-users-controls {
            flex-direction: column;
        }
        
        .admin-user-item {
            flex-direction: column;
            text-align: center;
            gap: 1em;
        }
        
        .admin-user-item .user-stats {
            flex-direction: row;
            justify-content: center;
            flex-wrap: wrap;
        }
        
        .admin-system-grid {
            grid-template-columns: 1fr;
        }
        
        .quick-actions-grid {
            grid-template-columns: repeat(2, 1fr);
        }
    }
    
    @media (max-width: 480px) {
        .admin-panel {
            padding: 1em 0;
            gap: 1.5em;
        }
        
        .admin-header {
            padding: 1.5em;
        }
        
        .admin-title h1 {
            font-size: 1.8em;
        }
        
        .admin-stats-section,
        .admin-users-section,
        .admin-system-section,
        .admin-quick-actions {
            padding: 1.5em;
        }
        
        .admin-stat-card {
            flex-direction: column;
            text-align: center;
        }
        
        .quick-actions-grid {
            grid-template-columns: 1fr;
        }
    }
    
    .profile-settings-section,
    .account-actions-section {
        padding: 1.2em;
    }
}


/* Donation Button in Header */
.donation-btn {
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s ease;
    margin-right: 10px;
    box-shadow: 0 2px 10px rgba(255, 107, 107, 0.3);
}

.donation-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.4);
    background: linear-gradient(135deg, #ee5a24, #ff6b6b);
}

/* Donation Modal Styles */
.donation-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
}

.donation-modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.donation-modal-content {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 20px;
    padding: 0;
    max-width: 800px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideInUp 0.4s ease;
}

.donation-modal-header {
    background: rgba(255, 255, 255, 0.1);
    padding: 25px 30px;
    border-radius: 20px 20px 0 0;
    position: relative;
    text-align: center;
}

.donation-modal-header h2 {
    font-size: 2.2em;
    margin-bottom: 10px;
    background: linear-gradient(45deg, #ffd700, #ffed4e);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.donation-modal-header p {
    font-size: 1.1em;
    opacity: 0.9;
    line-height: 1.5;
}

.close-donation-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.close-donation-modal:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.donation-modal-body {
    padding: 30px;
}

/* Donation Amounts Grid */
.donation-amounts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}

.donation-amount-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 20px;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    backdrop-filter: blur(10px);
}

.donation-amount-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.donation-amount-btn.selected {
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    color: #333;
    border-color: #ffd700;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(255, 215, 0, 0.3);
}

.amount-emoji {
    font-size: 2.5em;
    margin-bottom: 10px;
}

.amount-name {
    font-size: 1.2em;
    font-weight: bold;
    margin-bottom: 5px;
}

.amount-price {
    font-size: 1.5em;
    font-weight: bold;
    color: #ffd700;
    margin-bottom: 8px;
}

.donation-amount-btn.selected .amount-price {
    color: #333;
}

.amount-description {
    font-size: 0.9em;
    opacity: 0.8;
    line-height: 1.3;
}

.donation-amount-btn.selected .amount-description {
    opacity: 0.7;
}

/* Custom Amount Section */
.custom-amount-section {
    background: rgba(255, 255, 255, 0.1);
    padding: 25px;
    border-radius: 15px;
    margin-bottom: 25px;
    backdrop-filter: blur(10px);
}

.custom-amount-section h3 {
    margin-bottom: 15px;
    color: #ffd700;
    font-size: 1.3em;
}

.custom-amount-input-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.custom-amount-input-group input {
    flex: 1;
    padding: 12px 15px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 1.1em;
}

.custom-amount-input-group input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.custom-amount-input-group .currency {
    color: #ffd700;
    font-weight: bold;
    font-size: 1.1em;
}

.custom-amount-input-group button {
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    color: #333;
    border: none;
    padding: 12px 20px;
    border-radius: 10px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
}

.custom-amount-input-group button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.3);
}

/* Selected Amount Section */
.selected-amount-section {
    background: rgba(255, 255, 255, 0.1);
    padding: 25px;
    border-radius: 15px;
    margin-bottom: 25px;
    text-align: center;
    backdrop-filter: blur(10px);
}

.selected-amount-section h3 {
    color: #ffd700;
    margin-bottom: 20px;
    font-size: 1.3em;
}

.selected-amount-card {
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 20px;
}

.selected-emoji {
    font-size: 3em;
    margin-bottom: 10px;
}

.selected-name {
    font-size: 1.3em;
    font-weight: bold;
    margin-bottom: 5px;
}

.selected-price {
    font-size: 2em;
    font-weight: bold;
    color: #ffd700;
    margin-bottom: 10px;
}

.selected-description {
    opacity: 0.8;
    line-height: 1.4;
}

.proceed-donation-btn {
    background: linear-gradient(135deg, #00d2ff, #3a7bd5);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 1.1em;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 210, 255, 0.3);
}

.proceed-donation-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 210, 255, 0.4);
}

/* Payment Section */
.payment-section {
    background: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 15px;
    backdrop-filter: blur(10px);
}

.payment-section h3 {
    color: #ffd700;
    margin-bottom: 20px;
    font-size: 1.4em;
    text-align: center;
}

.payment-info {
    margin-bottom: 25px;
}

.iban-section, .recipient-section, .amount-section {
    margin-bottom: 20px;
}

.iban-section label, .recipient-section label, .amount-section label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #ffd700;
}

.iban-display {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.1);
    padding: 12px;
    border-radius: 10px;
}

.iban-display span {
    flex: 1;
    font-family: 'Courier New', monospace;
    font-size: 1.1em;
    letter-spacing: 1px;
}

.copy-btn {
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    color: #333;
    border: none;
    padding: 8px 15px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
}

.copy-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(255, 215, 0, 0.3);
}

.recipient-name, .final-amount {
    background: rgba(255, 255, 255, 0.1);
    padding: 10px 15px;
    border-radius: 8px;
    display: inline-block;
    font-weight: bold;
}

.final-amount {
    color: #ffd700;
    font-size: 1.2em;
}

/* Payment Instructions */
.payment-instructions {
    background: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 20px;
}

.payment-instructions h4 {
    color: #ffd700;
    margin-bottom: 15px;
    font-size: 1.2em;
}

.payment-instructions ol {
    margin-left: 20px;
    margin-bottom: 20px;
}

.payment-instructions li {
    margin-bottom: 8px;
    line-height: 1.4;
}

.alternative-methods {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 15px;
}

.alternative-methods h4 {
    margin-bottom: 10px;
}

/* Thank You Message */
.thank-you-message {
    text-align: center;
    background: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 12px;
    border: 2px solid rgba(255, 215, 0, 0.3);
}

.thank-you-message p {
    margin-bottom: 10px;
    line-height: 1.5;
}

.thank-you-message p:last-child {
    margin-bottom: 0;
    opacity: 0.8;
}

/* Responsive Design for Donation */
@media (max-width: 768px) {
    .donation-modal-content {
        width: 95%;
        margin: 10px;
    }
    
    .donation-modal-header {
        padding: 20px;
    }
    
    .donation-modal-header h2 {
        font-size: 1.8em;
    }
    
    .donation-modal-body {
        padding: 20px;
    }
    
    .donation-amounts-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 10px;
    }
    
    .donation-amount-btn {
        padding: 15px;
    }
    
    .amount-emoji {
        font-size: 2em;
    }
    
    .amount-name {
        font-size: 1em;
    }
    
    .amount-price {
        font-size: 1.3em;
    }
    
    .custom-amount-input-group {
        flex-direction: column;
        align-items: stretch;
    }
    
    .custom-amount-input-group button {
        margin-top: 10px;
    }
    
    .iban-display {
        flex-direction: column;
        align-items: stretch;
    }
    
    .iban-display span {
        margin-bottom: 10px;
        text-align: center;
    }
}

/* Modern Planner Session Styles */
.modern-session {
    background: linear-gradient(135deg, var(--primary-color), #45a049);
    color: white;
    padding: 1.5em;
    border-radius: 16px;
    box-shadow: 0 8px 25px rgba(76, 175, 80, 0.3);
    transition: all 0.3s ease;
    border: none;
    position: relative;
    overflow: hidden;
    margin-bottom: 0.8em;
}

.modern-session::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #4CAF50, #8BC34A, #4CAF50);
    background-size: 200% 100%;
    animation: sessionShimmer 2s infinite;
}

@keyframes sessionShimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.modern-session:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(76, 175, 80, 0.4);
}

.modern-session.completed {
    background: linear-gradient(135deg, #95a5a6, #7f8c8d);
    box-shadow: 0 8px 25px rgba(149, 165, 166, 0.3);
    opacity: 0.8;
}

.modern-session.completed::before {
    background: linear-gradient(90deg, #95a5a6, #bdc3c7, #95a5a6);
}

/* Subject-specific colors */
.modern-session.matematik {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    box-shadow: 0 8px 25px rgba(231, 76, 60, 0.3);
}

.modern-session.matematik::before {
    background: linear-gradient(90deg, #e74c3c, #ec7063, #e74c3c);
}

.modern-session.fizik {
    background: linear-gradient(135deg, #3498db, #2980b9);
    box-shadow: 0 8px 25px rgba(52, 152, 219, 0.3);
}

.modern-session.fizik::before {
    background: linear-gradient(90deg, #3498db, #5dade2, #3498db);
}

.modern-session.kimya {
    background: linear-gradient(135deg, #9b59b6, #8e44ad);
    box-shadow: 0 8px 25px rgba(155, 89, 182, 0.3);
}

.modern-session.kimya::before {
    background: linear-gradient(90deg, #9b59b6, #bb8fce, #9b59b6);
}

.modern-session.biyoloji {
    background: linear-gradient(135deg, #27ae60, #229954);
    box-shadow: 0 8px 25px rgba(39, 174, 96, 0.3);
}

.modern-session.biyoloji::before {
    background: linear-gradient(90deg, #27ae60, #58d68d, #27ae60);
}

.modern-session.turkce {
    background: linear-gradient(135deg, #f39c12, #e67e22);
    box-shadow: 0 8px 25px rgba(243, 156, 18, 0.3);
}

.modern-session.turkce::before {
    background: linear-gradient(90deg, #f39c12, #f7dc6f, #f39c12);
}

.modern-session.tarih {
    background: linear-gradient(135deg, #8b4513, #a0522d);
    box-shadow: 0 8px 25px rgba(139, 69, 19, 0.3);
}

.modern-session.tarih::before {
    background: linear-gradient(90deg, #8b4513, #cd853f, #8b4513);
}

.modern-session.cografya {
    background: linear-gradient(135deg, #16a085, #138d75);
    box-shadow: 0 8px 25px rgba(22, 160, 133, 0.3);
}

.modern-session.cografya::before {
    background: linear-gradient(90deg, #16a085, #48c9b0, #16a085);
}

.modern-session.felsefe {
    background: linear-gradient(135deg, #34495e, #2c3e50);
    box-shadow: 0 8px 25px rgba(52, 73, 94, 0.3);
}

.modern-session.felsefe::before {
    background: linear-gradient(90deg, #34495e, #5d6d7e, #34495e);
}

.modern-session.edebiyat {
    background: linear-gradient(135deg, #e91e63, #c2185b);
    box-shadow: 0 8px 25px rgba(233, 30, 99, 0.3);
}

.modern-session.edebiyat::before {
    background: linear-gradient(90deg, #e91e63, #f48fb1, #e91e63);
}

.modern-session.geometri {
    background: linear-gradient(135deg, #ff5722, #e64a19);
    box-shadow: 0 8px 25px rgba(255, 87, 34, 0.3);
}

.modern-session.geometri::before {
    background: linear-gradient(90deg, #ff5722, #ff8a65, #ff5722);
}

/* Session header with modern layout */
.modern-session-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1em;
    position: relative;
    z-index: 2;
}

.modern-session-info {
    flex: 1;
}

.modern-session-subject {
    font-weight: 700;
    font-size: 1.3em;
    margin-bottom: 0.5em;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    gap: 0.5em;
}

.modern-session-time {
    display: flex;
    align-items: center;
    gap: 0.8em;
    margin-bottom: 0.5em;
}

.modern-time-badge {
    background: rgba(255, 255, 255, 0.25);
    padding: 0.4em 0.8em;
    border-radius: 20px;
    font-size: 0.9em;
    font-weight: 600;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.modern-time-separator {
    font-size: 1.2em;
    font-weight: bold;
    opacity: 0.8;
}

.modern-session-duration {
    font-size: 0.9em;
    opacity: 0.9;
    font-weight: 500;
    background: rgba(255, 255, 255, 0.15);
    padding: 0.3em 0.6em;
    border-radius: 12px;
    display: inline-block;
}

.modern-session-topic {
    font-size: 1em;
    margin-bottom: 0.8em;
    font-weight: 500;
    opacity: 0.95;
    line-height: 1.4;
}

.modern-session-notes {
    font-size: 0.9em;
    opacity: 0.85;
    background: rgba(255, 255, 255, 0.15);
    padding: 0.6em 1em;
    border-radius: 10px;
    margin-bottom: 1em;
    border-left: 3px solid rgba(255, 255, 255, 0.3);
    line-height: 1.4;
}

/* Modern session actions */
.modern-session-actions {
    display: flex;
    gap: 0.8em;
    margin-top: 1em;
    justify-content: flex-end;
    position: relative;
    z-index: 2;
}

.modern-complete-btn, .modern-delete-btn {
    padding: 10px 16px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 0.9em;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4em;
    backdrop-filter: blur(10px);
}

.modern-complete-btn {
    background: rgba(255, 255, 255, 0.25);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.modern-complete-btn:hover {
    background: rgba(255, 255, 255, 0.35);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.2);
}

.modern-delete-btn {
    background: rgba(231, 76, 60, 0.8);
    color: white;
    border: 1px solid rgba(231, 76, 60, 0.9);
}

.modern-delete-btn:hover {
    background: rgba(231, 76, 60, 0.9);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.4);
}

/* Modern completion indicator */
.modern-completion-indicator {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1em;
    font-weight: bold;
    background: rgba(255, 255, 255, 0.25);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.4);
    transition: all 0.3s ease;
    cursor: pointer;
    flex-shrink: 0;
    backdrop-filter: blur(10px);
}

.modern-completion-indicator:hover {
    background: rgba(255, 255, 255, 0.35);
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.2);
}

.modern-completion-indicator.completed {
    background: rgba(255, 255, 255, 0.9);
    color: var(--primary-color);
    border-color: rgba(255, 255, 255, 0.9);
}

.modern-completion-indicator.completed:hover {
    background: rgba(255, 255, 255, 1);
    transform: scale(1.1);
}

/* Weekly view modern sessions */
.modern-weekly-session {
    background: linear-gradient(135deg, var(--primary-color), #45a049);
    color: white;
    padding: 0.8em;
    border-radius: 10px;
    font-size: 0.8em;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    margin-bottom: 0.4em;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.25);
}

.modern-weekly-session::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
}

.modern-weekly-session:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.35);
}

.modern-weekly-session.completed {
    background: linear-gradient(135deg, #95a5a6, #7f8c8d);
    box-shadow: 0 4px 15px rgba(149, 165, 166, 0.25);
    opacity: 0.8;
}

/* Apply subject colors to weekly sessions too */
.modern-weekly-session.matematik {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.25);
}

.modern-weekly-session.fizik {
    background: linear-gradient(135deg, #3498db, #2980b9);
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.25);
}

.modern-weekly-session.kimya {
    background: linear-gradient(135deg, #9b59b6, #8e44ad);
    box-shadow: 0 4px 15px rgba(155, 89, 182, 0.25);
}

.modern-weekly-session.biyoloji {
    background: linear-gradient(135deg, #27ae60, #229954);
    box-shadow: 0 4px 15px rgba(39, 174, 96, 0.25);
}

.modern-weekly-session.turkce {
    background: linear-gradient(135deg, #f39c12, #e67e22);
    box-shadow: 0 4px 15px rgba(243, 156, 18, 0.25);
}

.modern-weekly-session.tarih {
    background: linear-gradient(135deg, #8b4513, #a0522d);
    box-shadow: 0 4px 15px rgba(139, 69, 19, 0.25);
}

.modern-weekly-session.cografya {
    background: linear-gradient(135deg, #16a085, #138d75);
    box-shadow: 0 4px 15px rgba(22, 160, 133, 0.25);
}

.modern-weekly-session.felsefe {
    background: linear-gradient(135deg, #34495e, #2c3e50);
    box-shadow: 0 4px 15px rgba(52, 73, 94, 0.25);
}

.modern-weekly-session.edebiyat {
    background: linear-gradient(135deg, #e91e63, #c2185b);
    box-shadow: 0 4px 15px rgba(233, 30, 99, 0.25);
}

.modern-weekly-session.geometri {
    background: linear-gradient(135deg, #ff5722, #e64a19);
    box-shadow: 0 4px 15px rgba(255, 87, 34, 0.25);
}

.modern-weekly-session-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.4em;
}

.modern-weekly-session-time {
    display: flex;
    align-items: center;
    gap: 0.3em;
}

.modern-weekly-time-badge {
    background: rgba(255, 255, 255, 0.25);
    padding: 0.2em 0.5em;
    border-radius: 8px;
    font-size: 0.75em;
    font-weight: 600;
    backdrop-filter: blur(5px);
}

.modern-weekly-session-actions {
    display: flex;
    gap: 0.3em;
    align-items: center;
}

.modern-weekly-complete-btn, .modern-weekly-delete-btn {
    width: 22px;
    height: 22px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8em;
    font-weight: bold;
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
    flex-shrink: 0;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.25);
    color: white;
    backdrop-filter: blur(5px);
}

.modern-weekly-complete-btn:hover {
    background: rgba(255, 255, 255, 0.35);
    transform: scale(1.1);
}

.modern-weekly-delete-btn {
    background: rgba(231, 76, 60, 0.7);
    border-color: rgba(231, 76, 60, 0.8);
}

.modern-weekly-delete-btn:hover {
    background: rgba(231, 76, 60, 0.9);
    border-color: rgba(231, 76, 60, 1);
    transform: scale(1.1);
}

.modern-weekly-complete-btn.completed {
    background: rgba(255, 255, 255, 0.9);
    color: var(--primary-color);
    border-color: rgba(255, 255, 255, 0.9);
}

.modern-weekly-session .modern-session-subject {
    font-weight: 600;
    margin-bottom: 0.3em;
    font-size: 0.9em;
    line-height: 1.2;
}

.modern-weekly-session .modern-session-topic {
    font-size: 0.8em;
    opacity: 0.9;
    font-weight: 400;
    line-height: 1.2;
    margin-bottom: 0;
}

/* Responsive adjustments for modern sessions */
@media (max-width: 768px) {
    .modern-session {
        padding: 1.2em;
    }
    
    .modern-session-subject {
        font-size: 1.2em;
    }
    
    .modern-session-time {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5em;
    }
    
    .modern-session-actions {
        flex-direction: column;
        gap: 0.5em;
    }
    
    .modern-complete-btn, .modern-delete-btn {
        width: 100%;
        justify-content: center;
    }
    
    .modern-weekly-session {
        padding: 0.6em;
    }
}

@media (max-width: 480px) {
    .modern-session {
        padding: 1em;
    }
    
    .modern-session-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.8em;
    }
    
    .modern-completion-indicator {
        align-self: flex-end;
    }
    
    .modern-time-badge {
        font-size: 0.8em;
        padding: 0.3em 0.6em;
    }
}


/* Responsive Design for Floating Buttons */
@media (max-width: 768px) {
    .floating-buttons {
        bottom: 20px;
        right: 20px;
        gap: 12px;
    }
    
    .floating-donate-btn,
    .floating-chatbot-btn {
        width: 60px;
        height: 60px;
    }
    
    .floating-donate-icon {
        font-size: 1.8em;
    }
    
    .floating-donate-text {
        font-size: 0.6em;
    }
    
    .floating-robot-head {
        width: 30px;
        height: 22px;
    }
    
    .floating-robot-body {
        width: 22px;
        height: 18px;
    }
    
    .floating-robot-eye {
        width: 5px;
        height: 5px;
    }
    
    .floating-robot-mouth {
        width: 10px;
        height: 2px;
    }
    
    .floating-robot-chest {
        width: 7px;
        height: 7px;
    }
}

@media (max-width: 480px) {
    .floating-buttons {
        bottom: 15px;
        right: 15px;
        gap: 10px;
    }
    
    .floating-donate-btn,
    .floating-chatbot-btn {
        width: 55px;
        height: 55px;
    }
    
    .floating-donate-icon {
        font-size: 1.6em;
    }
    
    .floating-donate-text {
        font-size: 0.55em;
    }
    
    .floating-robot-head {
        width: 28px;
        height: 20px;
    }
    
    .floating-robot-body {
        width: 20px;
        height: 16px;
    }
    
    .floating-robot-eye {
        width: 4px;
        height: 4px;
    }
    
    .floating-robot-mouth {
        width: 8px;
        height: 2px;
    }
    
    .floating-robot-chest {
        width: 6px;
        height: 6px;
    }
}

/* Hover effects for floating buttons */
.floating-donate-btn:hover {
    animation-play-state: paused;
}

.floating-chatbot-btn:hover {
    animation-play-state: paused;
}

/* Ensure floating buttons don't interfere with other elements */
.floating-donate-btn,
.floating-chatbot-btn {
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}


/* Enhanced Responsive Design for Donate Modal */
@media (max-width: 768px) {
    .donate-modal-content {
        width: 96%;
        margin: 15px;
        border-radius: 20px;
        max-height: 92vh;
    }
    
    .donate-header {
        padding: 25px 20px;
        border-radius: 20px 20px 0 0;
    }
    
    .donate-header h2 {
        font-size: 1.5em;
    }
    
    .donate-content {
        padding: 25px 20px;
    }
    
    .donate-message {
        padding: 20px;
        margin-bottom: 25px;
    }
    
    .donate-message p {
        font-size: 1.05em;
    }
    
    .donation-methods {
        gap: 25px;
        margin-bottom: 25px;
    }
    
    .donation-method {
        padding: 25px 20px;
        border-radius: 16px;
    }
    
    .donation-method h3 {
        font-size: 1.25em;
        margin-bottom: 18px;
    }
    
    .iban-container,
    .papara-container {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }
    
    .iban-container input,
    .papara-container input {
        padding: 14px 18px;
        font-size: 1em;
        text-align: center;
    }
    
    .copy-btn {
        width: 100%;
        padding: 16px 20px;
        font-size: 1em;
        min-width: auto;
        justify-content: center;
    }
    
    .bank-info,
    .papara-info {
        font-size: 0.9em;
        padding: 10px 15px;
    }
    
    .donate-footer {
        padding: 20px;
        margin-top: 20px;
    }
    
    .copy-notification {
        right: 15px;
        left: 15px;
        max-width: none;
        transform: translateY(-100%);
        border-radius: 12px;
    }
    
    .copy-notification.show {
        transform: translateY(0);
    }
    
    .copy-notification.fade-out {
        transform: translateY(-100%);
    }
}

@media (max-width: 480px) {
    .donate-modal-content {
        width: 98%;
        margin: 10px;
        border-radius: 18px;
        max-height: 95vh;
    }
    
    .donate-header {
        padding: 20px 15px;
        border-radius: 18px 18px 0 0;
    }
    
    .donate-header h2 {
        font-size: 1.4em;
        line-height: 1.2;
    }
    
    .donate-content {
        padding: 20px 15px;
    }
    
    .donate-message {
        padding: 18px 15px;
        margin-bottom: 20px;
        border-radius: 14px;
    }
    
    .donate-message p {
        font-size: 1em;
        line-height: 1.5;
        margin-bottom: 15px;
    }
    
    .donate-message p:last-child {
        font-size: 1.1em;
    }
    
    .donation-methods {
        gap: 20px;
        margin-bottom: 20px;
    }
    
    .donation-method {
        padding: 20px 15px;
        border-radius: 14px;
    }
    
    .donation-method h3 {
        font-size: 1.2em;
        margin-bottom: 15px;
        gap: 8px;
    }
    
    .iban-container,
    .papara-container {
        gap: 12px;
    }
    
    .iban-container input,
    .papara-container input {
        padding: 14px 16px;
        font-size: 0.95em;
        letter-spacing: 0.8px;
        border-radius: 10px;
    }
    
    .copy-btn {
        padding: 14px 18px;
        font-size: 0.95em;
        border-radius: 10px;
    }
    
    .bank-info,
    .papara-info {
        font-size: 0.85em;
        padding: 8px 12px;
        border-radius: 6px;
    }
    
    .donate-footer {
        padding: 18px 15px;
        border-radius: 14px;
    }
    
    .donate-footer p {
        font-size: 0.95em;
        margin-bottom: 10px;
    }
    
    .donate-footer p:last-child {
        font-size: 1.05em;
    }
}

@media (max-width: 360px) {
    .donate-modal-content {
        width: 99%;
        margin: 5px;
        border-radius: 16px;
    }
    
    .donate-header {
        padding: 18px 12px;
        border-radius: 16px 16px 0 0;
    }
    
    .donate-header h2 {
        font-size: 1.3em;
    }
    
    .donate-content {
        padding: 18px 12px;
    }
    
    .donate-message {
        padding: 15px 12px;
        margin-bottom: 18px;
    }
    
    .donation-method {
        padding: 18px 12px;
    }
    
    .donation-method h3 {
        font-size: 1.15em;
    }
    
    .iban-container input,
    .papara-container input {
        padding: 12px 14px;
        font-size: 0.9em;
        letter-spacing: 0.5px;
    }
    
    .copy-btn {
        padding: 12px 16px;
        font-size: 0.9em;
    }
    
    .donate-footer {
        padding: 15px 12px;
    }
}

/* Level Progress Bar in Profile Section */
.level-progress-section {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(15px);
    border-radius: 16px;
    padding: 1.5em;
    margin-bottom: 1.5em;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.level-progress-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.05) 0%, rgba(155, 89, 182, 0.05) 100%);
    pointer-events: none;
    border-radius: 16px;
}

.level-progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1em;
    position: relative;
    z-index: 1;
}

.current-level-display {
    font-size: 1.4em;
    font-weight: 700;
    color: var(--accent-color);
    display: flex;
    align-items: center;
    gap: 0.5em;
}

.level-icon {
    font-size: 1.2em;
    color: #FFD700;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.next-level-info {
    font-size: 1em;
    color: var(--light-text-color);
    text-align: right;
}

.level-progress-bar-container {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 15px;
    height: 12px;
    overflow: hidden;
    margin-bottom: 0.8em;
    position: relative;
    z-index: 1;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.level-progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-color), #2980b9, #9b59b6);
    border-radius: 15px;
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 15px rgba(52, 152, 219, 0.4);
    animation: levelProgressGlow 2s ease-in-out infinite alternate;
    position: relative;
    overflow: hidden;
}

.level-progress-bar-fill::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    animation: levelProgressShine 2s ease-in-out infinite;
}

@keyframes levelProgressShine {
    0% { left: -100%; }
    100% { left: 100%; }
}

.level-progress-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9em;
    color: var(--text-color);
    position: relative;
    z-index: 1;
}

.current-xp {
    font-weight: 600;
    color: var(--accent-color);
}

.xp-needed {
    font-weight: 500;
    color: var(--light-text-color);
}

.level-progress-percentage {
    font-weight: 700;
    color: var(--primary-color);
    font-size: 1.1em;
}

/* Weekly Quests Section */
.weekly-quests-section {
    margin-bottom: 2em;
}

.weekly-quests-section h3 {
    color: var(--secondary-color);
    font-size: 1.6em;
    font-weight: 600;
    margin-bottom: 1.5em;
    text-align: center;
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 0.5em;
}

.weekly-quests-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5em;
}

.weekly-quest-item {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(15px);
    border-radius: 16px;
    padding: 1.5em;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.weekly-quest-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(135deg, #FF6B35, #F7931E);
    transition: width 0.3s ease;
}

.weekly-quest-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15);
}

.weekly-quest-item:hover::before {
    width: 6px;
}

.weekly-quest-item.completed {
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.1), rgba(129, 199, 132, 0.05));
    border-color: rgba(76, 175, 80, 0.3);
}

.weekly-quest-item.completed::before {
    background: linear-gradient(135deg, var(--primary-color), #45a049);
}

.weekly-quest-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1em;
}

.weekly-quest-info {
    flex: 1;
}

.weekly-quest-title {
    font-size: 1.2em;
    font-weight: 600;
    color: var(--secondary-color);
    margin: 0 0 0.5em 0;
    line-height: 1.3;
}

.weekly-quest-description {
    font-size: 0.95em;
    color: var(--light-text-color);
    line-height: 1.4;
    margin: 0 0 1em 0;
}

.weekly-quest-reward {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: white;
    padding: 0.4em 0.8em;
    border-radius: 20px;
    font-size: 0.85em;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    box-shadow: 0 2px 8px rgba(255, 215, 0, 0.3);
    display: inline-block;
}

.weekly-quest-progress {
    margin-top: 1em;
}

.weekly-progress-bar {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    height: 8px;
    overflow: hidden;
    margin-bottom: 0.5em;
}

.weekly-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #FF6B35, #F7931E);
    border-radius: 10px;
    transition: width 0.5s ease;
    box-shadow: 0 0 10px rgba(255, 107, 53, 0.4);
}

.weekly-quest-item.completed .weekly-progress-fill {
    background: linear-gradient(90deg, var(--primary-color), #45a049);
    box-shadow: 0 0 10px rgba(76, 175, 80, 0.4);
}

.weekly-progress-text {
    font-size: 0.85em;
    color: var(--light-text-color);
    text-align: center;
    font-weight: 500;
}

/* Enhanced Achievement Cards with Better Spacing */
.achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2em;
    margin-bottom: 2em;
}

.achievement-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 2em;
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.achievement-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    pointer-events: none;
    border-radius: 20px;
}

.achievement-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    border-color: rgba(255, 255, 255, 0.5);
}

.achievement-card.unlocked {
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.15), rgba(129, 199, 132, 0.1));
    border-color: rgba(76, 175, 80, 0.4);
    animation: achievementUnlockPulse 2s ease-in-out infinite;
}

@keyframes achievementUnlockPulse {
    0%, 100% {
        box-shadow: 0 10px 30px rgba(76, 175, 80, 0.2);
    }
    50% {
        box-shadow: 0 15px 40px rgba(76, 175, 80, 0.4);
    }
}

.achievement-card.locked {
    background: rgba(255, 255, 255, 0.6);
    border-color: rgba(0, 0, 0, 0.1);
    opacity: 0.7;
}

.achievement-header {
    display: flex;
    align-items: center;
    gap: 1.5em;
    margin-bottom: 1.5em;
    position: relative;
    z-index: 1;
}

.achievement-icon {
    font-size: 3em;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--accent-color), #2980b9);
    color: white;
    box-shadow: 0 8px 25px rgba(52, 152, 219, 0.4);
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
}

.achievement-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: achievementIconShine 3s ease-in-out infinite;
}

@keyframes achievementIconShine {
    0% { left: -100%; }
    100% { left: 100%; }
}

.achievement-card.unlocked .achievement-icon {
    background: linear-gradient(135deg, var(--primary-color), #45a049);
    box-shadow: 0 8px 25px rgba(76, 175, 80, 0.5);
    animation: achievementIconPulse 2s ease-in-out infinite;
}

@keyframes achievementIconPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.achievement-card.locked .achievement-icon {
    background: linear-gradient(135deg, #95a5a6, #7f8c8d);
    box-shadow: 0 8px 25px rgba(149, 165, 166, 0.3);
}

.achievement-info {
    flex: 1;
}

.achievement-title {
    font-size: 1.4em;
    font-weight: 700;
    color: var(--secondary-color);
    margin: 0 0 0.5em 0;
    line-height: 1.2;
}

.achievement-description {
    font-size: 1em;
    color: var(--light-text-color);
    line-height: 1.5;
    margin: 0;
}

.achievement-progress {
    margin-top: 1.5em;
    position: relative;
    z-index: 1;
}

.progress-bar-container {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    height: 10px;
    overflow: hidden;
    margin-bottom: 0.8em;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), #45a049, #66BB6A);
    border-radius: 12px;
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 15px rgba(76, 175, 80, 0.4);
    position: relative;
    overflow: hidden;
}

.progress-bar-fill::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    animation: progressShine 2s ease-in-out infinite;
}

@keyframes progressShine {
    0% { left: -100%; }
    100% { left: 100%; }
}

.achievement-card.locked .progress-bar-fill {
    background: linear-gradient(90deg, #95a5a6, #7f8c8d);
    box-shadow: 0 0 15px rgba(149, 165, 166, 0.3);
}

.progress-text {
    font-size: 0.9em;
    color: var(--light-text-color);
    text-align: center;
    font-weight: 500;
}

/* Dark Mode Enhancements */
[data-theme="dark"] .level-progress-section,
[data-theme="dark"] .weekly-quest-item,
[data-theme="dark"] .achievement-card {
    background: var(--card-bg);
    border-color: var(--border-color);
}

[data-theme="dark"] .level-progress-section::before,
[data-theme="dark"] .achievement-card::before {
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.1) 0%, rgba(155, 89, 182, 0.1) 100%);
}

[data-theme="dark"] .current-level-display,
[data-theme="dark"] .achievement-title,
[data-theme="dark"] .weekly-quest-title {
    color: var(--text-color);
}

[data-theme="dark"] .level-progress-bar-container,
[data-theme="dark"] .progress-bar-container,
[data-theme="dark"] .weekly-progress-bar {
    background: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .weekly-quest-item {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--border-color);
}

[data-theme="dark"] .weekly-quest-item:hover {
    background: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .achievement-card.locked {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.1);
}

/* Responsive Design for New Components */
@media (max-width: 768px) {
    .level-progress-section {
        padding: 1.2em;
        margin-bottom: 1.2em;
    }
    
    .level-progress-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5em;
    }
    
    .next-level-info {
        text-align: left;
    }
    
    .current-level-display {
        font-size: 1.2em;
    }
    
    .weekly-quests-grid {
        grid-template-columns: 1fr;
        gap: 1.2em;
    }
    
    .weekly-quest-item {
        padding: 1.2em;
    }
    
    .achievements-grid {
        grid-template-columns: 1fr;
        gap: 1.5em;
    }
    
    .achievement-card {
        padding: 1.5em;
    }
    
    .achievement-header {
        flex-direction: column;
        text-align: center;
        gap: 1em;
    }
    
    .achievement-icon {
        font-size: 2.5em;
        width: 70px;
        height: 70px;
    }
}

@media (max-width: 480px) {
    .level-progress-section {
        padding: 1em;
    }
    
    .current-level-display {
        font-size: 1.1em;
    }
    
    .level-progress-details {
        flex-direction: column;
        gap: 0.5em;
        text-align: center;
    }
    
    .weekly-quest-item {
        padding: 1em;
    }
    
    .weekly-quest-title {
        font-size: 1.1em;
    }
    
    .achievement-card {
        padding: 1.2em;
    }
    
    .achievement-icon {
        font-size: 2.2em;
        width: 60px;
        height: 60px;
    }
    
    .achievement-title {
        font-size: 1.2em;
    }
}

/* Modern Control Button Styles for Planner */
.control-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 12px;
    cursor: pointer;
    font-size: 0.95em;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    text-align: center;
    white-space: nowrap;
}

.control-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.control-btn:hover::before {
    left: 100%;
}

.control-btn:hover {
    background: linear-gradient(135deg, #5a67d8 0%, #6b46c1 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.control-btn:active {
    transform: translateY(0);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

/* Modern Navigation Button Styles for Planner */
.nav-btn {
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    color: white;
    border: none;
    padding: 12px 18px;
    border-radius: 12px;
    cursor: pointer;
    font-size: 0.95em;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 44px;
    text-align: center;
    white-space: nowrap;
}

.nav-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.nav-btn:hover::before {
    left: 100%;
}

.nav-btn:hover {
    background: linear-gradient(135deg, #45a049 0%, #3d8b40 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(76, 175, 80, 0.4);
}

.nav-btn:active {
    transform: translateY(0);
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
}

/* Special styling for previous/next week buttons */
.nav-btn.prev-week {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
}

.nav-btn.prev-week:hover {
    background: linear-gradient(135deg, #2980b9 0%, #1976d2 100%);
    box-shadow: 0 8px 25px rgba(52, 152, 219, 0.4);
}

.nav-btn.next-week {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.3);
}

.nav-btn.next-week:hover {
    background: linear-gradient(135deg, #c0392b 0%, #a93226 100%);
    box-shadow: 0 8px 25px rgba(231, 76, 60, 0.4);
}

/* Responsive design for control and nav buttons */
@media (max-width: 768px) {
    .control-btn,
    .nav-btn {
        padding: 10px 16px;
        font-size: 0.9em;
        min-height: 40px;
    }
}

@media (max-width: 480px) {
    .control-btn,
    .nav-btn {
        padding: 8px 14px;
        font-size: 0.85em;
        min-height: 36px;
        gap: 4px;
    }
}

/* Dark mode support for control and nav buttons */
[data-theme="dark"] .control-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

[data-theme="dark"] .control-btn:hover {
    background: linear-gradient(135deg, #5a67d8 0%, #6b46c1 100%);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.5);
}

[data-theme="dark"] .nav-btn {
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.4);
}

[data-theme="dark"] .nav-btn:hover {
    background: linear-gradient(135deg, #45a049 0%, #3d8b40 100%);
    box-shadow: 0 8px 25px rgba(76, 175, 80, 0.5);
}

[data-theme="dark"] .nav-btn.prev-week {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.4);
}

[data-theme="dark"] .nav-btn.prev-week:hover {
    background: linear-gradient(135deg, #2980b9 0%, #1976d2 100%);
    box-shadow: 0 8px 25px rgba(52, 152, 219, 0.5);
}

[data-theme="dark"] .nav-btn.next-week {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.4);
}

[data-theme="dark"] .nav-btn.next-week:hover {
    background: linear-gradient(135deg, #c0392b 0%, #a93226 100%);
    box-shadow: 0 8px 25px rgba(231, 76, 60, 0.5);
}

/* Week Navigation Layout */
.week-navigation {
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: center;
    margin-bottom: 1em;
}

.planner-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 1.5em;
}

.planner-header h3 {
    margin: 0;
    font-size: 1.3em;
    color: var(--text-color);
    text-align: center;
}

/* Responsive design for week navigation */
@media (max-width: 768px) {
    .week-navigation {
        gap: 8px;
    }
    
    .week-navigation .nav-btn {
        padding: 10px 14px;
        font-size: 0.9em;
    }
}

@media (max-width: 480px) {
    .week-navigation {
        gap: 6px;
        flex-wrap: wrap;
    }
    
    .week-navigation .nav-btn {
        padding: 8px 12px;
        font-size: 0.85em;
        flex: 1;
        min-width: 120px;
    }
}

/* Modern Notification Button Styles */
.notification-btn {
    position: relative;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    backdrop-filter: blur(10px);
    overflow: hidden;
    margin-right: 10px;
}

.notification-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.notification-btn:hover::before {
    left: 100%;
}

.notification-btn:hover {
    background: linear-gradient(135deg, #5a67d8 0%, #6b46c1 100%);
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.notification-btn:active {
    transform: translateY(0) scale(1);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.notification-icon {
    font-size: 1.2em;
    z-index: 2;
}

.notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: 0.7em;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid white;
    box-shadow: 0 2px 8px rgba(231, 76, 60, 0.3);
    z-index: 3;
    transition: all 0.3s ease;
}

.notification-badge.hidden {
    opacity: 0;
    transform: scale(0);
}

.notification-badge.pulse {
    animation: notificationPulse 2s infinite;
}

@keyframes notificationPulse {
    0% {
        transform: scale(1);
        box-shadow: 0 2px 8px rgba(231, 76, 60, 0.3);
    }
    50% {
        transform: scale(1.1);
        box-shadow: 0 4px 15px rgba(231, 76, 60, 0.5);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 2px 8px rgba(231, 76, 60, 0.3);
    }
}

/* Dark mode support for notification button */
[data-theme="dark"] .notification-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

[data-theme="dark"] .notification-btn:hover {
    background: linear-gradient(135deg, #5a67d8 0%, #6b46c1 100%);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.5);
}

[data-theme="dark"] .notification-badge {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    border-color: var(--bg-color);
    box-shadow: 0 2px 8px rgba(231, 76, 60, 0.4);
}

/* Responsive design for notification button */
@media (max-width: 768px) {
    .notification-btn {
        width: 36px;
        height: 36px;
        margin-right: 8px;
    }
    
    .notification-icon {
        font-size: 1.1em;
    }
    
    .notification-badge {
        width: 16px;
        height: 16px;
        font-size: 0.65em;
        top: -4px;
        right: -4px;
    }
}

@media (max-width: 480px) {
    .notification-btn {
        width: 32px;
        height: 32px;
        margin-right: 6px;
    }
    
    .notification-icon {
        font-size: 1em;
    }
    
    .notification-badge {
        width: 14px;
        height: 14px;
        font-size: 0.6em;
        top: -3px;
        right: -3px;
    }
}

/* Modern Notification Styles */
.modern-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 12px;
    padding: 0;
    box-shadow: 0 8px 32px rgba(102, 126, 234, 0.3);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    min-width: 320px;
    max-width: 400px;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10003;
    overflow: hidden;
    pointer-events: auto;
}

.modern-notification.show {
    opacity: 1;
    transform: translateX(0);
}

.modern-notification.fade-out {
    opacity: 0;
    transform: translateX(100%);
}

.modern-notification.quest-notification {
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    box-shadow: 0 8px 32px rgba(76, 175, 80, 0.3);
}

.modern-notification.level-notification {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    box-shadow: 0 8px 32px rgba(255, 215, 0, 0.3);
}

.modern-notification.streak-notification {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    box-shadow: 0 8px 32px rgba(231, 76, 60, 0.3);
}

.notification-content {
    display: flex;
    align-items: flex-start;
    padding: 16px;
    gap: 12px;
    position: relative;
}

.notification-icon {
    font-size: 2em;
    flex-shrink: 0;
    margin-top: 4px;
}

.notification-text {
    flex: 1;
    min-width: 0;
}

.notification-title {
    font-weight: 600;
    font-size: 1.1em;
    margin-bottom: 4px;
    line-height: 1.3;
}

.notification-description {
    font-size: 0.9em;
    opacity: 0.9;
    line-height: 1.4;
    margin-bottom: 6px;
}

.notification-reward {
    font-size: 0.85em;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.2);
    padding: 4px 8px;
    border-radius: 6px;
    display: inline-block;
    margin-top: 4px;
}

.notification-close {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.2em;
    transition: all 0.2s ease;
}

.notification-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.notification-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: rgba(255, 255, 255, 0.3);
    width: 100%;
    animation: notificationProgress 5s linear;
}

@keyframes notificationProgress {
    from {
        width: 100%;
    }
    to {
        width: 0%;
    }
}

/* Notification Panel Styles */
.notification-panel {
    position: fixed;
    top: 70px;
    right: 20px;
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    width: 350px;
    max-height: 500px;
    opacity: 0;
    transform: translateY(-20px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10003;
    overflow: hidden;
    pointer-events: auto;
}

.notification-panel.show {
    opacity: 1;
    transform: translateY(0);
}

.notification-panel.fade-out {
    opacity: 0;
    transform: translateY(-20px);
}

.notification-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
}

.notification-panel-header h3 {
    margin: 0;
    font-size: 1.1em;
    font-weight: 600;
}

.close-panel-btn {
    background: none;
    border: none;
    color: white;
    font-size: 1.5em;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.close-panel-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.notification-panel-content {
    max-height: 400px;
    overflow-y: auto;
    padding: 16px 20px;
}

.notification-section h4 {
    margin: 0 0 12px 0;
    font-size: 1em;
    color: var(--text-color);
    font-weight: 600;
}

.notification-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
}

.notification-item:last-child {
    border-bottom: none;
}

.notification-item-icon {
    font-size: 1.5em;
    flex-shrink: 0;
}

.notification-item-text {
    flex: 1;
    min-width: 0;
}

.notification-item-title {
    font-weight: 600;
    font-size: 0.95em;
    color: var(--text-color);
    margin-bottom: 2px;
}

.notification-item-desc {
    font-size: 0.85em;
    color: var(--text-secondary);
    line-height: 1.3;
}

.no-notifications {
    text-align: center;
    padding: 40px 20px;
}

.no-notifications-icon {
    font-size: 3em;
    margin-bottom: 12px;
    opacity: 0.5;
}

.no-notifications-text {
    font-size: 1.1em;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 6px;
}

.no-notifications-subtext {
    font-size: 0.9em;
    color: var(--text-secondary);
    line-height: 1.4;
}

/* Quest Completed Fade Effect */
.quest-completed-fade {
    opacity: 0.6 !important;
    transform: scale(0.95) !important;
    filter: grayscale(0.3);
}

.quest-completed-fade .goal-checkbox,
.quest-completed-fade .quest-checkbox {
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%) !important;
    color: white !important;
}

/* Dark mode support for notifications */
[data-theme="dark"] .notification-panel {
    background: var(--bg-color);
    border-color: var(--border-color);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .notification-item {
    border-color: var(--border-color);
}

/* Responsive design for notifications */
@media (max-width: 768px) {
    .modern-notification {
        right: 10px;
        left: 10px;
        min-width: auto;
        max-width: none;
    }
    
    .notification-panel {
        right: 10px;
        left: 10px;
        width: auto;
    }
    
    .notification-content {
        padding: 12px;
        gap: 10px;
    }
    
    .notification-icon {
        font-size: 1.8em;
    }
}

@media (max-width: 480px) {
    .modern-notification {
        top: 10px;
    }
    
    .notification-panel {
        top: 60px;
    }
    
    .notification-content {
        padding: 10px;
    }
    
    .notification-panel-content {
        padding: 12px 16px;
    }
}


/* Enhanced Notification Panel Styles */
.notification-panel {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 16px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    width: 380px;
    max-height: 500px;
    opacity: 0;
    transform: translateY(20px) scale(0.95);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10004;
    overflow: hidden;
    pointer-events: none;
}

.notification-panel.show {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.notification-panel.fade-out {
    opacity: 0;
    transform: translateY(20px) scale(0.95);
    pointer-events: none;
}

.notification-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 16px 16px 0 0;
    position: relative;
    overflow: hidden;
}

.notification-panel-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255,255,255,0.1) 50%, transparent 70%);
    animation: headerShine 3s ease-in-out infinite;
}

@keyframes headerShine {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.notification-panel-title {
    margin: 0;
    font-size: 1.2em;
    font-weight: 700;
    z-index: 1;
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
}

.notification-panel-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 1.4em;
    cursor: pointer;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 1;
    position: relative;
}

.notification-panel-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1) rotate(90deg);
}

.notification-panel-content {
    max-height: 400px;
    overflow-y: auto;
    padding: 0;
}

.notification-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.notification-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 20px 24px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    position: relative;
    background: rgba(255, 255, 255, 0.5);
}

.notification-item:hover {
    background: rgba(52, 152, 219, 0.05);
    transform: translateX(3px);
}

.notification-item:last-child {
    border-bottom: none;
    border-radius: 0 0 16px 16px;
}

.notification-item.friend-request {
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.08), rgba(129, 199, 132, 0.05));
    border-left: 4px solid var(--primary-color);
}

.notification-item.friend-request:hover {
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.12), rgba(129, 199, 132, 0.08));
}

.notification-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-color), #2980b9);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 1.2em;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
    position: relative;
    overflow: hidden;
}

.notification-avatar::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: avatarShine 2s ease-in-out infinite;
}

@keyframes avatarShine {
    0% { left: -100%; }
    100% { left: 100%; }
}

.notification-content {
    flex: 1;
    min-width: 0;
}

.notification-sender {
    font-size: 1.1em;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 4px;
    line-height: 1.2;
}

.notification-message {
    font-size: 0.95em;
    color: var(--light-text-color);
    line-height: 1.4;
    margin-bottom: 12px;
}

.notification-time {
    font-size: 0.8em;
    color: var(--light-text-color);
    opacity: 0.7;
    margin-bottom: 12px;
}

.notification-actions {
    display: flex;
    gap: 8px;
    margin-top: 8px;
}

.notification-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.85em;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-width: 80px;
}

.notification-btn.accept {
    background: linear-gradient(135deg, var(--primary-color), #45a049);
    color: white;
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.3);
}

.notification-btn.accept:hover {
    background: linear-gradient(135deg, #45a049, #3d8b40);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.4);
}

.notification-btn.reject {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
    box-shadow: 0 2px 8px rgba(231, 76, 60, 0.3);
}

.notification-btn.reject:hover {
    background: linear-gradient(135deg, #c0392b, #a93226);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.4);
}

.notification-btn:active {
    transform: translateY(0);
}

.no-notifications {
    text-align: center;
    padding: 60px 24px;
    color: var(--light-text-color);
}

.no-notifications-icon {
    font-size: 4em;
    margin-bottom: 16px;
    opacity: 0.3;
    color: var(--accent-color);
}

.no-notifications-title {
    font-size: 1.2em;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 8px;
}

.no-notifications-subtitle {
    font-size: 0.95em;
    line-height: 1.4;
    opacity: 0.8;
}

/* Notification Badge Enhancement - Updated with better z-index and pointer events */
.notification-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 0.7em;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid white;
    box-shadow: 0 2px 8px rgba(231, 76, 60, 0.4);
    z-index: 1000;
    transition: all 0.3s ease;
    animation: badgePulse 2s infinite;
    pointer-events: none; /* Don't interfere with button clicks */
}

@keyframes badgePulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 2px 8px rgba(231, 76, 60, 0.4);
    }
    50% {
        transform: scale(1.1);
        box-shadow: 0 4px 15px rgba(231, 76, 60, 0.6);
    }
}

.notification-badge.hidden {
    opacity: 0;
    transform: scale(0);
    pointer-events: none;
}

/* Dark Mode Notification Panel Styles */
[data-theme="dark"] .notification-panel {
    background: rgba(45, 45, 45, 0.98);
    border-color: var(--border-color);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] .notification-item {
    background: rgba(255, 255, 255, 0.03);
    border-bottom-color: var(--border-color);
}

[data-theme="dark"] .notification-item:hover {
    background: rgba(52, 152, 219, 0.1);
}

[data-theme="dark"] .notification-item.friend-request {
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.1), rgba(129, 199, 132, 0.05));
    border-left-color: var(--primary-color);
}

[data-theme="dark"] .notification-item.friend-request:hover {
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.15), rgba(129, 199, 132, 0.08));
}

[data-theme="dark"] .notification-sender {
    color: var(--text-color);
}

[data-theme="dark"] .notification-message,
[data-theme="dark"] .notification-time {
    color: var(--light-text-color);
}

[data-theme="dark"] .no-notifications-title {
    color: var(--text-color);
}

[data-theme="dark"] .notification-badge {
    border-color: var(--bg-color);
}

/* Responsive Design for Notification Panel */
@media (max-width: 768px) {
    .notification-panel {
        bottom: 10px;
        right: 10px;
        left: 10px;
        width: auto;
        max-width: none;
    }
    
    .notification-panel-header {
        padding: 16px 20px;
    }
    
    .notification-panel-title {
        font-size: 1.1em;
    }
    
    .notification-item {
        padding: 16px 20px;
        gap: 12px;
    }
    
    .notification-avatar {
        width: 42px;
        height: 42px;
        font-size: 1.1em;
    }
    
    .notification-sender {
        font-size: 1em;
    }
    
    .notification-message {
        font-size: 0.9em;
    }
    
    .notification-actions {
        gap: 6px;
    }
    
    .notification-btn {
        padding: 6px 12px;
        font-size: 0.8em;
        min-width: 70px;
    }
    
    .no-notifications {
        padding: 40px 20px;
    }
    
    .no-notifications-icon {
        font-size: 3em;
    }
}

@media (max-width: 480px) {
    .notification-panel {
        bottom: 5px;
        right: 5px;
        left: 5px;
        border-radius: 12px;
    }
    
    .notification-panel-header {
        padding: 14px 16px;
        border-radius: 12px 12px 0 0;
    }
    
    .notification-panel-title {
        font-size: 1em;
    }
    
    .notification-panel-close {
        width: 28px;
        height: 28px;
        font-size: 1.2em;
    }
    
    .notification-item {
        padding: 14px 16px;
        gap: 10px;
    }
    
    .notification-avatar {
        width: 38px;
        height: 38px;
        font-size: 1em;
    }
    
    .notification-sender {
        font-size: 0.95em;
    }
    
    .notification-message {
        font-size: 0.85em;
    }
    
    .notification-time {
        font-size: 0.75em;
    }
    
    .notification-actions {
        flex-direction: column;
        gap: 8px;
    }
    
    .notification-btn {
        width: 100%;
        padding: 8px 12px;
        font-size: 0.85em;
        min-width: auto;
    }
    
    .no-notifications {
        padding: 30px 16px;
    }
    
    .no-notifications-icon {
        font-size: 2.5em;
    }
    
    .no-notifications-title {
        font-size: 1.1em;
    }
    
    .no-notifications-subtitle {
        font-size: 0.9em;
    }
}

/* Animation for notification items appearing */
.notification-item.new-notification {
    animation: notificationSlideIn 0.5s ease-out;
}

@keyframes notificationSlideIn {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Animation for notification items being removed */
.notification-item.removing {
    animation: notificationSlideOut 0.3s ease-in forwards;
}

@keyframes notificationSlideOut {
    from {
        opacity: 1;
        transform: translateX(0);
        max-height: 100px;
        padding-top: 20px;
        padding-bottom: 20px;
        margin-bottom: 0;
    }
    to {
        opacity: 0;
        transform: translateX(20px);
        max-height: 0;
        padding-top: 0;
        padding-bottom: 0;
        margin-bottom: 0;
    }
}

/* Enhanced notification button hover effects */
.notification-btn {
    position: relative;
    overflow: hidden;
}

.notification-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.notification-btn:hover::before {
    left: 100%;
}

/* Notification panel scroll styling */
.notification-panel-content::-webkit-scrollbar {
    width: 6px;
}

.notification-panel-content::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 3px;
}

.notification-panel-content::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 3px;
}

.notification-panel-content::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .notification-panel-content::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] .notification-panel-content::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
}

[data-theme="dark"] .notification-panel-content::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}


/* Friend Profile Modal Styles */
.friend-profile-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    transition: all 0.3s ease;
}

.friend-profile-modal.show {
    display: flex;
    opacity: 1;
    animation: modalFadeIn 0.3s ease;
}

.friend-profile-modal-content {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 30px;
    max-width: 600px;
    width: 90%;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.3);
    position: relative;
    transform: scale(0.7);
    transition: all 0.3s ease;
}

.friend-profile-modal.show .friend-profile-modal-content {
    transform: scale(1);
    animation: modalSlideIn 0.3s ease;
}

.friend-profile-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid rgba(52, 152, 219, 0.2);
}

.friend-profile-title {
    font-size: 1.8em;
    font-weight: 700;
    color: var(--secondary-color);
    margin: 0;
    flex: 1;
    line-height: 1.3;
}

.friend-profile-close {
    background: none;
    border: none;
    font-size: 1.8em;
    cursor: pointer;
    color: var(--light-text-color);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
    margin-left: 15px;
}

.friend-profile-close:hover {
    background: rgba(231, 76, 60, 0.1);
    color: #e74c3c;
    transform: scale(1.1);
}

.friend-profile-info {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
    padding: 20px;
    background: rgba(52, 152, 219, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(52, 152, 219, 0.1);
}

.friend-profile-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-color), #2980b9);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 2em;
    flex-shrink: 0;
    box-shadow: 0 8px 25px rgba(52, 152, 219, 0.3);
}

.friend-profile-details {
    flex: 1;
}

.friend-profile-name {
    font-size: 1.5em;
    font-weight: 700;
    color: var(--secondary-color);
    margin: 0 0 8px 0;
}

.friend-profile-level {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: white;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.9em;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 8px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.friend-profile-points {
    font-size: 1.1em;
    font-weight: 600;
    color: var(--primary-color);
}

.friend-profile-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-bottom: 25px;
}

.friend-stat-item {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    padding: 15px;
    text-align: center;
    transition: all 0.3s ease;
}

.friend-stat-item:hover {
    background: rgba(255, 255, 255, 0.95);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.friend-stat-label {
    font-size: 0.9em;
    font-weight: 600;
    color: var(--light-text-color);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 5px;
}

.friend-stat-value {
    font-size: 1.5em;
    font-weight: 700;
    color: var(--accent-color);
}

.friend-profile-badges {
    margin-bottom: 25px;
}

.friend-profile-badges h3 {
    font-size: 1.4em;
    font-weight: 600;
    color: var(--secondary-color);
    margin: 0 0 15px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--accent-color);
}

.friend-badges-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 12px;
}

.friend-badge-item {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    padding: 15px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.friend-badge-item:hover {
    background: rgba(255, 255, 255, 0.95);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.friend-badge-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(135deg, #FFD700, #FFA500);
    transition: width 0.3s ease;
}

.friend-badge-item:hover::before {
    width: 6px;
}

.friend-badge-icon {
    font-size: 2em;
    margin-bottom: 8px;
    display: block;
}

.friend-badge-name {
    font-size: 0.9em;
    font-weight: 600;
    color: var(--secondary-color);
    margin-bottom: 4px;
}

.friend-badge-description {
    font-size: 0.8em;
    color: var(--light-text-color);
    line-height: 1.3;
}

.no-badges-message {
    text-align: center;
    padding: 40px 20px;
    color: var(--light-text-color);
    font-style: italic;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border: 2px dashed rgba(255, 255, 255, 0.2);
}

.no-badges-icon {
    font-size: 3em;
    margin-bottom: 15px;
    opacity: 0.5;
    display: block;
}

/* Friend Search Styles */
.friend-search-container {
    position: relative;
    margin-bottom: 20px;
}

.friend-search-input {
    width: 100%;
    padding: 12px 16px 12px 45px;
    border: 2px solid var(--border-color);
    border-radius: 25px;
    font-size: 1em;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    outline: none;
    box-sizing: border-box;
}

.friend-search-input:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
    background: rgba(255, 255, 255, 1);
}

.friend-search-input::placeholder {
    color: var(--light-text-color);
    opacity: 0.7;
}

.friend-search-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2em;
    color: var(--light-text-color);
    pointer-events: none;
}

.friend-search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    max-height: 300px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
}

.friend-search-results.show {
    display: block;
    animation: searchResultsSlideIn 0.3s ease;
}

@keyframes searchResultsSlideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.friend-search-result-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.friend-search-result-item:hover {
    background: rgba(52, 152, 219, 0.05);
    transform: translateX(3px);
}

.friend-search-result-item:last-child {
    border-bottom: none;
}

.friend-search-result-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-color), #2980b9);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 1.1em;
    flex-shrink: 0;
}

.friend-search-result-info {
    flex: 1;
}

.friend-search-result-name {
    font-size: 1em;
    font-weight: 600;
    color: var(--secondary-color);
    margin: 0 0 2px 0;
}

.friend-search-result-level {
    font-size: 0.85em;
    color: var(--light-text-color);
    margin: 0;
}

.no-search-results {
    text-align: center;
    padding: 20px;
    color: var(--light-text-color);
    font-style: italic;
}

/* Profile Badges Section */
.profile-badges-section {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 16px;
    padding: 2em;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    margin-bottom: 2em;
}

.profile-badges-section h2 {
    color: var(--secondary-color);
    font-size: 1.6em;
    font-weight: 600;
    margin: 0 0 1.5em 0;
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 0.5em;
}

.profile-badges-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5em;
}

.profile-badge-item {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 16px;
    padding: 1.5em;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.profile-badge-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.profile-badge-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #FFD700, #FFA500, #FFD700);
    background-size: 200% 100%;
    animation: badgeShine 3s linear infinite;
}

@keyframes badgeShine {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.profile-badge-icon {
    font-size: 3em;
    margin-bottom: 0.5em;
    display: block;
    color: #FFD700;
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
}

.profile-badge-name {
    font-size: 1.1em;
    font-weight: 600;
    color: var(--secondary-color);
    margin-bottom: 0.5em;
}

.profile-badge-description {
    font-size: 0.9em;
    color: var(--light-text-color);
    line-height: 1.4;
}

/* Dark Mode Friend System Styles */
[data-theme="dark"] .friend-profile-modal-content,
[data-theme="dark"] .friend-search-results {
    background: var(--card-bg);
    border-color: var(--border-color);
}

[data-theme="dark"] .friend-profile-title,
[data-theme="dark"] .friend-profile-name,
[data-theme="dark"] .friend-badge-name,
[data-theme="dark"] .profile-badge-name {
    color: var(--text-color);
}

[data-theme="dark"] .friend-profile-info,
[data-theme="dark"] .friend-stat-item,
[data-theme="dark"] .friend-badge-item,
[data-theme="dark"] .profile-badge-item {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--border-color);
}

[data-theme="dark"] .friend-stat-item:hover,
[data-theme="dark"] .friend-badge-item:hover,
[data-theme="dark"] .profile-badge-item:hover {
    background: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .friend-search-input {
    background: var(--card-bg);
    border-color: var(--border-color);
    color: var(--text-color);
}

[data-theme="dark"] .friend-search-input:focus {
    background: #404040;
    border-color: var(--accent-color);
}

[data-theme="dark"] .friend-search-input::placeholder {
    color: var(--light-text-color);
}

[data-theme="dark"] .friend-search-result-item:hover {
    background: rgba(52, 152, 219, 0.1);
}

[data-theme="dark"] .friend-search-result-name {
    color: var(--text-color);
}

[data-theme="dark"] .no-badges-message {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
    color: var(--light-text-color);
}

[data-theme="dark"] .profile-badges-section {
    background: var(--card-bg);
    border-color: var(--border-color);
}

/* Responsive Design for Friend System */
@media (max-width: 768px) {
    .friend-profile-modal-content {
        width: 95%;
        padding: 20px;
        max-height: 90vh;
    }
    
    .friend-profile-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .friend-profile-close {
        position: absolute;
        top: 15px;
        right: 15px;
        margin: 0;
    }
    
    .friend-profile-title {
        font-size: 1.5em;
        padding-right: 50px;
    }
    
    .friend-profile-info {
        flex-direction: column;
        text-align: center;
        gap: 15px;
        padding: 15px;
    }
    
    .friend-profile-avatar {
        width: 70px;
        height: 70px;
        font-size: 1.8em;
    }
    
    .friend-profile-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .friend-badges-grid,
    .profile-badges-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .friend-badge-item,
    .profile-badge-item {
        padding: 1.2em;
    }
    
    .friend-search-results {
        max-height: 250px;
    }
}

@media (max-width: 480px) {
    .friend-profile-modal-content {
        width: 98%;
        padding: 15px;
        border-radius: 15px;
    }
    
    .friend-profile-title {
        font-size: 1.3em;
    }
    
    .friend-profile-avatar {
        width: 60px;
        height: 60px;
        font-size: 1.6em;
    }
    
    .friend-profile-stats {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .friend-stat-item {
        padding: 12px;
    }
    
    .friend-badges-grid,
    .profile-badges-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .friend-badge-item,
    .profile-badge-item {
        padding: 1em;
    }
    
    .friend-badge-icon,
    .profile-badge-icon {
        font-size: 2.5em;
    }
    
    .friend-search-input {
        padding: 10px 14px 10px 40px;
        font-size: 0.95em;
    }
    
    .friend-search-icon {
        left: 12px;
        font-size: 1.1em;
    }
    
    .friend-search-result-item {
        padding: 10px 12px;
        gap: 10px;
    }
    
    .friend-search-result-avatar {
        width: 35px;
        height: 35px;
        font-size: 1em;
    }
}

/* Friend Request Notification Animation */
.friend-request-notification {
    animation: friendRequestPulse 2s infinite;
}

@keyframes friendRequestPulse {
    0%, 100% {
        box-shadow: 0 8px 25px rgba(76, 175, 80, 0.3);
        border-color: rgba(76, 175, 80, 0.3);
    }
    50% {
        box-shadow: 0 12px 35px rgba(76, 175, 80, 0.5);
        border-color: rgba(76, 175, 80, 0.5);
    }
}

/* Friend List Item Click Animation */
.friend-item.clicked {
    animation: friendItemClick 0.3s ease;
}

@keyframes friendItemClick {
    0% { transform: scale(1); }
    50% { transform: scale(0.98); }
    100% { transform: scale(1); }
}

/* Badge Unlock Animation */
.profile-badge-item.unlocked {
    animation: badgeUnlock 1s ease-out;
}

@keyframes badgeUnlock {
    0% {
        transform: scale(0.8) rotate(-10deg);
        opacity: 0;
    }
    50% {
        transform: scale(1.1) rotate(5deg);
        opacity: 0.8;
    }
    100% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
}

/* Search Loading Animation */
.friend-search-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    color: var(--light-text-color);
}

.search-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid var(--border-color);
    border-top: 2px solid var(--accent-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 10px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Leaderboard Header Styles */
.leaderboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.leaderboard-header h3 {
    margin: 0;
    color: var(--text-color);
    font-size: 1.4rem;
}

.add-friend-section {
    display: flex;
    gap: 10px;
    align-items: center;
}

.friend-input {
    padding: 8px 12px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    background: var(--card-bg);
    color: var(--text-color);
    font-size: 14px;
    min-width: 200px;
    transition: all 0.3s ease;
}

.friend-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
}

.add-friend-btn {
    padding: 8px 16px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.add-friend-btn:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
}

/* Notification Header Styles */
.notification-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 5px;
    width: 100%;
}

.notification-sender {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 14px;
    flex: 1;
    word-break: break-word;
    margin-right: 10px;
}

.notification-time {
    font-size: 12px;
    color: var(--text-muted);
    white-space: nowrap;
    flex-shrink: 0;
}

.notification-message {
    font-size: 13px;
    color: var(--text-color);
    margin-bottom: 10px;
    width: 100%;
}

.notification-content {
    flex: 1;
    min-width: 0;
    width: 100%;
}

.notification-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 15px;
    border-bottom: 1px solid var(--border-color);
    width: 100%;
    box-sizing: border-box;
}

/* Responsive Design */
@media (max-width: 768px) {
    .leaderboard-header {
        flex-direction: column;
        align-items: stretch;
    }
    
    .add-friend-section {
        flex-direction: column;
        gap: 8px;
    }
    
    .friend-input {
        min-width: auto;
        width: 100%;
    }
    
    .add-friend-btn {
        width: 100%;
        justify-content: center;
    }
}


/* Sync Status Styles */
.sync-status-section {
    background: var(--card-background);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 10px var(--shadow-color);
}

.sync-status-card {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.sync-indicator {
    font-size: 16px;
    font-weight: 500;
    padding: 10px;
    border-radius: 8px;
    text-align: center;
}

.sync-online {
    color: #4CAF50;
    background: rgba(76, 175, 80, 0.1);
}

.sync-offline {
    color: #f44336;
    background: rgba(244, 67, 54, 0.1);
}

.sync-checking {
    color: #FF9800;
    background: rgba(255, 152, 0, 0.1);
}

.sync-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.sync-action-btn, .sync-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.sync-action-btn:hover, .sync-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.sync-help {
    color: var(--light-text-color);
    text-align: center;
    font-style: italic;
    font-size: 14px;
}

/* Form Actions Update */
.form-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.save-profile-btn {
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.save-profile-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

/* Responsive Design for Sync Elements */
@media (max-width: 768px) {
    .sync-actions {
        flex-direction: column;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .sync-action-btn, .sync-btn, .save-profile-btn {
        width: 100%;
    }
}


/* Points Update Animation */
.points-updated {
    animation: pointsGlow 1s ease-in-out;
    color: #4CAF50 !important;
    font-weight: bold;
}

@keyframes pointsGlow {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); color: #FFD700; }
    100% { transform: scale(1); }
}

/* Quest Completion Animation */
.just-completed {
    animation: questComplete 0.8s ease-in-out;
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: white;
}

@keyframes questComplete {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.05); opacity: 0.9; }
    100% { transform: scale(1); opacity: 1; }
}

/* Mobile-First Responsive Design */
@media (max-width: 768px) {
    /* Mobile Navigation */
    .nav-menu {
        flex-direction: row;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: var(--card-background);
        border-top: 1px solid var(--border-color);
        padding: 8px;
        z-index: 1000;
        box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
        justify-content: space-around;
    }
    
    .nav-link {
        padding: 8px 12px;
        font-size: 11px;
        text-align: center;
        border-radius: 8px;
        margin: 2px;
        flex: 1;
        max-width: 80px;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 2px;
    }
    
    /* Mobile App Content */
    .app-content {
        padding-bottom: 80px; /* Space for bottom navigation */
        padding: 15px 10px;
    }
    
    .container {
        margin: 10px;
        border-radius: 12px;
        max-width: calc(100vw - 20px);
    }
    
    /* Mobile Cards */
    .stat-card, .profile-stat-card, .achievement-card {
        margin-bottom: 10px;
        padding: 15px;
        border-radius: 12px;
    }
    
    /* Mobile Dashboard */
    .dashboard-stats {
        flex-direction: column;
        gap: 10px;
    }
    
    .dashboard-stats .stat-card {
        text-align: center;
        padding: 20px;
    }
    
    /* Mobile Profile */
    .profile-stats-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .profile-header {
        flex-direction: column;
        text-align: center;
        gap: 15px;
        padding: 20px;
    }
    
    .profile-avatar .avatar-circle {
        width: 80px;
        height: 80px;
        font-size: 32px;
    }
    
    /* Mobile Achievements */
    .achievements-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .points-streak-container {
        flex-direction: column;
        gap: 15px;
    }
    
    .points-card, .streak-card {
        padding: 20px;
        text-align: center;
    }
    
    .daily-goals-list, .weekly-quests-list {
        gap: 10px;
    }
    
    .daily-goal-item, .weekly-quest-item {
        padding: 15px;
        border-radius: 12px;
        flex-direction: column;
        gap: 10px;
    }
    
    .goal-content, .quest-content {
        text-align: center;
    }
    
    /* Mobile Leaderboard */
    .leaderboard-item {
        padding: 15px;
        margin-bottom: 10px;
        border-radius: 12px;
    }
    
    .user-stats {
        flex-direction: column;
        gap: 4px;
        text-align: center;
    }
    
    .user-info {
        text-align: center;
        flex: 1;
    }
    
    /* Mobile Friend Profile Modal */
    .friend-profile-modal .modal-content {
        margin: 10px;
        max-height: 90vh;
        overflow-y: auto;
        border-radius: 12px;
    }
    
    .friend-stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .friend-stat-card {
        padding: 15px;
        text-align: center;
    }
    
    /* Mobile Buttons */
    .action-btn, .sync-action-btn, .add-friend-btn {
        padding: 12px 16px;
        font-size: 14px;
        margin: 5px 0;
        border-radius: 8px;
        width: 100%;
    }
    
    .form-actions {
        flex-direction: column;
        gap: 10px;
    }
    
    /* Mobile Typography */
    h1 { font-size: 24px; margin-bottom: 15px; }
    h2 { font-size: 20px; margin-bottom: 12px; }
    h3 { font-size: 18px; margin-bottom: 10px; }
    
    /* Mobile Spacing */
    .section {
        margin-bottom: 20px;
        padding: 15px;
    }
    
    /* Mobile Sync Status */
    .sync-status-section {
        margin: 10px;
        padding: 15px;
    }
    
    .sync-actions {
        flex-direction: column;
        gap: 10px;
    }
    
    /* Mobile Level Progress */
    .level-progress-container {
        padding: 15px;
        margin: 10px 0;
    }
    
    .level-progress-bar {
        height: 8px;
        border-radius: 4px;
    }
}

@media (max-width: 480px) {
    /* Extra small screens */
    .container {
        margin: 5px;
        border-radius: 8px;
    }
    
    .app-content {
        padding: 10px 5px 80px 5px;
    }
    
    .nav-link {
        font-size: 10px;
        padding: 6px 4px;
        max-width: 60px;
    }
    
    .stat-card {
        padding: 15px 10px;
    }
    
    .friend-stats-grid {
        grid-template-columns: 1fr;
    }
    
    .points-streak-container {
        flex-direction: column;
        gap: 10px;
    }
    
    .level-progress-container {
        padding: 10px;
    }
    
    .profile-header {
        padding: 15px 10px;
    }
    
    .daily-goal-item, .weekly-quest-item {
        padding: 12px;
    }
    
    h1 { font-size: 20px; }
    h2 { font-size: 18px; }
    h3 { font-size: 16px; }
}

/* Mobile Device Detection Classes */
.mobile-only {
    display: none;
}

.desktop-only {
    display: block;
}

@media (max-width: 768px) {
    .mobile-only {
        display: block;
    }
    
    .desktop-only {
        display: none;
    }
}

/* Touch-friendly elements for mobile */
@media (hover: none) and (pointer: coarse) {
    .nav-link, .action-btn, .sync-action-btn, .add-friend-btn {
        min-height: 44px; /* iOS recommended touch target */
        min-width: 44px;
    }
    
    .quest-checkbox, .achievement-card {
        min-height: 44px;
    }
    
    .daily-goal-item, .weekly-quest-item {
        min-height: 60px;
    }
    
    .leaderboard-item {
        min-height: 60px;
    }
}

/* Mobile-specific animations */
@media (max-width: 768px) {
    .points-updated {
        animation: mobilePointsGlow 1.2s ease-in-out;
    }
    
    @keyframes mobilePointsGlow {
        0% { transform: scale(1); }
        25% { transform: scale(1.15); color: #FFD700; }
        50% { transform: scale(1.1); color: #4CAF50; }
        75% { transform: scale(1.05); }
        100% { transform: scale(1); }
    }
    
    .just-completed {
        animation: mobileQuestComplete 1s ease-in-out;
    }
    
    @keyframes mobileQuestComplete {
        0% { transform: scale(1) translateY(0); opacity: 1; }
        25% { transform: scale(1.05) translateY(-5px); opacity: 0.9; }
        50% { transform: scale(1.1) translateY(-10px); opacity: 0.8; }
        75% { transform: scale(1.05) translateY(-5px); opacity: 0.9; }
        100% { transform: scale(1) translateY(0); opacity: 1; }
    }
}


/* Mobile Touch Feedback */
.touch-active {
    transform: scale(0.95);
    opacity: 0.8;
    transition: all 0.1s ease;
}

/* Mobile Keyboard Adjustments */
.keyboard-open {
    height: 100vh;
    overflow: hidden;
}

.keyboard-open .nav-menu {
    display: none;
}

.keyboard-open .app-content {
    padding-bottom: 20px;
}

/* Mobile Device Specific Styles */
.mobile-device .container {
    min-height: calc(100vh - 20px);
    margin: 10px;
}

.mobile-device .nav-menu {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--border-color);
    padding: 8px;
    z-index: 1000;
    display: flex;
    justify-content: space-around;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

.mobile-device .nav-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 8px 4px;
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-color);
    font-size: 10px;
    font-weight: 500;
    transition: all 0.2s ease;
    min-width: 50px;
    text-align: center;
}

.mobile-device .nav-link.active {
    background: var(--primary-color);
    color: white;
}

.mobile-device .nav-icon {
    font-size: 18px;
    margin-bottom: 2px;
}

.tablet-device .container {
    max-width: 900px;
    margin: 20px auto;
}

.touch-device .nav-link:hover {
    background: var(--accent-color);
    color: white;
}

/* Mobile Modal Adjustments */
@media (max-width: 768px) {
    .modal {
        padding: 10px;
    }
    
    .modal-content {
        margin: 0;
        max-height: 90vh;
        overflow-y: auto;
        border-radius: 12px;
    }
    
    .friend-profile-modal .modal-content {
        width: calc(100vw - 20px);
        max-width: none;
    }
}

/* iOS Safari specific fixes */
@supports (-webkit-touch-callout: none) {
    .mobile-device {
        /* Fix for iOS Safari bottom bar */
        padding-bottom: env(safe-area-inset-bottom);
    }
    
    .mobile-device .nav-menu {
        padding-bottom: calc(8px + env(safe-area-inset-bottom));
    }
    
    .mobile-device .app-content {
        padding-bottom: calc(80px + env(safe-area-inset-bottom));
    }
}

/* Android Chrome specific fixes */
@media screen and (max-width: 768px) and (-webkit-min-device-pixel-ratio: 1) {
    .mobile-device .container {
        min-height: calc(100vh - env(keyboard-inset-height, 0px));
    }
}


/* Enhanced Mobile-First Responsive Design */
@media (max-width: 768px) {
    body {
        padding: 10px;
        min-height: 100vh;
        overflow-x: hidden;
    }
    
    .container {
        width: 100%;
        max-width: none;
        margin: 0;
        border-radius: 12px;
        min-height: calc(100vh - 20px);
    }
    
    header {
        padding: 1em;
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    header h1 {
        font-size: 1.2em;
        max-width: none;
        text-align: center;
    }
    
    nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
    }
    
    nav ul li a {
        font-size: 0.8em;
        padding: 6px 10px;
        white-space: nowrap;
    }
    
    .header-actions {
        flex-direction: column;
        gap: 10px;
        width: 100%;
    }
    
    .header-donate-btn {
        width: 100%;
        justify-content: center;
        padding: 12px 20px;
    }
    
    .profile-section {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    main {
        padding: 1.5em 1em;
        gap: 1.5em;
    }
    
    section {
        padding: 1.5em;
        border-radius: 12px;
    }
    
    /* Mobile Dashboard */
    .dashboard-stats {
        grid-template-columns: 1fr;
        gap: 1em;
    }
    
    .stat-card {
        padding: 1.5em;
        text-align: center;
    }
    
    .stat-number {
        font-size: 2em;
    }
    
    /* Mobile Score Chart */
    .score-chart {
        min-height: 300px;
        max-height: 400px;
        padding: 1em;
    }
    
    .chart-header {
        padding: 12px;
        margin-bottom: 15px;
    }
    
    .chart-header h2 {
        font-size: 1.3em;
    }
    
    /* Mobile Forms */
    .form-group {
        margin-bottom: 1em;
    }
    
    .form-group input[type="date"],
    .form-group input[type="number"] {
        width: 100%;
        padding: 12px;
        font-size: 16px; /* Prevents zoom on iOS */
        border-radius: 8px;
    }
    
    button[type="submit"] {
        width: 100%;
        padding: 14px;
        font-size: 1.1em;
        border-radius: 8px;
    }
    
    /* Mobile Scores Display */
    #scores-display li {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        padding: 1em;
    }
    
    .delete-btn {
        align-self: flex-end;
        margin-top: 10px;
    }
    
    /* Mobile Planner */
    .planner-controls {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }
    
    .left-controls {
        flex-direction: column;
        gap: 10px;
    }
    
    .left-controls button {
        width: 100%;
        padding: 12px;
        font-size: 1em;
    }
    
    .view-controls {
        justify-content: center;
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .view-btn {
        flex: 1;
        min-width: 120px;
        padding: 12px 16px;
        font-size: 0.9em;
    }
    
    /* Mobile Date/Week Selector */
    .date-selector, .week-selector {
        flex-direction: column;
        gap: 15px;
        padding: 1em;
        text-align: center;
    }
    
    .date-selector span, .week-selector span {
        font-size: 1.1em;
        min-width: auto;
        order: -1;
    }
    
    .date-selector button, .week-selector button {
        width: 50px;
        height: 50px;
        font-size: 1.4em;
    }
    
    /* Mobile Time Slots */
    .time-slot {
        flex-direction: column;
        min-height: auto;
    }
    
    .time-label {
        width: 100%;
        text-align: center;
        border-right: none;
        border-bottom: 1px solid var(--border-color);
        border-radius: 6px 6px 0 0;
        padding: 0.8em;
    }
    
    .time-content {
        padding: 1em;
    }
    
    /* Mobile Study Sessions */
    .study-session, .modern-session {
        padding: 1.2em;
        margin-bottom: 1em;
        border-radius: 12px;
    }
    
    .session-header, .modern-session-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .completion-status {
        margin-left: 0;
        align-self: flex-end;
    }
    
    .session-time-range, .modern-session-time {
        flex-direction: column;
        gap: 8px;
        align-items: flex-start;
    }
    
    .session-actions, .modern-session-actions {
        flex-direction: column;
        gap: 8px;
        margin-top: 1em;
    }
    
    .complete-btn, .delete-session-btn,
    .modern-complete-btn, .modern-delete-btn {
        width: 100%;
        padding: 12px;
        justify-content: center;
    }
    
    /* Mobile Weekly View */
    .week-header,
    .week-grid {
        grid-template-columns: 1fr;
        gap: 1px;
    }
    
    .day-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 1em;
    }
    
    .day-column {
        min-height: 200px;
        padding: 1em;
    }
    
    .weekly-session, .modern-weekly-session {
        padding: 1em;
        margin-bottom: 0.5em;
        font-size: 0.9em;
    }
    
    .weekly-session-header, .modern-weekly-session-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .weekly-session-actions, .modern-weekly-session-actions {
        align-self: flex-end;
        gap: 8px;
    }
    
    .weekly-complete-btn, .weekly-delete-btn,
    .modern-weekly-complete-btn, .modern-weekly-delete-btn {
        width: 30px;
        height: 30px;
        font-size: 1em;
    }
    
    /* Mobile Add Session Button */
    .add-session-btn {
        padding: 1em;
        font-size: 0.9em;
        min-height: 50px;
        flex-direction: column;
        gap: 8px;
    }
    
    /* Mobile Modals Enhanced */
    .modal-content, .donate-modal-content, .chatbot-modal-content {
        width: 95%;
        max-width: none;
        margin: 10px;
        padding: 20px;
        max-height: 90vh;
        overflow-y: auto;
        border-radius: 12px;
    }
    
    .modal-content h2 {
        font-size: 1.4em;
        margin-bottom: 20px;
    }
    
    .modal-buttons {
        flex-direction: column;
        gap: 12px;
        margin-top: 20px;
    }
    
    .modal-buttons .primary-btn,
    .modal-buttons .secondary-btn {
        width: 100%;
        padding: 14px;
        font-size: 1em;
    }
    
    /* Mobile Study Session Form */
    #study-session-form .form-group {
        margin-bottom: 15px;
    }
    
    #study-session-form select,
    #study-session-form input,
    #study-session-form textarea {
        width: 100%;
        padding: 12px;
        font-size: 16px; /* Prevents zoom on iOS */
        border-radius: 8px;
        box-sizing: border-box;
    }
    
    #study-session-form textarea {
        min-height: 100px;
        resize: vertical;
    }
    
    /* Mobile Notifications Enhanced */
    .notification, .planner-notification, .achievement-notification {
        right: 10px;
        left: 10px;
        max-width: none;
        padding: 12px 16px;
        font-size: 0.9em;
        border-radius: 12px;
    }
    
    .planner-notification {
        top: 10px;
    }
    
    /* Mobile Floating Buttons Enhanced */
    .university-search-button,
    .chatbot-button,
    .floating-donate-btn,
    .floating-chatbot-btn {
        width: 60px;
        height: 60px;
        top: 20px;
        left: 20px;
    }
    
    .university-search-button .search-icon,
    .chatbot-button .chatbot-icon,
    .floating-donate-icon {
        font-size: 1.8em;
    }
    
    .university-search-button .search-text,
    .chatbot-button .chatbot-text,
    .floating-donate-text {
        font-size: 0.6em;
    }
    
    /* Mobile Trash Drop Zone */
    .trash-drop-zone {
        bottom: 20px;
        right: 20px;
        width: 70px;
        height: 70px;
    }
    
    .trash-icon {
        font-size: 1.8em;
    }
    
    .trash-text {
        font-size: 0.65em;
    }
    
    /* Mobile Version Badge */
    .version-badge {
        top: 10px;
        right: 10px;
        padding: 6px 12px;
        font-size: 0.75rem;
    }
    
    /* Mobile Achievements */
    .achievements-grid {
        grid-template-columns: 1fr;
        gap: 1em;
    }
    
    .achievement-card {
        padding: 1.5em;
    }
    
    .achievement-header {
        flex-direction: column;
        text-align: center;
        gap: 1em;
    }
    
    .achievement-icon {
        font-size: 2.5em;
        width: 70px;
        height: 70px;
    }
    
    /* Mobile Friends System */
    .friends-controls {
        flex-direction: column;
        gap: 12px;
    }
    
    .friend-input {
        min-width: 100%;
    }
    
    .add-friend-btn {
        width: 100%;
        justify-content: center;
    }
    
    .friend-item,
    .friends-leaderboard-item {
        padding: 10px 12px;
    }
    
    .friend-avatar {
        width: 35px;
        height: 35px;
        font-size: 1em;
    }
    
    /* Mobile Profile Enhanced */
    .profile-header {
        flex-direction: column;
        text-align: center;
        gap: 15px;
        padding: 20px;
    }
    
    .avatar-circle {
        width: 80px;
        height: 80px;
        font-size: 2em;
    }
    
    .profile-name {
        font-size: 1.8em;
    }
    
    .profile-stats-mini {
        justify-content: center;
        gap: 1em;
    }
    
    .profile-stats-grid {
        grid-template-columns: 1fr;
        gap: 1em;
    }
    
    .profile-stat-card {
        padding: 1.2em;
    }
    
    .stat-icon {
        width: 50px;
        height: 50px;
        font-size: 2em;
    }
    
    /* Mobile Topic Tracking */
    .topic-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    
    .topic-item {
        padding: 10px 12px;
    }
    
    .subject-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .subject-progress {
        width: 100%;
        justify-content: space-between;
    }
    
    .progress-bar {
        flex: 1;
        margin-left: 10px;
    }
    
    .topic-tracking {
        padding: 20px 15px;
    }
    
    .subject-section {
        padding: 15px;
    }
}

@media (max-width: 480px) {
    body {
        padding: 5px;
    }
    
    .container {
        border-radius: 8px;
        min-height: calc(100vh - 10px);
    }
    
    header {
        padding: 0.8em;
    }
    
    header h1 {
        font-size: 1.1em;
    }
    
    nav ul li a {
        font-size: 0.75em;
        padding: 5px 8px;
    }
    
    main {
        padding: 1em 0.8em;
        gap: 1.2em;
    }
    
    section {
        padding: 1.2em;
        border-radius: 8px;
    }
    
    h2 {
        font-size: 1.3em;
    }
    
    .stat-card {
        padding: 1.2em;
    }
    
    .stat-number {
        font-size: 1.8em;
    }
    
    .score-chart {
        min-height: 250px;
        max-height: 300px;
        padding: 0.8em;
    }
    
    .chart-header h2 {
        font-size: 1.2em;
    }
    
    .form-group input[type="date"],
    .form-group input[type="number"] {
        padding: 10px;
    }
    
    button[type="submit"] {
        padding: 12px;
        font-size: 1em;
    }
    
    .view-btn {
        padding: 10px 12px;
        font-size: 0.85em;
        min-width: 100px;
    }
    
    .date-selector button, .week-selector button {
        width: 45px;
        height: 45px;
        font-size: 1.2em;
    }
    
    .study-session, .modern-session {
        padding: 1em;
    }
    
    .session-subject, .modern-session-subject {
        font-size: 1.1em;
    }
    
    .time-badge, .modern-time-badge {
        padding: 0.3em 0.6em;
        font-size: 0.8em;
    }
    
    .weekly-session, .modern-weekly-session {
        padding: 0.8em;
        font-size: 0.85em;
    }
    
    .weekly-complete-btn, .weekly-delete-btn,
    .modern-weekly-complete-btn, .modern-weekly-delete-btn {
        width: 25px;
        height: 25px;
        font-size: 0.9em;
    }
    
    .modal-content {
        width: 98%;
        margin: 5px;
        padding: 15px;
        border-radius: 8px;
    }
    
    .modal-content h2 {
        font-size: 1.3em;
    }
    
    .university-search-button,
    .chatbot-button,
    .floating-donate-btn,
    .floating-chatbot-btn {
        width: 55px;
        height: 55px;
    }
    
    .university-search-button .search-icon,
    .chatbot-button .chatbot-icon,
    .floating-donate-icon {
        font-size: 1.6em;
    }
    
    .university-search-button .search-text,
    .chatbot-button .chatbot-text,
    .floating-donate-text {
        font-size: 0.55em;
    }
    
    .trash-drop-zone {
        width: 60px;
        height: 60px;
    }
    
    .trash-icon {
        font-size: 1.6em;
    }
    
    .trash-text {
        font-size: 0.6em;
    }
    
    .achievement-icon {
        font-size: 2.2em;
        width: 60px;
        height: 60px;
    }
    
    .achievement-title {
        font-size: 1.2em;
    }
    
    .friend-avatar {
        width: 32px;
        height: 32px;
        font-size: 0.9em;
    }
    
    .avatar-circle {
        width: 70px;
        height: 70px;
        font-size: 1.8em;
    }
    
    .profile-name {
        font-size: 1.6em;
    }
    
    .profile-subtitle {
        font-size: 1em;
    }
    
    .stat-mini {
        padding: 0.4em 0.8em;
        font-size: 0.9em;
    }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
    /* Touch-friendly button sizes */
    button, .btn, .nav-link, .view-btn {
        min-height: 44px;
        min-width: 44px;
        touch-action: manipulation;
    }
    
    /* Larger touch targets */
    .complete-btn, .delete-session-btn,
    .weekly-complete-btn, .weekly-delete-btn,
    .modern-complete-btn, .modern-delete-btn,
    .modern-weekly-complete-btn, .modern-weekly-delete-btn {
        min-height: 44px;
        min-width: 44px;
    }
    
    /* Touch feedback */
    .study-session, .weekly-session, .stat-card,
    .modern-session, .modern-weekly-session {
        -webkit-tap-highlight-color: rgba(0, 0, 0, 0.1);
    }
    
    /* Prevent zoom on form inputs */
    input[type="text"], input[type="number"], 
    input[type="date"], select, textarea {
        font-size: 16px !important;
    }
    
    /* Touch-friendly checkboxes */
    .checkbox-container, .goal-checkbox,
    .modern-completion-indicator {
        min-height: 44px;
        min-width: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    /* Improved touch scrolling */
    .modal-content, .time-content, .day-column {
        -webkit-overflow-scrolling: touch;
        overflow-scrolling: touch;
    }
}

/* iOS Safari Specific Fixes */
@supports (-webkit-touch-callout: none) {
    body {
        /* Fix for iOS Safari viewport issues */
        min-height: -webkit-fill-available;
    }
    
    .container {
        min-height: -webkit-fill-available;
    }
    
    /* Fix for iOS Safari bottom safe area */
    @media (max-width: 768px) {
        body {
            padding-bottom: env(safe-area-inset-bottom);
        }
    }
    
    /* Prevent iOS zoom on inputs */
    input[type="text"], input[type="number"], 
    input[type="date"], select, textarea {
        font-size: 16px !important;
        -webkit-appearance: none;
        border-radius: 8px;
    }
    
    /* Fix iOS button styling */
    button, .btn {
        -webkit-appearance: none;
        border-radius: 8px;
    }
}

/* Android Chrome Specific Fixes */
@media screen and (max-width: 768px) {
    /* Fix for Android Chrome viewport */
    .container {
        min-height: calc(100vh - env(keyboard-inset-height, 0px));
    }
    
    /* Android specific touch improvements */
    .study-session, .weekly-session,
    .modern-session, .modern-weekly-session {
        -webkit-tap-highlight-color: transparent;
        tap-highlight-color: transparent;
    }
}

/* High DPI Display Optimizations */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .university-search-button .search-icon,
    .chatbot-button .chatbot-icon,
    .floating-donate-icon,
    .trash-icon {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }
    
    /* Sharper borders on high DPI */
    .container, section, .study-session, .weekly-session,
    .modern-session, .modern-weekly-session {
        border-width: 0.5px;
    }
}

/* Landscape Orientation Adjustments */
@media (max-width: 768px) and (orientation: landscape) {
    .date-selector, .week-selector {
        flex-direction: row;
        justify-content: center;
        align-items: center;
        gap: 20px;
    }
    
    .date-selector span, .week-selector span {
        order: 0;
        min-width: 200px;
    }
    
    .modal-content {
        max-height: 85vh;
    }
    
    .score-chart {
        max-height: 250px;
    }
}

/* Dark Mode Mobile Adjustments */
@media (max-width: 768px) {
    [data-theme="dark"] .container {
        background: var(--card-bg);
        border: 1px solid var(--border-color);
    }
    
    [data-theme="dark"] .study-session,
    [data-theme="dark"] .weekly-session,
    [data-theme="dark"] .modern-session,
    [data-theme="dark"] .modern-weekly-session {
        background: var(--card-bg);
        border: 1px solid var(--border-color);
        color: var(--text-color);
    }
    
    [data-theme="dark"] .modal-content {
        background: var(--card-bg);
        border: 1px solid var(--border-color);
        color: var(--text-color);
    }
}

/* Accessibility Improvements for Mobile */
@media (max-width: 768px) {
    /* Focus indicators */
    button:focus, .btn:focus, .nav-link:focus {
        outline: 2px solid var(--accent-color);
        outline-offset: 2px;
    }
    
    /* High contrast mode support */
    @media (prefers-contrast: high) {
        .study-session, .weekly-session,
        .modern-session, .modern-weekly-session {
            border: 2px solid var(--text-color);
        }
        
        button, .btn {
            border: 2px solid currentColor;
        }
    }
    
    /* Reduced motion support */
    @media (prefers-reduced-motion: reduce) {
        *, *::before, *::after {
            animation-duration: 0.01ms !important;
            animation-iteration-count: 1 !important;
            transition-duration: 0.01ms !important;
        }
    }
}

/* Mobile Navigation Enhancement */
@media (max-width: 768px) {
    /* Bottom navigation for mobile */
    .mobile-nav {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
        border-top: 1px solid var(--border-color);
        padding: 8px;
        z-index: 1000;
        display: flex;
        justify-content: space-around;
        box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    }
    
    .mobile-nav-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 8px 4px;
        border-radius: 8px;
        text-decoration: none;
        color: var(--text-color);
        font-size: 10px;
        font-weight: 500;
        transition: all 0.2s ease;
        min-width: 50px;
        text-align: center;
    }
    
    .mobile-nav-item.active {
        background: var(--primary-color);
        color: white;
    }
    
    .mobile-nav-icon {
        font-size: 18px;
        margin-bottom: 2px;
    }
    
    /* Adjust main content for bottom nav */
    main {
        padding-bottom: 80px;
    }
}

/* Keyboard Adjustments */
@media (max-width: 768px) {
    .keyboard-open {
        height: 100vh;
        overflow: hidden;
    }
    
    .keyboard-open .mobile-nav {
        display: none;
    }
    
    .keyboard-open main {
        padding-bottom: 20px;
    }
}

/* Performance Optimizations for Mobile */
@media (max-width: 768px) {
    /* Reduce animations on mobile for better performance */
    .study-session, .weekly-session,
    .modern-session, .modern-weekly-session {
        transition: transform 0.2s ease, box-shadow 0.2s ease;
    }
    
    /* Optimize background animations */
    body::before {
        animation-duration: 30s;
    }
    
    /* Reduce blur effects on low-end devices */
    @media (max-width: 480px) {
        .container, section, .modal-content {
            backdrop-filter: blur(5px);
        }
    }
}
