/* Resetare stiluri implicite */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

/* Container principal */
.container {
    width: 90%;
    max-width: 1400px;
    margin: 20px auto;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

/* Logo */
.logo {
    display: block;
    margin: 20px auto;
    max-width: 150px;
}

/* Titlu principal */
h1 {
    text-align: center;
    margin-bottom: 20px;
    color: #333;
}

/* Formular de căutare */
.search-form {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.search-form input {
    padding: 10px;
    width: 300px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
}

.search-button {
    padding: 10px 15px;
    background: #08296c;
    color: white;
    border: none;
    cursor: pointer;
    border-radius: 5px;
    margin-left: 10px;
    transition: background 0.3s ease;
}

.search-button:hover {
    background: #0e88ca;
}

/* Stilizare tabel pacienți */
.tabel-pacienti {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    table-layout: fixed; /* Distribuire uniformă a coloanelor */
    border: 1px solid #ccc; /* Linie generală */
}

/* Celule și antet tabel */
.tabel-pacienti th, .tabel-pacienti td {
    padding: 10px;
    border: 1px solid #ddd;
    text-align: left;
    vertical-align: middle;
    word-wrap: break-word;
}

/* Antet tabel */
.tabel-pacienti th {
    background: #08296c;
    color: white;
    text-align: center;
    white-space: nowrap;
}

/* Alternare culori rânduri */
.tabel-pacienti tr:nth-child(even) {
    background: #f2f2f2;
}

.tabel-pacienti tr:hover {
    background: #e0e0e0;
}

/* Lățimi ajustate pentru fiecare coloană */
.tabel-pacienti th:nth-child(1), .tabel-pacienti td:nth-child(1) { width: 12%; } /* Nume */
.tabel-pacienti th:nth-child(2), .tabel-pacienti td:nth-child(2) { width: 12%; } /* Prenume */
.tabel-pacienti th:nth-child(3), .tabel-pacienti td:nth-child(3) { width: 15%; } /* CNP */
.tabel-pacienti th:nth-child(4), .tabel-pacienti td:nth-child(4) { width: 10%; } /* CI */
.tabel-pacienti th:nth-child(5), .tabel-pacienti td:nth-child(5) { width: 10%; } /* Data Nașterii */
.tabel-pacienti th:nth-child(6), .tabel-pacienti td:nth-child(6) { width: 12%; } /* Telefon */
.tabel-pacienti th:nth-child(7), .tabel-pacienti td:nth-child(7) { width: 20%; } /* Adresă */
.tabel-pacienti th:nth-child(8), .tabel-pacienti td:nth-child(8) { width: 15%; } /* Diagnostic */

/* Lărgire coloană Acțiuni */
.tabel-pacienti th:nth-child(9), .tabel-pacienti td:nth-child(9) {
    width: 10%;
    text-align: center;
}

/* Buton "Vezi Fișa" */
.btn-vfisa {
    background: #17a2b8;
    color: white;
    padding: 5px 10px;
    font-size: 13px;
    border-radius: 5px;
    text-decoration: none;
    transition: background 0.3s ease;
    display: inline-block;
    white-space: nowrap;
    border: 1px solid #0d6efd;
}

.btn-vfisa:hover {
    background: #138496;
    border-color: #0056b3;
}

/* Buton Înapoi */
.buttons {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.btn-back {
    background: #08296c;
    color: white;
    padding: 10px 15px;
    font-size: 16px;
    border-radius: 5px;
    text-decoration: none;
    transition: background 0.3s ease;
    border: 0.5px solid #F087B6;
}

.btn-back:hover {
    background: #0e88ca;
    border-color: #D96A9A;
}

/* Responsivitate pentru ecrane mici */
@media (max-width: 1024px) {
    .tabel-pacienti th, .tabel-pacienti td {
        font-size: 12px;
        padding: 8px;
    }

    .btn-vfisa {
        font-size: 11px;
        padding: 4px 8px;
    }

    .btn-back {
        font-size: 14px;
        padding: 8px 12px;
    }

    /* Aranjare verticală pe ecrane mici */
    .search-form {
        flex-direction: column;
        align-items: center;
    }

    .search-form input {
        width: 100%;
        margin-bottom: 10px;
    }

    .search-button {
        width: 100%;
    }
}
