/* ========== VARIABILE ROOT ========== */
:root {
    /* Tema Light */
    --light-primary: #560027;
    --light-secondary: #7B0037;
    --light-accent: #F2D0A4;
    --light-background: #fee4e8;
    --light-text: #560027;
    --light-text-inverse: #f8f9fa;
    --light-border: rgba(86, 0, 39, 0.2);
    --light-success: #198754;
    --light-danger: #dc3545;
    --light-warning: #ffc107;
    --light-info: #0dcaf0;
    
    /* Tema Dark */
    --dark-primary: #44011f;
    --dark-secondary: #261e21;
    --dark-accent: #F2D0A4;
    --dark-background: #2d2d2d;
    --dark-card-background: #3a3a3c;
    --dark-text: #F2D0A4;
    --dark-text-muted: #aaa;
    --dark-border: rgba(242, 208, 164, 0.3);
    --dark-success: #28a745;
    --dark-danger: #bb2d3b;
    --dark-warning: #e6ac00;
    --dark-info: #0bb5d4;
    
    /* Font sizes */
    --fs-xl: 1.5rem;
    --fs-lg: 1.25rem;
    --fs-md: 1rem;
    --fs-sm: 0.875rem;
    --fs-xs: 0.75rem;
    
    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    
    /* Box shadows */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.12);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.15);
    
    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
    
    /* Border radius */
    --radius-sm: 0.25rem;
    --radius-md: 0.5rem;
    --radius-lg: 1rem;
    --radius-pill: 50rem;
}

/* ========== STILURI GENERALE ========== */
* {
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', 'Segoe UI', sans-serif;
    margin: 0;
    padding: 0;
    transition: background-color var(--transition-normal), color var(--transition-normal);
}

/* ========== STILURI PENTRU TEMA LIGHT ========== */
body.light-mode {
    background-color: var(--light-background);
    color: var(--light-text);
}

body.light-mode .navbar {
    background-color: var(--light-primary);
    color: var(--light-text-inverse);
}

body.light-mode .btn {
    background-color: var(--light-primary);
    color: var(--light-text-inverse);
    border-color: var(--light-primary);
}

body.light-mode .btn-outline-light {
    background-color: transparent;
    color: var(--light-text-inverse);
    border-color: var(--light-text-inverse);
}

body.light-mode .btn-outline-light:hover {
    background-color: var(--light-text-inverse);
    color: var(--light-primary);
}

body.light-mode .btn-direction {
    background-color: transparent;
    color: var(--light-primary);
    border-color: var(--light-primary);
}

body.light-mode .btn-direction.active {
    background-color: var(--light-primary);
    color: var(--light-text-inverse);
}

body.light-mode .word-card {
    background-color: white;
    border: 1px solid var(--light-border);
}

body.light-mode .card-footer {
    background-color: rgba(242, 208, 164, 0.2);
}

body.light-mode #favoriteBtn.active {
    background-color: var(--light-warning);
    color: var(--light-text);
}

body.light-mode .progress-bar {
    background-color: var(--light-primary);
}

body.light-mode .btn-sound,
body.light-mode .btn-info {
    color: var(--light-primary);
}

body.light-mode #theme-toggle-btn {
    color: var(--light-text-inverse);
}

body.light-mode .stat-box {
    background-color: white;
    border: 1px solid var(--light-border);
    color: var(--light-text);
}

body.light-mode .diacritics-buttons .btn-diacritic {
    background-color: white;
    color: var(--light-primary);
    border: 1px solid var(--light-border);
}

body.light-mode #searchButton {
    background-color: var(--light-primary);
    color: var(--light-text-inverse);
}

body.light-mode .hints-container {
    background-color: white;
    border: 1px solid var(--light-border);
}

body.light-mode .search-results {
    background-color: white;
    border: 1px solid var(--light-border);
}

body.light-mode .search-result-item {
    border-bottom: 1px solid var(--light-border);
}

body.light-mode .search-result-item:hover {
    background-color: rgba(86, 0, 39, 0.05);
}

body.light-mode .modal-content {
    background-color: white;
    color: var(--light-text);
}

body.light-mode .alert-success {
    background-color: rgba(25, 135, 84, 0.1);
    color: var(--light-success);
    border-color: var(--light-success);
}

body.light-mode .alert-danger {
    background-color: rgba(220, 53, 69, 0.1);
    color: var(--light-danger);
    border-color: var(--light-danger);
}

body.light-mode #nesteBtn {
    background-color: var(--light-success);
    color: white;
}

body.light-mode #provIgjenBtn {
    background-color: var(--light-warning);
    color: var(--light-text);
}

body.light-mode #fasitBtn {
    background-color: var(--light-info);
    color: white;
}

/* ========== STILURI PENTRU TEMA DARK ========== */
body.dark-mode {
    background-color: var(--dark-background);
    color: var(--dark-text);
}

body.dark-mode .navbar {
    background-color: var(--dark-primary);
    color: var(--dark-text);
}

body.dark-mode .btn {
    background-color: var(--dark-primary);
    color: var(--dark-text);
    border-color: var(--dark-border);
}

/* Îmbunătățirea vizibilității textului în modul dark */
body.dark-mode .word-row {
    color: var(--dark-accent);
}

body.dark-mode .norwegian-word {
    color: var(--dark-accent);
    font-weight: 600;
}

body.dark-mode .translation-item {
    color: var(--dark-accent);
}

body.dark-mode .variants-info {
    color: var(--dark-accent);
    opacity: 0.9;
}

body.dark-mode .pronunciation {
    color: rgba(242, 208, 164, 0.8);
}

body.dark-mode .btn-outline-light {
    background-color: transparent;
    color: var(--dark-text);
    border-color: var(--dark-border);
}

body.dark-mode .btn-outline-light:hover {
    background-color: rgba(242, 208, 164, 0.1);
}

body.dark-mode .btn-direction {
    background-color: transparent;
    color: var(--dark-text);
    border-color: var(--dark-border);
}

body.dark-mode .btn-direction.active {
    background-color: var(--dark-primary);
    border-color: var(--dark-accent);
}

body.dark-mode .word-card {
    background-color: var(--dark-card-background);
    border: 1px solid var(--dark-border);
}

body.dark-mode .card-footer {
    background-color: rgba(44, 44, 46, 0.5);
    border-top: 1px solid var(--dark-border);
}

body.dark-mode #favoriteBtn.active {
    background-color: var(--dark-warning);
    color: var(--dark-text);
}

body.dark-mode .progress-bar {
    background-color: var(--dark-accent);
    color: var(--dark-primary);
}

