/* ========================================================== */
/*                  VARIABILE DE DESIGN                       */
/* ========================================================== */

:root {
    /* Culori principale */
    --edu-primary: #005a9c;
    --edu-secondary: #43aa8b;
    --edu-text-dark: #212529;
    --edu-text-light: #6c757d;
    --edu-bg-light: #f8f9fa;
    --edu-border: #dee2e6;
    
    /* Gradiente NOI */
    --edu-gradient-start: #7209b7;
    --edu-gradient-mid: #0077b6;
    --edu-gradient-end: #43aa8b;
    
    /* Accent colors NOI */
    --edu-accent-pink: #f72585;
    --edu-warning: #ffc107;
    --edu-success: #198754;
    --edu-danger: #dc3545;
    
    /* Fonturi */
    --font-display: "Sora", sans-serif;
    --font-body: "Manrope", sans-serif;
    
    /* Tranziții */
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.2s ease;
}

/* ========================================================== */
/*                   RESET & STILURI GLOBALE                  */
/* ========================================================== */

*, *::before, *::after {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--edu-bg-light);
    color: var(--edu-text-light);
    line-height: 1.6;
}

main { 
    padding-top: 0 !important; 
    margin: 0 !important; 
    display: flow-root; 
}

.container {
    max-width: 1300px; /* Actualizat din fisierul 2 */
    margin: 0 auto;
    padding: 1rem 2rem;
}

h1, h2, h3, h4 {
    color: #0056b3;
    font-weight: 600;
}

a {
    color: #007bff;
    text-decoration: none;
    transition: var(--transition-fast);
}

a:hover {
    color: #0056b3;
}

canvas {
    max-width: 100%;
    height: 100% !important;
}

.page-content { 
    padding-top: 0.5rem; 
    padding-bottom: 3rem; 
}

/* ========================================================== */
/*                   HEADER & NAVBAR                          */
/* ========================================================== */

.edu-header {
    background-color: #fff;
    border-bottom: 1px solid var(--edu-border);
    position: sticky;
    top: 0;
    z-index: 20000;
    padding: 0 1rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.edu-navbar {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    height: 70px;
    gap: 1rem;
    max-width: 1300px;
    margin: 0 auto;
}

.nav-left {
    justify-self: start;
}

.nav-center {
    justify-self: center;
}

.nav-right {
    justify-self: end;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    gap: 8px;
    transition: var(--transition-smooth);
}

.logo:hover {
    transform: scale(1.02);
}

.logo-svg {
    height: 32px;
    width: auto;
}

.logo-text {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--edu-primary);
    position: relative;
    top: 1px;
}

.nav-link {
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    color: var(--edu-text-light);
    text-decoration: none;
    padding: 8px 16px;
    border-bottom: 2px solid transparent;
    border-radius: 8px;
    transition: var(--transition-smooth);
}

.nav-link:hover {
    color: var(--edu-primary);
    background-color: rgba(0,90,156,0.05);
}

.nav-link.active {
    color: var(--edu-primary);
    border-bottom-color: var(--edu-primary);
    background-color: rgba(0,90,156,0.08);
}

.nav-icon-btn {
    color: var(--edu-text-light);
    padding: 8px;
    border-radius: 50%;
    display: flex;
    transition: var(--transition-smooth);
    text-decoration: none;
    cursor: pointer;
    background: none;
    border: none;
}

.nav-icon-btn:hover {
    background-color: rgba(0,90,156,0.1);
    color: var(--edu-primary);
    transform: scale(1.1);
}

.nav-heart-btn {
    color: var(--edu-accent-pink);
}

.nav-heart-btn:hover {
    background-color: rgba(247, 37, 133, 0.1);
    transform: scale(1.15);
}

/* ========================================================== */
/*                   HAMBURGER MENU                           */
/* ========================================================== */

.nav-mobile-toggle {
    display: none;
}

#hamburger-button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    transition: var(--transition-smooth);
}

#hamburger-button:hover {
    transform: scale(1.05);
}

.hamburger-icon {
    display: block;
    position: relative;
    width: 24px;
    height: 2px;
    background-color: var(--edu-text-dark);
    transition: all 0.3s ease-in-out !important;
}

.hamburger-icon::before,
.hamburger-icon::after {
    content: "";
    position: absolute;
    width: 24px;
    height: 2px;
    background-color: var(--edu-text-dark);
    left: 0;
    transition: all 0.3s ease-in-out !important;
}

.hamburger-icon::before {
    top: -8px;
}

.hamburger-icon::after {
    bottom: -8px;
}

/* ========================================================== */
/*                SECȚIUNEA HERO (PAGINA PRINCIPALĂ)          */
/* ========================================================== */

.hero-section-redesigned {
    display: flex;
    gap: 2rem;
    padding: 2rem;
    background: #f8f9fa;
    border-radius: 16px;
    margin-bottom: 2rem;
    align-items: stretch;
}

.ai-assistant-box {
    flex: 1;
    background: linear-gradient(135deg, #005a9c, #0077b6);
    color: white;
    padding: 2rem;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    box-shadow: 0 8px 24px rgba(0, 90, 156, 0.25);
    transition: var(--transition-smooth);
}

.ai-assistant-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 32px rgba(0, 90, 156, 0.35);
}

.ai-assistant-box h3 {
    margin-top: 0;
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
    color: white;
}

.ai-assistant-box p {
    margin-bottom: 1.5rem;
    opacity: 0.9;
    font-size: 0.9rem;
}

.ai-button {
    background-color: rgba(255, 255, 255, 0.15);
    border: 2px solid white;
    border-radius: 50% / 40%;
    width: 120px;
    height: 150px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
    backdrop-filter: blur(10px);
}

.ai-button:hover {
    background-color: rgba(255, 255, 255, 0.25);
    transform: scale(1.05);
}

.ai-button svg {
    fill: white;
    transition: var(--transition-smooth);
}

.ai-button:hover svg {
    transform: scale(1.05);
}

.school-search-box {
    flex: 3;
    background: white;
    padding: 2rem;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}

.search-stats {
    font-size: 1.2rem;
    color: #333;
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

.search-subtext {
    font-size: 1rem;
    color: #6c757d;
    margin-bottom: 2rem;
}

.search-form-wrapper {
    position: relative;
}

.search-form {
    display: flex;
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #ccc;
    transition: var(--transition-smooth);
}

.search-form:focus-within {
    box-shadow: 0 0 0 3px rgba(0, 90, 156, 0.15);
    border-color: var(--edu-primary);
}

.search-input {
    flex-grow: 1;
    padding: 1rem 1.5rem;
    font-size: 1.2rem;
    border: none;
    outline: none;
    background: transparent;
    transition: var(--transition-fast);
}

.search-input:focus {
    outline: none;
}

.search-button {
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
    border: none;
    padding: 0 2rem;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition-smooth);
    box-shadow: 0 4px 12px rgba(0,123,255,0.2);
}

.search-button svg {
    width: 20px;
    height: 20px;
    fill: white;
}

