@import url('https://fonts.googleapis.com/css2?family=Lato:wght@400;700&display=swap');

:root {
    --primary-color: #007bff;
    --secondary-color: #17a2b8;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
    --text-color: #333;
    --border-radius: 8px;
    --box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    
    /* 🌿 Verde success pentru butoane zile (la fel ca intervalele orare) */
    --lime-green: #28a745;
    --lime-green-light: #34ce57;
    --lime-green-dark: #218838;
    
    /* 📐 Golden Ratio (φ = 1.618) pentru proporții armonioase */
    --golden-ratio: 1.618;
    --spacing-base: 1rem;
    --spacing-small: calc(var(--spacing-base) / var(--golden-ratio)); /* 0.618rem */
    --spacing-medium: var(--spacing-base); /* 1rem */
    --spacing-large: calc(var(--spacing-base) * var(--golden-ratio)); /* 1.618rem */
    --spacing-xlarge: calc(var(--spacing-base) * var(--golden-ratio) * var(--golden-ratio)); /* 2.618rem */
    
    /* 📏 Font sizes bazate pe golden ratio */
    --font-base: 1rem; /* 16px */
    --font-small: calc(var(--font-base) / var(--golden-ratio)); /* 0.618rem ≈ 10px */
    --font-medium: var(--font-base); /* 1rem = 16px */
    --font-large: calc(var(--font-base) * var(--golden-ratio)); /* 1.618rem ≈ 26px */
    --font-xlarge: calc(var(--font-base) * var(--golden-ratio) * var(--golden-ratio)); /* 2.618rem ≈ 42px */
}

/* ═══════════════════════════════════════════════════════════════════════════
   STILURI PENTRU LOGIN PAGE - CSP COMPLIANT
   ═══════════════════════════════════════════════════════════════════════════ */
.login-page-body {
    background-color: #f8f9fa;
}

.login-container {
    max-width: 400px;
}

