/* 1. Resetare stiluri implicite (Aplicabil tuturor) */

* {

    margin: 0;

    padding: 0;

    box-sizing: border-box;

}



body {

    font-family: 'Poppins', sans-serif;

    background-color: #f4f4f4;

    color: #333;

    line-height: 1.6;

    padding: 20px;

    min-height: 100vh;

}



/* ---------------------------------------------------- */

/* STILURI GENERALE PENTRU DASHBOARD */

/* ---------------------------------------------------- */



.container {

    max-width: 1200px; 

    margin: 20px auto;

    padding: 20px;

    background-color: #fff;

    border-radius: 10px;

    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);

    width: 100%;

}



h1, h2, h3 {

    color: #007bff;

    margin-bottom: 20px;

    text-align: center;

}



/* Stiluri pentru tabele (Dashboard) */

table {

    width: 100%;

    border-collapse: collapse;

    margin-top: 15px;

    font-size: 0.9em;

}

table th, table td {

    border: 1px solid #ddd;

    padding: 8px;

    text-align: left;

}

table th {

    background-color: #007bff;

    color: white;

}

table tr:nth-child(even) {

    background-color: #f9f9f9;

}



/* Stiluri pentru formular */

.form-group {

    margin-bottom: 15px;

}

.form-group label {

    display: block;

    margin-bottom: 5px;

    font-weight: bold;

}

.form-group input[type="text"], 

.form-group input[type="number"],

.form-group input[type="date"],

.form-group input[type="tel"],

.form-group select, 

.form-group textarea {

    width: 100%;

    padding: 10px;

    border: 1px solid #ccc;

    border-radius: 4px;

    box-sizing: border-box; 

}



/* Butoane */

.btn {

    padding: 8px 15px;

    border: none;

    border-radius: 4px;

    cursor: pointer;

    font-weight: bold;

    background-color: #007bff;

    color: white;

    text-decoration: none;

    display: inline-block;

}

.btn:hover {

    background-color: #0056b3;

}

.btn-delete {

    background-color: #dc3545; 

}

.btn-delete:hover {

    background-color: #c82333;

}

.btn-secondary {

    background-color: #6c757d;

    color: white;

}

.btn-secondary:hover {

    background-color: #5a6268;

}

.btn-primary {

    background-color: #007bff;

    color: white;

    padding: 12px 20px;

    font-size: 1.1em;

}

.btn-primary:hover {

    background-color: #0056b3;

}



/* Paginare */

.pagination {

    margin-top: 20px;

    text-align: center;

}

.pagination a {

    margin: 0 5px;

    padding: 5px 10px;

    text-decoration: none;

    border: 1px solid #007bff;

    border-radius: 4px;

    color: #007bff;

}



/* Header */

.header-container {

    max-width: 1200px;

    margin: 0 auto 20px auto;

    padding: 10px 20px;

    background: #fff;

    border-radius: 8px;

    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);

    display: flex;

    justify-content: space-between;

    align-items: center;

}



#ceas {

    font-size: 1.5em;

    font-weight: bold;

    color: #007bff;

}



.nav-buttons a.btn {

    margin-left: 10px;

}



/* Footer */

.footer-custom {

    max-width: 1200px;

    margin: 20px auto;

    padding: 15px 20px;

    background: #fff;

    border-radius: 8px;

    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);

    text-align: center;

    color: #666;

    font-size: 0.9em;

}



/* Mesaje */

.success {

    background-color: #d4edda;

    color: #155724;

    padding: 15px;

    border-radius: 5px;

    margin-bottom: 20px;

    border: 1px solid #c3e6cb;

}

.error {

    background-color: #f8d7da;

    color: #721c24;

    padding: 15px;

    border-radius: 5px;

    margin-bottom: 20px;

    border: 1px solid #f5c6cb;

}



/* Formular grid */

.form-grid {

    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 20px;

}

.full-width {

    grid-column: 1 / -1;

}



/* Stats container - VERSIUNE IMBUNATATITA */

.stats-container {

    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);

    padding: 25px;

    border-radius: 15px;

    margin: 25px 0;

    border: 1px solid #dee2e6;

    box-shadow: 0 4px 15px rgba(0,0,0,0.1);

}



.stats-container h2 {

    font-size: 1.8em;

    margin-bottom: 25px;

    color: #007bff;

    text-align: center;

    border-bottom: 3px solid #007bff;

    padding-bottom: 15px;

    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);

}



.stats-grid {

    display: grid;

    grid-template-columns: 1fr 1fr 1fr;

    gap: 20px;

    margin-bottom: 25px;

}



.stat-item {

    background: white;

    padding: 20px;

    border-radius: 12px;

    border-left: 5px solid #007bff;

    box-shadow: 0 4px 12px rgba(0,0,0,0.1);

    text-align: center;

    transition: transform 0.3s ease, box-shadow 0.3s ease;

}



.stat-item:hover {

    transform: translateY(-5px);

    box-shadow: 0 6px 20px rgba(0,0,0,0.15);

}



.stat-item p {

    margin: 0;

    font-size: 0.95em;

    font-weight: 600;

    color: #495057;

}



.stat-value {

    font-size: 1.4em !important;

    font-weight: bold !important;

    color: #007bff !important;

    margin-top: 8px !important;

    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);

}



/* Formular stats */

.stats-form {

    background: white;

    padding: 25px;

    border-radius: 12px;

    margin-top: 20px;

    border: 1px solid #dee2e6;

    box-shadow: 0 2px 10px rgba(0,0,0,0.08);

}



.stats-form .form-group {

    margin-bottom: 20px;

}



.stats-form label {

    font-weight: 600;

    color: #495057;

    margin-bottom: 10px;

    display: block;

    font-size: 1.1em;

}



.stats-form input[type="month"] {

    width: 100%;

    padding: 15px;

    border: 2px solid #dee2e6;

    border-radius: 10px;

    font-size: 16px;

    transition: border-color 0.3s ease;

}



.stats-form input[type="month"]:focus {

    border-color: #007bff;

    outline: none;

    box-shadow: 0 0 8px rgba(0, 123, 255, 0.3);

}



.stats-form .btn {

    width: 100%;

    padding: 15px;

    font-size: 1.2em;

    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);

    border: none;

    border-radius: 10px;

    font-weight: bold;

    transition: all 0.3s ease;

}



.stats-form .btn:hover {

    background: linear-gradient(135deg, #218838 0%, #1e9e8a 100%);

    transform: translateY(-2px);

    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.4);

}



/* Detalii luna selectata */

.stats-details {

    background: white;

    padding: 25px;

    border-radius: 12px;

    margin-top: 20px;

    border-left: 5px solid #28a745;

    box-shadow: 0 4px 12px rgba(0,0,0,0.1);

}



.stats-details h4 {

    color: #28a745;

    margin-bottom: 20px;

    font-size: 1.4em;

    border-bottom: 2px solid #28a745;

    padding-bottom: 12px;

    text-align: center;

}



.stats-details p {

    margin: 12px 0;

    padding: 10px 0;

    border-bottom: 1px solid #f1f1f1;

    font-weight: 500;

    font-size: 1.1em;

}



.stats-details p:last-child {

    border-bottom: none;

}



.stats-details strong {

    color: #28a745;

    font-weight: bold;

}



/* Search form */

.search-form {

    display: flex;

    gap: 10px;

    margin-bottom: 20px;

    flex-wrap: wrap;

}

.search-form .form-group {

    flex: 1;

    min-width: 200px;

    margin-bottom: 0;

}



/* Action buttons */

.action-buttons {

    display: flex;

    gap: 5px;

    flex-wrap: wrap;

}

.btn-default {

    background-color: #007bff;

    color: white;

}

.btn-edit {

    background-color: #28a745;

    color: white;

}

.btn-delete {

    background-color: #dc3545;

    color: white;

}

.btn-default:hover { background-color: #0056b3; }

.btn-edit:hover { background-color: #218838; }

.btn-delete:hover { background-color: #c82333; }



/* ---------------------------------------------------- */

/* STILURI MODERNE PENTRU HEADER */

/* ---------------------------------------------------- */



.header-modern {

    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);

    padding: 0;

    box-shadow: 0 4px 20px rgba(0, 123, 255, 0.3);

    position: relative;

    z-index: 1000;

}



.header-container-modern {

    max-width: 1200px;

    margin: 0 auto;

    padding: 15px 20px;

    display: flex;

    justify-content: space-between;

    align-items: center;

    flex-wrap: wrap;

}



.header-welcome {

    display: flex;

    align-items: center;

    gap: 15px;

    color: white;

}



.user-avatar {

    width: 45px;

    height: 45px;

    background: rgba(255, 255, 255, 0.2);

    border-radius: 50%;

    display: flex;

    align-items: center;

    justify-content: center;

    font-size: 1.2em;

    border: 2px solid rgba(255, 255, 255, 0.3);

}



.welcome-text h3 {

    margin: 0;

    font-size: 1.1em;

    font-weight: 600;

}



.welcome-text p {

    margin: 0;

    font-size: 0.9em;

    opacity: 0.9;

}



/* NUME UTILIZATOR MAGENTA/ROZ ACCENT */

.user-name {

    color: #ff6b9d !important;

    font-weight: 700;

    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);

}



.nav-buttons-modern {

    display: flex;

    gap: 10px;

    align-items: center;

    flex-wrap: wrap;

}



.nav-btn {

    padding: 10px 18px;

    background: rgba(255, 255, 255, 0.15);

    color: white;

    text-decoration: none;

    border-radius: 8px;

    font-weight: 500;

    font-size: 0.9em;

    transition: all 0.3s ease;

    border: 1px solid rgba(255, 255, 255, 0.2);

    display: flex;

    align-items: center;

    gap: 8px;

}



.nav-btn:hover {

    background: rgba(255, 255, 255, 0.25);

    transform: translateY(-2px);

    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);

}



