/* --- Root Variables & Base Setup --- */
:root {
    --rna-blue: #003366;
    --rna-gold: #c5a059;
    --rna-bg: #f4f7f9;
}


html, body {
    height: 100%;
    margin: 0;
}

main,
.main-container {
    flex: 1;
}

footer {
    margin-top: auto;
    background: #f3f3f3;
    padding: 15px;
    text-align: center;
}

body { 
    /*font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; */
    font-family: 'Inter', sans-serif;
    margin: 0; 
    background-color: var(--rna-bg); 
    min-height: 100vh; 
    display: flex; 
    flex-direction: column; 
}

/* --- Layout Components --- */
header { 
    background: var(--rna-blue); 
    color: white; 
    padding: 25px 0; 
    border-bottom: 5px solid var(--rna-gold); 
    text-align: center; 
}

.logo-area { 
    font-size: 22px; 
    font-weight: bold; 
    letter-spacing: 1px; 
}

.main-container { 
    flex: 1; 
    display: flex; 
    justify-content: center; 
    align-items: center; 
    padding: 20px; 
}

footer { 
    background: #222; 
    color: #aaa; 
    padding: 15px; 
    text-align: center; 
    font-size: 12px; 
}

/* --- Cards --- 
.card { 
    background: white; 
    padding: 30px; 
    border-radius: 5px; 
    box-shadow: 0 5px 15px rgba(0,0,0,0.1); 
    width: 100%; 
    max-width: 380px; 
    box-sizing: border-box;
}

.card-wide { 
    max-width: 850px; 
}*/

h2 { 
    color: var(--rna-blue) !important; 
    margin-top: 0; 
    text-align: center; 
}

/* --- Form Elements --- */
.form-group { margin-bottom: 15px; }
label { display: block; margin-bottom: 5px; font-weight: bold; font-size: 14px; }

input, select, textarea { 
    width: 100%; 
    padding: 10px; 
    border: 1px solid #ddd; 
    border-radius: 4px; 
    box-sizing: border-box; 
    background-color: white;
    font-family: inherit;
}

input:focus, select:focus, textarea:focus { 
    outline: none; 
    border-color: var(--rna-gold); 
    box-shadow: 0 0 5px rgba(197, 160, 89, 0.2); 
}

/* --- Emergency Contact Rows (Mobile Friendly) --- */
.contact-row { 
    display: flex; 
    flex-wrap: wrap; 
    gap: 10px; 
    align-items: center; 
    padding: 12px 0; 
    border-bottom: 1px solid #eee; 
}

.contact-row input, 
.contact-row select { 
    flex: 1; 
    min-width: 140px; 
}

.del-check { 
    font-size: 13px; 
    color: #d32f2f; 
    white-space: nowrap; 
    display: flex; 
    align-items: center; 
    gap: 5px; 
    cursor: pointer;
}

/* --- Buttons --- */
.btn-submit { 
    width: 100%; 
    padding: 12px; 
    background: var(--rna-blue); 
    color: white; 
    border: none; 
    border-radius: 4px; 
    cursor: pointer; 
    font-weight: bold; 
}

