/* Stiluri generale pentru pagina */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background-color: #f5f5f5;
    color: #333;
    display: flex;
    flex-direction: column; /* Aranjăm secțiunile pe verticală */
    min-height: 100vh; /* Asigură că body-ul ocupă întreaga înălțime a paginii */
}

header {
  position: relative;
  display: flex;
  align-items: center;
  background-color: #003366;
  color: white;
  padding: 10px 20px;
  height: 100px;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 15px;
}

.header-left img {
  height: 70px;
  width: auto;
  display: block;
}

header h1 {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  margin: 0;
  font-size: 24px;
  white-space: nowrap;
}
/* Navigare */
nav {
    background-color: #004494;
    padding: 10px 0;
    display: flex;
    justify-content: center;
}

nav ul {
    list-style-type: none;
    display: flex;
    gap: 20px;
}

nav ul li {
    display: inline;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    padding: 10px 15px;
    transition: background-color 0.3s;
}

nav ul li a:hover {
    background-color: #003366;
    border-radius: 5px;
}

/* Secțiunea de Căutare */
.search-section {
    flex-grow: 1; /* Permite secțiunii de căutare să ocupe spațiul disponibil */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.search-container {
    display: flex;
    gap: 10px;
}

#searchInput {
    padding: 10px;
    font-size: 16px;
}

button {
    padding: 10px 15px;
    background-color: #004494;
    color: white;
    border: none;
    cursor: pointer;
}

button:hover {
    background-color: #003366;
}

/* Footer */
footer {
    background-color: #004494;
    color: #ffffff;
    padding: 20px;
    font-size: 14px;
    text-align: center;
    margin-top: auto; /* Asigură că footer-ul este fixat în partea de jos */
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    padding: 20px;
    background-color: #003366;
    color: white;
}

.footer-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-left img {
    height: 30px;
}

footer .footer-section {
    max-width: 700px;
    margin: 10px;
    text-align: left;
}

footer .footer-section h3 {
    font-size: 16px;
    color: #ffffff;
    margin-bottom: 10px;
}

footer .footer-section p,
footer .footer-section ul,
footer .footer-section li {
    font-size: 14px;
    line-height: 1.5;
    margin: 5px 0;
    color: #dcdcdc;
}

footer .footer-section ul {
    list-style: none;
    padding: 0;
}

footer .footer-section ul li a {
    color: #dcdcdc;
    text-decoration: none;
    transition: color 0.3s;
}

footer .footer-section ul li a:hover {
    color: #ffffff;
    text-decoration: underline;
}

footer .footer-bottom {
    margin-top: 20px;
    border-top: 1px solid #dcdcdc;
    padding-top: 10px;
}

footer .footer-bottom p {
    margin: 5px 0;
}

footer .footer-bottom a {
    color: #dcdcdc;
    text-decoration: none;
    transition: color 0.3s;
}

footer .footer-bottom a:hover {
    color: #ffffff;
    text-decoration: underline;
}

/* Tabel rezultate căutare */
.results-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    background-color: white;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    border-radius: 8px;
    overflow: hidden;
    font-size: 14px;
}

.results-table thead {
    background-color: #004494;
    color: white;
}

.results-table thead th {
    padding: 12px 15px;
    text-align: left;
    font-weight: bold;
    border-bottom: 2px solid #003366;
}

.results-table tbody td {
    padding: 10px 15px;
    border-bottom: 1px solid #e0e0e0;
}

.results-table tbody tr:nth-child(even) {
    background-color: #f9f9f9;
}

.results-table tbody tr:hover {
    background-color: #dbe9f7;
    transition: background-color 0.3s;
}

/* Mesaj "No results" */
#search-results p {
    margin-top: 20px;
    font-size: 14px;
    color: #555;
}

/* Buton export */
#export_buttons {
    margin-top: 15px;
}

#export_buttons button {
    padding: 8px 15px;
    background-color: #004494;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s;
}

#export_buttons button:hover {
    background-color: #003366;
}



/* ===================== */
/* SEARCH MARIT, CENTRAT */
/* ===================== */

.search-section {
    width: 90%;             /* lățime mare, dar nu 100% */
    max-width: 1200px;      /* limită superioară */
    padding: 40px 30px;
    background-color: #f9f9f9;
    border-radius: 10px;
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);

    display: flex;
    flex-direction: column;
    gap: 30px;

    margin: 40px auto;       /* CENTRARE pe orizontală */
}

/* Formular centrat */
.search-form {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;   /* toate câmpurile centrate */
    align-items: flex-start;
}

/* Container fiecare câmp */
.search-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 220px;
    flex: 1 1 250px;
}

/* Input și select */
.search-container select,
.search-container input {
    padding: 12px 15px;
    font-size: 16px;
    border-radius: 6px;
    border: 1px solid #ccc;
}

/* Buton Căutare centrat */
.search-form .button {
    padding: 14px 25px;
    font-size: 16px;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
    background-color: #004494;
    color: white;
    border: none;
    transition: background-color 0.3s;

    align-self: center;    /* buton centrat sub câmpuri */
}

/* Export button centrat */
#export_buttons {
    display: flex;
    justify-content: center;
    margin-top: 15px;
}

#export_buttons button {
    padding: 12px 20px;
    font-size: 16px;
    border-radius: 6px;
}

/* Tabel rezultate centrat și mai mare */
#search-results {
    overflow-x: auto;       /* scroll pe orizontală dacă e prea lat */
}

.results-table {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;          /* centrare tabel */
    font-size: 16px;
    border-radius: 10px;
    overflow: hidden;
}

.results-table th,
.results-table td {
    padding: 15px 20px;
}

/* Responsive pentru mobil */
@media (max-width: 900px) {
    .search-section {
        width: 95%;
        padding: 30px 20px;
    }
    .search-form {
        gap: 15px;
        justify-content: center;
    }
    .search-container {
        flex: 1 1 100%;
    }
    .results-table th,
    .results-table td {
        padding: 12px 10px;
    }
}