.nav-btn.logout-btn {

    background: rgba(220, 53, 69, 0.2);

    border-color: rgba(220, 53, 69, 0.3);

}



.nav-btn.logout-btn:hover {

    background: rgba(220, 53, 69, 0.3);

}



.nav-btn.admin-btn {

    background: rgba(40, 167, 69, 0.2);

    border-color: rgba(40, 167, 69, 0.3);

}



.nav-btn.admin-btn:hover {

    background: rgba(40, 167, 69, 0.3);

}



.header-clock {

    background: rgba(255, 255, 255, 0.1);

    padding: 10px 20px;

    border-radius: 25px;

    color: white;

    font-weight: 600;

    font-size: 1.1em;

    border: 1px solid rgba(255, 255, 255, 0.2);

}



/* ---------------------------------------------------- */

/* HEADER RESPONSIVE IMPROVEMENTS */

/* ---------------------------------------------------- */



/* Text alb boldat pentru user info */

.welcome-text h3.user-name {

    color: #ffffff !important;

    font-weight: 700 !important;

    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);

}



.welcome-text p {

    color: rgba(255, 255, 255, 0.95) !important;

    font-weight: 600 !important;

}



/* Desktop - Afișează tot */

@media (min-width: 769px) {

    .nav-buttons-modern {

        display: flex;

        gap: 10px;

        align-items: center;

    }

    

    .nav-btn {

        padding: 10px 18px;

        display: flex;

        align-items: center;

        gap: 8px;

    }

    

    .nav-text {

        display: inline;

    }

}



/* Tablet (769px - 1024px) */

@media (max-width: 1024px) and (min-width: 769px) {

    .nav-buttons-modern {

        gap: 8px;

    }

    

    .nav-btn {

        padding: 8px 12px;

        font-size: 0.85em;

    }

    

    .nav-text {

        display: inline;

    }

}



/* Mobile (2 coloane) */

@media (max-width: 768px) {

    .header-container-modern {

        flex-direction: column;

        gap: 12px;

        padding: 12px 15px;

    }

    

    .header-welcome {

        order: 1;

        width: 100%;

        justify-content: center;

        text-align: center;

        padding-bottom: 10px;

        border-bottom: 1px solid rgba(255, 255, 255, 0.2);

    }

    

    .header-clock {

        order: 2;

        width: 100%;

        text-align: center;

        padding: 8px 15px;

        font-size: 0.95em;

    }

    

    .nav-buttons-modern {

        order: 3;

        width: 100%;

        display: grid;

        grid-template-columns: 1fr 1fr;

        gap: 8px;

    }

    

    .nav-btn {

        padding: 12px 8px;

        font-size: 0.8em;

        justify-content: center;

        text-align: center;

        flex-direction: column;

        gap: 4px;

        min-height: 60px;

    }

    

    .nav-text {

        display: block;

        font-size: 0.75em;

        line-height: 1.2;

    }

    

    .nav-btn i {

        font-size: 1.1em;

        margin-bottom: 2px;

    }

    

    /* Asigură că butoanele admin și logout ocupă întreaga lățime */

    .nav-btn.admin-btn,

    .nav-btn.logout-btn {

        grid-column: 1 / -1;

    }

}



/* Mobile foarte mic (doar iconițe) */

@media (max-width: 480px) {

    .nav-buttons-modern {

        grid-template-columns: repeat(3, 1fr);

        gap: 6px;

    }

    

    .nav-btn {

        padding: 10px 5px;

        min-height: 50px;

    }

    

    .nav-text {

        display: none; /* Ascunde textul pe telefoane foarte mici */

    }

    

    .nav-btn i {

        font-size: 1.2em;

        margin-bottom: 0;

    }

    

    /* Butoanele speciale rămân cu text */

    .nav-btn.admin-btn .nav-text,

    .nav-btn.logout-btn .nav-text {

        display: block;

        font-size: 0.7em;

    }

    

    .nav-btn.admin-btn,

    .nav-btn.logout-btn {

        grid-column: span 1;

        flex-direction: row;

        gap: 6px;

    }

    

    .user-avatar {

        width: 35px;

        height: 35px;

        font-size: 1em;

    }

    

    .welcome-text h3 {

        font-size: 1em;

    }

    

    .welcome-text p {

        font-size: 0.8em;

    }

}



/* Extra small devices */

@media (max-width: 360px) {

    .nav-buttons-modern {

        grid-template-columns: repeat(2, 1fr);

    }

    

    .nav-btn.admin-btn,

    .nav-btn.logout-btn {

        grid-column: 1 / -1;

    }

    

    .header-container-modern {

        padding: 10px 12px;

    }

}



/* ---------------------------------------------------- */

/* STILURI RESPONSIVE PENTRU MOBIL */

/* ---------------------------------------------------- */



@media (max-width: 768px) {

    body {

        padding: 10px;

    }

    

    .container {

        padding: 15px;

        margin: 10px auto;

    }

    

    /* STATISTICI MOBIL - DESIGN COMPLET NOU */

    .stats-container {

        padding: 20px;

        border-radius: 15px;

        margin: 20px 0;

    }

    

    .stats-container h2 {

        font-size: 1.5em;

        margin-bottom: 20px;

        padding-bottom: 12px;

    }

    

    .stats-grid {

        grid-template-columns: 1fr;

        gap: 15px;

        margin-bottom: 20px;

    }

    

    .stat-item {

        padding: 18px;

        border-radius: 12px;

        border-left: 4px solid #007bff;

        text-align: center;

    }

    

    .stat-item p {

        font-size: 0.95em;

    }

    

    .stat-value {

        font-size: 1.3em !important;

        margin-top: 6px !important;

    }

    

    .stats-form {

        padding: 20px;

        border-radius: 12px;

        margin-top: 15px;

    }

    

    .stats-form label {

        font-size: 1em;

    }

    

    .stats-form input[type="month"] {

        padding: 14px;

        border-radius: 8px;

    }

    

    .stats-form .btn {

        padding: 14px;

        font-size: 1.1em;

        border-radius: 8px;

    }

    

    .stats-details {

        padding: 20px;

        border-radius: 12px;

        margin-top: 15px;

    }

    

    .stats-details h4 {

        font-size: 1.2em;

        margin-bottom: 15px;

    }

    

    .stats-details p {

        font-size: 1em;

        margin: 10px 0;

        padding: 8px 0;

    }

    

    /* FORMULAR MOBIL */

    .form-grid {

        grid-template-columns: 1fr;

        gap: 15px;

    }

    

    .form-group {

        margin-bottom: 0;

    }

    

    .btn-primary {

        padding: 15px;

        font-size: 1.1em;

        width: 100%;

    }

    

    .form-group input[type="text"], 

    .form-group input[type="number"],

    .form-group input[type="date"],

    .form-group input[type="tel"],

    .form-group select {

        padding: 12px;

        font-size: 16px;

        border: 2px solid #ddd;

        border-radius: 8px;

    }

    

    .form-group input:focus,

    .form-group select:focus {

        border-color: #007bff;

        outline: none;

        box-shadow: 0 0 5px rgba(0, 123, 255, 0.3);

    }

    

    .form-group label {

        font-size: 1em;

        margin-bottom: 8px;

        color: #333;

        font-weight: 600;

    }

    

    /* SEARCH FORM MOBIL */

    .search-form {

        flex-direction: column;

        gap: 10px;

    }

    

    .search-form .btn {

        width: 100%;

        margin-bottom: 5px;

    }

    

    /* TABEL MOBIL */

    table {

        border: 0;

    }

    

    table thead {

        display: none !important;

    }

    

    table tbody, table tr, table td {

        display: block;

        width: 100%;

    }

    

    table tr {

        margin-bottom: 20px;

        border: 1px solid #ddd;

        border-radius: 8px;

        padding: 15px;

        background: #f9f9f9;

        box-shadow: 0 2px 5px rgba(0,0,0,0.1);

    }

    

    table td {

        display: flex;

        justify-content: space-between;

        align-items: center;

        padding: 10px 5px;

        border: none !important;

        border-bottom: 1px solid #eee !important;

        text-align: left;

    }

    

    table td:last-child {

        border-bottom: none !important;

    }

    

    /* Etichetele pentru mobil */

    table td:before {

        content: attr(data-label) ":" !important;

        font-weight: bold;

        color: #007bff;

        margin-right: 10px;

        min-width: 120px;

        display: inline-block;

    }

    

    /* TITLUL "Acțiuni" SPECIAL */

    table td[data-label="Acțiuni"]:before {

        content: "Acțiuni" !important;

        font-weight: bold;

        color: #007bff;

        font-size: 1.1em;

        margin-bottom: 10px;

        display: block !important;

        width: 100%;

        text-align: center;

        border-bottom: 2px solid #007bff;

        padding-bottom: 5px;

    }

    

    table td[data-label="Acțiuni"] {

        display: block !important;

        border-bottom: none !important;

        padding: 15px 5px 5px 5px;

    }

    

    /* Butoane de acțiune pe mobil */

    .action-buttons {

        display: flex !important;

        flex-direction: column;

        gap: 8px;

        margin-top: 10px;

        width: 100%;

    }

    

    .action-buttons .btn {

        width: 100%;

        text-align: center;

        padding: 12px 8px;

        font-size: 0.9em;

        border-radius: 6px;

        font-weight: bold;

    }

    

    /* Mesaj "Nu s-au găsit mașini" */

    table td[colspan] {

        display: block !important;

        text-align: center;

        padding: 20px;

        font-style: italic;

    }

    

    /* Paginare mobil */

    .pagination {

        display: flex;

        flex-wrap: wrap;

        justify-content: center;

        gap: 5px;

    }

    

    .pagination a {

        padding: 8px 12px;

        font-size: 0.9em;

    }

    

    /* Mesaje mobile */

    .success, .error {

        padding: 15px;

        margin: 15px 0;

        border-radius: 8px;

        text-align: center;

        font-size: 1em;

    }

}



