:root {
    --primary-blue: #00458b;
    --accent-green: #27ae60;
    --bg-light: #f8f9fa;
    --text-dark: #2c3e50;
    --grey: #95a5a6;
}

body {
    font-family: 'Segoe UI', sans-serif;
    background-color: #1a252f;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
}

/* Smartphone Frame */
.phone-container {
    width: 360px;
    height: 720px;
    background: white;
    border-radius: 40px;
    border: 10px solid #333;
    position: relative;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0,0,0,0.5);
}

.status-bar {
    height: 25px;
    padding: 12px 25px 0;
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #333;
}

/* Navigation */
nav {
    background: var(--primary-blue);
    color: white;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.screen { display: none; height: 100%; flex-direction: column; overflow-y: auto; }
.screen.active { display: flex; }
.content { padding: 20px; }

/* UI Elements */
.logo { font-size: 38px; font-weight: 900; color: var(--primary-blue); border: 4px solid var(--primary-blue); padding: 10px 20px; margin: 40px auto; display: inline-block; width: fit-content; text-align: center; }
.logo-small { font-weight: 900; color: var(--primary-blue); border: 2px solid var(--primary-blue); padding: 2px 10px; margin-bottom: 20px; display: inline-block; }

.input-group { margin-bottom: 15px; }
.input-group label { font-size: 12px; color: var(--primary-blue); font-weight: bold; display: block; margin-bottom: 5px; }
input, select { width: 100%; padding: 12px; border: 1px solid #ddd; border-radius: 8px; box-sizing: border-box; }

/* Buttons */
.btn-main { background: var(--primary-blue); color: white; border: none; padding: 16px; width: 100%; border-radius: 10px; font-weight: bold; cursor: pointer; }
.btn-secondary { background: white; color: var(--primary-blue); border: 2px dashed var(--primary-blue); padding: 15px; width: 100%; border-radius: 10px; font-weight: bold; cursor: pointer; }
.btn-csv { background: var(--accent-green); color: white; border: none; padding: 16px; width: 100%; border-radius: 10px; font-weight: bold; cursor: pointer; }
.btn-text { background: none; border: none; color: var(--grey); cursor: pointer; width: 100%; }

.success-btn { background-color: #d4edda !important; color: #155724 !important; border-color: #c3e6cb !important; border-style: solid !important; }

/* Step List */
.step { display: flex; align-items: center; background: #fff; padding: 15px; margin-bottom: 12px; border-radius: 12px; box-shadow: 0 4px 10px rgba(0,0,0,0.05); cursor: pointer; }
.step-icon { font-size: 24px; margin-right: 15px; }
.step p { margin: 0; font-size: 12px; color: #777; }

/* CORREZIONE SCANNER */
.scan-container {
    position: relative;
    width: 220px;
    height: 220px;
    margin: 40px auto 20px;
    border-radius: 20px;
    overflow: hidden; /* Tiene la linea dentro */
    border: 2px solid rgba(39, 174, 96, 0.2);
}
.camera-sim { background: #000; height: 100%; color: white; text-align: center; padding: 20px; }
.scan-overlay { width: 100%; height: 100%; border: 3px solid var(--accent-green); box-sizing: border-box; position: relative; }
.scan-line { width: 100%; height: 4px; background: var(--accent-green); box-shadow: 0 0 15px var(--accent-green); position: absolute; top: 0; animation: scanning 2s infinite ease-in-out; }

@keyframes scanning {
    0% { top: 0; }
    50% { top: calc(100% - 4px); }
    100% { top: 0; }
}

.scan-data-box { background: rgba(255,255,255,0.15); padding: 15px; border-radius: 10px; margin-bottom: 20px; }

/* Agenda & Notifications */
.notification-box { background: #eef7ff; padding: 15px; border-radius: 12px; margin: 20px 0; border-left: 4px solid var(--primary-blue); }
.notif-desc { font-size: 11px; color: #666; margin-top: 5px; }

/* Custom Checkbox */
.container-check { display: block; position: relative; padding-left: 35px; cursor: pointer; font-size: 14px; user-select: none; }
.container-check input { position: absolute; opacity: 0; }
.checkmark { position: absolute; top: 0; left: 0; height: 22px; width: 22px; background-color: #ccc; border-radius: 4px; }
.container-check input:checked ~ .checkmark { background-color: var(--primary-blue); }
.checkmark:after { content: ""; position: absolute; display: none; left: 8px; top: 4px; width: 5px; height: 10px; border: solid white; border-width: 0 3px 3px 0; transform: rotate(45deg); }
.container-check input:checked ~ .checkmark:after { display: block; }

/* Summary */
.summary-card { background: #f1f4f8; padding: 20px; border-radius: 15px; margin: 20px 0; text-align: left; }
.summary-card table { width: 100%; font-size: 14px; }
.summary-card th { color: #666; font-weight: normal; }
.summary-card td { text-align: right; font-weight: bold; }

.divider { margin: 20px 0; text-align: center; border-bottom: 1px solid #eee; line-height: 0.1em; }
.divider span { background: #fff; padding: 0 10px; color: #ccc; font-size: 12px; }
.footer-logo { margin-top: 40px; font-size: 11px; color: #bbb; text-align: center; }