body.dark-mode .btn-sound,
body.dark-mode .btn-info {
    color: var(--dark-accent);
}

body.dark-mode #theme-toggle-btn {
    color: var(--dark-text);
}

body.dark-mode .stat-box {
    background-color: var(--dark-card-background);
    border: 1px solid var(--dark-border);
}

body.dark-mode .diacritics-buttons .btn-diacritic {
    background-color: var(--dark-card-background);
    color: var(--dark-text);
    border: 1px solid var(--dark-border);
}

body.dark-mode #searchButton {
    background-color: var(--dark-primary);
    color: var(--dark-text);
}

body.dark-mode .hints-container {
    background-color: var(--dark-card-background);
    border: 1px solid var(--dark-border);
}

body.dark-mode .search-results {
    background-color: var(--dark-card-background);
    border: 1px solid var(--dark-border);
}

body.dark-mode .search-result-item {
    border-bottom: 1px solid var(--dark-border);
}

body.dark-mode .search-result-item:hover {
    background-color: rgba(242, 208, 164, 0.1);
}

body.dark-mode .modal-content {
    background-color: var(--dark-card-background);
    color: var(--dark-text);
    border: 1px solid var(--dark-border);
}

body.dark-mode .modal-header,
body.dark-mode .modal-footer {
    border-color: var(--dark-border);
}

body.dark-mode .alert-success {
    background-color: rgba(40, 167, 69, 0.1);
    color: var(--dark-accent);
    border-color: var(--dark-success);
}

body.dark-mode .alert-danger {
    background-color: rgba(187, 45, 59, 0.1);
    color: var(--dark-accent);
    border-color: var(--dark-danger);
}

body.dark-mode #nesteBtn {
    background-color: var(--dark-success);
    color: var(--dark-text);
}

body.dark-mode #provIgjenBtn {
    background-color: var(--dark-warning);
    color: var(--dark-text);
}

body.dark-mode #fasitBtn {
    background-color: var(--dark-info);
    color: var(--dark-text);
}

body.dark-mode .form-control {
    background-color: var(--dark-card-background);
    border-color: var(--dark-border);
    color: var(--dark-text);
}

body.dark-mode .form-control::placeholder {
    color: var(--dark-text-muted);
}

/* ========== COMPONENTE ========== */

/* Brand Text Animation */
.brand-text {
    font-size: 1.4rem;
    letter-spacing: 0.5px;
    background: linear-gradient(45deg,
            #FFD700 0%,
            #FFFFFF 20%,
            #FFC3A0 40%,
            #FFE4B5 60%,
            #F0E68C 80%,
            #FFD700 100%
        );
    background-size: 300% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    animation: multicolor 8s linear infinite;
}

@keyframes multicolor {
    0% {
        background-position: 0% center;
    }
    100% {
        background-position: 300% center;
    }
}

/* Navbar și Header */
.navbar {
    padding: 0.75rem 0;
    box-shadow: var(--shadow-sm);
}

#theme-toggle-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    transition: transform var(--transition-normal);
}

#theme-toggle-btn:hover {
    transform: rotate(30deg);
}

/* Stats section */
.stats-container {
    margin: var(--space-md) 0;
}

.stats-row {
    margin-bottom: var(--space-md);
}

.stat-box {
    padding: var(--space-md);
    border-radius: var(--radius-md);
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
    height: 100%;
}

.stat-box:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.stat-icon {
    font-size: 1.5rem;
    margin-bottom: var(--space-sm);
    display: block;
}

.stat-value {
    font-size: var(--fs-xl);
    font-weight: bold;
    margin-bottom: var(--space-xs);
}

.stat-label {
    font-size: var(--fs-sm);
    opacity: 0.8;
}

/* Culori pentru statistici */
.total-words .stat-value,
.total-words .stat-icon {
    color: var(--light-primary);
}

.remaining-words .stat-value,
.remaining-words .stat-icon {
    color: var(--light-warning);
}

.learned-words .stat-value,
.learned-words .stat-icon {
    color: var(--light-success);
}

.incorrect-words .stat-value,
.incorrect-words .stat-icon {
    color: var(--light-danger);
}

/* Search Container */
.search-container {
    position: relative;
    margin-bottom: var(--space-md);
}

.search-results {
    position: absolute;
    width: 100%;
    max-height: 300px;
    overflow-y: auto;
    z-index: 100;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    display: none;
}

.search-results.show {
    display: block;
}

.search-result-item {
    padding: var(--space-md);
    transition: background-color var(--transition-fast);
}

.search-result-actions {
    display: flex;
    gap: var(--space-sm);
}

/* Direction Switch */
.direction-container {
    margin-bottom: var(--space-md);
}

.direction-switch {
    width: 100%;
}

.btn-direction {
    flex: 1;
    padding: var(--space-md);
    border-radius: var(--radius-md);
    transition: all var(--transition-normal);
}

/* Word Container */
.word-container {
    margin-bottom: var(--space-md);
}

.word-card {
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    transition: transform var(--transition-normal);
}

.word-card:hover {
    transform: translateY(-2px);
}

.word-display {
    font-size: var(--fs-lg);
    font-weight: 500;
}

.pronunciation {
    font-style: italic;
    opacity: 0.8;
    margin-left: var(--space-sm);
}

.variants-info {
    margin-top: var(--space-sm);
    font-size: var(--fs-sm);
    opacity: 0.8;
}

/* Diacritics Buttons */
.diacritics-container {
    margin-bottom: var(--space-md);
}

.diacritics-buttons {
    display: flex;
    gap: var(--space-sm);
    justify-content: center;
}

.btn-diacritic {
    width: 3rem;
    height: 3rem;
    font-size: var(--fs-lg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-normal);
}

.btn-diacritic:hover {
    transform: scale(1.1);
}

/* Sound and Info Buttons */
.btn-sound,
.btn-info {
    cursor: pointer;
    font-size: var(--fs-lg);
    transition: all var(--transition-normal);
}

.btn-sound:hover,
.btn-info:hover {
    transform: scale(1.2);
}

/* Answer Form */
.answer-container {
    margin-bottom: var(--space-md);
}

#answerInput {
    padding: 0.75rem;
    font-size: var(--fs-md);
}

#showLetterBtn,
#svarBtn {
    padding: 0 1.5rem;
}

/* Hints */
.hints-info {
    font-family: monospace;
    letter-spacing: 2px;
    min-height: 24px;
}

.hints-container {
    display: none;
    max-height: 300px;
    overflow-y: auto;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
}

.hints-container.show {
    display: block;
}