/* Pentru ecrane foarte mici */

@media (max-width: 480px) {

    .container {

        padding: 10px;

    }

    

    table td:before {

        min-width: 100px;

        font-size: 0.9em;

    }

    

    table td {

        font-size: 0.9em;

        padding: 8px 5px;

    }

    

    table tr {

        padding: 10px;

    }

    

    h1 {

        font-size: 1.5em;

    }

    

    h2 {

        font-size: 1.3em;

    }

    

    /* Statistici pentru ecrane foarte mici */

    .stats-container {

        padding: 15px;

    }

    

    .stats-grid {

        gap: 12px;

    }

    

    .stat-item {

        padding: 15px;

    }

    

    .stat-value {

        font-size: 1.2em !important;

    }

}



/* ---------------------------------------------------- */

/* STILURI SPECIFICE PENTRU GUESTBOOK */

/* ---------------------------------------------------- */



/* ========================================= */
/* GUESTBOOK - CHAT MODERN (V2.0) */
/* ========================================= */

.guestbook-container {
    max-width: 900px;
    margin: 30px auto;
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 75vh; /* Ocupă 75% din înălțimea ecranului */
    min-height: 600px;
    border: 1px solid #e1e4e8;
}

/* --- ZONA DE MESAJE (Scroll) --- */
.messages-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    background-color: #f0f2f5; /* Culoare fundal chat (gri deschis) */
    position: relative;
    overflow: hidden;
}

.messages-container h3 {
    padding: 15px;
    margin: 0;
    background: #fff;
    border-bottom: 1px solid #ddd;
    color: #007bff;
    font-size: 1.1rem;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    z-index: 10;
}

.messages-scroll-area {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    scroll-behavior: smooth;
}

/* --- MESAJELE INDIVIDUALE (Bule) --- */
.message-entry {
    background: #fff;
    padding: 15px;
    border-radius: 0 15px 15px 15px; /* Colț stânga-sus ascuțit */
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    max-width: 85%;
    align-self: flex-start; /* Mesajele stau la stânga implicit */
    position: relative;
    border-left: 4px solid #007bff; /* Dungă albastră pentru mecanici */
    animation: fadeIn 0.3s ease;
}

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

/* Mesajele de ADMIN */
.message-entry.admin-message {
    background: #fff5f5; /* Roșu foarte pal */
    border-left-color: #dc3545; /* Dungă roșie */
    margin-left: 0;
}

.message-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    font-size: 0.85rem;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    padding-bottom: 5px;
}

.user-name {
    font-weight: 700;
    color: #2c3e50;
    font-size: 0.95rem;
}

.admin-message .user-name {
    color: #c0392b; /* Nume roșu pentru admin */
}

.message-time {
    color: #adb5bd;
    font-size: 0.8rem;
    margin-left: 10px;
}

.btn-delete-message {
    background: none;
    border: none;
    color: #dc3545;
    font-size: 1.2rem;
    line-height: 1;
    cursor: pointer;
    padding: 0 5px;
    opacity: 0.4;
    transition: opacity 0.2s;
    margin-left: 10px;
}

.btn-delete-message:hover {
    opacity: 1;
    transform: scale(1.1);
}

.message-content {
    color: #333;
    line-height: 1.5;
    font-size: 1rem;
    word-wrap: break-word;
    white-space: pre-wrap; /* Păstrează spațierile */
}

/* Mesaj de încărcare / eroare */
.loading-message, .error-message, .no-messages {
    text-align: center;
    padding: 20px;
    color: #6c757d;
    font-style: italic;
    width: 100%;
}

.error-message {
    color: #dc3545;
    background: #ffebee;
    border-radius: 8px;
}

/* --- ZONA DE FORMULAR (Jos) --- */
.message-form-container {
    background: #fff;
    padding: 20px;
    border-top: 1px solid #e1e4e8;
    z-index: 20;
}

.message-form-container h3 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 1rem;
    color: #6c757d;
}

.message-form textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    resize: none;
    font-family: inherit;
    font-size: 0.95rem;
    transition: border-color 0.3s;
    height: 80px;
    margin-bottom: 5px;
}

.message-form textarea:focus {
    outline: none;
    border-color: #007bff;
}

.char-counter {
    text-align: right;
    font-size: 0.8rem;
    color: #adb5bd;
    margin-bottom: 10px;
}

/* --- BUTOANE --- */
.btn-block {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 12px;
    font-size: 1rem;
    font-weight: 600;
}

.admin-actions {
    padding: 15px 20px;
    background: #f8f9fa;
    border-top: 1px solid #dee2e6;
}

.admin-actions h3 {
    font-size: 0.9rem;
    color: #dc3545;
    margin-top: 0;
    margin-bottom: 10px;
    text-transform: uppercase;
    font-weight: 700;
}

/* Status message (toast in form) */
.status-message {
    margin-top: 10px;
    padding: 10px;
    border-radius: 6px;
    text-align: center;
    font-size: 0.9rem;
    display: none;
}

.status-message:not(:empty) {
    display: block;
    animation: slideUp 0.3s ease;
}

.status-success {
    background-color: #d4edda;
    color: #155724;
}

.status-error {
    background-color: #f8d7da;
    color: #721c24;
}

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

/* Responsive */
@media (max-width: 768px) {
    .guestbook-container {
        height: auto;
        min-height: auto;
        margin: 10px;
    }
    
    .messages-scroll-area {
        height: 400px; /* Înălțime fixă pe mobil */
    }
    
    .message-entry {
        max-width: 95%;
    }
}



/* Stiluri pentru paginile de profil */

.container.profile-page {

    max-width: 450px; 

    margin: 20px auto; 

}



.form-group input[disabled] {

    background-color: #e9ecef;

    color: #6c757d;

    cursor: not-allowed;

}



/* Stiluri pentru paginile cu interventii */

.container.interventions-page {

    max-width: 1200px;

    margin: 20px auto; 

}



.interventions-page h3 {

    margin-top: 30px;

    margin-bottom: 15px;

    color: #007bff;

    font-size: 24px;

    border-bottom: 2px solid #007bff;

    padding-bottom: 10px;

}



.scrollable {

    max-height: 100px;

    overflow-y: auto;

    border: 1px solid #ccc;

    padding: 5px;

    border-radius: 5px;

}



.pagination a.btn-page {

    margin: 0 5px;

    padding: 8px 12px;

    background-color: #007bff;

    color: #fff;

    border-radius: 5px;

    text-decoration: none;

    transition: background-color 0.3s ease;

    display: inline-block;

}



.pagination a.btn-page:hover {

    background-color: #0056b3;

}



.pagination a.btn-page.active {

    background-color: #0056b3;

    font-weight: bold;

}



/* ---------------------------------------------------- */

/* STILURI PENTRU INDEX/HERO SECTION */

/* ---------------------------------------------------- */



.hero-section {

    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);

    border-radius: 20px;

    padding: 60px 40px;

    margin: 30px 0;

    text-align: center;

    border: 1px solid rgba(0, 123, 255, 0.1);

}



.hero-content {

    max-width: 800px;

    margin: 0 auto;

}



