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

body {
    font-family: Arial, sans-serif;
    background-color: #f5f5f5;
    color: #333;
}

/* Header */
header {
  display: flex;
  align-items: center;
  justify-content: space-between; /* Împinge stânga și dreapta la extremități */
  background-color: #003366;
  color: white;
  padding: 10px 20px;
  height: 100px;
  position: relative;
}

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

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

/* Titlul centrat corect */
header h1 {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  margin: 0;
  font-size: 24px;
  white-space: nowrap;
}

/* Navigare */
nav {
    background-color: #004494; /* Albastru intens */
    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; /* Schimbare de culoare pe hover */
    border-radius: 5px;
}

/* Container principal pentru descriere și logare */
.main-section {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 50px;
    max-width: 900px;
    margin: 50px auto;
    padding: 20px;
}

/* Secțiunea de descriere */
.description-section {
    max-width: 400px;
}

.description-section h2 {
    color: #004494;
    font-size: 22px;
    margin-bottom: 10px;
}

.description-section p {
    font-size: 16px;
    line-height: 1.6;
    color: #666;
}

/* Secțiunea de logare */
.login-section {
    max-width: 400px;
    padding: 20px;
    background-color: white;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.login-section h2 {
    text-align: center;
    color: #004494;
}

.login-section label {
    display: block;
    margin-bottom: 5px;
    color: #333;
}

.login-section input {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.login-section button {
    width: 100%;
    padding: 10px;
    background-color: #004494;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
}

.login-section button:hover {
    background-color: #003366;
}

/* Link-ul de înregistrare */
.register-link {
    text-align: center;
    margin-top: 10px;
}

.register-link a {
    color: #004494;
    text-decoration: none;
    font-weight: bold;
}

.register-link a:hover {
    text-decoration: underline;
}

/* Stiluri generale pentru footer */
footer {
    background-color: #004494; /* Albastru închis pentru footer */
    color: #ffffff; /* Text alb */
    padding: 20px;
    font-size: 14px;
    text-align: center;
}

.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; /* Spațiere între icon-uri */
}

.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; /* Gri deschis */
}

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

footer .footer-section ul li a {
    color: #dcdcdc; /* Gri deschis pentru linkuri */
    text-decoration: none;
    transition: color 0.3s;
}

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

/* Stiluri pentru secțiunea de jos a footer-ului */
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; /* Gri deschis pentru link Termeni și Condiții */
    text-decoration: none;
    transition: color 0.3s;
}

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

/* Banner GDPR compact, centrat și cu margini */
.gdpr-banner-main {
    background-color: #1565c0; /* albastru închis */
    color: white;
    padding: 10px 15px;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    max-width: 900px;       /* dimensiune compactă */
    margin: 20px auto;      /* centrare cu margini stânga-dreapta */
    flex-wrap: wrap;        /* se adaptează la mobil */
    text-align: center;     /* text centrat pe mobil */
}

.gdpr-banner-main p {
    margin: 0;
    flex: 1 1 60%;
    text-align: left;       /* text lăsat pentru desktop */
}

.gdpr-banner-main a {
    color: #ffeb3b;         /* accent vizibil pe albastru */
    text-decoration: underline;
}

.gdpr-banner-main button {
    background-color: #0d47a1; /* albastru mai închis pentru buton */
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    flex-shrink: 0;
    margin-left: 10px;
    transition: background-color 0.3s ease;
}

.gdpr-banner-main button:hover {
    background-color: #0b3c91;
}

.header-right {
    margin-left: auto;
}

.logout-button {
    color: white;
    text-decoration: none;
    background-color: #c62828;
    padding: 5px 10px;
    border-radius: 5px;
    font-weight: bold;
}

.logout-button:hover {
    background-color: #b71c1c;
}

.history-button {
    color: white;
    text-decoration: none;
    background-color: #1565c0; /* albastru vibrant */
    padding: 5px 10px;
    border-radius: 5px;
    font-weight: bold;
    margin-left: 10px;
    transition: background-color 0.3s;
}

.history-button:hover {
    background-color: #0d47a1; /* albastru mai închis la hover */
}



/* Adaptare mobil */
@media (max-width: 600px) {
    .gdpr-banner-main {
        flex-direction: column;
        text-align: center;
    }
    .gdpr-banner-main p {
        margin-bottom: 8px;
        flex: 1 1 100%;
    }
    .gdpr-banner-main button {
        margin-left: 0;
    }
}