.login-logo {
    max-width: 200px;
    width: 100%;
    height: auto;
    object-fit: contain;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

/* Responsive pentru login logo */
@media (max-width: 576px) {
    .login-logo {
        max-width: 150px;
    }
}

@media (max-width: 400px) {
    .login-logo {
        max-width: 120px;
    }
}

/* ═══════════════════════════════════════════════════════════════════════════
   STILURI PENTRU DASHBOARD - CSP COMPLIANT
   ═══════════════════════════════════════════════════════════════════════════ */
.dashboard-logo {
    height: 50px;
    width: auto;
    max-width: 100%;
    margin-right: 10px;
    object-fit: contain;
    transition: all 0.3s ease;
}

/* Responsive pentru dashboard logo */
@media (max-width: 768px) {
    .dashboard-logo {
        height: 35px;
    }
}

@media (max-width: 480px) {
    .dashboard-logo {
        height: 30px;
    }
}

.scrollable-table {
    max-height: 40vh;
}

.copyable-content-hidden {
    display: none;
}

/* ═══════════════════════════════════════════════════════════════════════════
   STILURI PENTRU MANAGE BOOKING - CSP COMPLIANT
   ═══════════════════════════════════════════════════════════════════════════ */
.manage-booking-logo {
    max-width: 120px;
    width: 100%;
    height: auto;
    object-fit: contain;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

/* Responsive pentru manage booking logo */
@media (max-width: 576px) {
    .manage-booking-logo {
        max-width: 100px;
    }
}

@media (max-width: 400px) {
    .manage-booking-logo {
        max-width: 80px;
    }
}

/* ═══════════════════════════════════════════════════════════════════════════
   STILURI PENTRU GDPR PAGE - CSP COMPLIANT
   ═══════════════════════════════════════════════════════════════════════════ */
.gdpr-logo {
    max-width: 200px;
    width: 100%;
    height: auto;
    object-fit: contain;
    margin: 20px auto;
    display: block;
    transition: all 0.3s ease;
}

/* Responsive pentru GDPR logo */
@media (max-width: 768px) {
    .gdpr-logo {
        max-width: 150px;
    }
}

@media (max-width: 576px) {
    .gdpr-logo {
        max-width: 120px;
    }
}

@media (max-width: 400px) {
    .gdpr-logo {
        max-width: 100px;
    }
}

/* Stiluri pentru conținutul paginii GDPR */
.section-title { 
    color: #0056b3; 
    margin-top: 2rem; 
    margin-bottom: 1rem;
    font-weight: 600;
}

.subsection-title { 
    color: #495057; 
    margin-top: 1.5rem; 
    font-weight: 600;
    font-size: 1.1rem;
}

.content-box {
    background-color: #f8f9fa;
    border-left: 4px solid #0056b3;
    padding: 1rem;
    margin: 1rem 0;
}

.highlight {
    background-color: #fff3cd;
    padding: 0.2rem 0.4rem;
    border-radius: 3px;
}

/* ═══════════════════════════════════════════════════════════════════════════
   STILURI PENTRU LETTER (SCRISOARE MEDICALĂ) - CSP COMPLIANT
   ═══════════════════════════════════════════════════════════════════════════ */
.letter-title {
    text-align: center;
}

.letter-italic {
    font-style: italic;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 2rem;
}

body {
    font-family: 'Lato', sans-serif;
    line-height: 1.6;
    margin: 0;
    background-color: #f4f7f6;
    color: var(--text-color);
}

.container {
    max-width: 900px;
    margin: 2rem auto;
    padding: 2rem;
    background: #fff;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

@media (max-width: 768px) {
    .container {
        margin: 1rem;
        padding: 1.5rem 1rem;
    }
}

.main-header {
    position: relative;
    color: white;
    text-align: center;
    padding: 5rem 1rem;
    min-height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
    filter: blur(3px);
}

.header-content {
    width: 100%;
    max-width: 900px;
    padding: 0 1rem;
}

.header-content h1 {
    font-size: 2.8rem;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

@media (max-width: 768px) {
    .main-header {
        padding: 3rem 1rem;
        min-height: 280px;
    }
    
    .header-content h1 {
        font-size: 2rem;
    }
}

.step {
    margin-bottom: 3rem;
}

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

.step h2 {
    color: var(--primary-color);
    border-bottom: 2px solid var(--secondary-color);
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.step h2 i {
    margin-right: 10px;
}

@media (max-width: 768px) {
    .step h2 {
        font-size: 1.3rem;
    }
}

.date-selector {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-large); /* 1.618rem - golden ratio */
    margin-bottom: var(--spacing-xlarge); /* 2.618rem */
}

/* Header pentru fiecare săptămână - mai mic și mai echilibrat */
.week-header {
    font-size: 0.95rem; /* Mai mic decât înainte (era 1.3rem) */
    font-weight: 500; /* Mai subtil (era 600) */
    color: #555; /* Gri mai soft decât albastru */
    padding: var(--spacing-small) var(--spacing-medium); /* 0.618rem 1rem - golden ratio */
    background: linear-gradient(135deg, #f9f9f9 0%, #f0f0f0 100%); /* Gri foarte subtil */
    border-left: 3px solid var(--lime-green); /* Verde lămâi, mai subțire */
    border-radius: 6px;
    margin-top: var(--spacing-small);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05); /* Shadow foarte subtil */
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
    text-transform: none;
}

.week-header:hover {
    transform: translateX(3px);
    box-shadow: 0 2px 6px rgba(139, 195, 74, 0.15); /* Shadow verde lămâi la hover */
    border-left-color: var(--lime-green-dark);
}

/* Container pentru zilele unei săptămâni */
.week-dates-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-medium); /* 1rem - consistent */
    padding-left: var(--spacing-small); /* 0.618rem - golden ratio */
    margin-bottom: var(--spacing-small);
}

.date-button {
    /* 🌿 Verde success închis (ca intervalele orare) */
    background: var(--lime-green);
    color: white;
    border: none;
    /* 📐 Padding mărit pentru înălțime mai bună - aspect mai echilibrat */
    padding: 1.2rem 1rem; /* Mai înalt, mai pătrat */
    min-height: 70px; /* Înălțime minimă pentru uniformitate */
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: var(--font-medium); /* 1rem */
    font-weight: 600;
    box-shadow: 0 2px 6px rgba(40, 167, 69, 0.2); /* Shadow verde success */
    position: relative;
    overflow: hidden;
    text-align: center;
    /* Flexbox pentru centrare verticală perfectă */
    display: flex;
    align-items: center;
    justify-content: center;
    /* Text pe mai multe linii dacă e necesar */
    line-height: 1.3;
    /* Îmbunătățire contrast text */
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.date-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.25);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.date-button:hover::before {
    width: 300px;
    height: 300px;
}

.date-button:hover {
    background: var(--lime-green-dark); /* Verde mai închis la hover */
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

.date-button.selected {
    background: var(--lime-green-dark); /* Verde închis pentru selected */
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.5);
    transform: scale(1.03);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.date-button:focus {
    outline: 3px solid rgba(40, 167, 69, 0.5); /* Verde success pentru focus */
    outline-offset: 2px;
}

@media (max-width: 768px) {
    .date-selector {
        gap: var(--spacing-medium); /* 1rem - mai compact pe mobil */
    }
    
    .week-header {
        font-size: 0.9rem; /* Proporțional mai mic */
        padding: calc(var(--spacing-small) * 0.8) var(--spacing-small); /* ~0.5rem 0.618rem */
    }
    
    .week-dates-container {
        grid-template-columns: 1fr; /* Full width pe mobil */
        padding-left: 0; /* Fără indent pe mobil */
        gap: var(--spacing-small); /* 0.618rem - mai compact */
    }
    
    .date-button {
        /* 📐 Padding mărit și pe mobil pentru uniformitate */
        padding: 1rem 0.8rem; /* Păstrăm înălțimea bună și pe mobil */
        min-height: 65px; /* Puțin mai mic pe mobil, dar tot înalt */
        font-size: 0.95rem; /* Puțin mai mic, dar citibil */
    }
}

.slot-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 0.85rem;
    padding: 1rem 0;
}

.slot-button {
    background: var(--success-color);
    color: white;
    border: 2px solid transparent;
    padding: 1rem;
    text-align: center;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    box-shadow: 0 2px 6px rgba(40, 167, 69, 0.2);
}

.slot-button:hover {
    background: #218838;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

.slot-button.booked {
    background: #dee2e6; /* Gri puțin mai închis pentru contrast */
    color: #212529; /* Text negru pentru contrast maxim */
    cursor: not-allowed;
    text-decoration: line-through;
    box-shadow: none;
    opacity: 0.85; /* Mai puțină transparență pentru text mai vizibil */
    font-weight: 600; /* Bold pentru mai multă vizibilitate */
}

.slot-button.selected {
    background: var(--secondary-color);
    border-color: var(--dark-color);
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(23, 162, 184, 0.4);
}

.slot-button:focus {
    outline: 3px solid rgba(40, 167, 69, 0.5);
    outline-offset: 2px;
}

@media (max-width: 768px) {
    .slot-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: 0.6rem;
    }
    
    .slot-button {
        padding: 0.8rem 0.5rem;
        font-size: 0.9rem;
    }
}

#selected-date-display {
    text-align: center;
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    color: var(--dark-color);
    padding: 0.8rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: var(--border-radius);
    font-weight: 600;
}

@media (max-width: 768px) {
    #selected-date-display {
        font-size: 1rem;
        padding: 0.6rem;
    }
}