.hero-icon {

    font-size: 4em;

    color: #007bff;

    margin-bottom: 20px;

}



.hero-icon i {

    filter: drop-shadow(0 4px 12px rgba(0, 123, 255, 0.3));

}



.hero-highlight {

    color: #007bff;

    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);

    -webkit-background-clip: text;

    -webkit-text-fill-color: transparent;

    background-clip: text;

}



.hero-description {

    font-size: 1.3em;

    color: #6c757d;

    margin-bottom: 40px;

    max-width: 600px;

    margin-left: auto;

    margin-right: auto;

}



.hero-features {

    display: flex;

    justify-content: center;

    gap: 30px;

    margin: 40px 0;

    flex-wrap: wrap;

}



.feature-item {

    display: flex;

    align-items: center;

    gap: 10px;

    padding: 15px 20px;

    background: white;

    border-radius: 12px;

    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);

    transition: transform 0.3s ease;

}



.feature-item:hover {

    transform: translateY(-5px);

}



.feature-item i {

    color: #007bff;

    font-size: 1.2em;

}



.feature-item span {

    font-weight: 600;

    color: #495057;

}



.hero-buttons {

    display: flex;

    gap: 20px;

    justify-content: center;

    margin-top: 40px;

    flex-wrap: wrap;

}



.btn-hero-primary {

    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);

    padding: 15px 30px;

    font-size: 1.1em;

    border-radius: 10px;

    color: white;

    text-decoration: none;

    font-weight: 600;

    transition: all 0.3s ease;

    border: none;

    display: flex;

    align-items: center;

    gap: 10px;

}



.btn-hero-primary:hover {

    transform: translateY(-2px);

    box-shadow: 0 6px 20px rgba(0, 123, 255, 0.4);

    color: white;

}



.btn-hero-secondary {

    background: rgba(255, 255, 255, 0.9);

    padding: 15px 30px;

    font-size: 1.1em;

    border-radius: 10px;

    color: #007bff;

    text-decoration: none;

    font-weight: 600;

    transition: all 0.3s ease;

    border: 2px solid #007bff;

    display: flex;

    align-items: center;

    gap: 10px;

}



.btn-hero-secondary:hover {

    background: #007bff;

    color: white;

    transform: translateY(-2px);

    box-shadow: 0 6px 20px rgba(0, 123, 255, 0.3);

}



/* WELCOME SECTION */

.welcome-section {

    margin: 60px 0;

}



.welcome-grid {

    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 40px;

    align-items: start;

}



.welcome-text h2 {

    color: #2c3e50;

    margin-bottom: 20px;

    font-size: 2em;

}



.welcome-text p {

    font-size: 1.1em;

    line-height: 1.7;

    color: #495057;

    margin-bottom: 20px;

}



/* STATS CARD */

.stats-card {

    background: white;

    border-radius: 15px;

    padding: 30px;

    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);

    border: 1px solid #e9ecef;

}



.stats-header {

    display: flex;

    align-items: center;

    gap: 15px;

    margin-bottom: 25px;

    border-bottom: 2px solid #007bff;

    padding-bottom: 15px;

}



.stats-header i {

    font-size: 1.5em;

    color: #007bff;

}



.stats-header h3 {

    margin: 0;

    color: #2c3e50;

    font-size: 1.4em;

}



.stats-content {

    display: flex;

    flex-direction: column;

    gap: 20px;

}



.stat-item-large {

    display: flex;

    align-items: center;

    gap: 20px;

    padding: 20px;

    background: #f8f9fa;

    border-radius: 12px;

    transition: transform 0.3s ease;

}



.stat-item-large:hover {

    transform: translateX(5px);

    background: #e9ecef;

}



.stat-icon {

    width: 60px;

    height: 60px;

    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);

    border-radius: 50%;

    display: flex;

    align-items: center;

    justify-content: center;

    font-size: 1.5em;

    color: white;

}



.stat-info {

    display: flex;

    flex-direction: column;

}



.stat-number {

    font-size: 2em;

    font-weight: 700;

    color: #007bff;

    line-height: 1;

}



.stat-label {

    font-size: 0.9em;

    color: #6c757d;

    font-weight: 600;

}



/* RESPONSIVE DESIGN */

@media (max-width: 768px) {

    .hero-section {

        padding: 40px 20px;

        margin: 20px 0;

    }

    

    .hero-description {

        font-size: 1.1em;

    }

    

    .hero-features {

        flex-direction: column;

        gap: 15px;

    }

    

    .hero-buttons {

        flex-direction: column;

        align-items: center;

    }

    

    .btn-hero-primary,

    .btn-hero-secondary {

        width: 100%;

        max-width: 300px;

        justify-content: center;

    }

    

    .welcome-grid {

        grid-template-columns: 1fr;

        gap: 30px;

    }

    

    .welcome-text h2 {

        font-size: 1.7em;

    }

}



@media (max-width: 480px) {

    .hero-icon {

        font-size: 3em;

    }

    

    .stat-item-large {

        flex-direction: column;

        text-align: center;

        gap: 15px;

    }

    

    .stats-header {

        flex-direction: column;

        text-align: center;

        gap: 10px;

    }

}



.welcome-text p {

    color: #ff6b9d !important;

    font-weight: bold !important;

}



/* ---------------------------------------------------- */

/* STILURI MODERNE FOOTER */

/* ---------------------------------------------------- */



.footer-modern {

    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);

    color: white;

    padding: 0;

    margin-top: 40px;

    border-top: 1px solid rgba(255,255,255,0.1);

}



.footer-container {

    max-width: 1200px;

    margin: 0 auto;

    padding: 25px 20px;

}



.footer-content {

    display: flex;

    justify-content: space-between;

    align-items: center;

    flex-wrap: wrap;

    gap: 20px;

}



.footer-brand {

    display: flex;

    align-items: center;

    gap: 15px;

}



.footer-logo {

    width: 50px;

    height: 50px;

    background: rgba(255, 255, 255, 0.2);

    border-radius: 50%;

    display: flex;

    align-items: center;

    justify-content: center;

    font-size: 1.3em;

    border: 2px solid rgba(255, 255, 255, 0.3);

}



.footer-text h4 {

    margin: 0;

    font-size: 1.2em;

    font-weight: 600;

    color: #ff6b9d;

}



.footer-text p {

    margin: 5px 0 0 0;

    font-size: 0.9em;

    opacity: 0.9;

    color: white;

}



.footer-info {

    display: flex;

    flex-direction: column;

    gap: 8px;

    align-items: flex-end;

}



.footer-version, .footer-author {

    display: flex;

    align-items: center;

    gap: 8px;

    font-size: 0.9em;

    opacity: 0.9;

    color: white;

}



.footer-version i {

    color: #ff6b9d;

}



.footer-author i {

    color: #ff6b9d;

}



/* RESPONSIVE FOOTER */

@media (max-width: 768px) {

    .footer-content {

        flex-direction: column;

        text-align: center;

        gap: 25px;

    }

    

    .footer-brand {

        flex-direction: column;

        gap: 12px;

    }

    

    .footer-info {

        align-items: center;

    }

    

    .footer-container {

        padding: 20px 15px;

    }

}



@media (max-width: 480px) {

    .footer-text h4 {

        font-size: 1.1em;

    }

    

    .footer-text p {

        font-size: 0.85em;

    }

    

    .footer-version, .footer-author {

        font-size: 0.85em;

    }

}



/* ---------------------------------------------------- */

/* AUTH PAGES STYLES */

/* ---------------------------------------------------- */



.auth-container {

    min-height: 100vh;

    display: flex;

    align-items: center;

    justify-content: center;

    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);

    padding: 20px;

}



.auth-card {

    background: white;

    border-radius: 20px;

    padding: 40px;

    box-shadow: 0 20px 40px rgba(0,0,0,0.1);

    width: 100%;

    max-width: 450px;

    border: 1px solid rgba(255,255,255,0.2);

}



.auth-header {

    text-align: center;

    margin-bottom: 30px;

}



.auth-icon {

    width: 80px;

    height: 80px;

    background: linear-gradient(135deg, #667eea, #764ba2);

    border-radius: 50%;

    display: flex;

    align-items: center;

    justify-content: center;

    margin: 0 auto 20px;

}



.auth-icon i {

    font-size: 2rem;

    color: white;

}



.auth-header h1 {

    color: #333;

    margin-bottom: 10px;

    font-size: 1.8rem;

}



.auth-header p {

    color: #666;

    font-size: 0.95rem;

}



.auth-form {

    margin-bottom: 30px;

}



.form-group-modern {

    margin-bottom: 25px;

}



.form-group-modern label {

    display: flex;

    align-items: center;

    margin-bottom: 8px;

    font-weight: 500;

    color: #333;

    font-size: 0.9rem;

}



.form-group-modern label i {

    margin-right: 8px;

    color: #667eea;

    width: 16px;

}



.form-group-modern input {

    width: 100%;

    padding: 12px 16px;

    border: 2px solid #e1e5e9;

    border-radius: 10px;

    font-size: 1rem;

    transition: all 0.3s ease;

    background: #f8f9fa;

}



.form-group-modern input:focus {

    outline: none;

    border-color: #667eea;

    background: white;

    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);

}



