/* style.css - navy/black/gold elegáns stílus */
:root {
    --navy: #0a1a35;
    --navy-light: #142a52;
    --gold: #d4af37;
    --gold-light: #f0d98c;
    --black: #0d0d0d;
    --white: #f7f7f5;
    --danger: #c0392b;
    --success: #2ecc71;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: 'Segoe UI', Roboto, Arial, sans-serif;
    background: linear-gradient(160deg, var(--navy) 0%, var(--black) 100%);
    color: var(--white);
    min-height: 100vh;
}

.container { max-width: 640px; margin: 0 auto; padding: 16px; }

header.topbar {
    background: var(--navy-light);
    border-bottom: 3px solid var(--gold);
    padding: 14px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
}

header.topbar h1 {
    font-size: 18px;
    color: var(--gold-light);
    margin: 0;
    letter-spacing: 0.5px;
}

header.topbar a.logout {
    color: var(--gold);
    text-decoration: none;
    font-size: 13px;
    border: 1px solid var(--gold);
    padding: 6px 10px;
    border-radius: 6px;
}

.menu-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 20px;
}

.menu-grid a.btn-tile {
    background: var(--navy-light);
    border: 1px solid var(--gold);
    border-radius: 14px;
    padding: 22px 10px;
    text-align: center;
    color: var(--gold-light);
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.4);
    transition: transform 0.15s;
}
.menu-grid a.btn-tile:active { transform: scale(0.97); }
.menu-grid a.btn-tile .icon { font-size: 28px; display: block; margin-bottom: 8px; }

.card {
    background: var(--navy-light);
    border: 1px solid rgba(212,175,55,0.4);
    border-radius: 14px;
    padding: 18px;
    margin-bottom: 16px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.35);
}

label { display: block; margin: 10px 0 4px; font-size: 13px; color: var(--gold-light); }

input, select, textarea {
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #2a3d63;
    background: #0f1f3d;
    color: var(--white);
    font-size: 15px;
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--gold); }

button, .btn {
    display: inline-block;
    background: linear-gradient(135deg, var(--gold), #b8912b);
    color: var(--black);
    border: none;
    padding: 13px 18px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
}
button.secondary, .btn.secondary {
    background: transparent;
    border: 1px solid var(--gold);
    color: var(--gold-light);
}
button.danger { background: var(--danger); color: white; }

.item-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr auto;
    gap: 8px;
    align-items: end;
    margin-bottom: 10px;
    border-bottom: 1px dashed rgba(212,175,55,0.25);
    padding-bottom: 10px;
}

.total-box {
    background: var(--navy);
    border: 2px solid var(--gold);
    border-radius: 10px;
    padding: 14px;
    text-align: center;
    font-size: 20px;
    color: var(--gold-light);
    font-weight: 700;
    margin-top: 12px;
}

table { width: 100%; border-collapse: collapse; font-size: 13px; }
th, td { padding: 8px 6px; border-bottom: 1px solid rgba(212,175,55,0.25); text-align: left; }
th { color: var(--gold-light); font-size: 12px; text-transform: uppercase; }
tr.printed { opacity: 0.55; }
.badge { padding: 3px 8px; border-radius: 20px; font-size: 11px; font-weight: 700; }
.badge.yes { background: var(--success); color: #063; }
.badge.no { background: #444; color: #ddd; }

.filter-bar {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}
.filter-bar input, .filter-bar select { flex: 1; min-width: 120px; }

.alert { padding: 10px 14px; border-radius: 8px; margin-bottom: 12px; font-size: 14px; }
.alert.error { background: rgba(192,57,43,0.2); border: 1px solid var(--danger); color: #ff9a8d; }
.alert.success { background: rgba(46,204,113,0.15); border: 1px solid var(--success); color: #9df5bb; }

a.back-link { color: var(--gold); text-decoration: none; font-size: 13px; display: inline-block; margin-bottom: 12px; }

@media print {
    header.topbar, .no-print { display: none !important; }
    body { background: white; color: black; }
    .card { border: 1px solid #000; box-shadow: none; }
}