.btn-submit:hover { background: #002244; }

.btn-add { 
    background: var(--rna-gold); 
    color: white; 
    border: none; 
    padding: 10px 15px; 
    border-radius: 4px; 
    cursor: pointer; 
    font-weight: bold; 
}

/* --- Responsive Layout --- */
@media (max-width: 600px) {
    .contact-row { 
        flex-direction: column; 
        align-items: stretch; 
    }
    .contact-row input, 
    .contact-row select { 
        width: 100%; 
    }
    /*.card-wide { 
        padding: 15px; 
    }*/
    .main-container {
        align-items: flex-start;
    }
}


/* Butonul "+" de la capătul liniei */
.btn-add-inline {
    background: var(--rna-gold);
    color: white;
    border: none;
    border-radius: 4px;
    width: 40px;
    height: 40px;
    cursor: pointer;
    font-size: 20px;
    font-weight: bold;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.2s;
}

.btn-add-inline:hover {
    opacity: 0.9;
}

/* Container pentru butoanele de acțiune de jos */
.form-actions {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 2px solid var(--rna-bg);
    display: flex;
    justify-content: flex-end;
}

/* Ajustare rând pentru a include butonul la final */
@media (min-width: 601px) {
    .contact-row {
        display: grid;
        grid-template-columns: 1fr 1fr 150px auto auto;
        gap: 10px;
        align-items: center;
    }
}

/* Containerul pentru aliniere orizontală */
.beacon-inline-form .input-group {
    display: flex;
    gap: 10px;
    align-items: center;
    max-width: 600px;
    margin: 0 auto 20px auto;
}

/* Ajustăm butonul să nu mai ocupe 100% când e pe rând cu input-ul */
.beacon-inline-form .btn-submit {
    width: auto;
    white-space: nowrap;
    padding: 10px 25px;
    background-color: var(--rna-blue);
    border-bottom: 3px solid var(--rna-gold); /* Detaliu auriu pentru buton */
    transition: all 0.3s ease;
}

.beacon-inline-form .btn-submit:hover {
    background-color: #002244;
    transform: translateY(-1px);
}

/* Input-ul să preia restul spațiului */
.beacon-inline-form input {
    flex: 1;
}

/* Responsivitate pentru ecrane foarte mici */
@media (max-width: 480px) {
    .beacon-inline-form .input-group {
        flex-direction: column;
    }
    .beacon-inline-form .btn-submit, 
    .beacon-inline-form input {
        width: 100%;
    }
}
/* Asigură-te că lista ocupă 100% din card */
.beacon-list {
    width: 100%;
    margin-top: 20px;
}

.beacon-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fff;
    border: 1px solid #eee; /* Bordură subțire pe toate părțile */
    border-left: 4px solid var(--rna-gold); /* Accentul auriu specific RNA */
    padding: 15px 20px;
    margin-bottom: 10px;
    border-radius: 4px;
    box-sizing: border-box; /* Important: include padding-ul în lățime */
    width: 100%; /* Forțează lățimea cardului părinte */
}

/* Stil pentru grupul de input să fie centrat dar să poată crește */
.beacon-inline-form .input-group {
    display: flex;
    gap: 10px;
    width: 100%;
    margin: 0 auto;
}

.beacon-inline-form input {
    flex: 1; /* Ocupă tot spațiul rămas lângă buton */
}
























/* Forțăm card-wide să fie doar un container transparent de lățime fixă 
.card-wide {
    max-width: 850px;
    width: 100%;
    background: transparent; /* Eliminăm fundalul alb al cardului */
    box-shadow: none;        /* Eliminăm umbra cardului mare */
    padding: 0;              /* Eliminăm padding-ul cardului mare */
}*/

/* Stilul unitar pentru beacon-item și form-ul de adăugare */
.beacon-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: white;
    padding: 15px 25px;
    margin-bottom: 10px;
    border-radius: 5px;
    border-left: 5px solid var(--rna-gold); /* Accentul tău auriu */
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
    box-sizing: border-box;
    width: 100%;
}

.beacon-info .hex-label {
    font-family: 'Courier New', monospace;
    font-weight: bold;
    font-size: 1.1rem;
    color: var(--rna-blue);
}

.date-label {
    color: #777;
    font-size: 0.85rem;
}





/* Stil pentru banner-ul de sesiune de la început 
.session-banner {
    max-width: 850px !important; /* Aceeași lățime cu card-wide */
    width: 100%;
    padding: 10px 25px !important; /* Mai îngust pe înălțime */
    background-color: #fff;
    border-bottom: 2px solid #eee;
    border-radius: 5px;
    box-sizing: border-box;
}

.session-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    color: #555;
}

.session-divider {
    color: #ddd;
    margin: 0 10px;
}*/

.btn-logout {
    color: #d32f2f;
    text-decoration: none;
    font-weight: bold;
    padding: 5px 10px;
    border-radius: 4px;
    transition: background 0.2s;
}

.btn-logout:hover {
    background: #fff5f5;
}

/* Ajustare main-container pentru a alinia totul la stânga/centru sus */
.main-container {
    display: flex;
    align-items: center; /* Centrează cardurile pe orizontală */
    width: 100%;
}