:root {
    --culoare-principala: #1565c0;
    --culoare-principala-hover: #0d47a1;
    --gri-chenar: #cfd8dc;
    --gri-text: #455a64;
    --rosu: #c62828;
    --verde: #2e7d32;
}

* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    font-family: "Segoe UI", Roboto, Arial, sans-serif;
    background: #eceff1;
    color: #212121;
    font-size: 18px;
}

.pagina {
    min-height: 100vh;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 24px 16px;
}

main {
    width: 100%;
    max-width: 560px;
}

.card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    padding: 28px 24px;
}

.logo-inregistrare {
    text-align: center;
    margin-bottom: 16px;
}

.logo-inregistrare img {
    max-width: 100%;
    max-height: 192px;
    height: auto;
}

h1 {
    font-size: 1.6rem;
    margin: 0 0 6px;
    color: var(--culoare-principala);
}

.subtitlu {
    margin: 0 0 20px;
    color: var(--gri-text);
}

.nume-service {
    font-size: 1.6rem;
    font-weight: 700;
    margin: 0 0 20px;
    color: var(--culoare-principala);
}

.camp {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
}

.camp label {
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--gri-text);
}

.input {
    width: 100%;
    padding: 14px 14px;
    font-size: 1.1rem;
    border: 2px solid var(--gri-chenar);
    border-radius: 8px;
    background: #fff;
}

.input:focus {
    outline: none;
    border-color: var(--culoare-principala);
}

.buton {
    width: 100%;
    padding: 16px;
    font-size: 1.2rem;
    font-weight: 600;
    color: #fff;
    background: var(--culoare-principala);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    margin-top: 8px;
}

.buton:hover:not(:disabled) {
    background: var(--culoare-principala-hover);
}

.buton:disabled {
    opacity: 0.6;
    cursor: default;
}

.info {
    color: var(--gri-text);
}

.succes {
    margin-top: 18px;
    padding: 14px;
    border-radius: 8px;
    background: #e8f5e9;
    color: var(--verde);
    font-weight: 600;
}

.eroare {
    margin-top: 18px;
    padding: 14px;
    border-radius: 8px;
    background: #ffebee;
    color: var(--rosu);
    font-weight: 600;
}

.overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    z-index: 1000;
}

.modal-raport {
    position: relative;
    background: #fff;
    border-radius: 10px;
    width: 100%;
    max-width: 1000px;
    height: 90vh;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

.modal-raport iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.modal-raport .inchide {
    position: absolute;
    top: 8px;
    right: 12px;
    width: 40px;
    height: 40px;
    font-size: 1.6rem;
    line-height: 1;
    color: #fff;
    background: var(--rosu);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    z-index: 1;
}

.lista-link {
    line-height: 1.9;
}

code {
    background: #eceff1;
    padding: 2px 6px;
    border-radius: 4px;
}

/* ===== Dashboard lista de asteptare ===== */
.dashboard-root {
    min-height: 100vh;
    background: #16206e;
    color: #e8edf2;
    padding: 20px 24px;
}

.dashboard-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
}

.dashboard-header .logo-lista {
    height: 90px;
    width: auto;
    border-radius: 8px;
    flex: 0 0 auto;
}

.dashboard-header .service {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.1;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.dashboard-header .subtitlu-dash {
    font-size: 0.95rem;
    color: #8fa3b8;
    font-weight: 600;
}

.rampa-nume .icon-rampa {
    width: 26px;
    height: 26px;
    flex: 0 0 auto;
    color: #aeb8c4;
}

.dashboard-info {
    color: #aeb8c4;
    font-size: 1.1rem;
}

.dashboard-eroare {
    background: #4a1c1c;
    color: #ff8a80;
    padding: 14px;
    border-radius: 8px;
    font-weight: 600;
}

.anunt {
    background: #e8540e;
    color: #fff;
    font-size: 1.7rem;
    font-weight: 800;
    text-align: center;
    padding: 16px;
    border-radius: 8px;
    margin-bottom: 12px;
    letter-spacing: 0.4px;
}

.rampe-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(384px, 1fr));
    gap: 16px;
}

.rampa-tile {
    border: 1px solid #3a46a0;
    border-radius: 12px;
    padding: 18px;
    background: #1f2b85;
}

.rampa-nume {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.rampa-badge {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 1rem;
}

.badge-ocupata {
    background: #1565c0;
    color: #fff;
}

.badge-libera {
    background: #2e7d32;
    color: #fff;
}

.badge-inactiva {
    background: #4a5663;
    color: #cdd6df;
}

.rampa-auto {
    margin-top: 14px;
    font-size: 4rem;
    font-weight: 800;
    letter-spacing: 1px;
    line-height: 1.1;
    white-space: nowrap;
}

.asteptare {
    margin-top: 28px;
}

.asteptare-titlu {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.asteptare-lista {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.asteptare-item {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #1f2b85;
    border: 1px solid #3a46a0;
    border-radius: 24px;
    padding: 8px 16px 8px 8px;
}

.asteptare-numar {
    background: #1565c0;
    color: #fff;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
}

.asteptare-info {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.asteptare-auto {
    font-weight: 700;
    font-size: 2.64rem;
}

.asteptare-timp {
    font-size: 0.78rem;
    font-weight: 500;
    color: #8fa3b8;
    margin-top: 2px;
}
