:root {
    --primary-color: #4361ee;
    --secondary-color: #3f37c9;
    --accent-color: #ff9e00;
    --light-bg: #f8f9fa;
    --dark-text: #212529;
}

html {
    font-size: 16px;
    position: relative;
    min-height: 100%;
}

body {
    margin-bottom: 60px;
    font-family: 'Poppins', sans-serif;
    color: var(--dark-text);
    background-color: #f9f9f9;
}

/* Navbar Styling */
.navbar-dark.bg-gradient {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

.navbar-brand {
    font-weight: 600;
    font-size: 1.5rem;
}

.navbar .nav-link {
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
}

    .navbar .nav-link:hover {
        color: var(--accent-color) !important;
    }

/* Cards */
.card {
    border: none;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

    .card:hover {
        transform: translateY(-5px);
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    }

.card-header {
    border-radius: 10px 10px 0 0 !important;
    background-color: rgba(67, 97, 238, 0.05);
    border-bottom: 1px solid rgba(67, 97, 238, 0.1);
}

/* Buttons */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

    .btn-primary:hover {
        background-color: var(--secondary-color);
        border-color: var(--secondary-color);
    }

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

    .btn-outline-primary:hover {
        background-color: var(--primary-color);
        border-color: var(--primary-color);
    }

/* Progress elements */
.progress {
    height: 10px;
    border-radius: 5px;
}

.progress-bar {
    background-color: var(--primary-color);
}

/* Word cards */
.word-card {
    cursor: pointer;
    position: relative;
    min-height: 150px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

    .word-card .flip-icon {
        position: absolute;
        right: 10px;
        bottom: 10px;
        color: rgba(0, 0, 0, 0.3);
    }

    .word-card:hover .flip-icon {
        color: var(--primary-color);
    }

    .word-card .word {
        font-size: 1.8rem;
        font-weight: 600;
    }

    .word-card .translation {
        font-size: 1.4rem;
        color: var(--bs-gray-600);
    }

    .word-card .pronunciation {
        font-style: italic;
        color: var(--bs-gray-500);
    }

/* Language selector */
.language-card {
    text-align: center;
    padding: 1.5rem;
}

    .language-card .language-icon {
        font-size: 3rem;
        margin-bottom: 1rem;
        color: var(--primary-color);
    }

    .language-card .language-name {
        font-weight: 600;
        margin-bottom: 0.5rem;
    }

/* Footer */
.footer {
    background-color: #343a40;
    color: white;
}

    .footer a {
        text-decoration: none;
        transition: opacity 0.3s ease;
    }

        .footer a:hover {
            opacity: 0.8;
        }

.social-icons a {
    display: inline-block;
    width: 32px;
    height: 32px;
    text-align: center;
    line-height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
}

/* Dashboard tiles */
.stat-card {
    padding: 1.5rem;
}

    .stat-card .stat-icon {
        font-size: 2.5rem;
        color: var(--primary-color);
        margin-bottom: 1rem;
    }

    .stat-card .stat-value {
        font-size: 2rem;
        font-weight: 700;
    }

    .stat-card .stat-label {
        color: var(--bs-gray-600);
        font-size: 1rem;
    }

/* Hero section */
.hero-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, rgba(67, 97, 238, 0.9), rgba(63, 55, 201, 0.9)), url('/img/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
    margin-bottom: 3rem;
    border-radius: 0 0 20% 20% / 10%;
    position: relative;
}

    .hero-section h1 {
        font-size: 2.8rem;
        font-weight: 700;
    }

    .hero-section p {
        font-size: 1.25rem;
        max-width: 800px;
        margin: 1rem auto 2rem;
    }

/* Media queries */
@media (max-width: 768px) {
    .hero-section {
        padding: 3rem 0;
    }

        .hero-section h1 {
            font-size: 2rem;
        }

        .hero-section p {
            font-size: 1rem;
        }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.fade-in {
    animation: fadeIn 0.6s ease-in;
}