.search-button:hover {
    background: linear-gradient(135deg, #0056b3, #004085);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0,123,255,0.3);
}

.autocomplete-items {
    position: absolute;
    border: 1px solid #d4d4d4;
    border-bottom: none;
    border-top: none;
    z-index: 99;
    top: 100%;
    left: 0;
    right: 0;
    background-color: #fff;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    max-height: 300px;
    overflow-y: auto;
    display: none;
}

.autocomplete-items div {
    padding: 12px 18px;
    cursor: pointer;
    border-bottom: 1px solid #e9ecef;
    transition: var(--transition-fast);
}

.autocomplete-items div:hover {
    background-color: #f1f3f5;
}

.section-divider {
    border: 0;
    height: 1px;
    background: #dee2e6;
    margin: 2.5rem 0;
}

/* ========================================================== */
/*                SECȚIUNEA HERO (PAGINA PROFIL ȘCOALĂ)       */
/* ========================================================== */

.hero-scoala { 
    background-color: var(--edu-primary); 
    color: #fff; 
    text-align: center; 
    padding: 3rem 1rem; 
}

.back-link-nou { 
    color: #fff; 
    opacity: 0.8; 
    display: inline-block; 
    margin-bottom: 1rem; 
    font-size: 0.9rem; 
    text-decoration: none; 
}

.back-link-nou:hover { 
    opacity: 1; 
}

.hero-title-group { 
    margin-bottom: 1rem; 
}

.hero-scoala h1 { 
    font-family: var(--font-display); 
    font-size: 3rem; 
    font-weight: 700; 
    margin: 0 0 0.5rem 0; 
    color: white; 
    line-height: 1.2; 
}

.hero-location { 
    font-family: var(--font-body); 
    font-size: 1rem; 
    font-weight: 500; 
    opacity: 0.8; 
    margin: 0; 
}

.hero-subline { 
    display: flex; 
    justify-content: center; 
    align-items: center; 
    gap: 1rem; 
    margin: 0.5rem 0 1.5rem 0; 
    font-size: 1.1rem; 
}

.hero-subline .star-rating .fa-star { 
    color: #ffc107; 
}

.hero-subline.no-reviews .star-rating i.far { 
    font-family: "Font Awesome 5 Free", "Font Awesome 6 Free"; 
    font-weight: 400; 
    color: #fff; 
    opacity: 0.6; 
}

.hero-subline.no-reviews .rating-text { 
    font-style: italic; 
    opacity: 0.8; 
}

/* ========================================================== */
/*                  SISTEM DE TABS (General)                  */
/* ========================================================== */

.tabs-container {
    margin-bottom: 1.5rem;
}

.tabs-nav {
    display: flex;
    flex-wrap: wrap;
    list-style-type: none;
    padding: 0;
    margin: 0;
    border-bottom: 2px solid #dee2e6;
}

.tabs-nav li {
    margin-right: 0.5rem;
    margin-bottom: -2px;
}

.tabs-nav a {
    display: block;
    padding: 0.8rem 1.2rem;
    color: #495057;
    border-radius: 8px 8px 0 0;
    border: 2px solid transparent;
    font-weight: 500;
    transition: var(--transition-smooth);
}

.tabs-nav a:hover {
    background-color: #f8f9fa;
    color: var(--edu-primary);
    transform: translateY(-2px);
}

.tabs-nav li.is-active a {
    color: #0056b3;
    background: linear-gradient(135deg, #e7f5ff, #f0f9ff);
    border-color: #dee2e6 #dee2e6 #fff #dee2e6;
    box-shadow: 0 2px 8px rgba(0,90,156,0.1);
}

.module-container {
    padding: 1.5rem;
    border: 1px solid #dee2e6;
    border-top: none;
    border-radius: 0 0 8px 8px;
    background-color: #fff;
}

.module-container.is-hidden {
    display: none;
}

.module-header {
    background-color: #f8f9fa;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    border: 1px solid #e9ecef;
}

.module-totals {
    margin: 0;
    font-size: 1.1rem;
    color: #495057;
}

.module-totals strong {
    color: #004085;
}

/* ========================================================== */
/*                   CARDURI JUDEȚE                           */
/* ========================================================== */

.judete-lista {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.judet-card {
    display: block;
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 1.5rem;
    text-decoration: none;
    color: #212529;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    transition: var(--transition-smooth);
}

.judet-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    border-color: var(--edu-primary);
}

.judet-card h4 {
    margin-top: 0;
    margin-bottom: 0.75rem;
    font-size: 1.2rem;
    color: #0056b3;
}

.judet-card .stat-main {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 0.25rem 0;
}

.judet-card .stat-secondary {
    font-size: 0.9rem;
    color: #6c757d;
    margin: 0 0 1rem 0;
}

.public-private-split {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    border-top: 1px solid #e9ecef;
    padding-top: 0.75rem;
}

.public-private-split span {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.public-private-split .public {
    color: var(--edu-success);
}

.public-private-split .private {
    color: #fd7e14;
}

/* ========================================================== */
/*              PAGINA DE JUDEȚ (lista_uat.html)              */
/* ========================================================== */

.header-categorie {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #e9ecef;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
}

.back-link {
    font-weight: 500;
    transition: var(--transition-smooth);
}

.back-link:hover {
    transform: translateX(-4px);
}

#map {
    height: 450px;
    width: 100%;
    margin-bottom: 2.5rem;
    border-radius: 8px;
    border: 1px solid #dee2e6;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

.accordion-container {
    width: 100%;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    overflow: hidden;
}

.accordion-item {
    border-bottom: 1px solid #dee2e6;
}

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

.accordion-header {
    background-color: #fff;
    cursor: pointer;
    padding: 1rem 1.5rem;
    width: 100%;
    border: none;
    text-align: left;
    outline: none;
    font-size: 1.1rem;
    transition: var(--transition-smooth);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.accordion-header:hover,
.accordion-header.active {
    background-color: #e7f1ff;
}

.accordion-header .uat-name {
    font-weight: 600;
}

.accordion-header .school-count {
    font-size: 0.9rem;
    color: #495057;
    background-color: #e9ecef;
    padding: 4px 10px;
    border-radius: 12px;
}

.accordion-header::after {
    content: '+';
    font-size: 1.5rem;
    color: #6c757d;
    font-weight: 300;
    transition: var(--transition-smooth);
}

.accordion-header.active::after {
    content: '−';
    transform: rotate(180deg);
}

.accordion-content {
    padding: 0 1.5rem;
    background-color: #fdfdff;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease-in-out;
}

.accordion-content .lista-scoli {
    padding: 1rem 0;
}

.scoala-item {
    border: 1px solid #e9ecef;
    border-left: 4px solid #007bff;
    border-radius: 4px;
    padding: 1rem 1.5rem;
    margin-bottom: 1rem;
    transition: var(--transition-smooth);
}

.scoala-item:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
    transform: translateX(4px);
}

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

.scoala-item h4 {
    margin: 0 0 0.5rem 0;
    font-size: 1rem;
    color: #343a40;
}

.scoala-item p {
    margin: 0;
    font-size: 0.9rem;
    color: #6c757d;
}

.scoala-item p strong {
    color: #495057;
}

/* ========================================================== */
/*            PAGINA DE PROFIL (profil_scoala.html)           */
/* ========================================================== */

.profil-header {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #dee2e6;
}

.profil-header h1 {
    margin-top: 1rem;
    margin-bottom: 0.25rem;
    font-size: 2.2rem;
}

.profil-header .subordonare {
    margin: 0;
    color: #6c757d;
    font-style: italic;
}

/* LAYOUT GRID PENTRU PROFIL (Actualizat) */
.profil-container {
    display: grid;
    grid-template-columns: 2.2fr 1fr;
    gap: 2rem;
    align-items: start;
}

.profil-main {
    flex: 1;
    min-width: 300px;
}

.profil-sidebar {
    width: 100%;
}
.profil-sidebar > :first-child { margin-top: 0.5rem; }
.profil-main .profil-section:first-child { margin-top: 0 !important; }

/* Sidebar Toggle Logic */
.profil-container.is-full-width { 
    grid-template-columns: 1fr !important; 
    display: block; 
}
.profil-container.is-full-width .profil-sidebar { 
    display: none !important; 
}
#sidebar-toggle-btn.active { 
    background-color: var(--edu-primary) !important; 
    color: #fff !important; 
}

/* Adjustments for full width mode */
.profil-container.is-full-width .profil-main { max-width: 1100px; margin: 0 auto; }
.profil-container.is-full-width .competente-container { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.profil-container.is-full-width .probe-container { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.profil-container.is-full-width .evolution-split-layout { grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.profil-container.is-full-width .profil-section:last-of-type .grafic-wrapper { max-width: 800px !important; margin: 0 auto !important; height: 400px !important; }
.profil-container.is-full-width .tab-panel-en[data-tab="3"] table, .profil-container.is-full-width .tab-panel-bac[data-tab="3"] table { max-width: 800px; margin: 0 auto; }


.profil-section {
    margin-bottom: 2.5rem;
    background-color: #fff;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.06);
    transition: var(--transition-smooth);
    margin-top: 1rem;
}

.profil-section:hover {
    box-shadow: 0 12px 32px rgba(0,0,0,0.08);
}

.profil-section h3, .profil-sidebar > h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: #343a40;
    margin: 0 0 1.5rem 0;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #f1f3f5;
    line-height: 1.3;
}

/* Elemente Sidebar */
.contact-box { background-color: #fffbeb; border: 2px dashed #ffe58f; border-radius: 12px; padding: 1.5rem; text-align: center; margin-bottom: 2.5rem; }
.contact-box .material-icons { font-size: 2.5rem; color: #c77c00; margin-bottom: 1rem; }
.sidebar-footer-links { padding: 1.5rem 1rem; text-align: center; border-top: 1px solid #f1f3f5; margin-top: 2rem; }
.sidebar-footer-links .newsletter-link { display: block; font-weight: 700; color: var(--edu-primary); text-decoration: none; margin-bottom: 1rem; font-size: 0.9rem; }
.sidebar-footer-links .link-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem 1rem; }
.sidebar-footer-links a { font-size: 0.75rem; color: #6c757d; text-decoration: none; }

#map-scoala {
    height: 300px;
    width: 100%;
    border-radius: 12px;
    z-index: 1;
    margin-bottom: 1.5rem;
    border: 1px solid #e9ecef;
}

#map-nearby-schools {
    width: 100%;
    height: 500px;
    margin-bottom: 20px;
    border-radius: 8px;
}

.lista-detalii {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.lista-detalii li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #f1f3f5;
    font-size: 0.9rem;
}

.lista-detalii li:last-child {
    border-bottom: none;
}

.lista-detalii strong {
    color: #495057;
}

.siiir-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-weight: 600;
    transition: var(--transition-smooth);
}

.siiir-link:hover {
    color: var(--edu-primary);
}

.siiir-link svg {
    width: 12px;
    height: 12px;
    fill: currentColor;
    opacity: 0.7;
}

/* Tabele Profil */
.profil-main table th, .profil-main .tabel-oferta th { font-family: var(--font-body); font-size: 0.75rem; text-transform: uppercase; color: #adb5bd; font-weight: 700; letter-spacing: 0.5px; padding: 0.8rem; border-bottom: 1px solid #f1f3f5; vertical-align: middle; white-space: nowrap; text-align: center; }
.profil-main table td { text-align: center; padding: 0.5rem; border-bottom: 1px solid #f1f3f5; font-size: 0.9rem; color: #495057; }
.profil-main table th:first-child, .profil-main table td:first-child { text-align: left; }

.tabel-oferta {
    width: 100%; /* sau auto pentru centrare */
    border-collapse: collapse;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    margin: 0 auto;
}

.tabel-oferta th.sortable { cursor: pointer; } .tabel-oferta th.sortable:hover { background-color: #f1f3f5; }

.tabel-oferta tbody tr {
    transition: var(--transition-fast);
}

.tabel-oferta tbody tr:hover {
    background-color: #f1f3f5;
}

.tabel-oferta small {
    display: block;
    color: #6c757d;
    font-size: 0.8rem;
}

/* Carduri Performanta */
.performanta-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.card-performanta {
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 1.5rem;
    transition: var(--transition-smooth);
}

.card-performanta:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
    transform: translateY(-4px);
}

.card-performanta h4 {
    margin-top: 0;
    border-bottom: 1px solid #dee2e6;
    padding-bottom: 0.5rem;
}

.card-performanta p {
    margin: 0.5rem 0;
    display: flex;
    justify-content: space-between;
}

.card-performanta span {
    color: #6c757d;
}

/* Special Needs */
.special-needs-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.special-needs-card {
    background-color: #fff8e1;
    border: 1px solid #ffecb3;
    border-left: 4px solid var(--edu-warning);
    border-radius: 8px;
    padding: 1.5rem;
    transition: var(--transition-smooth);
}

.special-needs-card:hover {
    box-shadow: 0 4px 12px rgba(255,193,7,0.15);
}

.special-needs-card h4 {
    margin-top: 0;
    color: #b77c00;
}

.special-compact-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.special-compact-item {
    background-color: #fff9e6;
    border: 1px solid #ffecb3;
    border-left: 5px solid var(--edu-warning);
    border-radius: 8px;
    padding: 1rem 1.5rem;
    transition: var(--transition-smooth);
}

.special-compact-item:hover {
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(255,193,7,0.1);
}

.special-compact-item h4 {
    margin-top: 0;
    margin-bottom: 0.5rem;
    color: #b77c00;
    font-size: 1.1rem;
}

.special-compact-item p {
    margin: 0;
    line-height: 1.7;
    color: #555;
}

.special-compact-item p strong {
    color: #333;
    font-weight: 600;
}

.tag-tip {
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
    white-space: nowrap;
}

.tag-tip.masă {
    background-color: #e2e3e5;
    color: #495057;
}

.tag-tip.special {
    background-color: #fff0c2;
    color: #856404;
}

.ciclu-divider, .profil-section h4.ciclu-divider, .profil-sidebar h4.ciclu-divider {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 600;
    color: #495057;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #e9ecef;
    text-align: center;
    text-transform: none;
    line-height: 1.4;
    background-color: transparent;
    border-radius: 0;
}

.ciclu-divider:first-of-type {
    margin-top: 0;
}

.tooltip-trigger {
    position: relative;
    display: inline-block;
    cursor: help;
    color: #007bff;
    font-weight: bold;
    margin-left: 4px;
}

.tooltip-trigger .tooltip-text {
    visibility: hidden;
    width: 220px;
    background-color: #343a40;
    color: #fff;
    text-align: center;
    border-radius: 8px;
    padding: 8px;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    margin-left: -110px;
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 0.8rem;
    font-weight: normal;
}

.tooltip-trigger .tooltip-text::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: #343a40 transparent transparent transparent;
}

.tooltip-trigger:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}

.header-summary {
    background-color: transparent;
    border: none;
    border-radius: 0;
    padding: 1.25rem 1.5rem;
    margin-bottom: 5px;
    box-shadow: none;
    margin-top: 1.5rem;
}

.summary-total {
    display: inline-flex;
    align-items: baseline;
    gap: 0.5rem;
    margin-right: 2rem;
    font-size: 1.1rem;
    transition: var(--transition-smooth);
}

.summary-total:hover {
    transform: translateX(4px);
}

.summary-total .total-label {
    color: #6c757d;
    font-size: 0.9rem;
    font-weight: 500;
}

.summary-total .total-value {
    font-weight: 700;
    color: var(--edu-text-dark);
}

.summary-breakdown {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1.25rem;
}

.breakdown-item {
    font-size: 0.85rem;
    color: #495057;
    background-color: #f1f3f5;
    padding: 0.3rem 0.8rem;
    border-radius: 50px;
    border: 1px solid #e9ecef;
    border-left: 3px solid var(--edu-primary);
    transition: var(--transition-smooth);
}

.breakdown-item:hover {
    transform: translateX(4px);
    box-shadow: 0 2px 8px rgba(0,90,156,0.1);
}

.breakdown-item strong {
    color: #212529;
}

.limbi-moderne-lista {
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px dashed #e9ecef;
    font-size: 0.85rem;
    color: #6c757d;
}

.limbi-moderne-lista strong {
    display: block;
    margin-bottom: 0.25rem;
}

/* ========================================================== */
/*           HUB EDUCAȚIONAL (TAB-URI PERSONALIZATE)          */
/* ========================================================== */

.profil-container.is-full-width .custom-edu-tabs { justify-content: center !important; gap: 1rem !important; border-bottom: 2px solid #f1f3f5 !important; }
.profil-container.is-full-width .custom-edu-tabs .nav-link { font-size: 1.1rem !important; padding: 1rem 1.5rem !important; border-radius: 12px !important; }
.profil-container.is-full-width .custom-edu-tabs .nav-separator { height: 40px !important; margin: 0 1.5rem !important; }
.profil-container.is-full-width .custom-edu-tabs .nav-link i { font-size: 1.2rem !important; }

.custom-edu-tabs { border-bottom: 2px solid #e9ecef; gap: 0.5rem; margin-bottom: 1.5rem; flex-wrap: nowrap; overflow-x: auto; padding-bottom: 5px; list-style: none; display: flex; padding-left: 0; }
.custom-edu-tabs .nav-link { border: none; color: #6c757d; font-weight: 600; font-size: 0.95rem; padding: 0.7rem 1rem; border-radius: 8px; background-color: transparent; transition: all 0.2s; white-space: nowrap; display: flex; align-items: center; gap: 0.5rem; margin-bottom: 2px; cursor: pointer; }
.custom-edu-tabs .nav-link:hover { background-color: #f8f9fa; color: var(--edu-primary); }
.custom-edu-tabs .nav-link.active { background-color: #e7f5ff; color: var(--edu-primary); font-weight: 700; }
.custom-edu-tabs .nav-link.official-tab.active { background-color: #fff3cd; color: #856404; }
.nav-separator { width: 1px; background-color: #dee2e6; margin: 0 0.5rem; height: 30px; align-self: center; }

#schoolHubTabsContent { padding-top: 0 !important; transition: all 0.3s ease; }
#schoolHubTabsContent .tab-pane { display: none; opacity: 0; }
#schoolHubTabsContent .tab-pane.active { display: block; padding-top: 1.5rem; animation: slideDownFade 0.4s ease forwards; }
@keyframes slideDownFade { 0% { opacity: 0; transform: translateY(-10px); display: none;} 1% { display: block; opacity: 0; } 100% { opacity: 1; transform: translateY(0); } }

.private-group-state { text-align: center; padding: 3rem 1rem; background-color: #f8f9fa; border: 1px dashed #dee2e6; border-radius: 12px; }
.lock-icon-wrapper { width: 60px; height: 60px; background-color: #e9ecef; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 1.5rem; }
.lock-icon-wrapper .material-icons { font-size: 30px; color: #6c757d; }
.class-actions { display: flex; justify-content: center; gap: 1rem; margin-bottom: 1.5rem; }
.btn-primary-action { background-color: var(--edu-primary); color: #fff; padding: 0.6rem 1.5rem; border-radius: 50px; text-decoration: none; font-weight: 600; }
.btn-secondary-action { background: #fff; border: 1px solid #ced4da; color: #495057; padding: 0.6rem 1.5rem; border-radius: 50px; font-weight: 600; cursor: pointer; }
.resources-header { display: flex; justify-content: space-between; margin-bottom: 1.5rem; }
.btn-upload { background-color: var(--edu-secondary); color: #fff; border: none; padding: 0.5rem 1rem; border-radius: 6px; cursor: pointer; font-weight: 600; }
.resource-item { display: flex; align-items: center; gap: 1rem; padding: 1rem; border: 1px solid #e9ecef; border-radius: 8px; margin-bottom: 0.75rem; }
.res-icon { width: 40px; height: 40px; border-radius: 8px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 1.2rem; }
.res-icon.pdf { background: #ffeaea; color: #dc3545; } .res-icon.doc { background: #e3f2fd; color: #0d6efd; }
.res-info { flex-grow: 1; } .btn-download { background: none; border: none; color: #adb5bd; cursor: pointer; font-size: 1.1rem; }
.official-claim-box { background-color: #fff3cd; border: 1px solid #ffeeba; border-radius: 8px; padding: 1.5rem; display: flex; gap: 1rem; margin-bottom: 2rem; }
.icon-claim { font-size: 2rem; color: #856404; } .claim-text h5 { margin: 0 0 0.5rem 0; color: #856404; font-weight: 700; font-size: 1.1rem; }
.btn-claim { background-color: #856404; color: #fff; padding: 0.5rem 1rem; border-radius: 4px; text-decoration: none; font-weight: 600; font-size: 0.9rem; }
.empty-state-simple { text-align: center; color: #adb5bd; padding: 2rem; } .empty-state-simple i { font-size: 2.5rem; margin-bottom: 1rem; display: block; }

.faq-list-placeholder { display: flex; flex-direction: column; gap: 1.25rem; margin-top: 1.5rem; }
.faq-item-placeholder { background: #ffffff; border: 1px solid #edf2f7; border-left: 4px solid #7209b7; border-radius: 12px; padding: 1.5rem; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); cursor: default; }
.faq-item-placeholder:hover { transform: translateX(8px); border-color: #7209b7; box-shadow: 0 10px 20px rgba(114, 9, 183, 0.05); }
.faq-question-placeholder { font-family: 'Sora', sans-serif; font-size: 1.1rem; font-weight: 700; color: #212529; margin-bottom: 0.75rem; display: flex; align-items: flex-start; gap: 10px; line-height: 1.4; }
.faq-question-placeholder::before { content: "Q:"; color: #7209b7; font-weight: 800; opacity: 0.8; }
.faq-answer-placeholder { font-family: 'Manrope', sans-serif; color: #6c757d; line-height: 1.6; font-size: 0.95rem; padding-left: 30px; position: relative; font-style: italic; }
.faq-answer-placeholder::before { content: "—"; position: absolute; left: 5px; color: #dee2e6; font-style: normal; }

.btn-action-small { display: inline-flex; align-items: center; gap: 8px; background-color: var(--edu-primary); color: #ffffff !important; padding: 10px 22px; border-radius: 50px; font-family: 'Sora', sans-serif; font-size: 0.85rem; font-weight: 700; text-decoration: none !important; transition: all 0.3s ease; box-shadow: 0 4px 12px rgba(0, 90, 156, 0.2); border: none; }
.btn-action-small:hover { background-color: #004a80; transform: translateY(-2px); box-shadow: 0 6px 15px rgba(0, 90, 156, 0.3); }
.btn-action-small:hover span { transform: translateX(5px); }


/* ========================================================== */
/*                      ACȚIUNI PROFIL                        */
/* ========================================================== */

.profil-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e9ecef;
}

.action-button {
    background-color: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    color: #fff;
    padding: 0.6rem 1.2rem;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s;
    gap: 0.5rem;
}

.action-button:hover {
    background-color: rgba(255,255,255,0.2);
    border-color: rgba(255,255,255,0.4);
    transform: translateY(-2px);
}

.action-button i {
    font-size: 14px;
}

.action-button.aida-btn {
    background-color: #4c6ef5;
    border-color: #4c6ef5;
    box-shadow: 0 4px 12px rgba(76,110,245,0.3);
}

.action-button.aida-btn:hover {
    background-color: #4263eb;
    box-shadow: 0 6px 20px rgba(76,110,245,0.4);
}



.action-button.favorite-btn.is-favorite {
    background-color: rgba(255, 255, 255, 0.15) !important;
    border-color: rgba(255, 255, 255, 0.4) !important;
    color: #ffffff !important; /* AICI AM MODIFICAT: din roșu în alb */
}

.action-button.favorite-btn.is-favorite i {
    color: #f72585 !important; /* Iconița rămâne roz/roșie */
    filter: drop-shadow(0 0 2px rgba(247, 37, 133, 0.4));
}


/* ========================================================== */
/*                  DISTINCȚII ȘI MODAL                       */
/* ========================================================== */

.distinctions-highlights {
    background-color: #f7f9fc;
    border: 1px solid #e0e6ed;
    border-radius: 8px;
    padding: 15px;
    margin-top: 20px;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.distinction-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95em;
    transition: var(--transition-smooth);
}

.distinction-item:hover {
    transform: translateX(4px);
}

.distinction-item .distinction-badge {
    font-size: 1.5em;
    line-height: 1;
}

.distinction-item strong {
    color: #0056b3;
}

.view-more-distinctions {
    font-size: 0.9em;
    color: #007bff;
    text-decoration: underline;
    cursor: pointer;
    margin-left: 5px;
    transition: var(--transition-fast);
}

.view-more-distinctions:hover {
    color: #0056b3;
}

.distinction-modal-overlay {
    position: fixed; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    background-color: rgba(33, 37, 41, 0.7); 
    backdrop-filter: blur(5px); 
    z-index: 10000; 
    display: none; 
    align-items: center; 
    justify-content: center; 
    padding: 1rem; 
}

.distinction-modal-content {
    background-color: #fff; 
    width: 100%; 
    max-width: 600px; 
    max-height: 85vh; 
    border-radius: 12px; 
    padding: 2rem; 
    position: relative; 
    overflow-y: auto;
    box-shadow: 0 20px 50px rgba(0,0,0,0.2);
}

.distinction-modal-content h3 {
    margin-top: 0;
    color: #333;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.distinction-modal-content ul {
    list-style: none;
    padding: 0;
    margin: 0; 
    display: flex; 
    flex-direction: column; 
    gap: 1rem;
}

.distinction-modal-content li {
    background-color: #ffffff; 
    border: 1px solid #e9ecef; 
    border-left: 5px solid var(--edu-primary); 
    border-radius: 8px; 
    padding: 1rem; 
    display: flex; 
    flex-direction: column; 
    gap: 0.5rem;
    transition: var(--transition-smooth);
}

.distinction-modal-content li:hover {
    transform: translateX(8px);
    background-color: #f8f9fa;
}

.distinction-modal-content li strong {
    font-family: var(--font-display); 
    font-size: 1.05rem;
    color: #0056b3;
    display: block;
    margin-bottom: 3px;
}

.distinction-modal-content li span { 
    background-color: #f0f7ff; 
    color: var(--edu-primary); 
    padding: 0.5rem 1rem; 
    border-radius: 50px; 
    align-self: flex-start; 
    font-weight: 600; 
    font-size: 0.9rem; 
    display: inline-flex; 
    align-items: center; 
}

.distinction-modal-content li span::before { 
    content: "★"; 
    margin-right: 8px; 
    color: #f5b400; 
}

.close-modal-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 2em;
    color: #888;
    cursor: pointer;
    line-height: 1;
    border: none;
    background: transparent;
    transition: var(--transition-smooth);
}

.close-modal-btn:hover {
    color: #333;
    transform: rotate(90deg);
}

/* ========================================================== */
/*                    GRAFICE UNIFICATE                       */
/* ========================================================== */

.grafic-container,
.grafic-container-profil,
.grafic-container-bac {
    position: relative;
    height: 400px;
    width: 100%;
    margin-top: 2.5rem;
    margin-bottom: 2.5rem;
}

.grafic-wrapper { 
    position: relative; 
    width: 100%; 
    overflow-x: hidden; 
    padding-bottom: 10px; 
    height: 400px !important; 
    margin-top: 2.5rem;
    margin-bottom: 2.5rem;
}

.grafic-wrapper canvas { min-width: 450px; }


.grafic-container h4,
.grafic-container-profil h4,
.grafic-wrapper h4,
.grafic-container-bac h4 {
    text-align: center;
    margin-bottom: 1.5rem;
    font-weight: 500;
    color: #495057;
}

/* Analiza Performanta Compact */
.stats-compact-bar { display: flex; flex-wrap: wrap; gap: 2rem 3rem; padding-bottom: 1.5rem; margin-bottom: 1rem; border-bottom: 1px solid #f1f3f5; align-items: baseline; justify-content: center; }
.stat-item-compact { display: flex; flex-direction: column; text-align: center; }
.stat-item-compact .label { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.5px; color: #6c757d; margin-bottom: 4px; font-weight: 600; }
.stat-item-compact .value { font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; color: #212529; line-height: 1; }
.stat-item-compact .value.text-success { color: #198754; } .stat-item-compact .value.text-danger { color: #dc3545; }

.bac-stats-main-container { display: flex; flex-wrap: wrap; justify-content: space-around; align-items: center; background: #f8f9fa; border: 1px solid #eee; border-radius: 15px; padding: 30px 15px; margin: 1.5rem 0 2.5rem 0; gap: 20px; }
.stat-group { display: flex; flex-direction: column; align-items: center; text-align: center; flex: 1; min-width: 120px; }
.stat-value { font-family: 'Sora', sans-serif; font-size: 2.2rem; font-weight: 800; color: #212529; line-height: 1; margin-bottom: 8px; }
.stat-label { font-size: 0.9rem; color: #6c757d; font-weight: 500; text-transform: none; }
.stat-value.success { color: #198754 !important; }
.stat-value.danger { color: #dc3545 !important; }

.evolution-split-layout { display: grid; grid-template-columns: 3.5fr 8.5fr; gap: 3rem; align-items: center; margin-top: 1rem; }
.evolution-left table { width: 100% !important; font-size: 0.7rem !important; table-layout: auto !important; }
.evolution-left table th { max-width: 50px !important; line-height: 1 !important; padding: 4px 1px !important; }
.evolution-left table td { padding: 4px 1px !important; }

.evolution-right { min-width: 0; }
.evolution-right h4 { text-align: center; font-size: 0.9rem; color: #6c757d; margin: 0 0 0.5rem 0; }

/* ========================================================== */
/*                  PROBE ȘI COMPETENȚE                       */
/* ========================================================== */

.probe-container,
.competente-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    width: 100%;
    margin-bottom: 2.5rem;
    margin-top: 1rem;
}

.proba-card,
.competenta-card {
    background-color: #ffffff;
    border: none;
    border-top: 4px solid var(--edu-primary);
    border-radius: 8px;
    padding: 1.5rem 2rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.04);
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
}

.proba-card:hover,
.competenta-card:hover {
    box-shadow: 0 15px 35px rgba(0,0,0,0.08);
    transform: translateY(-4px);
}

.proba-card h5,
.competenta-card h5 {
    font-family: var(--font-display);
    margin-top: 0;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #212529;
    border-bottom: none;
    padding-bottom: 0;
}

.tabel-competente {
    width: 100%;
    font-size: 0.9rem;
}

.tabel-competente td {
    padding: 0.5rem 0;
    border-bottom: 1px solid #e9ecef;
}

.tabel-competente tr {
    transition: var(--transition-fast);
}

.tabel-competente tr:hover {
    background-color: #f8f9fa;
}

.tabel-competente tr:last-child td {
    border-bottom: none;
}

.tabel-competente td:last-child {
    text-align: right;
    font-weight: 600;
    color: #0056b3;
}

.competenta-card table, .proba-card table { width: 100%; border-collapse: separate; border-spacing: 0 4px; }
.competenta-card th, .proba-card th { font-size: 0.75rem; text-transform: uppercase; color: #adb5bd; font-weight: 600; padding: 0.5rem 0.8rem; border-bottom: 1px solid #f1f3f5; white-space: nowrap;}
.competenta-card td, .proba-card td { font-size: 0.9rem; padding: 0.6rem 0.5rem; background: #fff; border-bottom: 1px solid #f8f9fa; transition: background 0.2s; }
.competenta-card tr:hover td, .proba-card tr:hover td { background: #f8f9fa; color: var(--edu-primary); }

/* ========================================================== */
/*                  TAB-URI UNIFICATE                         */
/* ========================================================== */

.tabs-nav-bac,
.tabs-nav-en,
.tabs-nav-nearby {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
    border-bottom: 1px solid #dee2e6;
    justify-content: center;
}

.tabs-nav-bac li,
.tabs-nav-en li,
.tabs-nav-nearby li {
    margin-right: 1px;
}

.tabs-nav-bac a,
.tabs-nav-en a,
.tabs-nav-nearby a {
    display: block;
    padding: 0.75rem 1.25rem;
    background-color: transparent;
    color: #495057;
    text-decoration: none;
    border: 1px solid transparent;
    border-radius: 0.25rem 0.25rem 0 0;
    font-weight: 600;
    transition: var(--transition-smooth);
}

.tabs-nav-bac a:hover,
.tabs-nav-en a:hover,
.tabs-nav-nearby a:hover {
    background-color: #f8f9fa;
    transform: translateY(-2px);
}

.tabs-nav-bac li.is-active a,
.tabs-nav-en li.is-active a,
.tabs-nav-nearby li.is-active a {
    background-color: #fff;
    border-color: #dee2e6 #dee2e6 #fff;
    color: #495057;
    font-weight: bold;
    box-shadow: none;
    cursor: default;
}

.tab-panel-bac.is-hidden,
.tab-panel-en.is-hidden,
.tab-panel-nearby.is-hidden {
    display: none !important;
}

.tabs-nav-detaliate {
    display: flex;
    flex-wrap: wrap;
    list-style-type: none;
    padding: 0;
    margin: 0 0 -1px 0;
    border-bottom: 2px solid #dee2e6;
}

.tabs-nav-detaliate li {
    margin-right: 0.5rem;
    margin-bottom: -2px;
}

.tabs-nav-detaliate a {
    display: block;
    padding: 0.8rem 1.2rem;
    color: #495057;
    border-radius: 8px 8px 0 0;
    border: 2px solid transparent;
    font-weight: 500;
    transition: var(--transition-smooth);
}

.tabs-nav-detaliate a:hover:not(.is-active) {
    background-color: #f1f3f5;
    color: #007bff;
    transform: translateY(-2px);
}

.tabs-nav-detaliate li.is-active a {
    color: #0056b3;
    background: linear-gradient(135deg, #e7f5ff, #f0f9ff);
    border-color: #dee2e6 #dee2e6 #fff #dee2e6;
    box-shadow: 0 2px 8px rgba(0,90,156,0.1);
}

.tab-content-detaliate {
    padding: 1.5rem;
    border: 1px solid #dee2e6;
    border-top: none;
    border-radius: 0 0 8px 8px;
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.04);
}

.tab-panel-detaliate.is-hidden {
    display: none;
}

/* Specific table adjustments for tabs */
.tab-panel-en[data-tab="3"] table, .tab-panel-bac[data-tab="3"] table { width: 100% !important; table-layout: fixed !important; }
.tab-panel-en[data-tab="3"] td, .tab-panel-bac[data-tab="3"] td { font-size: 0.72rem !important; padding: 6px 2px !important; white-space: normal !important; line-height: 1.2; }
.tab-panel-en[data-tab="3"] td:first-child, .tab-panel-bac[data-tab="3"] td:first-child { width: 35% !important; font-weight: 700; text-align: left !important; }
.tab-panel-en[data-tab="3"] th, .tab-panel-bac[data-tab="3"] th { font-size: 0.65rem !important; white-space: normal !important; line-height: 1 !important; padding: 5px 2px !important; vertical-align: bottom !important; word-break: break-word !important; }


/* ========================================================== */
/*                      BACALAUREAT                           */
/* ========================================================== */

.bac-summary-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background-color: #f8f9fa;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.04);
}

.bac-summary-card {
    text-align: center;
    transition: var(--transition-smooth);
}

.bac-summary-card:hover {
    transform: scale(1.05);
}

.bac-summary-card .value {
    font-size: 2rem;
    font-weight: 700;
    color: #0056b3;
}

.bac-summary-card .label {
    font-size: 0.8rem;
    color: #6c757d;
    margin-top: 0.25rem;
}

.bac-summary-card.success .value {
    color: var(--edu-success);
}

.bac-summary-card.failure .value {
    color: var(--edu-danger);
}

.bac-details-link-wrapper { 
    margin-top: 2rem; 
    margin-bottom: 2rem; 
    text-align: center; 
}
.bac-details-link-wrapper .button-link { 
    display: inline-flex; 
    align-items: center; 
    justify-content: center; 
    background-color: var(--edu-primary); 
    color: #fff; 
    font-weight: 600; 
    padding: 0.8rem 2rem; 
    border-radius: 50px; 
    text-decoration: none; 
    box-shadow: 0 4px 6px rgba(0,90,156,0.2); 
    transition: all 0.2s; 
}
.bac-details-link-wrapper .button-link:hover { 
    background-color: #004175; 
    transform: translateY(-2px); 
    box-shadow: 0 6px 12px rgba(0,90,156,0.3); 
}

.indent-value {
    display: inline-block;
    margin-left: 10px;
}

/* ========================================================== */
/*                     HĂRȚI LEAFLET                          */
/* ========================================================== */

.map-legend {
    margin-top: 15px;
}

.legend-list {
    list-style: none;
    padding: 0;
    margin: 10px 0;
}

.legend-list li {
    display: flex;
    align-items: center;
    margin-bottom: 5px;
}

.legend-color-box {
    width: 20px;
    height: 20px;
    border: 1px solid #ccc;
    margin-right: 10px;
    display: inline-block;
}

.legend-color-box.blue {
    background-color: #2a6fdb;
}

.legend-color-box.green {
    background-color: #58b442;
}

.legend-color-box.red {
    background-color: #d83c2c;
}

.custom-div-icon {
    background: transparent;
    border: none;
}

.marker-pin {
    width: 22px;
    height: 22px;
    border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg);
    border: 1px solid #FFFFFF;
    box-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

.marker-pin.blue {
    background-color: #2a6fdb;
}

.marker-pin.green {
    background-color: #58b442;
}

.marker-pin.red {
    background-color: #d83c2c;
}

/* ========================================================== */
/*                  FORMULAR RECENZIE                         */
/* ========================================================== */

.review-form-container { 
    visibility: hidden; 
    background-color: #f0f2f5; 
    padding: 0 1rem; 
    max-height: 0; 
    overflow: hidden; 
    opacity: 0; 
    transition: max-height 0.7s, padding 0.5s, opacity 0.5s; 
    border-radius: 12px;
    margin-top: 1.5rem;
    border: 1px solid #e9ecef;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.review-form-container.is-visible { 
    visibility: visible; 
    max-height: 2500px; 
    opacity: 1; 
    padding: 2.5rem 2rem; 
}

.review-content-wrapper { 
    max-width: 900px; 
    margin: 0 auto; 
    background: #fff; 
    border-radius: 12px; 
    box-shadow: 0 5px 20px rgba(0,0,0,0.1); 
    padding: 2rem; 
}

.review-form-container .intro-text {
    text-align: center;
    margin: -2rem -2rem 2rem -2rem; 
    padding: 2.5rem 2rem; 
    background: #f8f9fa; 
    border-bottom: 1px solid #dee2e6; 
    border-radius: 12px 12px 0 0;
}

.review-form-container .intro-text h3 {
    font-family: var(--font-display); 
    font-size: 2rem; 
    color: var(--edu-text-dark); 
    margin-top: 0;
}

.review-form-container .intro-text p {
    color: #495057;
    max-width: 600px;
    margin: 0.5rem auto 0;
    line-height: 1.7;
}

.review-form-container .intro-text .material-icons-outlined { 
    font-size: 2.5rem; 
    color: var(--edu-primary); 
    margin-bottom: 0.5rem; 
}

.review-form-body {
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    gap: 2rem;
}

.review-ratings {
    display: flex; 
    flex-direction: column; 
    gap: 1rem;
}

.review-text-fields {
    display: flex; 
    flex-direction: column;
}

.rating-group {
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    margin-bottom: 1.25rem;
}

.rating-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0; 
    font-size: 0.95rem;
    color: #495057;
}

.rating-group .stars {
    display: flex;
    gap: 8px;
    align-items: center;
    cursor: pointer;
}

.rating-group .stars i {
    font-size: 1.8rem;
    color: var(--edu-warning);
    cursor: pointer;
    transition: transform 0.2s ease, opacity 0.2s ease;
    filter: drop-shadow(0 1px 2px rgba(255,193,7,0.2));
}

.rating-group .stars i:hover {
    transform: scale(1.2);
}

.rating-group .stars i.far { opacity: 0.4; }
.rating-group .stars i.fas { opacity: 1; text-shadow: 0 0 8px rgba(255, 193, 7, 0.3); }

.rating-group.main-rating { 
    background: transparent; 
    padding: 0; 
    border: none; 
    margin-bottom: 1.25rem !important; 
}

.rating-group.main-rating label { 
    font-weight: 800; 
    color: #212529; 
    font-size: 0.95rem; 
}

.rating-group.main-rating .stars i {
    font-size: 2rem;
}

.review-form-body .form-group {
    margin-bottom: 1.5rem;
}

.review-form-body .form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.review-form-body .form-group select,
.review-form-body .form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ced4da;
    border-radius: 6px;
    font-size: 1rem;
    box-sizing: border-box;
    transition: var(--transition-smooth);
    font-family: var(--font-body);
}

.review-form-body .form-group select:focus,
.review-form-body .form-group textarea:focus {
    outline: none;
    border-color: var(--edu-primary);
    box-shadow: 0 0 0 3px rgba(0,90,156,0.1);
}

.review-submit-btn {
    background-color: #005a9c;
    color: white;
    padding: 0.8rem 1.8rem;
    border: none;
    border-radius: 50px;
    font-weight: bold;
    cursor: pointer;
    transition: var(--transition-smooth);
    box-shadow: 0 4px 12px rgba(25,135,84,0.2);
    font-size: 1.1rem;
}

.review-submit-btn:hover {
    background-color: #00447c;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(25,135,84,0.3);
}

.review-form-container .review-success-message {
    display: none;
    text-align: center; 
    padding: 2rem;
}

.review-form-container.success-mode .review-form {
    display: none;
}

.review-form-container.success-mode .review-success-message {
    display: block;
}

.success-icon-wrapper { margin: 0 auto 1.5rem; width: 80px; height: 80px; }
.checkmark { width: 80px; height: 80px; border-radius: 50%; display: block; stroke-width: 2; stroke: #fff; stroke-miterlimit: 10; margin: 10% auto; box-shadow: inset 0px 0px 0px #7ac142; animation: fill .4s ease-in-out .4s forwards, scale .3s ease-in-out .9s both; }
.checkmark-circle { stroke-dasharray: 166; stroke-dashoffset: 166; stroke-width: 2; stroke-miterlimit: 10; stroke: #7ac142; fill: none; animation: stroke 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards; }
.checkmark-check { transform-origin: 50% 50%; stroke-dasharray: 48; stroke-dashoffset: 48; stroke: #fff; animation: stroke 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.8s forwards; }
@keyframes stroke { 100% { stroke-dashoffset: 0; } } @keyframes scale { 0%, 100% { transform: none; } 50% { transform: scale3d(1.1, 1.1, 1); } } @keyframes fill { 100% { box-shadow: inset 0px 0px 0px 30px #7ac142; } }


.review-image-upload {
    margin-top: 20px;
    border-top: 1px solid #e0e0e0;
    padding-top: 20px;
}

#image-preview-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}

.image-preview-item {
    position: relative;
    width: 100px;
    height: 100px;
    border: 1px solid #ccc;
    border-radius: 8px;
    overflow: hidden;
    transition: var(--transition-smooth);
}

.image-preview-item:hover {
    transform: scale(1.05);
}

.image-preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-preview-item .remove-image-btn {
    position: absolute;
    top: 2px;
    right: 2px;
    background: rgba(0,0,0,0.6);
    color: white;
    border: none;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 14px;
    line-height: 20px;
    text-align: center;
    cursor: pointer;
    font-weight: bold;
    transition: var(--transition-smooth);
}

.image-preview-item .remove-image-btn:hover {
    background: rgba(0,0,0,0.8);
}

/* ========================================================== */
/*                  AFIȘARE RECENZII                          */
/* ========================================================== */

.reviews-summary-section {
    border-top: 1px solid #e9ecef;
    padding-top: 1.5rem;
    margin-top: 2rem;
}

.reviews-aggregate-container {
    display: flex;
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    gap: 2rem;
    flex-wrap: wrap;
    box-shadow: 0 4px 16px rgba(0,0,0,0.04);
}

.aggregate-left {
    flex: 1;
    min-width: 200px;
    text-align: center;
    border-right: 1px solid #dee2e6;
    padding-right: 2rem;
}

.aggregate-right {
    flex: 2;
    min-width: 300px;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.overall-score {
    font-family: var(--font-display);
    font-size: 4.5rem;
    font-weight: 800;
    color: var(--edu-primary);
    line-height: 1;
    margin-bottom: 0.25rem;
    text-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.star-rating {
    color: var(--edu-warning);
    filter: drop-shadow(0 1px 3px rgba(255,193,7,0.3));
}

.large-stars {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 1rem;
}

.large-stars i {
    font-size: 2.3rem;
    color: #ffc107;
    transition: transform 0.2s ease;
}

.large-stars i.far { opacity: 0.4; }
.large-stars i:hover { transform: scale(1.1); }

.total-reviews {
    font-size: 0.9rem;
    color: #6c757d;
}

.category-rating {
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: var(--transition-smooth);
}

.category-rating:hover {
    transform: translateX(4px);
}

.category-name {
    flex-basis: 45%;
    text-align: right;
    color: #495057;
    font-size: 0.9rem;
}

.category-score {
    font-weight: 600;
    color: #343a40;
}

.category-rating-link { text-decoration: none; display: block; border-radius: 6px; transition: background 0.2s; } .category-rating-link:hover { background: #f8f9fa; }


.reviews-aggregate-container.no-reviews-placeholder { flex-direction: column; align-items: center; justify-content: center; border: 2px dashed #dee2e6; padding: 3rem 2rem; }
.no-reviews-placeholder .aggregate-left { border: none; padding: 0; margin-bottom: 1rem; }
.reviews-aggregate-container.no-reviews-placeholder .review-invitation-box { background: none; border: none; margin: 0; padding: 0; justify-content: center; flex-direction: column; width: 100%; }
.reviews-aggregate-container.no-reviews-placeholder .review-invitation-box p { text-align: center; color: #6c757d; margin-bottom: 1rem; }

.review-invitation-box { background-color: #f0f7ff; border: 1px dashed #bde0ff; border-radius: 8px; padding: 1.5rem; margin: 2rem 0; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; }
.action-button-trivia { background-color: var(--edu-primary); color: #fff; padding: 0.6rem 1.2rem; border-radius: 50px; text-decoration: none; font-weight: 600; transition: all 0.2s; }
.action-button-trivia:hover { background-color: #004175; transform: translateY(-2px); }


.reviews-list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    border-bottom: 1px solid #f1f3f5;
    padding-bottom: 1rem;
    flex-wrap: wrap; 
    gap: 1rem;
}

.reviews-list-header h4 {
    margin: 0;
}

.review-filters { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.filter-pill { background: #fff; border: 1px solid #dee2e6; color: #6c757d; padding: 0.35rem 1rem; border-radius: 50px; cursor: pointer; font-weight: 600; font-size: 0.9rem; transition: all 0.2s; }
.filter-pill:hover { background: #f8f9fa; color: #495057; }
.filter-pill.active { background: var(--edu-primary); border-color: var(--edu-primary); color: #fff; }
.sort-trigger { cursor: pointer; color: #6c757d; font-style: italic; font-size: 0.9rem; display: flex; align-items: center; }
.sort-dropdown { display: none; position: absolute; top: 100%; right: 0; background: #fff; border: 1px solid #e9ecef; border-radius: 8px; box-shadow: 0 4px 15px rgba(0,0,0,0.1); z-index: 100; min-width: 140px; }
.sort-dropdown.active { display: block; }
.sort-option { padding: 0.6rem 1rem; font-size: 0.9rem; color: #495057; cursor: pointer; }
.sort-option:hover { background: #f8f9fa; color: var(--edu-primary); }
.sort-custom-container { position: relative; margin-left: auto; }


.reviews-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.review-card {
    display: flex;
    flex-direction: column;
    gap: 0;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    background-color: #fff;
    box-shadow: none;
    transition: none;
    overflow: visible;
}

@media (min-width: 768px) { .review-card { flex-direction: row; align-items: stretch; } .review-card-left { width: 260px; border-bottom: none; border-right: 1px solid #f8f9fa; } }

.review-card:hover {
    box-shadow: none;
    border-color: #dee2e6;
}

.review-card-left {
    padding: 1.5rem;
    border-bottom: 1px solid #f1f3f5;
    flex-shrink: 0;
    background: #fff;
}

.author-info { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1rem; }
.author-avatar { width: 48px; height: 48px; border-radius: 50%; background: #e9ecef; display: flex; align-items: center; justify-content: center; color: #adb5bd; overflow: hidden; }
.author-avatar svg, .author-avatar img { width: 60%; height: 60%; object-fit: cover; }
.rating-line { display: flex; align-items: center; gap: 1rem; margin-bottom: 0.35rem; }
.rating-label { flex: 0 0 100px; text-align: right; font-size: 0.85rem; font-weight: 600; color: #495057; white-space: nowrap; }
.stars-display { color: #ffc107; font-size: 0.85rem; text-align: left; display: flex; gap: 2px; }

.review-author {
    font-size: 0.9rem;
    color: #6c757d;
    margin-bottom: 1rem;
}

.review-author strong {
    color: #343a40;
    display: block;
    font-size: 1rem;
}

.review-ratings-summary span {
    display: block;
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.review-card-right {
    padding: 1.5rem; 
    flex-grow: 1; 
    background: #fff; 
    display: flex; 
    flex-direction: column; 
    gap: 1rem;
}

.review-text-section h5 {
    margin: 0 0 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
}

.review-text-section.positive h5 {
    color: #2e7d32;
}

.review-text-section.negative h5 {
    color: #c62828;
}

.review-text-section p {
    margin: 0 0 1rem;
    line-height: 1.6;
}

.review-image-gallery {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}

.review-image-gallery a {
    display: block;
    width: 70px;
    height: 70px;
    border-radius: 4px;
    overflow: hidden;
    transition: var(--transition-smooth);
}

.review-image-gallery a:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.review-image-gallery img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.review-card-actions {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid #f1f3f5;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.vote-button {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    color: #6c757d;
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s;
}

.vote-button:hover {
    background: #e9ecef;
    color: #343a40;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.vote-count {
    font-size: 0.85rem;
    color: #adb5bd;
}

.vote-button.voted {
    background: #e7f5ff;
    border-color: #a5d8ff;
    color: var(--edu-primary);
    box-shadow: 0 2px 8px rgba(0,123,255,0.2);
}

.vote-button.voted:hover {
    background-color: #0069d9;
    border-color: #0062cc;
}

.vote-button.voted i {
    font-weight: 900;
    transform: scale(1.1) rotate(-10deg);
}

.reviews-footer {
    text-align: center;
    margin-top: 2rem;
}

/* ========================================================== */
/*                    GALERII FOTO                            */
/* ========================================================== */

.gallery-list-simple {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.gallery-item-simple {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-decoration: none;
    color: #333;
    padding: 10px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    transition: var(--transition-smooth);
}

.gallery-item-simple:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    color: #0056b3;
}

.gallery-thumb-simple {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 10px;
}

.gallery-info-simple h6 {
    margin: 0 0 5px 0;
    font-size: 1.1rem;
    font-weight: bold;
}

.gallery-info-simple span {
    font-size: 0.9rem;
    color: #6c757d;
}

#lightbox-gallery-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 11000;
    display: none;
    justify-content: center;
    align-items: center;
    padding: 20px;
    box-sizing: border-box;
    cursor: pointer;
    visibility: hidden;
    opacity: 0;
    transition: visibility 0s 0.3s, opacity 0.3s ease;
    flex-direction: column;
}

#lightbox-gallery-overlay.visible {
    visibility: visible;
    opacity: 1;
    transition: visibility 0s, opacity 0.3s ease;
    display: flex !important;
}

.lightbox-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    max-width: 1200px;
    max-height: 95vh;
    cursor: default;
    position: relative;
}

.lightbox-main-image {
    position: relative;
    width: 100%;
    flex-grow: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

#lightbox-image {
    max-width: 90%;
    max-height: 80%;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}

.lightbox-control {
    position: absolute;
    background: rgba(255,255,255,0.1);
    color: white;
    border: none;
    cursor: pointer;
    font-size: 2rem;
    font-weight: 100;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: var(--transition-smooth);
    z-index: 10;
    -webkit-font-smoothing: antialiased;
    padding: 10px 20px; 
    border-radius: 50%;
}

.lightbox-control:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: scale(1.1);
}

#lightbox-close {
    position: absolute; 
    top: 20px; 
    right: 20px;
    width: 40px;
    height: 40px;
    font-size: 2rem;
    line-height: 40px;
    border-radius: 50%;
}

#lightbox-prev,
#lightbox-next {
    top: 50%;
    transform: translateY(-50%);
    height: 80px;
    width: 50px;
}

#lightbox-prev {
    position: absolute; 
    left: 20px;
    border-radius: 4px 0 0 4px;
}

#lightbox-next {
    position: absolute; 
    right: 20px;
    border-radius: 0 4px 4px 0;
}

.lightbox-thumbs-container {
    height: 80px; 
    margin-top: 20px;
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-shrink: 0;
    max-width: 100%;
    overflow-x: auto;
    padding-bottom: 5px;
}

.lightbox-thumbs-container img {
    height: 100%;
    object-fit: cover;
    border-radius: 3px;
    cursor: pointer;
    border: 2px solid transparent;
    opacity: 0.6;
    transition: var(--transition-smooth);
}

.lightbox-thumbs-container img:hover {
    opacity: 1;
}

.lightbox-thumbs-container img.active {
    opacity: 1;
    border-color: var(--edu-primary);
}

/* ========================================================== */
/*                    CHATBOT AIDA                            */
/* ========================================================== */

.chat-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(10, 22, 39, 0.5);
    backdrop-filter: blur(5px);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
}

.chat-modal-overlay.active, .chat-modal-overlay.is-active {
    opacity: 1;
    visibility: visible;
}

#chat-container {
    width: 95%;
    max-width: 800px;
    height: 85vh;
    max-height: 700px;
    background: #ffffff;
    border-radius: 24px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: scale(0.95) translateY(20px);
    transition: transform 0.3s;
    border: none;
}

.chat-modal-overlay.active #chat-container, .chat-modal-overlay.is-active #chat-container {
    transform: scale(1) translateY(0);
}

#close-chat-btn {
    background: none;
    border: none;
    color: white;
    font-size: 28px;
    cursor: pointer;
    line-height: 1;
    opacity: 0.8;
    transition: var(--transition-smooth);
}

#close-chat-btn:hover {
    opacity: 1;
    transform: rotate(90deg);
}

#chat-header {
    position: relative;
    background: linear-gradient(135deg, #f72585, #b5179e);
    color: white;
    padding: 16px 24px;
    font-weight: 600;
    font-size: 1rem;
    border-bottom: 1px solid #b5179e;
    display: flex; 
    justify-content: space-between; 
    align-items: center;
}

#chat-log {
    flex-grow: 1;
    padding: 24px;
    overflow-y: auto;
    background-color: #f9fafb;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.chat-message {
    padding: 12px 18px;
    border-radius: 18px;
    line-height: 1.5;
    word-wrap: break-word;
    animation: fadeInUp 0.3s ease;
    max-width: 80%;
}

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

.user-message {
    background-color: #f72585;
    color: white;
    align-self: flex-end;
    border-bottom-right-radius: 4px;
}

.ai-message {
    background-color: #ebebeb;
    color: #212529;
    align-self: flex-start;
    border-bottom-left-radius: 4px;
    display: flex;
    align-items: flex-start;
}

.ai-message .cursor {
    display: inline-block;
    width: 10px;
    height: 1.2em;
    background-color: #333;
    animation: blink 1s step-end infinite;
    vertical-align: text-bottom;
}

.chat-message .speaker-btn {
    background: #e9ecef;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    cursor: pointer;
    margin-right: 10px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #495057;
    transition: var(--transition-smooth);
    outline: none;
}

.chat-message .speaker-btn:hover {
    background-color: #dee2e6;
}

.chat-message .speaker-btn.playing {
    background-color: #007bff;
    color: white;
    animation: speaker-pulse 1.5s infinite;
}

.trivia-box {
    margin-top: 15px;
    padding: 10px;
    background-color: rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    font-size: 0.9em;
    line-height: 1.5;
    border-left: 3px solid rgba(255, 255, 255, 0.5);
}

.trivia-box strong {
    color: inherit;
}

#chat-form {
    display: flex;
    padding: 16px;
    border-top: 1px solid #e0e0e0;
    background-color: #ffffff;
    align-items: center;
    gap: 10px;
}

#user-input {
    flex-grow: 1;
    border: 1px solid #ccc;
    padding: 12px 20px;
    border-radius: 30px;
    font-size: 0.95rem;
    transition: var(--transition-smooth);
    outline: none;
}

#user-input:focus {
    outline: none;
    border-color: #f72585;
    box-shadow: 0 0 0 3px rgba(247, 37, 133, 0.1);
}

#chat-form button {
    background-color: #f0f0f0;
    color: white;
    border: none;
    border-radius: 50%;
    width: 48px; 
    height: 48px;
    cursor: pointer;
    font-weight: bold;
    transition: var(--transition-smooth);
    display: flex; 
    justify-content: center; 
    align-items: center;
}

#chat-form button:hover {
    background-color: #e0e0e0;
    transform: scale(1.05);
}

#voice-input-btn {
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 10px;
    border-radius: 50%;
    padding: 0;
    flex-shrink: 0;
}

#voice-input-btn svg {
    width: 20px;
    height: 20px;
}

#voice-input-btn.recording {
    background-color: #e74c3c;
    animation: voice-pulse 1.5s infinite;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 10px 0;
}

.typing-indicator span {
    height: 8px;
    width: 8px;
    background-color: #9ca3af;
    border-radius: 50%;
    margin: 0 2px;
    animation: typing-pulse 1.4s infinite;
}

.typing-indicator span:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-indicator span:nth-child(3) {
    animation-delay: 0.4s;
}

/* ========================================================== */
/*                    FLASH MESSAGES                          */
/* ========================================================== */

.flash-messages {
    width: 100%;
    margin-bottom: 1rem;
}

.alert {
    padding: 1rem;
    margin-bottom: 1rem;
    border: 1px solid transparent;
    border-radius: 8px;
}

.alert-success {
    color: #0f5132;
    background-color: #d1e7dd;
    border-color: #badbcc;
}

.alert-danger {
    color: #842029;
    background-color: #f8d7da;
    border-color: #f5c2c7;
}

.alert-warning {
    color: #664d03;
    background-color: #fff3cd;
    border-color: #ffecb5;
}

.alert-info {
    color: #055160;
    background-color: #cff4fc;
    border-color: #b6effb;
}

/* ========================================================== */
/*                      ANIMAȚII                              */
/* ========================================================== */

@keyframes blink {
    from, to {
        background-color: transparent;
    }
    50% {
        background-color: #333;
    }
}

@keyframes typing-pulse {
    0%, 100% {
        opacity: 0.3;
        transform: scale(0.9);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
}

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

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

/* ========================================================== */
/*                   FOOTER SITE                              */
/* ========================================================== */

.site-footer { 
    background-color: #f9fafb; 
    border-top: 1px solid #e5e7eb; 
    padding: 1rem 0; 
    font-size: 0.875rem; 
    color: #6b7280; 
    margin-top: 3rem;
}
.site-footer .footer-container { 
    max-width: 1140px; 
    margin: 0 auto; 
    display: flex; 
    justify-content: space-between; 
    padding: 0 15px; 
}
@media (max-width: 768px) { .site-footer .footer-container { flex-direction: column; gap: 1rem; text-align: center; } }


/* ========================================================== */
/*                   RESPONSIVE DESIGN                        */
/* ========================================================== */

@media (min-width: 993px) {
    .nav-center,
    .nav-right {
        display: flex;
        gap: 1.5rem;
    }
    
    .nav-mobile-toggle {
        display: none;
    }
}

@media (max-width: 992px) {
    /* Forțăm așezarea Logo (stânga) --- Hamburger (dreapta) */
    .edu-navbar { display: flex !important; justify-content: space-between !important; align-items: center; position: relative; }
    
    /* Împingem butonul în colțul din dreapta */
    .nav-mobile-toggle { order: 3; margin-left: auto; display: block !important; }
    
    /* Meniul Dropdown stil iOS */
   .nav-center { 
        display: none; 
        position: absolute; top: 70px; left: 0; width: 100%; 
        background: #fff; flex-direction: column; padding: 10px 0;
        box-shadow: 0 10px 15px rgba(0,0,0,0.05); border-top: 1px solid #eee;
        z-index: 999;
        text-align: center;
    }
    
    .nav-center.active { display: flex !important; }
    
    .nav-center .nav-link { padding: 16px 0;  width: 100%;   border-bottom: none; transition: background-color 0.2s ease-in-out; color: var(--edu-text-dark); display: block; }
    
    .nav-center .nav-link:hover, 
    .nav-center .nav-link:active { 
        background-color: rgba(0, 0, 0, 0.05) !important;
        color: var(--edu-primary); 
    }

    .nav-right {
        display: none;
    }
    
    /* Animație Hamburger */
    #hamburger-button.open .hamburger-icon { background-color: transparent !important; }
    #hamburger-button.open .hamburger-icon::before { transform: rotate(45deg); top: 0; }
    #hamburger-button.open .hamburger-icon::after { transform: rotate(-45deg); bottom: 0; }
    
    .hero-section-redesigned {
        flex-direction: column;
    }
    
    .gallery-list-simple {
        grid-template-columns: 1fr;
    }

    /* Ajustări Profil pe mobil */
    .profil-container { 
        display: flex !important; 
        flex-direction: column !important; 
        gap: 0 !important;
    }

    .profil-sidebar { 
        display: none !important; /* ÎNCHIS BY DEFAULT */
        order: 1 !important; 
        width: 100% !important; 
        margin-top: 10px !important;
        margin-bottom: 20px !important;
    }

    .profil-main { order: 2 !important;  width: 100% !important; flex: 1; min-width: 0;}

    #sidebar-toggle-btn { 
        display: inline-flex !important; 
        margin-bottom: 10px;
    }

    .profil-container.mobile-sidebar-open .profil-sidebar { 
        display: block !important; 
    }

    .evolution-split-layout { display: flex !important; flex-direction: column; }
    .grafic-wrapper { width: 100% !important; overflow-x: auto; }
    .evolution-left table { min-width: 400px; }
    
    .profil-section { padding: 1.25rem !important; }
}

@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }
    
    .header-categorie {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .hero-section-redesigned,
    .ai-assistant-box,
    .school-search-box {
        padding: 1.5rem;
    }
    
    .search-stats {
        font-size: 1.1rem;
    }
    
    .search-input {
        font-size: 1rem;
        padding: 0.8rem 1rem;
    }
    
    .search-button {
        padding: 0 1.5rem;
    }

    .hero-scoala { padding: 2rem 1rem; } 
    .hero-scoala h1 { font-size: 1.8rem; } 
    .action-button span { display: none; } 
    .action-button { padding: 0.8rem; }

    .site-footer .footer-container { flex-direction: column; gap: 1rem; text-align: center; }
    
    .review-content-wrapper { padding: 1.25rem 1rem !important; margin: 0; }
    .review-form-body { display: flex !important; flex-direction: column !important; gap: 0 !important; }
    .review-ratings { order: 1 !important; width: 100%; }
    .review-text-fields { order: 2 !important; display: flex; flex-direction: column; }
    .review-text-fields .form-group:first-child { margin-top: 1rem; border-top: 1px solid #eee; padding-top: 1.5rem; }
    .rating-group { flex-direction: column !important; align-items: center !important; gap: 12px !important; margin-bottom: 2rem !important; }
    .rating-group label { font-size: 1.1rem !important; text-align: center !important; width: 100%; font-weight: 700; color: #212529; }
    .stars { width: 100%; justify-content: center !important; gap: 10px !important; }
    .stars i { font-size: 2.2rem !important; }
    .form-group textarea, .form-group select { width: 100% !important; max-width: 100% !important; }
    .review-form-container .intro-text { padding: 1.5rem 1rem !important; margin: -1.25rem -1rem 1.5rem -1rem !important; }
}

/* ========================================================== */
/*    15. REPARAȚII ȘCOALĂ GIMNAZIALĂ (AȘCHILEU / GENERAL)    */
/* ========================================================== */

/* 1. Fix Stele Galbene (în cardurile de recenzie) */
.review-ratings-summary .stars-display,
.review-ratings-summary .stars-display i {
    color: #ffc107 !important; /* Galben forțat */
}

/* 2. Fix Galerie Foto (Poze una lângă alta) */
.review-image-gallery {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
    margin-top: 10px;
}

.review-image-gallery a.review-thumbnail {
    display: block;
    width: 70px;  /* Dimensiune fixă */
    height: 70px;
    border: 1px solid #e9ecef;
    border-radius: 4px;
    overflow: hidden;
}

.review-image-gallery img {width: 100%;height: 100%; object-fit: cover;}

/* 3. Fix Tabel "Structuri Arondate" (Sidebar) */
.profil-sidebar .tabel-arondate {table-layout: fixed !important;  width: 100% !important;}

/* Prima coloană (Numele unității) - Aliniat stânga, permite ruperea */
.profil-sidebar .tabel-arondate td:first-child {
    text-align: left !important;
    width: 60% !important;
    white-space: normal !important; /* Permite text pe mai multe rânduri */
    line-height: 1.3;
}

/* Coloanele cu cifre - Centrate */
.profil-sidebar .tabel-arondate th:not(:first-child),
.profil-sidebar .tabel-arondate td:not(:first-child) {text-align: center !important; width: 20% !important; vertical-align: middle;}

/* Forțăm alinierea la stânga pentru titlurile din sidebar */
.profil-sidebar h3,
.profil-sidebar h4.ciclu-divider {text-align: left !important;}

/* Stilizare specifică pentru tabelele din sidebar care NU sunt Liceal */
.profil-sidebar .formatiuni-studiu .tabel-oferta th,
.profil-sidebar .formatiuni-studiu .tabel-oferta td {
    padding: 8px 6px !important;
    text-align: center !important;
    font-size: 0.85rem !important;
    vertical-align: middle;
    border-bottom: 1px solid #f1f3f5;
}

/* Aliniem prima coloană la stânga */
.profil-sidebar .formatiuni-studiu .tabel-oferta th:first-child,
.profil-sidebar .formatiuni-studiu .tabel-oferta td:first-child {
    text-align: left !important;
}