.password-hint {

    font-size: 0.8rem;

    color: #666;

    margin-top: 5px;

}



.btn-auth-primary {

    width: 100%;

    padding: 14px;

    background: linear-gradient(135deg, #667eea, #764ba2);

    color: white;

    border: none;

    border-radius: 10px;

    font-size: 1rem;

    font-weight: 600;

    cursor: pointer;

    transition: all 0.3s ease;

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 8px;

}



.btn-auth-primary:hover {

    transform: translateY(-2px);

    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);

}



.btn-auth-secondary {

    display: block;

    width: 100%;

    padding: 12px;

    background: transparent;

    color: #667eea;

    border: 2px solid #667eea;

    border-radius: 10px;

    font-size: 0.9rem;

    font-weight: 500;

    cursor: pointer;

    transition: all 0.3s ease;

    text-align: center;

    text-decoration: none;

    margin-bottom: 10px;

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 8px;

}



.btn-auth-secondary:hover {

    background: #667eea;

    color: white;

}



.btn-auth-link {

    display: block;

    text-align: center;

    color: #666;

    text-decoration: none;

    font-size: 0.9rem;

    margin-top: 15px;

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 8px;

}



.btn-auth-link:hover {

    color: #667eea;

}



.auth-links {

    text-align: center;

}



.auth-links p {

    margin-bottom: 15px;

    color: #666;

}



.alert {

    padding: 15px;

    border-radius: 10px;

    margin-bottom: 20px;

    display: flex;

    align-items: flex-start;

    gap: 10px;

}



.alert-success {

    background: #d4edda;

    color: #155724;

    border: 1px solid #c3e6cb;

}



.alert-error {

    background: #f8d7da;

    color: #721c24;

    border: 1px solid #f5c6cb;

}



.alert i {

    margin-top: 2px;

}



.alert ul {

    margin: 0;

    padding-left: 20px;

}



.alert li {

    margin-bottom: 5px;

}

/* ---------------------------------------------------- */

/* STILURI PENTRU ANUNȚURI */

/* ---------------------------------------------------- */



.anunturi-grid {

    display: grid;

    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));

    gap: 20px;

    margin-top: 20px;

}



.anunt-card {

    background: white;

    border-radius: 10px;

    padding: 20px;

    box-shadow: 0 2px 10px rgba(0,0,0,0.1);

    border-left: 4px solid #3498db;

    transition: transform 0.2s, box-shadow 0.2s;

}



.anunt-card:hover {

    transform: translateY(-2px);

    box-shadow: 0 4px 15px rgba(0,0,0,0.15);

}



