:root {
    --primary: #2c3e50;
    --primary-dark: #1a252f;
    --secondary: #16a085;
    --accent: #e74c3c;
    --light: #f5f7fa;
    --dark: #2c3e50;
    --gray: #95a5a6;
    --light-gray: #ecf0f1;
    --success: #2ecc71;
    --warning: #f39c12;
    --danger: #c0392b;
    --theme-transition: background-color 0.3s, color 0.3s;
}

/* Base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    background-image: url('bookimg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    min-height: 100vh;
    overflow-x: hidden; /* Add this line to prevent horizontal scroll */
}

/* Update the container to prevent horizontal scroll */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    overflow-x: hidden;
}

/* Modify assignment slider to use grid instead of horizontal scroll */
.assignment-slider {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    padding: 10px 0;
}

.assignment-box {
    min-width: unset;
    width: 100%;
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .dashboard {
        grid-template-columns: 1fr;
    }
    
    .assignment-slider {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

/* Header Styles */
.header {
    background-color: var(--primary);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(8px);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo img {
    height: 70px;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 20px;
}

.main-nav a {
    color: white;
    text-decoration: none;
    padding: 8px 15px;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.main-nav a:hover,
.main-nav a.active {
    background-color: rgba(255, 255, 255, 0.1);
}

.auth-buttons {
    display: flex;
    gap: 10px;
}

.btn-login, .btn-signup {
    padding: 8px 20px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-login {
    background: transparent;
    border: 2px solid white;
    color: white;
}

.btn-signup {
    background: white;
    border: none;
    color: var(--primary);
}

/* Hamburger Menu */
.hamburger {
    display: flex;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    margin-left: 15px;
    z-index: 1001;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: white;
    transition: all 0.3s;
}

/* Side Menu */
.side-menu {
    position: fixed;
    top: 0;
    right: -300px;
    width: 300px;
    height: 100vh;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: -2px 0 10px rgba(0,0,0,0.1);
    transition: 0.3s ease;
    z-index: 1000;
    overflow-y: auto;
}

.side-menu.active {
    right: 0;
}

/* Add these new styles for hamburger menu */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    z-index: 1001;
    padding: 10px;
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .main-nav {
        display: none;
    }
}

.side-menu-header {
    padding: 20px;
    background: var(--primary);
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.close-menu {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
}

.menu-section {
    padding: 20px;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    color: var(--dark);
    text-decoration: none;
    transition: 0.3s;
}

.menu-item:hover {
    background: var(--light-gray);
    border-radius: 8px;
}

/* Theme Options */
.theme-options {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.theme-btn {
    padding: 8px 15px;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Carousel */
.carousel-container {
    position: relative;
    height: 400px;
    overflow: hidden;
    margin: 20px auto;
    max-width: 800px;
    border-radius: 15px;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.carousel-slide {
    min-width: 100%;
    position: relative;
}

.carousel-slide img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.slide-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: rgba(0, 0, 0, 0.5);
    color: white;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 15px;
    cursor: pointer;
    border-radius: 50%;
    transition: all 0.3s;
}

.carousel-btn:hover {
    background: rgba(0, 0, 0, 0.7);
}

.carousel-btn.prev { left: 20px; }
.carousel-btn.next { right: 20px; }

/* Dashboard */
.dashboard {
    display: grid;
    grid-template-columns: 3fr 1fr;
    gap: 30px;
    margin-top: 30px;
}

/* Welcome Container */
.welcome-container {
    text-align: center;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 15px;
    margin-bottom: 2rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.welcome-container h1 {
    color: var(--primary);
    margin-bottom: 1rem;
}

.daily-info {
    margin: 1.5rem 0;
}

/* Letter badge styles */
.letter-badge {
    width: 60px;
    height: 60px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 20px;
    padding: 10px;
}

.letter-highlight {
    font-size: 2rem;
    font-weight: bold;
    color: var(--accent);
    padding: 0.5rem 1rem;
    background: white;
    border-radius: 50%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    min-width: 60px;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Word Card */
.word-card {
    text-align: center;
    padding: 30px;
}

.word {
    font-size: 2.2rem;
    color: var(--primary);
    margin: 10px 0;
}

.phonetic {
    color: var(--gray);
    font-style: italic;
}

.definition {
    margin: 15px 0;
    color: var(--dark);
}

.example {
    color: var(--gray);
    font-style: italic;
    margin-bottom: 20px;
}

.word-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
}

/* Assignment Slider */
.assignment-slider {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding: 10px 0;
}

.assignment-box {
    min-width: 280px;
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.progress-bar {
    height: 8px;
    background: var(--light-gray);
    border-radius: 4px;
    margin-top: 15px;
    overflow: hidden;
}

.progress {
    height: 100%;
    background: var(--success);
    transition: width 0.3s ease;
}

/* Leaderboard */
.leaderboard-item {
    display: flex;
    align-items: center;
    padding: 10px;
    border-bottom: 1px solid var(--light-gray);
}

.rank {
    width: 30px;
    height: 30px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
}

.user-name {
    flex: 1;
}

.score {
    font-weight: bold;
    color: var(--primary);
}

/* Friends List */
.friend-item {
    display: flex;
    align-items: center;
    padding: 10px;
    gap: 10px;
}

.friend-item img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.friend-name {
    flex: 1;
}

.status {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.status.online { background: var(--success); }
.status.offline { background: var(--gray); }

/* Footer */
footer {
    background: var(--primary);
    color: white;
    padding: 40px 0 20px;
    margin-top: 50px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 30px;
}

.footer-section h3 {
    margin-bottom: 20px;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section a {
    color: white;
    text-decoration: none;
    transition: opacity 0.3s;
}

.footer-section a:hover {
    opacity: 0.8;
}

.footer-social {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-icon {
    width: 35px;
    height: 35px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: background-color 0.3s;
}

.social-icon:hover {
    background: rgba(255, 255, 255, 0.2);
}

.footer-bottom {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Forms */
.contact-form,
.newsletter-form {
    margin-top: 15px;
}

input,
textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: 4px;
}

input::placeholder,
textarea::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

button[type="submit"] {
    width: 100%;
    padding: 10px;
    background: var(--secondary);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

button[type="submit"]:hover {
    background: var(--accent);
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.modal-overlay.show {
    opacity: 1;
    visibility: visible;
}

.modal {
    background: white;
    padding: 20px;
    border-radius: 8px;
    width: 90%;
    max-width: 400px;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--gray);
}

/* Auth Forms */
.auth-form {
    padding: 20px;
    background: white;
    border-radius: 8px;
}

.form-title {
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 20px;
    text-align: center;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    color: var(--dark);
    font-weight: 500;
}

.form-group input {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--light-gray);
    border-radius: 4px;
    font-size: 14px;
    color: var(--dark);
    background: white;
}

.form-group input:focus {
    outline: none;
    border-color: var(--secondary);
    box-shadow: 0 0 0 2px rgba(22, 160, 133, 0.2);
}

.auth-btn {
    width: 100%;
    padding: 12px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s;
}

.auth-btn:hover {
    background: var(--primary-dark);
}

.form-footer {
    margin-top: 15px;
    text-align: center;
    color: var(--gray);
}

.form-footer a {
    color: var(--secondary);
    text-decoration: none;
}

.form-footer a:hover {
    text-decoration: underline;
}

.social-auth {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--light-gray);
}

.social-btn {
    width: 100%;
    padding: 10px;
    margin: 5px 0;
    border: 1px solid var(--light-gray);
    border-radius: 4px;
    background: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: background 0.3s;
}

.social-btn:hover {
    background: var(--light-gray);
}

/* Responsive Design */
@media (max-width: 992px) {
    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
    
    .dashboard {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .main-nav {
        display: none;
    }
    
    .hamburger {
        display: flex;
    }
    
    .carousel-container {
        height: 300px;
    }
    
    .carousel-slide img {
        height: 300px;
    }
}

@media (max-width: 480px) {
    .logo img {
        height: 40px;
    }
    
    .word {
        font-size: 1.8rem;
    }
    
    .card {
        padding: 15px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
}
/* Progress Bar */
.progress-bar {
    width: 100%;
    height: 8px;
    background: var(--light-gray);
    border-radius: 4px;
    overflow: hidden;
    margin: 15px 0;
}

.progress {
    height: 100%;
    background: var(--success);
    transition: width 0.3s ease;
}

/* Leaderboard */
.leaderboard-list {
    margin-top: 15px;
}

.leaderboard-item {
    display: flex;
    align-items: center;
    padding: 12px;
    border-bottom: 1px solid var(--light-gray);
}

.leaderboard-item:last-child {
    border-bottom: none;
}

.rank {
    width: 30px;
    height: 30px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    font-weight: bold;
}

.user-name {
    flex: 1;
    color: var(--dark);
}

.score {
    font-weight: bold;
    color: var(--primary);
}

/* Friends List */
.friends-list {
    margin-top: 15px;
}

.friend-item {
    display: flex;
    align-items: center;
    padding: 12px;
    border-bottom: 1px solid var(--light-gray);
}

.friend-item:last-child {
    border-bottom: none;
}

.friend-item img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 15px;
    object-fit: cover;
}

.friend-name {
    flex: 1;
    color: var(--dark);
}

.status {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.status.online {
    background: var(--success);
}

.status.offline {
    background: var(--gray);
}

/* Forms */
.contact-form,
.newsletter-form {
    margin-top: 20px;
}

input,
textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid var(--light-gray);
    border-radius: 4px;
    font-size: 14px;
}

textarea {
    resize: vertical;
    min-height: 100px;
}

button[type="submit"] {
    width: 100%;
    padding: 12px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background 0.3s;
}

button[type="submit"]:hover {
    background: var(--primary-dark);
}

/* Animations */
@keyframes slideIn {
    from {
        transform: translateX(-100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Theme Styles */
.light-theme {
    --bg-color: var(--light);
    --text-color: var(--dark);
}

.dark-theme {
    --bg-color: var(--dark);
    --text-color: var(--light);
}

.deep-blue-theme {
    --bg-color: #1a237e;
    --text-color: var(--light);
}

/* Utility Classes */
.text-center { text-align: center; }
.mt-2 { margin-top: 2rem; }
.mb-2 { margin-bottom: 2rem; }
.p-2 { padding: 2rem; }
.d-flex { display: flex; }
.align-center { align-items: center; }
.justify-center { justify-content: center; }
.gap-2 { gap: 2rem; }

/* Print Styles */
@media print {
    .no-print {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
    
    .card {
        box-shadow: none;
        border: 1px solid #ddd;
    }
}

/* Card hover effect and spacing */
.card {
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    padding: 25px;
    margin-bottom: 25px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

/* Welcome Container transparency */
.welcome-container {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    margin-bottom: 30px;
}

/* Word Card spacing */
.word-card {
    margin-bottom: 40px;
}

/* Hamburger Menu Button */
.hamburger {
    display: flex;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 10px;
    margin-left: 15px;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: white;
    margin: 2px 0;
    transition: all 0.3s ease;
}

/* Assignment box hover effect */
.assignment-box {
    transition: all 0.3s ease;
}

.assignment-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.15);
}