/* Feedbacks */
.feedback-container {
    margin-bottom: var(--space-lg);
}

.alert {
    border-radius: var(--radius-md);
    padding: var(--space-md);
}

/* Overlays */
.milestone-overlay,
.review-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition-normal), visibility var(--transition-normal);
    z-index: 2000;
}

.milestone-overlay.show,
.review-overlay.show {
    opacity: 1;
    visibility: visible;
}

.milestone-content,
.review-content {
    background: white;
    padding: var(--space-xl);
    border-radius: var(--radius-lg);
    text-align: center;
    transform: scale(0.7);
    transition: transform var(--transition-normal);
    max-width: 85%;
}

.milestone-overlay.show .milestone-content,
.review-overlay.show .review-content {
    transform: scale(1);
}

.trophy-container {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: var(--space-md);
}

.trophy {
    font-size: 3rem;
    animation: bounceIn 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.countdown {
    font-size: 4rem;
    font-weight: bold;
    color: var(--light-primary);
    margin: var(--space-md) 0;
    animation: pulse 1s infinite;
}

/* Modal Favorites */
.favorite-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-md);
    margin: var(--space-xs) 0;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
}

.remove-favorite {
    cursor: pointer;
    color: var(--light-danger);
    transition: transform var(--transition-fast);
}

.remove-favorite:hover {
    transform: scale(1.2);
}

/* Utility Classes */
.hidden {
    display: none !important;
}

/* Animations */
@keyframes bounceIn {
    0% {
        transform: scale(0);
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

/* Stiluri pentru sistemul de verificare a răspunsurilor */

/* Formular de răspuns */
.answer-form {
    margin-bottom: 20px;
}

#answerInput {
    border: 2px solid rgba(86, 0, 39, 0.3);
    transition: border-color 0.3s ease;
}

#answerInput:focus {
    border-color: #560027;
    box-shadow: 0 0 0 0.25rem rgba(86, 0, 39, 0.25);
}

body.dark-mode #answerInput {
    background-color: #3a3a3c;
    color: #F2D0A4;
    border-color: rgba(242, 208, 164, 0.3);
}

body.dark-mode #answerInput:focus {
    border-color: #F2D0A4;
    box-shadow: 0 0 0 0.25rem rgba(242, 208, 164, 0.25);
}

/* Butoane de control */
#showLetterBtn {
    background-color: #560027;
    color: white;
    border-color: #560027;
}

#svarBtn {
    background-color: #560027;
    color: white;
    border-color: #560027;
}

body.dark-mode #showLetterBtn,
body.dark-mode #svarBtn {
    background-color: #44011f;
    color: #F2D0A4;
    border-color: rgba(242, 208, 164, 0.3);
}

/* Feedback */
.feedback-box {
    margin-top: 20px;
}

#correctFeedback {
    background-color: rgba(40, 167, 69, 0.1);
    border: 1px solid rgba(40, 167, 69, 0.3);
    color: #28a745;
    border-radius: 8px;
}

#incorrectFeedback {
    background-color: rgba(220, 53, 69, 0.1);
    border: 1px solid rgba(220, 53, 69, 0.3);
    color: #dc3545;
    border-radius: 8px;
}

body.dark-mode #correctFeedback {
    background-color: rgba(40, 167, 69, 0.2);
    border-color: rgba(40, 167, 69, 0.4);
    color: #F2D0A4;
}

body.dark-mode #incorrectFeedback {
    background-color: rgba(220, 53, 69, 0.2);
    border-color: rgba(220, 53, 69, 0.4);
    color: #F2D0A4;
}

/* Butoane în feedback */
#nesteBtn {
    background-color: #28a745;
    color: white;
    border: none;
    transition: background-color 0.3s ease;
}

#nesteBtn:hover {
    background-color: #218838;
}

#provIgjenBtn {
    background-color: #ffc107;
    color: #212529;
    border: none;
    transition: background-color 0.3s ease;
}

#provIgjenBtn:hover {
    background-color: #e0a800;
}

#fasitBtn {
    background-color: #17a2b8;
    color: white;
    border: none;
    transition: background-color 0.3s ease;
}

#fasitBtn:hover {
    background-color: #138496;
}

body.dark-mode #nesteBtn {
    background-color: #28a745;
    color: #F2D0A4;
}

body.dark-mode #provIgjenBtn {
    background-color: #e0a800;
    color: #F2D0A4;
}

body.dark-mode #fasitBtn {
    background-color: #138496;
    color: #F2D0A4;
}

/* Grilă pentru afișarea traducerilor */
.translation-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 10px;
}

.translation-column {
    flex: 1;
    min-width: 250px;
    background-color: rgba(255, 255, 255, 0.5);
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.column-header {
    color: #560027;
    font-weight: bold;
    margin-bottom: 10px;
    padding-bottom: 5px;
    border-bottom: 1px solid rgba(86, 0, 39, 0.2);
}

.translation-item {
    padding: 5px 0;
}

body.dark-mode .translation-column {
    background-color: rgba(58, 58, 60, 0.7);
}

body.dark-mode .column-header {
    color: #F2D0A4;
    border-bottom-color: rgba(242, 208, 164, 0.3);
}

body.dark-mode .translation-item {
    color: #F2D0A4;
}

/* Animație pentru feedback */
#correctFeedback, #incorrectFeedback {
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Stiluri pentru sistemul de hints */
.hints-container {
    border-radius: var(--radius-md);
    transition: opacity 0.3s ease;
    margin-top: 15px;
    opacity: 0;
}

.hints-container.show {
    opacity: 1;
}

.hints-content {
    padding: 0 10px;
}

.hints-section {
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    padding-bottom: 15px;
}

.hints-section:last-child {
    border-bottom: none;
}

.hints-title {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    color: var(--light-primary);
}

.title-icon {
    font-size: 1.2rem;
    margin-right: 10px;
}

.hints-title h3 {
    font-size: 1.1rem;
    margin: 0;
}

/* Stiluri pentru tabelele gramaticale */
.grammar-table-container {
    overflow-x: auto;
    margin-bottom: 10px;
}

.grammar-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 10px;
    font-size: 0.9rem;
}

.grammar-table th, 
.grammar-table td {
    padding: 8px 12px;
    text-align: center;
    border: 1px solid rgba(0, 0, 0, 0.2);
}

.grammar-table th {
    background-color: var(--light-primary);
    color: white;
}

.grammar-table td {
    background-color: white;
}

.noun-type {
    font-size: 0.8rem;
    text-align: right;
    color: var(--light-text);
    opacity: 0.7;
    margin-top: 5px;
}