.anunt-important {

    border-left-color: #e74c3c;

    background: linear-gradient(135deg, #fff, #fff5f5);

}



.anunt-header {

    display: flex;

    justify-content: space-between;

    align-items: flex-start;

    margin-bottom: 15px;

}



.anunt-header h3 {

    margin: 0;

    color: #2c3e50;

    flex: 1;

}



.badge-important {

    background: #e74c3c;

    color: white;

    padding: 4px 8px;

    border-radius: 12px;

    font-size: 0.8rem;

    font-weight: bold;

}



.badge-important-large {

    background: #e74c3c;

    color: white;

    padding: 8px 15px;

    border-radius: 20px;

    font-weight: bold;

    display: inline-block;

    margin-bottom: 15px;

}



.anunt-content {

    margin-bottom: 15px;

}



.anunt-content p {

    color: #555;

    line-height: 1.5;

    margin: 0;

}



.anunt-footer {

    display: flex;

    justify-content: space-between;

    align-items: center;

    border-top: 1px solid #eee;

    padding-top: 15px;

}



.anunt-meta {

    display: flex;

    flex-direction: column;

    gap: 5px;

    font-size: 0.9rem;

    color: #777;

}



.anunt-actions {

    display: flex;

    gap: 10px;

}



/* ---------------------------------------------------- */

/* STILURI PENTRU DETALII ANUNȚ */

/* ---------------------------------------------------- */



.anunt-detalii-card {

    background: white;

    border-radius: 10px;

    padding: 30px;

    box-shadow: 0 4px 15px rgba(0,0,0,0.1);

    border-left: 5px solid #3498db;

    margin-bottom: 30px;

}



.anunt-detalii-card.anunt-important {

    border-left-color: #e74c3c;

    background: linear-gradient(135deg, #fff, #fff5f5);

}



.anunt-detalii-card h1 {

    color: #2c3e50;

    margin-bottom: 20px;

    font-size: 1.8rem;

}



.anunt-meta-detailed {

    display: flex;

    gap: 20px;

    color: #777;

    font-size: 0.9rem;

    border-top: 1px solid #eee;

    padding-top: 15px;

}



.section-header {

    display: flex;

    justify-content: space-between;

    align-items: center;

    margin-bottom: 20px;

}



.comment-count {

    background: #3498db;

    color: white;

    padding: 2px 8px;

    border-radius: 12px;

    font-size: 0.8rem;

}



/* ---------------------------------------------------- */

/* STILURI PENTRU COMENTARII */

/* ---------------------------------------------------- */



.comentarii-list {

    display: flex;

    flex-direction: column;

    gap: 15px;

}



.comentariu-card {

    background: white;

    border-radius: 8px;

    padding: 20px;

    box-shadow: 0 2px 8px rgba(0,0,0,0.1);

    border-left: 3px solid #e9ecef;

    transition: all 0.2s;

}



.comentariu-card:hover {

    border-left-color: #3498db;

    box-shadow: 0 4px 12px rgba(0,0,0,0.15);

}



.comentariu-header {

    display: flex;

    justify-content: space-between;

    align-items: center;

    margin-bottom: 10px;

}



.comentariu-author {

    color: #2c3e50;

    font-weight: 500;

}



.raspuns-label {

    background: #95a5a6;

    color: white;

    padding: 2px 6px;

    border-radius: 8px;

    font-size: 0.7rem;

    margin-left: 8px;

}



.comentariu-date {

    color: #777;

    font-size: 0.9rem;

}



.comentariu-content {

    margin-bottom: 10px;

    line-height: 1.5;

}



.comentariu-actions {

    margin-top: 10px;

}



.btn-reply {

    background: none;

    border: 1px solid #ddd;

    padding: 5px 10px;

    border-radius: 5px;

    cursor: pointer;

    font-size: 0.8rem;

    color: #555;

    transition: all 0.2s;

}



.btn-reply:hover {

    background: #f8f9fa;

    border-color: #3498db;

    color: #3498db;

}



.reply-form {

    display: none;

    margin-top: 15px;

    padding: 15px;

    background: #f8f9fa;

    border-radius: 5px;

    border-left: 3px solid #3498db;

}



.raspunsuri-container {

    margin-top: 15px;

    padding-left: 20px;

    border-left: 2px solid #ecf0f1;

}



.comentariu-card.raspuns {

    margin-top: 10px;

    background: #f8f9fa;

    border-left-color: #95a5a6;

}



.navigation-buttons {

    margin-top: 30px;

    text-align: center;

}



/* ---------------------------------------------------- */

/* RESPONSIVE DESIGN PENTRU ANUNȚURI */

/* ---------------------------------------------------- */



@media (max-width: 768px) {

    .anunturi-grid {

        grid-template-columns: 1fr;

    }

    

    .anunt-footer {

        flex-direction: column;

        gap: 10px;

        align-items: flex-start;

    }

    

    .anunt-actions {

        width: 100%;

        justify-content: flex-end;

    }

    

    .anunt-detalii-card {

        padding: 20px;

    }

    

    .anunt-meta-detailed {

        flex-direction: column;

        gap: 10px;

    }

    

    .section-header {

        flex-direction: column;

        gap: 10px;

        align-items: flex-start;

    }

    

    .comentariu-header {

        flex-direction: column;

        align-items: flex-start;

        gap: 5px;

    }

    

    .raspunsuri-container {

        padding-left: 10px;

    }

    

    .anunt-detalii-card h1 {

        font-size: 1.5rem;

    }

}



@media (max-width: 480px) {

    .anunt-card {

        padding: 15px;

    }

    

    .anunt-header {

        flex-direction: column;

        gap: 10px;

    }

    

    .anunt-header h3 {

        font-size: 1.2rem;

    }

    

    .anunt-actions {

        flex-direction: column;

        width: 100%;

    }

    

    .anunt-actions .btn {

        width: 100%;

        text-align: center;

    }

    

    .comentariu-card {

        padding: 15px;

    }

}



/* ---------------------------------------------------- */

/* STILURI PENTRU FORMULAR CHECKBOX */

/* ---------------------------------------------------- */



.checkbox-label {

    display: flex;

    align-items: center;

    cursor: pointer;

    font-weight: 500;

    gap: 10px;

}



.checkbox-label input[type="checkbox"] {

    display: none;

}



.checkmark {

    width: 20px;

    height: 20px;

    border: 2px solid #ddd;

    border-radius: 4px;

    display: flex;

    align-items: center;

    justify-content: center;

    transition: all 0.3s ease;

}



.checkbox-label input[type="checkbox"]:checked + .checkmark {

    background: #007bff;

    border-color: #007bff;

}



.checkbox-label input[type="checkbox"]:checked + .checkmark:after {

    content: '✓';

    color: white;

    font-weight: bold;

}



/* ---------------------------------------------------- */

/* STILURI PENTRU BUTOANE MICI */

/* ---------------------------------------------------- */



.btn-sm {

    padding: 8px 12px;

    font-size: 0.8rem;

}



/* ---------------------------------------------------- */

/* UTILITARE GENERALE */

/* ---------------------------------------------------- */



.no-data {

    text-align: center;

    padding: 40px 20px;

    color: #6c757d;

    font-style: italic;

    background: #f8f9fa;

    border-radius: 8px;

    margin: 20px 0;

}



.text-center {

    text-align: center;

}



.mb-0 {

    margin-bottom: 0;

}



.mt-20 {

    margin-top: 20px;

}



.mb-20 {

    margin-bottom: 20px;

}

/* ---------------------------------------------------- */

/* STILURI PENTRU WIDGET ANUNȚURI ÎN DASHBOARD */

/* ---------------------------------------------------- */



.anunturi-widget {

    background: white;

    border-radius: 12px;

    padding: 25px;

    box-shadow: 0 4px 15px rgba(0,0,0,0.1);

    margin: 30px 0;

    border-left: 5px solid #007bff;

    transition: transform 0.3s ease;

}



.anunturi-widget:hover {

    transform: translateY(-2px);

    box-shadow: 0 6px 20px rgba(0,0,0,0.15);

}



.widget-header {

    display: flex;

    justify-content: space-between;

    align-items: center;

    margin-bottom: 20px;

    border-bottom: 2px solid #f1f1f1;

    padding-bottom: 15px;

}



.widget-header h3 {

    margin: 0;

    color: #007bff;

    font-size: 1.4em;

    font-weight: 600;

}



.widget-header .btn-sm {

    padding: 8px 16px;

    background: #007bff;

    color: white;

    text-decoration: none;

    border-radius: 6px;

    font-size: 0.9em;

    font-weight: 500;

    transition: all 0.3s ease;

}



.widget-header .btn-sm:hover {

    background: #0056b3;

    transform: translateY(-1px);

}



.anunturi-list {

    display: flex;

    flex-direction: column;

    gap: 20px;

}



.anunt-item {

    padding: 20px;

    background: #f8f9fa;

    border-radius: 10px;

    border-left: 4px solid #6c757d;

    transition: all 0.3s ease;

    position: relative;

}



.anunt-item.important {

    background: linear-gradient(135deg, #fff5f5, #ffeaea);

    border-left-color: #e74c3c;

    box-shadow: 0 2px 8px rgba(231, 76, 60, 0.1);

}



.anunt-item:hover {

    transform: translateX(5px);

    box-shadow: 0 4px 12px rgba(0,0,0,0.1);

}



.anunt-header {

    display: flex;

    justify-content: space-between;

    align-items: flex-start;

    margin-bottom: 12px;

    gap: 15px;

}



.anunt-header h4 {

    margin: 0;

    color: #2c3e50;

    font-size: 1.1em;

    font-weight: 600;

    flex: 1;

    line-height: 1.3;

}



.badge-important-small {

    background: #e74c3c;

    color: white;

    padding: 4px 8px;

    border-radius: 8px;

    font-size: 0.7em;

    font-weight: bold;

    white-space: nowrap;

}



.anunt-preview {

    margin: 0 0 15px 0;

    color: #555;

    font-size: 0.95em;

    line-height: 1.5;

    display: -webkit-box;

    -webkit-line-clamp: 3;

    -webkit-box-orient: vertical;

    overflow: hidden;

}



.anunt-meta {

    display: flex;

    justify-content: space-between;

    align-items: center;

    font-size: 0.85em;

    color: #777;

    flex-wrap: wrap;

    gap: 10px;

}



.anunt-author, .anunt-date {

    display: flex;

    align-items: center;

    gap: 5px;

}



.read-more {

    color: #007bff;

    text-decoration: none;

    font-weight: 500;

    font-size: 0.9em;

    transition: color 0.3s ease;

}



.read-more:hover {

    color: #0056b3;

    text-decoration: underline;

}



/* Responsive design pentru widget */

@media (max-width: 768px) {

    .anunturi-widget {

        padding: 20px;

        margin: 20px 0;

    }

    

    .widget-header {

        flex-direction: column;

        gap: 15px;

        align-items: flex-start;

    }

    

    .widget-header .btn-sm {

        align-self: flex-end;

    }

    

    .anunt-header {

        flex-direction: column;

        gap: 10px;

    }

    

    .anunt-meta {

        flex-direction: column;

        align-items: flex-start;

        gap: 8px;

    }

    

    .anunt-item {

        padding: 15px;

    }

}



@media (max-width: 480px) {

    .anunturi-widget {

        padding: 15px;

    }

    

    .widget-header h3 {

        font-size: 1.2em;

    }

    

    .anunt-header h4 {

        font-size: 1em;

    }

    

    .anunt-preview {

        font-size: 0.9em;

    }

}

/* ---------------------------------------------------- */

/* STILURI UNIFICATE PENTRU TOATE SECTIUNILE DASHBOARD */

/* ---------------------------------------------------- */



.form-section, .cars-section {

    background: white;

    border-radius: 15px;

    padding: 30px;

    box-shadow: 0 4px 15px rgba(0,0,0,0.1);

    margin: 30px 0;

    border-left: 5px solid #007bff;

    transition: transform 0.3s ease, box-shadow 0.3s ease;

}



.form-section:hover, .cars-section:hover {

    transform: translateY(-2px);

    box-shadow: 0 6px 20px rgba(0,0,0,0.15);

}



.form-section h2, .cars-section h2 {

    color: #007bff;

    margin-bottom: 25px;

    font-size: 1.6em;

    font-weight: 600;

    border-bottom: 2px solid #f1f1f1;

    padding-bottom: 15px;

    text-align: center;

}



/* Stiluri specifice pentru form-section */

.form-section {

    border-left-color: #28a745;

}



.form-section h2 {

    color: #28a745;

}



/* Stiluri specifice pentru cars-section */

.cars-section {

    border-left-color: #6f42c1;

}



.cars-section h2 {

    color: #6f42c1;

}



/* Stiluri pentru stats-container (deja existente, doar le uniformizăm) */

.stats-container {

    background: white;

    border-radius: 15px;

    padding: 30px;

    box-shadow: 0 4px 15px rgba(0,0,0,0.1);

    margin: 30px 0;

    border-left: 5px solid #007bff;

    transition: transform 0.3s ease, box-shadow 0.3s ease;

}



.stats-container:hover {

    transform: translateY(-2px);

    box-shadow: 0 6px 20px rgba(0,0,0,0.15);

}



.stats-container h2 {

    color: #007bff;

    margin-bottom: 25px;

    font-size: 1.6em;

    font-weight: 600;

    border-bottom: 2px solid #f1f1f1;

    padding-bottom: 15px;

    text-align: center;

}



/* Stiluri pentru anunturi-widget (deja existente, doar le uniformizăm) */

.anunturi-widget {

    background: white;

    border-radius: 15px;

    padding: 30px;

    box-shadow: 0 4px 15px rgba(0,0,0,0.1);

    margin: 30px 0;

    border-left: 5px solid #fd7e14;

    transition: transform 0.3s ease, box-shadow 0.3s ease;

}



.anunturi-widget:hover {

    transform: translateY(-2px);

    box-shadow: 0 6px 20px rgba(0,0,0,0.15);

}



.anunturi-widget .widget-header h3 {

    color: #fd7e14;

    margin-bottom: 25px;

    font-size: 1.6em;

    font-weight: 600;

    border-bottom: 2px solid #f1f1f1;

    padding-bottom: 15px;

    text-align: center;

}



/* Responsive design pentru toate sectiunile */

@media (max-width: 768px) {

    .form-section, .cars-section, .stats-container, .anunturi-widget {

        padding: 20px;

        margin: 20px 0;

        border-radius: 12px;

    }

    

    .form-section h2, .cars-section h2, .stats-container h2, .anunturi-widget .widget-header h3 {

        font-size: 1.4em;

        padding-bottom: 12px;

    }

}



@media (max-width: 480px) {

    .form-section, .cars-section, .stats-container, .anunturi-widget {

        padding: 15px;

        margin: 15px 0;

        border-radius: 10px;

    }

    

    .form-section h2, .cars-section h2, .stats-container h2, .anunturi-widget .widget-header h3 {

        font-size: 1.3em;

    }

}

/* ---------------------------------------------------- */

/* STILURI SPECIFICE PENTRU PAGINA DE PROFIL */

/* ---------------------------------------------------- */



.stats-section {

    background: #f8f9fa;

    padding: 25px;

    border-radius: 12px;

    border: 1px solid #e9ecef;

    margin-bottom: 30px;

}



.stats-section h2 {

    color: #2c3e50;

    margin-bottom: 25px;

    font-size: 1.6em;

    font-weight: 600;

    border-bottom: 2px solid #007bff;

    padding-bottom: 15px;

    text-align: center;

}



.stats-grid {

    display: grid;

    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));

    gap: 20px;

    margin-top: 20px;

}



.stat-card {

    background: white;

    padding: 25px;

    border-radius: 12px;

    box-shadow: 0 4px 6px rgba(0,0,0,0.1);

    border-left: 4px solid #007bff;

    display: flex;

    align-items: center;

    gap: 15px;

    transition: transform 0.2s ease, box-shadow 0.2s ease;

}



.stat-card:hover {

    transform: translateY(-2px);

    box-shadow: 0 6px 12px rgba(0,0,0,0.15);

}



.stat-card:nth-child(2) {

    border-left-color: #28a745;

}



.stat-icon {

    background: #007bff;

    color: white;

    width: 50px;

    height: 50px;

    border-radius: 50%;

    display: flex;

    align-items: center;

    justify-content: center;

    font-size: 1.5rem;

}



.stat-card:nth-child(2) .stat-icon {

    background: #28a745;

}



.stat-content {

    flex: 1;

}



.stat-value {

    font-size: 2.5rem;

    font-weight: bold;

    color: #2c3e50;

    line-height: 1;

}



.stat-label {

    font-size: 0.9rem;

    color: #6c757d;

    font-weight: 600;

    margin-top: 5px;

}



.form-card {

    background: white;

    padding: 30px;

    border-radius: 12px;

    box-shadow: 0 4px 6px rgba(0,0,0,0.1);

    border: 1px solid #e9ecef;

}



.form-card h2 {

    color: #2c3e50;

    margin-bottom: 25px;

    padding-bottom: 15px;

    border-bottom: 2px solid #f8f9fa;

    font-size: 1.6em;

    font-weight: 600;

}



.form-group {

    margin-bottom: 20px;

}



.form-group label {

    display: block;

    margin-bottom: 8px;

    font-weight: 600;

    color: #495057;

}



.form-group input {

    width: 100%;

    padding: 12px;

    border: 2px solid #e9ecef;

    border-radius: 8px;

    font-size: 1rem;

    transition: border-color 0.2s ease;

}



.form-group input:focus {

    border-color: #007bff;

    outline: none;

    box-shadow: 0 0 0 3px rgba(0,123,255,0.1);

}



.form-group input:disabled {

    background-color: #f8f9fa;

    color: #6c757d;

}



.form-group small {

    color: #6c757d;

    font-size: 0.85rem;

    margin-top: 5px;

    display: block;

}



.form-actions {

    display: flex;

    gap: 15px;

    margin-top: 30px;

    padding-top: 20px;

    border-top: 2px solid #f8f9fa;

}



.btn {

    padding: 12px 24px;

    border: none;

    border-radius: 8px;

    font-size: 1rem;

    font-weight: 600;

    cursor: pointer;

    text-decoration: none;

    display: inline-flex;

    align-items: center;

    gap: 8px;

    transition: all 0.2s ease;

}



.btn-primary {

    background: #007bff;

    color: white;

}



.btn-primary:hover {

    background: #0056b3;

    transform: translateY(-1px);

}



.btn-secondary {

    background: #6c757d;

    color: white;

}



.btn-secondary:hover {

    background: #545b62;

    transform: translateY(-1px);

}



/* Responsive design pentru profil */

@media (max-width: 768px) {

    .stats-grid {

        grid-template-columns: 1fr;

    }

    

    .form-actions {

        flex-direction: column;

    }

    

    .stat-card {

        padding: 20px;

    }

    

    .form-card {

        padding: 20px;

    }

    

    .stat-value {

        font-size: 2rem;

    }

}



@media (max-width: 480px) {

    .stats-section {

        padding: 20px;

    }

    

    .form-card {

        padding: 15px;

    }

    

    .stat-card {

        padding: 15px;

        flex-direction: column;

        text-align: center;

        gap: 10px;

    }

    

    .stat-icon {

        width: 40px;

        height: 40px;

        font-size: 1.2rem;

    }

    

    .stat-value {

        font-size: 1.8rem;

    }

}
/* Înlocuiește stilurile existente pentru .devices-section (de la linia 2656) cu: */

.devices-section {
    background: white;
    border-radius: 15px;
    padding: 30px;
    margin: 30px 0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border-left: 5px solid #007bff;
}

.devices-section .section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f1f1f1;
    flex-wrap: wrap;
    gap: 15px;
}