#booking-form-section {
    margin-top: 2rem;
    padding: 2.5rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: var(--border-radius);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border: 1px solid #e9ecef;
}

.form-group {
    margin-bottom: 1.3rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--dark-color);
}

.form-group label i {
    margin-right: 0.5rem;
    color: var(--primary-color);
}

.form-group input[type="text"],
.form-group input[type="tel"],
.form-group input[type="email"] {
    width: 100%;
    padding: 0.9rem;
    border: 2px solid #dee2e6;
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input[type="text"]::placeholder,
.form-group input[type="tel"]::placeholder,
.form-group input[type="email"]::placeholder {
    color: #adb5bd;
    opacity: 1;
}

.form-group input[type="text"]:focus,
.form-group input[type="tel"]:focus,
.form-group input[type="email"]:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
    background-color: #fff;
}

.form-group input[type="checkbox"] {
    margin-right: 0.5rem;
    transform: scale(1.2);
    cursor: pointer;
}

.gdpr-group {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: var(--border-radius);
    border-left: 3px solid var(--primary-color);
}

.gdpr-group label {
    display: inline;
    font-weight: 400;
    cursor: pointer;
}

.gdpr-group a {
    color: var(--primary-color);
    text-decoration: underline;
}

.gdpr-group a:hover {
    color: var(--secondary-color);
}