/* Stiluri pentru tema întunecată */
body.dark-mode .hints-title {
    color: var(--dark-accent);
}

body.dark-mode .grammar-table th {
    background-color: var(--dark-primary);
    color: var(--dark-accent);
    border-color: rgba(242, 208, 164, 0.3);
}

body.dark-mode .grammar-table td {
    background-color: var(--dark-card-background);
    color: var(--dark-text);
    border-color: rgba(242, 208, 164, 0.3);
}

body.dark-mode .noun-type {
    color: var(--dark-text-muted);
}

body.dark-mode .hints-section {
    border-bottom-color: rgba(242, 208, 164, 0.1);
}

/* Stiluri pentru dual-noun-table */
.dual-noun-table td:first-child {
    font-style: italic;
}

/* Stiluri pentru liste în hints */
.hints-content ul {
    padding-left: 20px;
    margin: 10px 0;
}

.hints-content li {
    margin-bottom: 5px;
}

/* Stiluri pentru sistemul de favorite */
.favorite-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--light-border);
    padding: 12px;
    transition: background-color 0.2s ease;
}

.favorite-item:hover {
    background-color: rgba(86, 0, 39, 0.05);
}

.favorite-content {
    flex: 1;
}

.favorite-word {
    font-weight: 500;
    margin-bottom: 3px;
}

.favorite-translation {
    font-size: 0.9rem;
    color: var(--light-text);
    opacity: 0.8;
}

.favorite-actions {
    display: flex;
    gap: 8px;
}

.favorite-actions .btn {
    padding: 4px 8px;
    font-size: 0.9rem;
    background: transparent;
    color: var(--light-primary);
    border: 1px solid var(--light-border);
}

.favorite-actions .remove-favorite {
    color: var(--light-danger);
}

.favorite-actions .btn:hover {
    background-color: rgba(86, 0, 39, 0.1);
}

/* Buton favorit activ */
#favoriteBtn.active {
    background-color: var(--light-warning);
    color: var(--light-text);
}

#favoriteBtn.active i {
    color: var(--light-text);
}

/* Dark mode */
body.dark-mode .favorite-item {
    border-color: var(--dark-border);
}

body.dark-mode .favorite-item:hover {
    background-color: rgba(242, 208, 164, 0.1);
}

body.dark-mode .favorite-translation {
    color: var(--dark-text-muted);
}

body.dark-mode .favorite-actions .btn {
    color: var(--dark-accent);
    border-color: var(--dark-border);
}

body.dark-mode .favorite-actions .remove-favorite {
    color: var(--dark-danger);
}

body.dark-mode .favorite-actions .btn:hover {
    background-color: rgba(242, 208, 164, 0.1);
}

body.dark-mode #favoriteBtn.active {
    background-color: var(--dark-warning);
    color: var(--dark-text);
}

/* Stiluri pentru sistemul de căutare */
.search-container {
    position: relative;
    margin-bottom: 20px;
}

.search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: white;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    z-index: 1000;
    max-height: 400px;
    overflow-y: auto;
    display: none;
}

.search-results.show {
    display: block;
}

.search-results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    border-bottom: 1px solid var(--light-border);
    background-color: rgba(86, 0, 39, 0.05);
    font-size: 0.9rem;
}

.search-sort-by {
    width: auto;
    font-size: 0.85rem;
    padding: 4px 8px;
}

.search-results-list {
    padding: 5px 0;
}

.search-result-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    border-bottom: 1px solid var(--light-border);
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.search-result-item:hover {
    background-color: rgba(86, 0, 39, 0.05);
}

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

.result-content {
    flex: 1;
}

.result-norwegian {
    font-weight: 500;
    margin-bottom: 3px;
}

.result-romanian {
    font-size: 0.85rem;
    color: var(--light-text);
    opacity: 0.8;
}

.result-actions {
    display: flex;
    gap: 8px;
}

.result-actions .btn {
    padding: 4px 8px;
    font-size: 0.85rem;
    background: transparent;
    color: var(--light-primary);
    border: 1px solid var(--light-border);
}

.result-actions .btn:hover {
    background-color: rgba(86, 0, 39, 0.1);
}

.search-no-results,
.search-more-results {
    padding: 15px;
    text-align: center;
    font-size: 0.9rem;
    color: var(--light-text);
    opacity: 0.8;
}

.search-more-results {
    border-top: 1px solid var(--light-border);
    background-color: rgba(86, 0, 39, 0.02);
    font-style: italic;
}

/* Dark mode */
body.dark-mode .search-results {
    background-color: var(--dark-card-background);
}

body.dark-mode .search-results-header {
    border-color: var(--dark-border);
    background-color: rgba(242, 208, 164, 0.05);
}

body.dark-mode .search-result-item {
    border-color: var(--dark-border);
}

body.dark-mode .search-result-item:hover {
    background-color: rgba(242, 208, 164, 0.1);
}

body.dark-mode .result-romanian {
    color: var(--dark-text-muted);
}

body.dark-mode .result-actions .btn {
    color: var(--dark-accent);
    border-color: var(--dark-border);
}

body.dark-mode .result-actions .btn:hover {
    background-color: rgba(242, 208, 164, 0.1);
}

body.dark-mode .search-no-results,
body.dark-mode .search-more-results {
    color: var(--dark-text-muted);
}

body.dark-mode .search-more-results {
    border-color: var(--dark-border);
    background-color: rgba(242, 208, 164, 0.02);
}

body.dark-mode .search-sort-by {
    background-color: var(--dark-card-background);
    color: var(--dark-text);
    border-color: var(--dark-border);
}

/* Stiluri pentru modal hints */
.hints-modal-content {
    border: none;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.hints-modal-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.modal-title-container {
    display: flex;
    align-items: center;
}

.modal-title-container i {
    font-size: 1.3rem;
    color: var(--light-primary);
}

.hints-modal-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

#hintsModalContent {
    padding: 1.5rem;
}

.hints-modal-word-header {
    background-color: rgba(86, 0, 39, 0.05);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    margin-bottom: 1.5rem;
    border-left: 4px solid var(--light-primary);
}

.word-main-display {
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--light-primary);
}

.word-pronunciation {
    font-size: 1.1rem;
    font-style: italic;
    margin-bottom: 0.5rem;
    opacity: 0.8;
}

.word-grammar {
    font-size: 0.9rem;
    color: var(--light-text);
    opacity: 0.9;
}

.hints-modal-main-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.pronunciation-button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: var(--radius-pill);
    background-color: rgba(86, 0, 39, 0.1);
    color: var(--light-primary);
    cursor: pointer;
    transition: all var(--transition-normal);
}

