/* ── golf.css  –  Estilos globales La Vista CC ──────────── */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,600;1,300&family=Jost:wght@300;400;500;600;700&display=swap');

:root {
    --gold:        #C9A84C;
    --gold-light:  #E8C97A;
    --gold-dark:   #9A7A2E;
    --green:       #0D1F0F;
    --green-mid:   #1A3A1E;
    --green-light: #2C5530;
    --cream:       #F5F0E8;
    --bg:          #F0EDE6;
    --card:        #FFFFFF;
    --border:      #E2D9C8;
    --text:        #1C1C1C;
    --muted:       #7A7060;
    --danger:      #C0392B;
    --success:     #27AE60;
    --warning:     #E67E22;
    --info:        #2980B9;
    --radius:      10px;
    --shadow:      0 4px 20px rgba(0,0,0,0.08);
}

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

body {
    font-family: 'Jost', sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
}

/* ── NAVBAR ── */
#navbar {
    background: var(--green);
    border-bottom: 2px solid var(--gold-dark);
    position: sticky; top: 0; z-index: 100;
    box-shadow: 0 2px 20px rgba(0,0,0,0.3);
}
.nav-inner {
    max-width: 1400px; margin: 0 auto;
    display: flex; align-items: center; gap: 24px;
    padding: 0 24px; height: 60px;
}
.nav-brand {
    font-family: 'Cormorant Garamond', serif;
    color: var(--gold); font-size: 1.2rem; font-weight: 600;
    white-space: nowrap; flex-shrink: 0;
}
.nav-links { list-style: none; display: flex; gap: 4px; flex: 1; flex-wrap: wrap; }
.nav-links a {
    display: flex; align-items: center; gap: 6px;
    padding: 6px 12px; border-radius: 6px;
    color: rgba(245,240,232,0.75); text-decoration: none;
    font-size: 0.82rem; font-weight: 500; letter-spacing: 0.02em;
    transition: all 0.2s;
}
.nav-links a:hover, .nav-links a.active {
    background: rgba(201,168,76,0.15); color: var(--gold);
}
.nav-user {
    display: flex; align-items: center; gap: 10px;
    font-size: 0.78rem; color: var(--cream); white-space: nowrap;
}
.nav-user button {
    background: rgba(192,57,43,0.8); border: none; color: #fff;
    padding: 5px 12px; border-radius: 6px; cursor: pointer;
    font-size: 0.78rem; font-weight: 600;
    transition: background 0.2s;
}
.nav-user button:hover { background: var(--danger); }

/* ── PAGE WRAPPER ── */
.page-wrap {
    max-width: 1400px; margin: 0 auto; padding: 28px 24px;
}
.page-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.8rem; color: var(--green); margin-bottom: 6px;
}
.page-subtitle { color: var(--muted); font-size: 0.88rem; margin-bottom: 24px; }

/* ── CARDS ── */
.card {
    background: var(--card); border: 1px solid var(--border);
    border-radius: var(--radius); box-shadow: var(--shadow);
    padding: 24px;
}
.card-header {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 18px; gap: 12px; flex-wrap: wrap;
}
.card-title { font-weight: 600; font-size: 1rem; }

/* ── STAT CARDS ── */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px; margin-bottom: 28px;
}
.stat-card {
    background: var(--card); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 20px;
    display: flex; align-items: center; gap: 16px;
    box-shadow: var(--shadow);
}
.stat-icon {
    width: 52px; height: 52px; border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.4rem; flex-shrink: 0;
}
.stat-icon.gold    { background: rgba(201,168,76,0.12); color: var(--gold); }
.stat-icon.green   { background: rgba(39,174,96,0.12);  color: var(--success); }
.stat-icon.red     { background: rgba(192,57,43,0.12);  color: var(--danger); }
.stat-icon.orange  { background: rgba(230,126,34,0.12); color: var(--warning); }
.stat-icon.blue    { background: rgba(41,128,185,0.12); color: var(--info); }
.stat-val { font-size: 1.8rem; font-weight: 700; line-height: 1; }
.stat-lbl { font-size: 0.75rem; color: var(--muted); margin-top: 2px; }

