@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    --primary: #1e293b;
    --accent: #3b82f6;
    --accent-hover: #2563eb;
    --danger: #ef4444;
    --warning: #f59e0b;
    --success: #10b981;
    --bg: #f1f5f9;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body { 
    font-family: 'Inter', sans-serif; 
    background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e1 100%);
    color: #334155; 
    min-height: 100vh;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* CONTAINER PRINCIPAL */
.container-card { 
    background: white; 
    max-width: 1250px; /* Am mărit puțin lățimea totală */
    margin: 40px auto; 
    padding: 30px; 
    border-radius: 24px; 
    box-shadow: 0 10px 25px rgba(0,0,0,0.05); 
    animation: fadeInUp 0.6s ease-out;
}

/* TABEL */
.table-container { 
    overflow-x: auto; 
    margin: 20px 0; 
    border-radius: 12px; 
    border: 1px solid #e2e8f0; 
}

table { width: 100%; border-collapse: collapse; min-width: 900px; }
th { background: #f8fafc; padding: 15px; text-align: left; color: #64748b; font-size: 0.75rem; text-transform: uppercase; border-bottom: 2px solid #edf2f7; }
td { padding: 12px 15px; border-bottom: 1px solid #f1f5f9; vertical-align: middle; }

tr.row-expired { background-color: #fef2f2 !important; }
tr.row-warning { background-color: #fffbeb !important; }

/* REZOLVARE AFISARE ZILE PE UN RAND */
.days-badge { 
    padding: 6px 12px; 
    border-radius: 8px; 
    color: white; 
    font-size: 0.8rem; /* Font optimizat */
    font-weight: 700; 
    display: inline-block; 
    white-space: nowrap; /* Împiedică ruperea rândului */
    min-width: 100px; /* Lățime minimă fixă pentru aliniere */
    text-align: center;
}

/* Coloana status să aibă lățime suficientă */
td:nth-child(6) { width: 130px; } 

.expired { background: var(--danger); }
.warning { background: var(--warning); }
.ok { background: var(--success); }

/* INPUTS */
input[type="text"], input[type="date"], input[type="password"] {
    padding: 10px 12px; border: 1.5px solid #e2e8f0; border-radius: 10px; width: 100%; font-family: inherit; transition: 0.3s;
}
input:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1); }

/* BUTOANE */
.btn { 
    padding: 10px 16px; border-radius: 10px; border: none; cursor: pointer; 
    font-weight: 600; font-size: 0.85rem; display: inline-flex; align-items: center; justify-content: center; gap: 8px; transition: 0.3s;
}
.btn-primary { background: var(--accent); color: white; }
.btn-danger { background: #fee2e2; color: var(--danger); border: 1px solid #fecaca; }
.btn-success { background: #d1fae5; color: var(--success); border: 1px solid #a7f3d0; }
.btn-warning { background: #fef3c7; color: #b45309; border: 1px solid #fde68a; }
.btn-outline { background: transparent; color: var(--accent); border: 2px solid var(--accent); }

/* LOGIN BOX */
.login-box { 
    max-width: 420px; margin: 100px auto; padding: 40px; background: white; border-radius: 24px; 
    box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1); text-align: center; animation: fadeInUp 0.8s ease-out;
}

.footer-link { text-align: center; margin: 20px 0; font-size: 0.85rem; color: #64748b; }
.footer-link a { color: var(--accent); text-decoration: none; font-weight: 600; }