.pronunciation-button:hover {
    background-color: rgba(86, 0, 39, 0.2);
}

.pronunciation-button i {
    font-size: 1.1rem;
}

.btn-modal-close {
    background-color: var(--light-primary);
    color: white;
    border-radius: var(--radius-pill);
    padding: 0.5rem 1.5rem;
    border: none;
    transition: all var(--transition-normal);
}

.btn-modal-close:hover {
    background-color: var(--light-secondary);
    transform: translateY(-2px);
}

/* Dark mode pentru modal hints */
body.dark-mode .hints-modal-content {
    background-color: var(--dark-card-background);
}

body.dark-mode .hints-modal-header,
body.dark-mode .hints-modal-footer {
    border-color: var(--dark-border);
}

body.dark-mode .modal-title-container i {
    color: var(--dark-accent);
}

body.dark-mode .hints-modal-word-header {
    background-color: rgba(242, 208, 164, 0.05);
    border-left-color: var(--dark-accent);
}

body.dark-mode .word-main-display {
    color: var(--dark-accent);
}

body.dark-mode .word-grammar {
    color: var(--dark-text-muted);
}

body.dark-mode .pronunciation-button {
    background-color: rgba(242, 208, 164, 0.1);
    color: var(--dark-accent);
}

body.dark-mode .pronunciation-button:hover {
    background-color: rgba(242, 208, 164, 0.2);
}

body.dark-mode .btn-modal-close {
    background-color: var(--dark-primary);
    color: var(--dark-accent);
}

body.dark-mode .btn-modal-close:hover {
    background-color: var(--dark-secondary);
}

/* Custom progress bar styling */
.progress {
    height: 20px;
    border-radius: var(--radius-md);
    background-color: rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.progress-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.85rem;
    font-weight: 500;
    transition: width 1s ease;
    border-radius: var(--radius-md);
    overflow: hidden;
    white-space: nowrap;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2) inset;
}

/* Animația pentru logo-ul din navbar */
.navbar-logo {
    animation: logoSwing 4s ease-in-out infinite;
    transform-origin: center center;
}

@keyframes logoSwing {
    0%, 100% {
        transform: rotate(0deg);
    }
    25% {
        transform: rotate(15deg);
    }
    75% {
        transform: rotate(-15deg);
    }
}

/* Oprim animația când pagina este vizualizată pe dispozitive care preferă mișcare redusă */
@media (prefers-reduced-motion: reduce) {
    .navbar-logo {
        animation: none;
    }
}

/* Efect de hover care să oprească temporar animația */
.navbar-brand:hover .navbar-logo {
    animation-play-state: paused;
}

body.light-mode .navbar-logo {
    filter: drop-shadow(0 0 2px rgba(86, 0, 39, 0.3));
}

body.dark-mode .navbar-logo {
    filter: drop-shadow(0 0 2px rgba(242, 208, 164, 0.3));
}

/* ========== RESPONSIVE STYLES ========== */
/* Pentru dispozitive extra small */
@media (max-width: 575.98px) {
    .container {
        padding-left: var(--space-sm);
        padding-right: var(--space-sm);
    }
    
    .brand-text {
        font-size: 1.2rem;
    }
    
    .stat-box {
        padding: var(--space-sm);
    }
    
    .stat-value {
        font-size: 1.25rem;
    }
    
    .stat-label {
        font-size: 0.7rem;
    }
    
    .btn-direction {
        font-size: 0.8rem;
        padding: 0.5rem 0.3rem;
    }
    
    .milestone-content,
    .review-content {
        padding: var(--space-md);
    }
    
    .trophy {
        font-size: 2.5rem;
    }
    
    .countdown {
        font-size: 3rem;
    }
}

/* Pentru dispozitive small */
@media (max-width: 767.98px) {
    .navbar-brand {
        margin-right: 0;
    }
    
    .btn-diacritic {
        width: 2.5rem;
        height: 2.5rem;
    }
    
    .word-display {
        font-size: 1.1rem;
    }
    
    .variants-info,
    .pronunciation {
        font-size: 0.8rem;
    }
    
    #showLetterBtn,
    #svarBtn {
        padding: 0 1rem;
    }
    
    .grammar-table-container {
        overflow-x: auto;
    }
    
    .grammar-table {
        width: 100%;
        min-width: 500px;
    }
    
    /* Ajustează dimensiunea butoanelor pentru telefon */
    .btn {
        padding: 0.375rem 0.75rem;
        font-size: 0.95rem;
    }

    .hints-modal-word-header {
        padding: 1rem;
    }
    
    .word-main-display {
        font-size: 1.3rem;
    }
    
    .word-pronunciation {
        font-size: 1rem;
    }
    
    #hintsModalContent {
        padding: 1rem;
    }
    
    .hints-modal-main-content {
        gap: 1.5rem;
    }
}

/* Pentru dispozitive medium */
@media (min-width: 768px) and (max-width: 991.98px) {
    .container {
        max-width: 96%;
    }
}

/* Pentru dispozitive large */
@media (min-width: 992px) {
    .container {
        max-width: 960px;
    }
    
    .word-card:hover {
        transform: translateY(-5px);
    }
}

/* Stiluri pentru dispozitive mobile */
.mobile-view .stat-box {
    padding: 8px;
}

.mobile-view .btn {
    padding: 6px 12px;
}

.portrait-mode .diacritics-container {
    flex-direction: row;
    margin-top: 10px;
}

.landscape-mode .diacritics-container {
    flex-direction: column;
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
}

.mobile-only {
    display: none;
}

.mobile-view .mobile-only {
    display: block;
}

/* Reducerea animațiilor pentru dispozitive cu performanță redusă */
.reduced-animations * {
    transition-duration: 0.1s !important;
    animation-duration: 0.1s !important;
}

.reduced-animations .trophy,
.reduced-animations .milestone-content,
.reduced-animations .review-content,
.reduced-animations .confetti-particle {
    animation: none !important;
}

#svarBtn {
    background-color: var(--light-primary);
    color: white;
    border-color: var(--light-primary);
    transition: background-color 0.3s ease;
}

#svarBtn:hover {
    background-color: var(--light-secondary);
}

body.dark-mode #svarBtn {
    background-color: var(--dark-primary);
    color: var(--dark-accent);
    border-color: var(--dark-border);
}

body.dark-mode #svarBtn:hover {
    background-color: var(--dark-secondary);
}

/* Stiluri pentru lista de traduceri */
.translations-list {
    margin: 1rem 0;
    padding: 0 1rem;
}