.submit-btn {
    display: block;
    width: 100%;
    padding: 1.2rem;
    background: var(--secondary-color);
    color: white;
    border: none;
    border-radius: var(--border-radius);
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(23, 162, 184, 0.3);
    margin-top: 0.5rem;
}

.submit-btn i {
    margin-right: 0.5rem;
}

.submit-btn:hover {
    background: #138496;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(23, 162, 184, 0.4);
}

.submit-btn:active {
    transform: translateY(0);
}

.submit-btn:disabled {
    background: #6c757d;
    cursor: not-allowed;
    opacity: 0.6;
}

.submit-btn:focus {
    outline: 3px solid rgba(23, 162, 184, 0.5);
    outline-offset: 2px;
}

@media (max-width: 768px) {
    #booking-form-section {
        padding: 1.5rem;
    }
    
    .form-group input[type="text"],
    .form-group input[type="tel"],
    .form-group input[type="email"] {
        padding: 0.8rem;
        font-size: 0.95rem;
    }
    
    .submit-btn {
        padding: 1rem;
        font-size: 1.1rem;
    }
}

.hidden {
    display: none !important;
}

/* Animații pentru tranziții fluide */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Animația se aplică doar când elementele devin vizibile */
.step.animate-in {
    animation: slideIn 0.5s ease;
}

#booking-form-section.animate-in {
    animation: slideIn 0.5s ease;
}

.confirmation-box {
    text-align: center;
    padding: 3rem;
    background: linear-gradient(135deg, #e8f5e9 0%, #f1f8f4 100%);
    border-left: 5px solid var(--success-color);
    border-radius: var(--border-radius);
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.15);
    animation: slideIn 0.6s ease;
}

.confirmation-icon {
    font-size: 4rem;
    color: var(--success-color);
    margin-bottom: 1rem;
    animation: scaleIn 0.5s ease;
}

@keyframes scaleIn {
    from {
        transform: scale(0);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

@media (max-width: 768px) {
    .confirmation-box {
        padding: 2rem 1rem;
    }
    
    .confirmation-icon {
        font-size: 3rem;
    }
}

.main-footer {
    text-align: center;
    padding: 1.5rem;
    margin-top: 2rem;
    background: var(--dark-color);
    color: white;
}

/* Stiluri pentru secțiunea de locație */
.location-section {
    margin-top: 3rem;
    margin-bottom: 3rem;
}

.location-section iframe {
    /* Asigură alinierea verticală corectă a hărții */
    display: block;
    border: 0; /* ✅ Eliminat din inline style pentru conformitate CSP */
    border-radius: var(--border-radius);
}

.location-section .card {
    border-radius: var(--border-radius);
    overflow: hidden;
}

@media (max-width: 768px) {
    .location-section {
        margin-top: 2rem;
        margin-bottom: 2rem;
    }
    
    .location-section iframe {
        height: 300px !important;
    }
}

/* Stiluri pentru printare */
@media print {
    /* Ascunde tot ce nu e în modal la printare */
    body * {
        visibility: hidden;
    }
    #printable-content, #printable-content * {
        visibility: visible;
    }
    #printable-content {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
    }
}

/* --- ADAUGARE: Stiluri pentru logo-ul din header --- */
.logo-container {
    text-align: center;
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.6s ease;
}

.site-logo {
    max-width: 250px;
    width: 100%;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.3));
    transition: transform 0.3s ease, filter 0.3s ease;
}

.site-logo:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.4));
}

/* Responsive pentru site logo (pagina principală) */
@media (max-width: 992px) {
    .site-logo {
        max-width: 200px;
    }
}

@media (max-width: 768px) {
    .logo-container {
        margin-bottom: 1rem;
    }
    
    .site-logo {
        max-width: 170px;
    }
}

@media (max-width: 576px) {
    .site-logo {
        max-width: 140px;
    }
}

@media (max-width: 400px) {
    .site-logo {
        max-width: 120px;
    }
}