/* ── BUTTONS ── */
.btn {
    display: inline-flex; align-items: center; gap: 7px;
    padding: 8px 18px; border-radius: 7px; border: none;
    font-family: 'Jost', sans-serif; font-size: 0.85rem;
    font-weight: 600; cursor: pointer; transition: all 0.2s;
    text-decoration: none; white-space: nowrap;
}
.btn-gold    { background: var(--gold); color: var(--green); }
.btn-gold:hover { background: var(--gold-light); }
.btn-green   { background: var(--green); color: var(--cream); }
.btn-green:hover { background: var(--green-mid); }
.btn-danger  { background: var(--danger); color: #fff; }
.btn-danger:hover { background: #a93226; }
.btn-outline {
    background: transparent; border: 1.5px solid var(--border);
    color: var(--text);
}
.btn-outline:hover { border-color: var(--gold); color: var(--gold); }
.btn-sm { padding: 5px 12px; font-size: 0.78rem; }
.btn-xs { padding: 3px 8px; font-size: 0.72rem; }

/* ── TABLE ── */
.table-wrap { overflow-x: auto; border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; font-size: 0.875rem; }
thead th {
    background: var(--green); color: var(--cream);
    padding: 11px 14px; text-align: left;
    font-weight: 600; letter-spacing: 0.04em;
    font-size: 0.78rem; text-transform: uppercase;
    white-space: nowrap;
}
thead th:first-child { border-radius: 8px 0 0 0; }
thead th:last-child  { border-radius: 0 8px 0 0; }
tbody tr { border-bottom: 1px solid var(--border); transition: background 0.15s; }
tbody tr:hover { background: rgba(201,168,76,0.06); }
tbody td { padding: 10px 14px; vertical-align: middle; }
.td-actions { display: flex; gap: 6px; }

/* ── BADGES / STATUS ── */
.badge {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 3px 10px; border-radius: 20px;
    font-size: 0.72rem; font-weight: 600; letter-spacing: 0.04em;
    white-space: nowrap;
}
.badge-green  { background: rgba(39,174,96,0.13);  color: #1e8449; }
.badge-orange { background: rgba(230,126,34,0.13); color: #b7570e; }
.badge-red    { background: rgba(192,57,43,0.13);  color: #a93226; }
.badge-blue   { background: rgba(41,128,185,0.13); color: #1a5276; }
.badge-gray   { background: rgba(0,0,0,0.07);      color: #555; }

/* ── MODAL ── */
.modal-overlay {
    display: none; position: fixed; inset: 0;
    background: rgba(0,0,0,0.55); z-index: 1000;
    align-items: center; justify-content: center;
    padding: 20px;
}
.modal-overlay.open { display: flex; }
.modal {
    background: var(--card); border-radius: 14px;
    padding: 32px; max-width: 520px; width: 100%;
    box-shadow: 0 24px 60px rgba(0,0,0,0.25);
    animation: modalIn 0.25s cubic-bezier(0.16,1,0.3,1);
    max-height: 90vh; overflow-y: auto;
}
@keyframes modalIn { from{opacity:0;transform:translateY(20px)} to{opacity:1;transform:translateY(0)} }
.modal-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.4rem; margin-bottom: 20px;
    color: var(--green); display: flex; align-items: center; gap: 10px;
}
.modal-footer { display: flex; gap: 10px; justify-content: flex-end; margin-top: 24px; }

/* ── FORM ── */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-grid.full { grid-template-columns: 1fr; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group.span2 { grid-column: span 2; }
label { font-size: 0.78rem; font-weight: 600; color: var(--muted); letter-spacing: 0.06em; text-transform: uppercase; }
input, select, textarea {
    padding: 9px 12px; border: 1.5px solid var(--border);
    border-radius: 7px; font-family: 'Jost', sans-serif;
    font-size: 0.88rem; color: var(--text); background: #faf9f7;
    transition: border-color 0.2s, box-shadow 0.2s; outline: none;
}
input:focus, select:focus, textarea:focus {
    border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201,168,76,0.12);
}
textarea { resize: vertical; min-height: 80px; }

/* ── SEARCH BAR ── */
.search-bar {
    display: flex; gap: 10px; align-items: center; flex-wrap: wrap;
    margin-bottom: 16px;
}
.search-input-wrap { position: relative; flex: 1; min-width: 200px; }
.search-input-wrap i { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: 0.85rem; }
.search-input-wrap input { width: 100%; padding-left: 34px; }

/* ── TOAST ── */
#toast {
    position: fixed; bottom: 24px; right: 24px; z-index: 9999;
    display: flex; flex-direction: column; gap: 8px;
}
.toast-msg {
    background: var(--green); color: var(--cream);
    padding: 12px 20px; border-radius: 8px; font-size: 0.85rem;
    box-shadow: 0 8px 24px rgba(0,0,0,0.25);
    display: flex; align-items: center; gap: 10px;
    animation: toastIn 0.3s ease;
    border-left: 4px solid var(--gold);
}
.toast-msg.error { background: var(--danger); border-color: #ff6b6b; }
.toast-msg.success { background: #145a32; border-color: var(--success); }
@keyframes toastIn { from{opacity:0;transform:translateX(30px)} to{opacity:1;transform:translateX(0)} }

/* ── QR LABEL ── */
.label-preview {
    background: white; border: 2px solid var(--border);
    border-radius: 8px; padding: 16px; text-align: center;
    width: 220px; margin: 0 auto;
}
.label-preview h3 { font-size: 0.8rem; color: var(--green); margin-bottom: 4px; }
.label-preview p  { font-size: 0.7rem; color: var(--muted); }

/* ── RESPONSIVE ── */
@media(max-width: 768px) {
    .form-grid { grid-template-columns: 1fr; }
    .form-group.span2 { grid-column: span 1; }
    .nav-links { display: none; }
    .stats-grid { grid-template-columns: 1fr 1fr; }
}