.translation-item {
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

/* Ajustări pentru header-ul cuvântului */
.word-main-display {
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

.word-main-display .word-pronunciation {
    font-style: italic;
    font-weight: normal;
    margin: 0 0.5rem;
}

.word-main-display .word-grammar {
    font-weight: normal;
    font-style: italic;
    color: #666;
}

/* Dark mode */
body.dark-mode .word-main-display .word-grammar {
    color: #aaa;
}

/* Stiluri generale pentru containerul de hints */
.vocabulary-hints {
    font-family: 'Roboto', 'Segoe UI', sans-serif;
    line-height: 1.5;
    color: #333;
    max-width: 100%;
}

/* Stiluri pentru secțiuni */
.hints-section {
    margin-bottom: 1.8rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e0e0e0;
}

.hints-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

/* Titlu secțiune */
.section-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #560027;
    margin-bottom: 0.8rem;
    padding-left: 12px;
    border-left: 4px solid #560027;
    line-height: 1.2;
}

/* Stiluri pentru header-ul cuvântului */
.word-header {
    margin: 0.8rem 0 1rem 0;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.5rem;
}

.word-norwegian {
    font-size: 1.4rem;
    font-weight: 600;
    color: #560027;
}

.word-details {
    font-style: italic;
    color: #666;
}

/* Liste pentru diferite secțiuni */
.translation-list,
.usage-list,
.examples-list,
.tips-list {
    margin: 0;
    padding-left: 1.5rem;
}

.translation-list li,
.usage-list li,
.examples-list li,
.tips-list li {
    margin-bottom: 0.6rem;
    line-height: 1.5;
}

/* Lista de traduceri */
.translation-list {
    list-style-type: none;
    padding-left: 1rem;
}

.translation-list li {
    position: relative;
    padding-left: 1rem;
}

.translation-list li::before {
    content: "-";
    position: absolute;
    left: 0;
    top: 0;
}

/* Lista de utilizări (numerotată) */
.usage-list {
    padding-left: 2rem;
}

.usage-list li {
    padding-left: 0.2rem;
}

/* Liste cu bullet points pentru exemple și sfaturi */
.examples-list,
.tips-list {
    list-style-type: none;
    padding-left: 1rem;
}

.examples-list li,
.tips-list li {
    position: relative;
    padding-left: 1.2rem;
}

.examples-list li::before,
.tips-list li::before {
    content: "•";
    position: absolute;
    left: 0;
    top: 0;
    color: #560027;
    font-size: 1.2rem;
}

/* Exemple din dicționar în italic */
.examples-list li {
    font-style: italic;
}

/* Responsiveness */
@media (max-width: 576px) {
    .word-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.2rem;
    }
    
    .section-title {
        font-size: 1.1rem;
    }
    
    .translation-list,
    .usage-list,
    .examples-list,
    .tips-list {
        padding-left: 1rem;
    }
}

/* Dark mode */
.dark-mode .vocabulary-hints {
    color: #e0e0e0;
}

.dark-mode .section-title {
    color: #F2D0A4;
    border-left-color: #F2D0A4;
}

.dark-mode .word-norwegian {
    color: #F2D0A4;
}

.dark-mode .word-details {
    color: #aaa;
}

.dark-mode .hints-section {
    border-bottom-color: #444;
}

.dark-mode .examples-list li::before,
.dark-mode .tips-list li::before {
    color: #F2D0A4;
}


.grammar-details-list {
    list-style-type: none;
    padding-left: 1rem;
    margin-bottom: 1rem;
}

.grammar-details-list li {
    margin-bottom: 0.5rem;
    padding-left: 1.2rem;
    position: relative;
}

.grammar-details-list li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: #560027;
    font-size: 1.2rem;
}

body.dark-mode .grammar-details-list li::before {
    color: #F2D0A4;
}

.synonym-table-container {
    margin-bottom: 2rem;
}

.synonym-title {
    font-size: 1.1rem;
    color: var(--light-primary);
    margin-bottom: 0.5rem;
    padding-left: 0.5rem;
    border-left: 3px solid var(--light-primary);
}

body.dark-mode .synonym-title {
    color: var(--dark-accent);
    border-left-color: var(--dark-accent);
}

/* Stiluri pentru mesajele de eroare specifice */
.error-message {
    color: #721c24;
    background-color: #f8d7da;
    border-radius: 4px;
    padding: 8px 12px;
    margin-bottom: 10px;
    font-weight: 500;
    font-size: 0.9rem;
}

body.dark-mode .error-message {
    color: #f8d7da;
    background-color: rgba(114, 28, 36, 0.3);
}

/* Stiluri pentru blocul de pronunție */
.pronunciation-block {
    background-color: #f0f2fc;
    border-radius: 8px;
    padding: 10px 15px;
    margin-bottom: 15px;
    box-shadow: 0 1px 3px rgba(86, 0, 39, 0.1);
    border-left: 3px solid #560027;
}

.pronunciation-item {
    margin-bottom: 5px;
}

.pronunciation-item:last-child {
    margin-bottom: 0;
}

.pronunciation-word {
    font-weight: 500;
    margin-right: 5px;
}

.pronunciation-text {
    font-style: italic;
    color: #560027;
}

.common-pronunciation {
    text-align: center;
}

