:root {
    --bg-body: #F3F5F7;       /* Fundal gri foarte deschis */
    --bg-card: #FFFFFF;       /* Alb pur pentru carduri */
    --text-primary: #1A1A1A;  /* Aproape negru */
    --text-secondary: #757575;/* Gri mediu */
    --accent: #000000;        /* Negru pentru acțiuni principale */
    --input-bg: #EFEFF4;      /* Gri pentru input-uri */
    --success: #34C759;       /* Verde Apple */
    --danger: #FF3B30;        /* Roșu Apple */
    --radius-l: 32px;
    --radius-m: 16px;
    --shadow: 0 8px 24px rgba(0,0,0,0.06);
}

* { box-sizing: border-box; outline: none; -webkit-tap-highlight-color: transparent; }

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-body);
    color: var(--text-primary);
    margin: 0;
    min-height: 100vh;
    display: flex;
    justify-content: center;
}

/* Structura Generală */
.view-container {
    width: 100%;
    max-width: 450px; /* Latime stil mobil */
    min-height: 100vh;
    background: var(--bg-body);
    display: flex;
    flex-direction: column;
    position: relative;
    padding: 20px;
}

.hidden { display: none !important; }

/* --- LOGIN SCREEN --- */
.content-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.logo-area { margin-bottom: 40px; text-align: center; }
.logo-area h1 { font-size: 32px; font-weight: 700; margin: 0; letter-spacing: -0.5px; }
.logo-area .subtitle { color: var(--text-secondary); margin-top: 8px; font-size: 16px; }

.modern-form .input-group { margin-bottom: 16px; }

input {
    width: 100%;
    background: var(--input-bg);
    border: none;
    padding: 18px 20px;
    border-radius: 16px;
    font-size: 16px;
    font-family: 'Inter', sans-serif;
    color: var(--text-primary);
    transition: background 0.2s;
}

input:focus { background: #e5e5ea; }

/* Butoane Principale (Negru) */
.btn {
    border: none;
    cursor: pointer;
    font-weight: 600;
    font-size: 16px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.1s;
}
.btn:active { transform: scale(0.98); opacity: 0.9; }

.btn-primary, .btn-black {
    background-color: var(--accent);
    color: white;
    padding: 18px;
    border-radius: 20px; /* Rotunjire mare */
    width: 100%;
    margin-top: 10px;
}

.arrow { margin-left: 10px; font-size: 18px; }
.error-msg { color: var(--danger); text-align: center; margin-top: 20px; font-size: 14px; }

/* --- APP HEADER --- */
.app-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0 30px 0;
}
.user-info { font-weight: 600; font-size: 14px; display: flex; align-items: center; gap: 8px; }
.dot { width: 8px; height: 8px; background: var(--success); border-radius: 50%; display: inline-block; }
.icon-btn { background: none; border: none; font-size: 20px; color: var(--text-secondary); cursor: pointer; padding: 10px; }

/* --- ACTION CARD (Zona Scanare) --- */
.action-card {
    text-align: center;
    margin-bottom: 30px;
}
.action-card h2 { font-size: 24px; margin: 0 0 8px 0; font-weight: 700; }
.action-card .desc { color: var(--text-secondary); font-size: 15px; line-height: 1.5; margin-bottom: 30px; }

/* Butonul Mare de Scanare (Stil Minimalist) */
.scan-trigger {
    background: var(--bg-card);
    width: 100%;
    padding: 40px 20px;
    border-radius: var(--radius-l);
    border: 2px dashed #E5E5EA; /* Bordura subtila */
    cursor: pointer;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.scan-trigger:active { background: #f9f9f9; transform: scale(0.99); }
.scan-trigger.scanning { 
    border-color: var(--accent); 
    background: #fff;
    animation: pulse-border 2s infinite;
}

.scan-icon { font-size: 40px; margin-bottom: 5px; }
#scan-text { font-weight: 600; color: var(--text-primary); font-size: 18px; }
.status-text { margin-top: 15px; color: var(--text-secondary); font-size: 14px; font-weight: 500; }

@keyframes pulse-border {
    0% { border-color: #E5E5EA; }
    50% { border-color: var(--accent); }
    100% { border-color: #E5E5EA; }
}

/* --- GUEST DETAILS CARD (Stil "Receipt") --- */
.guest-details-card {
    background: var(--bg-card);
    border-radius: var(--radius-l);
    padding: 24px;
    box-shadow: var(--shadow);
    animation: slideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.label { font-size: 12px; text-transform: uppercase; letter-spacing: 1px; color: var(--text-secondary); font-weight: 600; }

.status-badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    background: #F3F4F6;
    color: var(--text-secondary);
}
.status-badge.sosit { background: #E8F5E9; color: #2E7D32; }
.status-badge.nesosit { background: #FFEBEE; color: #C62828; }

.card-body h1 { margin: 0; font-size: 24px; font-weight: 700; line-height: 1.2; }
.meta-text { color: var(--text-secondary); font-size: 16px; margin: 5px 0 20px 0; }
.divider { height: 1px; background: #F3F4F6; margin: 20px 0; }

.info-row { display: flex; justify-content: space-between; font-size: 16px; }

.card-footer { margin-top: 24px; }