.devices-section .section-header h2 {
    margin: 0 !important;
    color: #2c3e50 !important;
    font-size: 1.5em !important;
    font-weight: 600 !important;
    text-align: left !important;
    border-bottom: none !important;
    padding-bottom: 0 !important;
}

.devices-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 20px;
    margin-bottom: 25px;
}

.device-card {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.device-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.1);
}

.device-card.current {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-left: 4px solid #28a745;
}

.device-card.other {
    border-left: 4px solid #6c757d;
}

.device-header {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 15px;
}

.device-icon {
    font-size: 1.3rem;
    color: #007bff;
    background: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.device-card.current .device-icon {
    color: #28a745;
    background: rgba(40, 167, 69, 0.1);
}

.device-info h3 {
    margin: 0 0 10px 0;
    color: #2c3e50;
    font-size: 1.1em;
    font-weight: 600;
}

.device-meta {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.device-date, .device-expiry {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85em;
    color: #6c757d;
}

.device-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid #e9ecef;
}

.current-badge {
    background: #28a745;
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8em;
    font-weight: 500;
}

.devices-help {
    background: #e3f2fd;
    padding: 15px 20px;
    border-radius: 8px;
    font-size: 0.9em;
    color: #1976d2;
    border-left: 4px solid #2196f3;
}

/* Asigură-te că butoanele arată bine */
.btn-danger {
    background: #dc3545;
    color: white;
    padding: 10px 20px;
    white-space: nowrap;
}

.btn-outline {
    background: transparent;
    color: #dc3545;
    border: 1px solid #dc3545;
    padding: 8px 16px;
}

@media (max-width: 768px) {
    .devices-section .section-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .devices-grid {
        grid-template-columns: 1fr;
    }
}
/* ============================================================ */
/* IMBUNATATIRI & CLASE UTILITARE (Adaugate pentru Clean Code) */
/* ============================================================ */

/* Utilitare culori text */
.text-success {
    color: #28a745 !important;
}

.text-warning {
    color: #ffc107 !important;
}

.text-danger-bold {
    color: #dc3545 !important; 
    font-weight: bold;
}

/* Buton custom verde (folosit la mesajul de succes din dashboard) */
.btn-success-custom {
    display: inline-block;
    padding: 8px 15px;
    background-color: #28a745;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
    transition: background-color 0.3s ease;
}

.btn-success-custom:hover {
    background-color: #218838;
}

/* Container pentru butoane formular (interventii) */
.form-actions-container {
    display: flex; 
    gap: 15px; 
    margin-top: 25px;
}

/* Responsivitate pentru butoanele containerului */
@media (max-width: 768px) {
    .form-actions-container {
        flex-direction: column;
    }
    
    .form-actions-container .btn {
        width: 100%;
        text-align: center;
    }
}
/* Update pentru Admin și containere de butoane */
.action-buttons-container {
    margin-top: 30px;
    text-align: center;
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

/* Stil pentru mesajele din guestbook/comentarii */
.password-hint {
    font-size: 0.85em;
    color: #6c757d;
    margin-top: 4px;
    display: block;
}
/* Stiluri pentru Header Formular (Editare/Adaugare) */
.form-header {
    text-align: center;
    margin-bottom: 30px;
}

.form-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #007bff, #0056b3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    box-shadow: 0 4px 10px rgba(0, 123, 255, 0.3);
}

.form-icon i {
    font-size: 1.8rem;
    color: white;
}

/* Ajustare pentru titlul din formular */
.form-header h1 {
    font-size: 1.8rem;
    color: #2c3e50;
    margin-bottom: 5px;
}

.form-header p {
    color: #6c757d;
    font-size: 1rem;
}
/* ========================================= */
/* STILURI GUESTBOOK (CHAT) & EDITARE */
/* ========================================= */

/* Container principal chat */
.guestbook-container {
    display: flex;
    flex-direction: column;
    height: 600px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.08);
    overflow: hidden;
}

.messages-area {
    flex: 1;
    padding: 25px;
    overflow-y: auto;
    background: #f8f9fa;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Stiluri mesaje */
.message-card {
    background: #fff;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.03);
    border-left: 4px solid #007bff;
    position: relative;
    transition: transform 0.2s;
}

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

.message-card.admin-message {
    border-left-color: #dc3545;
    background: #fff5f5;
}

.message-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 0.9em;
}

