/* Resetare elemente de bază */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f4f6f9;
    color: #333;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Container principal pentru pagini */
.container {
    background: #ffffff;
    max-width: 1500px;
    width: 100%;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    margin-top: 20px;
}

/* Variantă Lată (pentru Rapoarte) */
.container-lat {
    max-width: 1600px;
}

/* Variantă Medie (pentru Index/Dashboard) */
.container-mediu {
    max-width: 800px;
}

/* Container special, mai îngust, pentru Login și Înregistrare */
.container-mic {
    max-width: 400px;
}

h2, h3 {
    margin-bottom: 20px;
    color: #388ae7;
}

h3 {
    margin-top: 30px;
    border-bottom: 2px solid #ecf0f1;
    padding-bottom: 10px;
}


/* Stiluri pentru Meniu (Navigare) */
.meniu {
    background: #3498db ;
    padding: 12px;
    border-radius: 6px;
    margin: 0 auto 20px auto;
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    width: 100%;
}

.meniu a {
    color: #ffffff;
    text-decoration: none;
    font-weight: bold;
    display: inline-block;
    font-size: 14px;
    transition: color 0.2s;
}

.meniu a:hover {
    color: #73c6fd;
}

/* Formulare */
form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

label {
    font-weight: 600;
    margin-bottom: -10px;
    color: #4a5568;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="month"],
input[type="date"],
select {
    padding: 10px;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    font-size: 15px;
    width: 100%;
}

input:focus, select:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
}

button {
    background-color: #3498db;
    color: white;
    padding: 12px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.2s;
}

button:hover {
    background-color: #2980b9;
}

/* Mesaje de alertă (Erori / Succes) */
.mesaj {
    padding: 12px;
    border-radius: 4px;
    margin-bottom: 20px;
    font-weight: 500;
}

.mesaj-eroare {
    background-color: #fed7d7;
    color: #c53030;
    border-left: 4px solid #e53e3e;
}

.mesaj-succes {
    background-color: #c6f6d5;
    color: #22543d;
    border-left: 4px solid #38a169;
}

/* Tabele (Raport și Prețuri) */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

th, td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
}

th {
    background-color: #b7d7f7;
    color: #4a5568;
    font-weight: 600;

}
td {
    color: #2d3748;
    font-size: 14px;
}
tr:hover {
    background-color: #f1f5f9;
}

@media (max-width: 1000px) {
    table, thead, tbody, th, td, tr {
        display: block;
    }
    th {
        display: none;
    }
    tr {
        margin-bottom: 15px;
        border: 1px solid #cbd5e1;
        padding: 10px;
        border-radius: 6px;
        background: #fff;
    }
    td {
        text-align: right;
        padding-left: 50%;
        position: relative;
        border-bottom: 1px dashed #e2e8f0;
        
    }
    td:last-child {
        border-bottom: none;
    }
    td::before {
        content: attr(data-label);
        position: absolute;
        left: 10px;
        width: 45%;
        text-align: left;
        font-weight: 600;
        color: #718096;
    }
}


.buton-inapoi {
    display: inline-block;
    background-color: #007bff; /* Albastru */
    color: white;
    padding: 10px 20px;
    text-decoration: none; /* Șterge linia de sub text */
    border-radius: 5px; /* Colțuri rotunjite */
    font-weight: bold;
    transition: background 0.3s;
}

/* Efect când pui mouse-ul pe el */
.buton-dashboard:hover {
    background-color: #0056b3; /* Albastru mai închis */
}


.tabel-tarife {
    width: 100%;
    max-width: 600px;       /* Restrânge tabelul la o lățime similară cu a formularului */
    margin: 25px auto;      /* "auto" pe stânga și dreapta îl centrează perfect pe ecran */
    border-collapse: collapse;
    font-family: sans-serif;
    font-size: 14px;
    background-color: #ffffff;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05); /* Umbră discretă la fel ca elementele de sus */
    border-radius: 6px;
    overflow: hidden;
}

/* Opțional: Adaugă o aliniere centrată și textului din celule dacă vrei să arate mai ordonat */
.tabel-tarife th, .tabel-tarife td {
    padding: 12px 16px;
    text-align: left;       /* Sau 'center' dacă vrei ca prețurile și datele să fie centrate în coloane */
    border-bottom: 1px solid #eef2f5;
    font-size: 14px;
}

.tabel-tarife th {
    background-color: #3498db; /* Albastrul folosit la butoanele tale */
    color: white;
    font-weight: bold;
}

.tabel-tarife tbody tr:nth-child(even) {
    background-color: #f8fafc; /* Rânduri alternate pentru o citire mai ușoară */
}

.tabel-tarife tbody tr:hover {
    background-color: #f1f5f9; /* Efect vizual la trecerea mouse-ului */
}