/* Stiluri pentru informații gramaticale */
.grammar-info {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.grammar-item {
    background-color: rgba(86, 0, 39, 0.08);
    color: #560027;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.9rem;
}

/* Stiluri pentru Dark Mode */
body.dark-mode .pronunciation-block {
    background-color: rgba(242, 208, 164, 0.1);
    border-left-color: #F2D0A4;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

body.dark-mode .pronunciation-text {
    color: #F2D0A4;
}

body.dark-mode .grammar-item {
    background-color: rgba(242, 208, 164, 0.1);
    color: #F2D0A4;
}

/* Stilizare îmbunătățită pentru cuvintele norvegiene */
.norwegian-word {
    font-size: 1.3rem;
    font-weight: 600;
    margin-right: 10px;
}

/* Stilizare audio button */
.btn-sound {
    cursor: pointer;
    transition: transform 0.2s ease;
    color: #560027;
}

body.dark-mode .btn-sound {
    color: #F2D0A4;
}

.btn-sound:hover {
    transform: scale(1.2);
}

/* Stiluri pentru containerul de pronunție */
.pronunciation-container {
    background-color: #f0f8ff;
    padding: 8px 12px;
    border-radius: 8px;
    margin-top: 10px;
    margin-bottom: 10px;
    border-left: 3px solid #560027;
}

.pronunciation-line {
    margin: 4px 0;
}

.word-highlight {
    font-weight: 500;
    color: #560027;
    margin-right: 5px;
}

.pronunciation-text {
    font-style: italic;
}

/* Dark mode */
body.dark-mode .pronunciation-container {
    background-color: rgba(242, 208, 164, 0.1);
    border-left-color: #F2D0A4;
}

body.dark-mode .word-highlight {
    color: #F2D0A4;
}

/* Stiluri pentru tag-urile gramaticale */
.grammar-info-tag {
    display: inline-block;
    background-color: #f5f5f5;
    color: #7F1D48;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.9rem;
    margin-right: 8px;
    margin-bottom: 5px;
}

/* Dark mode */
body.dark-mode .grammar-info-tag {
    background-color: rgba(242, 208, 164, 0.15);
    color: #F2D0A4;
}

/* Grilă pentru afișarea traducerilor */
.translation-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 10px;
}

.translation-column {
    flex: 1;
    min-width: 250px;
    background-color: rgba(255, 255, 255, 0.5);
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.column-header {
    color: #560027;
    font-weight: bold;
    margin-bottom: 10px;
    padding-bottom: 5px;
    border-bottom: 1px solid rgba(86, 0, 39, 0.2);
}

.translation-item {
    padding: 5px 0;
}

/* Grupuri de traduceri pentru multiple cuvinte norvegiene */
.translation-group {
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px dashed rgba(86, 0, 39, 0.2);
}

.translation-group:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.translation-group-header {
    font-weight: 500;
    font-size: 0.95rem;
    color: #560027;
    margin-bottom: 5px;
    padding-left: 5px;
    border-left: 3px solid #560027;
}

/* Stiluri pentru evidențierea diferențelor */
.differences-highlight {
    margin-top: 20px;
    background-color: rgba(86, 0, 39, 0.05);
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid #560027;
}

body.dark-mode .differences-highlight {
    background-color: rgba(242, 208, 164, 0.1);
    border-left-color: #F2D0A4;
}

.differences-highlight h5 {
    margin-bottom: 15px;
    color: #560027;
}

body.dark-mode .differences-highlight h5 {
    color: #F2D0A4;
}

.user-answer, .correct-answer {
    margin-bottom: 10px;
}

.highlight-label {
    font-weight: 500;
    display: inline-block;
    margin-bottom: 5px;
}

.highlight-content {
    padding: 8px 12px;
    background-color: white;
    border-radius: 4px;
    font-family: 'Roboto Mono', monospace;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

body.dark-mode .highlight-content {
    background-color: #2d2d2d;
    border-color: rgba(242, 208, 164, 0.2);
}

/* Stiluri pentru diferitele tipuri de erori */
.error-highlight, .char-error {
    background-color: rgba(220, 53, 69, 0.2);
    color: #dc3545;
    padding: 0 2px;
    border-radius: 3px;
    font-weight: 700;
}

.correct-highlight, .char-correct {
    background-color: rgba(25, 135, 84, 0.2);
    color: #198754;
    padding: 0 2px;
    border-radius: 3px;
    font-weight: 700;
}

.case-error {
    text-decoration: underline wavy rgba(220, 53, 69, 0.5);
}

.case-correct {
    text-decoration: underline wavy rgba(25, 135, 84, 0.5);
}

.extra-chars {
    background-color: rgba(255, 193, 7, 0.2);
    color: #ffc107;
    text-decoration: line-through;
    padding: 0 2px;
    border-radius: 3px;
}

.missing-chars {
    background-color: rgba(13, 202, 240, 0.2);
    color: #0dcaf0;
    padding: 0 2px;
    border-radius: 3px;
}

.extra-word {
    background-color: rgba(255, 193, 7, 0.2);
    color: #ffc107;
    text-decoration: line-through;
    padding: 0 2px;
    border-radius: 3px;
    margin: 0 2px;
}

.missing-word {
    background-color: rgba(13, 202, 240, 0.2);
    color: #0dcaf0;
    padding: 0 2px;
    border-radius: 3px;
    margin: 0 2px;
}

/* Stiluri pentru dark mode */
body.dark-mode .error-highlight, 
body.dark-mode .char-error {
    background-color: rgba(220, 53, 69, 0.3);
    color: #f8d7da;
}

body.dark-mode .correct-highlight, 
body.dark-mode .char-correct {
    background-color: rgba(25, 135, 84, 0.3);
    color: #d1e7dd;
}

body.dark-mode .extra-chars, 
body.dark-mode .extra-word {
    background-color: rgba(255, 193, 7, 0.3);
    color: #fff3cd;
}

body.dark-mode .missing-chars, 
body.dark-mode .missing-word {
    background-color: rgba(13, 202, 240, 0.3);
    color: #cff4fc;
}

/* Îmbunătățiri pentru a face secțiunea de diferențe mai vizibilă */
.differences-highlight {
    margin-bottom: 20px;
    border: 1px solid rgba(86, 0, 39, 0.2);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

body.dark-mode .differences-highlight {
    border-color: rgba(242, 208, 164, 0.3);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.differences-highlight h5 {
    font-size: 1.1rem;
    font-weight: 600;
    border-bottom: 1px solid rgba(86, 0, 39, 0.1);
    padding-bottom: 10px;
    margin-top: 0;
}

body.dark-mode .differences-highlight h5 {
    border-bottom-color: rgba(242, 208, 164, 0.2);
}

/* Stiluri pentru evidențierea cuvântului pronunțat */
.word-info-box.currently-pronouncing {
    border-left-color: #ff9800;
    background-color: rgba(255, 152, 0, 0.15);
    box-shadow: 0 2px 8px rgba(255, 152, 0, 0.2);
    transform: translateX(3px);
}

body.dark-mode .word-info-box.currently-pronouncing {
    border-left-color: #ff9800;
    background-color: rgba(255, 152, 0, 0.25);
    box-shadow: 0 2px 8px rgba(255, 152, 0, 0.3);
}

/* Stilul pentru titlul cuvântului când se pronunță */
.word-display.word-pronouncing {
    color: #ff9800 !important;
    text-shadow: 0 0 5px rgba(255, 152, 0, 0.3);
    transition: all 0.3s ease;
}

body.dark-mode .word-display.word-pronouncing {
    color: #ff9800 !important;
    text-shadow: 0 0 8px rgba(255, 152, 0, 0.4);
}

/* Stiluri pentru butoanele de sistem */
.system-nav {
    display: flex;
    gap: 1rem;
    margin-right: auto;
}

/* Stiluri de bază pentru butoanele de sistem */
.system-button {
    padding: 8px 15px;
    border-radius: 8px;
    position: relative;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    text-decoration: none;
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Efecte la hover pentru butoanele de sistem */
.system-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.system-button:active {
    transform: translateY(-1px);
}

/* Logo animat pentru butoanele de sistem */
.system-button .navbar-logo {
    transition: transform 0.5s ease;
}

.system-button:hover .navbar-logo {
    transform: rotate(15deg);
}

/* Gradient animation pentru primul buton (Drops Sistem) */
.system-button .brand-text-drops {
    font-size: 1.4rem;
    letter-spacing: 0.5px;
    background: linear-gradient(45deg,
            #FFD700 0%,
            #FFFFFF 20%,
            #FFC3A0 40%,
            #FFE4B5 60%,
            #F0E68C 80%,
            #FFD700 100%
        );
    background-size: 300% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    animation: multicolor-drops 8s linear infinite;
}

@keyframes multicolor-drops {
    0% {
        background-position: 0% center;
    }
    100% {
        background-position: 300% center;
    }
}

/* Gradient animation pentru al doilea buton (Vocabular Sistem) - culori diferite */
.system-button .brand-text-vocab {
    font-size: 1.4rem;
    letter-spacing: 0.5px;
    background: linear-gradient(45deg,
            #9C27B0 0%,
            #E040FB 15%,
            #7E57C2 30%,
            #3F51B5 50%,
            #2196F3 70%,
            #00BCD4 85%,
            #9C27B0 100%
        );
    background-size: 300% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    animation: multicolor-vocab 8s linear infinite;
}

@keyframes multicolor-vocab {
    0% {
        background-position: 0% center;
    }
    100% {
        background-position: 300% center;
    }
}

/* Indicator pentru sistemul activ */
.system-button.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: #fff;
    animation: activeIndicator 0.5s ease-in-out;
}

@keyframes activeIndicator {
    0% {
        transform: scaleX(0);
    }
    100% {
        transform: scaleX(1);
    }
}

/* Efect de glint (strălucire) */
.system-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -75%;
    width: 50%;
    height: 100%;
    background: linear-gradient(
        to right,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.3) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: skewX(-25deg);
    transition: all 0.75s;
}

.system-button:hover::before {
    animation: glint 1.5s;
}

@keyframes glint {
    0% {
        left: -75%;
    }
    100% {
        left: 150%;
    }
}

/* Separator animat */
.separator {
    position: relative;
    margin: 0 8px;
    width: 35px;
    height: 2px;
    background: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

.system-button:hover .separator {
    animation: separatorPulse 1s ease-in-out infinite;
}

@keyframes separatorPulse {
    0%, 100% {
        opacity: 0.5;
        width: 35px;
    }
    50% {
        opacity: 1;
        width: 45px;
    }
}

/* Media query pentru responsive design */
@media (max-width: 992px) {
    .system-nav {
        flex-direction: column;
        gap: 0.5rem;
        margin-bottom: 1rem;
    }
    
    .system-button {
        width: 100%;
        justify-content: center;
    }
}

.mobile-only {
    display: none !important;
}




/* Stiluri pentru indicatorul de notificare pe butonul Favorite */
#favoriteBtn {
    position: relative;  /* Pentru poziționarea relativă a indicatorului */
}

/* Stilizare pentru indicatorul de notificare */
.notification-indicator {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: #f44336;  /* Culoare roșie pentru notificare */
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    opacity: 0;  /* Implicit ascuns */
    transition: all 0.3s ease;
    transform: scale(0);
}

/* Când indicatorul este activ */
.notification-indicator.active {
    opacity: 1;
    transform: scale(1);
}

/* Adaptări pentru dark mode */
body.dark-mode .notification-indicator {
    background-color: #F2D0A4;
    color: #44011f;
}

/* Animație de pulsare pentru a atrage atenția */
@keyframes pulse-notification {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

.notification-indicator.active {
    animation: pulse-notification 1.5s infinite;
}

/* Stiluri pentru navbar notification button */
#showFavoritesBtn {
    position: relative;  /* Pentru poziționarea relativă a indicatorului */
}

.favorites-notification {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: #f44336;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

body.dark-mode .favorites-notification {
    background-color: #F2D0A4;
    color: #44011f;
}

/* Stiluri pentru layout-ul cu două coloane echilibrate */
.translation-grid {
    display: flex;
    gap: 15px;
    margin-top: 10px;
}

.translation-column {
    flex: 1;
    background-color: white;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

body.dark-mode .translation-column {
    background-color: var(--dark-card-background);
}

.column-header {
    color: var(--light-primary);
    font-weight: bold;
    margin-bottom: 15px;
    padding-bottom: 5px;
    border-bottom: 1px solid rgba(86, 0, 39, 0.2);
    text-align: center;
}

body.dark-mode .column-header {
    color: var(--dark-accent);
    border-bottom-color: rgba(242, 208, 164, 0.3);
}

/* Cuvintele norvegiene/române */
.translation-word {
    color: var(--light-primary);
    font-weight: 500;
    font-size: 1.1rem;
    margin: 10px 0;
    padding: 5px 0;
}

body.dark-mode .translation-word {
    color: var(--dark-accent);
}

/* Traducerile */
.translations-group {
    margin-bottom: 15px;
}

.translation-item {
    padding: 5px 0;
}

/* Separator între cuvinte */
.word-separator {
    height: 1px;
    background-color: rgba(86, 0, 39, 0.2);
    margin: 15px 0;
    width: 100%;
}

body.dark-mode .word-separator {
    background-color: rgba(242, 208, 164, 0.2);
}

/* Evidențierea răspunsurilor */
.text-warning {
    color: #ffc107 !important;
    font-weight: 500;
}

body.dark-mode .text-warning {
    color: #ffd454 !important;
}

/* Stiluri pentru butoanele din modal favorite */
#deleteAllFavoritesBtn {
    background-color: #dc3545;
    color: white;
    border-color: #dc3545;
}

#deleteAllFavoritesBtn:hover {
    background-color: #c82333;
    border-color: #bd2130;
}

#updateAllFavoritesBtn {
    background-color: #0d6efd;
    color: white;
    border-color: #0d6efd;
}

#updateAllFavoritesBtn:hover {
    background-color: #0b5ed7;
    border-color: #0a58ca;
}

/* Dark mode styles */
body.dark-mode #deleteAllFavoritesBtn {
    background-color: #bb2d3b;
    border-color: #b02a37;
    color: #F2D0A4;
}

body.dark-mode #updateAllFavoritesBtn {
    background-color: #0b5ed7;
    border-color: #0a58ca;
    color: #F2D0A4;
}