.message-author {
    font-weight: 600;
    color: #2c3e50;
    display: flex;
    align-items: center;
    gap: 8px;
}

.admin-badge {
    background: #dc3545;
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.75em;
    text-transform: uppercase;
}

.message-time {
    color: #adb5bd;
    font-size: 0.85em;
}

.message-content {
    color: #495057;
    line-height: 1.5;
    word-break: break-word;
}

/* Zona de input (jos) */
.input-area {
    padding: 20px;
    background: #fff;
    border-top: 1px solid #dee2e6;
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.input-area textarea {
    flex: 1;
    padding: 12px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    resize: none;
    height: 60px;
    font-family: inherit;
    transition: border-color 0.3s;
}

.input-area textarea:focus {
    outline: none;
    border-color: #007bff;
}

.send-btn {
    height: 60px;
    padding: 0 25px;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background 0.3s;
}

.send-btn:hover {
    background: #0056b3;
}

.delete-msg-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    color: #dc3545;
    opacity: 0;
    cursor: pointer;
    transition: opacity 0.2s;
}

.message-card:hover .delete-msg-btn {
    opacity: 1;
}

/* Status mesaje (toast) */
.status-toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 15px 25px;
    border-radius: 8px;
    color: white;
    transform: translateY(100px);
    transition: transform 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.status-toast.show {
    transform: translateY(0);
}

.status-success { background: #28a745; }
.status-error { background: #dc3545; }
/* ========================================= */
/* GUESTBOOK - CHAT MODERN & ADMIN */
/* ========================================= */

.guestbook-layout {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 900px;
    margin: 0 auto;
}

/* Bara de Admin (Sus) */
.admin-toolbar-panel {
    background-color: #ffebee;
    border: 1px solid #ffcdd2;
    border-radius: 8px;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.admin-toolbar-panel h3 {
    margin: 0;
    color: #c62828;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-danger-action {
    background-color: #dc3545;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.2s;
}

.btn-danger-action:hover {
    background-color: #c82333;
}

/* Fereastra de Chat */
.chat-window {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 600px; /* Înălțime fixă pentru scroll */
    border: 1px solid #e9ecef;
}

.chat-messages-area {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    background-color: #f8f9fa;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Bule de mesaj */
.chat-bubble {
    background: white;
    padding: 15px;
    border-radius: 0 12px 12px 12px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    position: relative;
    max-width: 85%;
    border-left: 4px solid #007bff;
    animation: fadeIn 0.3s ease;
}

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

.chat-bubble.admin-post {
    border-left-color: #dc3545;
    background-color: #fff5f5;
}

.chat-bubble.own-post {
    align-self: flex-end; /* Mesajele tale pe dreapta (opțional) */
    border-radius: 12px 0 12px 12px;
    border-left: none;
    border-right: 4px solid #28a745;
    background-color: #e8f5e9;
}

.bubble-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    font-size: 0.85rem;
    color: #6c757d;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    padding-bottom: 5px;
}

.user-badge {
    font-weight: 700;
    color: #2c3e50;
    display: flex;
    align-items: center;
    gap: 6px;
}

.badge-role {
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 4px;
    text-transform: uppercase;
}

.badge-role.admin { background: #dc3545; color: white; }
.badge-role.mecanic { background: #007bff; color: white; }

.btn-delete-msg {
    background: none;
    border: none;
    color: #dc3545;
    cursor: pointer;
    font-size: 1.1rem;
    padding: 0 5px;
    opacity: 0.6;
    transition: opacity 0.2s;
}

.btn-delete-msg:hover {
    opacity: 1;
}

.bubble-content {
    color: #333;
    line-height: 1.5;
    font-size: 0.95rem;
    white-space: pre-wrap; /* Păstrează spațierile */
}

/* Zona de input (jos) */
.chat-input-area {
    padding: 20px;
    background: white;
    border-top: 1px solid #dee2e6;
}

.input-wrapper {
    position: relative;
}

.chat-textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    resize: none;
    font-family: inherit;
    transition: border-color 0.3s;
    height: 80px;
}

.chat-textarea:focus {
    outline: none;
    border-color: #007bff;
}

.chat-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
}

.char-counter {
    font-size: 0.8rem;
    color: #adb5bd;
}

.btn-send {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 10px 25px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background 0.2s;
}

.btn-send:hover {
    background-color: #0056b3;
}

/* Mesaj gol */
.empty-chat {
    text-align: center;
    padding: 40px;
    color: #adb5bd;
    font-style: italic;
}
/* Utilitare Admin & Tabele */
.text-center {
    text-align: center !important;
}

.btn-group-center {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 30px;
    flex-wrap: wrap;
}

/* Stil specific pentru când nu sunt date în tabel */
.table-empty-message {
    text-align: center;
    padding: 30px;
    color: #6c757d;
    font-style: italic;
    background: #f8f9fa;
}
/* ========================================= */
/* PROFIL UTILIZATOR & DISPOZITIVE */
/* ========================================= */

/* Grid pentru statistici profil */
.profile-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.profile-stat-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border: 1px solid #e9ecef;
    text-align: center;
    transition: transform 0.3s;
}

.profile-stat-card:hover {
    transform: translateY(-5px);
}

.profile-stat-icon {
    font-size: 2rem;
    margin-bottom: 10px;
    color: #007bff;
}

.profile-stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2c3e50;
    display: block;
}

.profile-stat-label {
    color: #6c757d;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Secțiune Dispozitive Conectate */
.devices-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
}

.device-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fff;
    padding: 15px 20px;
    border-radius: 8px;
    border: 1px solid #e1e4e8;
    transition: background 0.2s;
}

.device-card:hover {
    background: #f8f9fa;
}

.device-card.current-device {
    border-left: 4px solid #28a745;
    background: #f1f8e9;
}

.device-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.device-icon {
    font-size: 1.5rem;
    color: #6c757d;
}

.current-device .device-icon {
    color: #28a745;
}

.device-details h4 {
    margin: 0;
    font-size: 1rem;
    color: #333;
}

.device-details p {
    margin: 5px 0 0;
    font-size: 0.85rem;
    color: #6c757d;
}

.device-actions .btn-sm {
    padding: 5px 10px;
    font-size: 0.85rem;
}

.section-separator {
    margin: 40px 0;
    border-top: 1px solid #eee;
}
/* Stiluri pentru Header-ul paginilor interne (Profil, Interventii, etc) */
.header-section {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    margin-bottom: 30px;
    border-left: 5px solid #007bff;
    text-align: center; /* Sau left, cum preferi */
}

.header-section h1 {
    margin: 0;
    color: #2c3e50;
    font-size: 2rem;
    font-weight: 700;
    border: none; /* Scoatem border-ul default de la h1 general daca exista */
    padding: 0;
}

.header-section p {
    color: #6c757d;
    margin-top: 10px;
    font-size: 1.1rem;
}

/* Asigură-te că input-urile din profil arată bine */
.form-group-modern input[type="text"],
.form-group-modern input[type="email"],
.form-group-modern input[type="password"] {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group-modern input:focus {
    border-color: #007bff;
    outline: none;
}
/* Fix pentru butoanele din Profil */
.form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    align-items: center;
}

/* Butonul de Logout (Deloghează-mă) */
.btn-logout {
    background-color: #dc3545; /* Roșu */
    color: white;
    margin-left: auto; /* Îl împinge în dreapta de tot */
}

.btn-logout:hover {
    background-color: #c82333;
}

/* Pe mobil, le punem unul sub altul */
@media (max-width: 600px) {
    .form-actions {
        flex-direction: column;
    }
    .form-actions .btn {
        width: 100%;
        margin-left: 0;
        justify-content: center;
    }
}
/* --- STILURI PENTRU SECȚIUNEA DISPOZITIVE --- */
.devices-section {
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    border-left: 4px solid #6610f2; /* Mov distinctiv pentru securitate */
    margin-top: 30px;
}

.devices-section h2 {
    color: #2c3e50;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f8f9fa;
}

.device-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid #eee;
    transition: background 0.2s;
}

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

.device-item:hover {
    background-color: #f8f9fa;
}

.device-info {
    display: flex;
    flex-direction: column;
}

.device-title {
    font-weight: 600;
    color: #333;
    font-size: 1rem;
}

.device-meta {
    font-size: 0.85rem;
    color: #888;
    margin-top: 4px;
}

.current-badge {
    background-color: #28a745;
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    margin-left: 8px;
    font-weight: normal;
}

.btn-disconnect {
    background-color: #fff;
    color: #dc3545;
    border: 1px solid #dc3545;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-disconnect:hover {
    background-color: #dc3545;
    color: white;
}

/* Responsive pentru mobil */
@media (max-width: 600px) {
    .device-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    .btn-disconnect {
        width: 100%;
        text-align: center;
    }
}