/* --- ADAUGARE: Stil pentru cardul 'Frosted Glass' din header --- */
.hero-text-box {
    /* Fallback pentru browsere vechi */
    background-color: rgba(255, 255, 255, 0.85); 
    
    /* Efectul modern 'Frosted Glass' */
    @supports (backdrop-filter: blur(10px)) {
        background-color: rgba(255, 255, 255, 0.6);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px); /* Suport pentru Safari */
    }

    padding: 2.5rem 3rem;
    border-radius: 12px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.18);
    display: inline-block; /* Face cardul să se muleze pe conținut */
    max-width: 90%;
    animation: fadeInUp 0.8s ease;
}

/* Stil pentru textul din interiorul cardului */
.hero-text-box h1, .hero-text-box p {
    color: var(--dark-color); /* Culoare neagră/închisă pentru text */
    text-shadow: none; /* Eliminăm orice text-shadow anterior */
    margin: 0;
}

.hero-text-box h1 {
    margin-bottom: 1rem;
}

@media (max-width: 768px) {
    .hero-text-box {
        padding: 1.5rem 2rem;
        max-width: 95%;
        /* Fundal mult mai transparent pe telefon pentru a vedea imaginea de fundal */
        background-color: rgba(255, 255, 255, 0.25);
    }
    
    @supports (backdrop-filter: blur(10px)) {
        .hero-text-box {
            background-color: rgba(255, 255, 255, 0.2);
            backdrop-filter: blur(6px);
            -webkit-backdrop-filter: blur(6px);
        }
    }
    
    .hero-text-box p {
        font-size: 0.95rem;
    }
}

/* --- ADAUGARE: Stil pentru link-ul discret de Admin din footer --- */
.admin-link {
    color: #a0aec0; /* O culoare gri, mai puțin vizibilă */
    text-decoration: none;
    font-size: 0.9em;
    transition: color 0.3s ease;
}

.admin-link:hover {
    color: #ffffff; /* Devine alb la hover pentru a arăta că e interactiv */
    text-decoration: underline;
}

/* Stiluri pentru mesajul de încărcare */
.loading-message {
    text-align: center;
    color: var(--text-color);
    padding: 2rem;
    font-size: 1.1rem;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Stiluri pentru butoane generale */
.btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    border-radius: var(--border-radius);
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 600;
    border: none;
    cursor: pointer;
}

.btn-success {
    background: var(--success-color);
    color: white;
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.2);
}

.btn-success:hover {
    background: #218838;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

.btn-outline-primary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-outline-primary:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.mt-2 {
    margin-top: 0.5rem;
}

.mt-3 {
    margin-top: 1rem;
}

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

.mb-4 {
    margin-bottom: 1.5rem;
}

.lead {
    font-size: 1.15rem;
    font-weight: 400;
}

/* Stiluri pentru carduri */
.card {
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    overflow: hidden;
    background: white;
}

.card-body {
    padding: 2rem;
}

.card-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.card-text {
    line-height: 1.8;
}

.shadow-sm {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.row {
    display: flex;
    flex-wrap: wrap;
}

.g-0 {
    margin: 0;
}

.col-md-8 {
    flex: 0 0 66.666667%;
    max-width: 66.666667%;
}

.col-md-4 {
    flex: 0 0 33.333333%;
    max-width: 33.333333%;
}

.d-flex {
    display: flex;
}

.align-items-center {
    align-items: center;
}

@media (max-width: 768px) {
    .col-md-8, .col-md-4 {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    .btn-lg {
        padding: 0.9rem 1.5rem;
        font-size: 1rem;
    }
}

/* --- ADAUGARE: Stiluri pentru printarea listei zilnice A4 --- */
@media print {
    /* Ascunde tot ce nu e necesar */
    body > *:not(.printable-area) {
        display: none !important;
    }
    
    /* Afișează doar zona de printare (pe care o vom crea dinamic) */
    .printable-area {
        display: block !important;
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
    }

    /* Stiluri generale pentru pagina de print */
    .print-header {
        text-align: center;
        margin-bottom: 20px;
        border-bottom: 2px solid #000;
        padding-bottom: 10px;
    }

    .print-table {
        width: 100%;
        border-collapse: collapse;
        font-size: 11pt;
    }

    .print-table th, .print-table td {
        border: 1px solid #ccc;
        padding: 8px;
        text-align: left;
    }
    
    .print-table th {
        background-color: #f2f2f2;
    }
}
