
:root {
    --deep-teal: #01454f;
    --navy: #0e2841;
    --slate-blue: #0f4761;
    --sky: #0f9ed5;
    --lime-shadow: #dae255;
    --violet: #a02b93;
    --mauve: #96607d;
    --orange: #e97132;
    --green: #4ea72e;
    --text: #17353a;
    --muted: #66777d;
    --card: rgba(248, 249, 247, 0.96);
    --card-2: rgba(255, 255, 255, 0.93);
    --line: rgba(14, 40, 65, 0.10);
}

* { box-sizing: border-box; }
html, body { min-height: 100%; }
body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(15, 158, 213, 0.20), transparent 28%),
        radial-gradient(circle at top right, rgba(233, 113, 50, 0.16), transparent 30%),
        radial-gradient(circle at 50% 100%, rgba(160, 43, 147, 0.18), transparent 34%),
        linear-gradient(135deg, #0e2841 0%, #01454f 38%, #0f4761 72%, #96607d 100%);
    background-attachment: fixed;
}
a { color: var(--deep-teal); text-decoration: none; }
a:hover { text-decoration: none; }
.page-wrap { max-width: 1280px; margin: 0 auto; padding: 18px 20px 28px; }
.site-header { text-align: center; margin-bottom: 18px; }
.header-logo { max-width: 100%; height: auto; max-height: 120px; object-fit: contain; }

.card {
    background: linear-gradient(180deg, var(--card-2) 0%, var(--card) 100%);
    border-radius: 12px;
    box-shadow: 0 16px 30px rgba(14,40,65,0.16), 0 0 0 2px rgba(218,226,85,0.50), 0 8px 24px rgba(218,226,85,0.18);
    padding: 18px;
    border: 1px solid rgba(255,255,255,0.35);
    backdrop-filter: blur(4px);
}
.card-link {
    display: block;
    color: inherit;
    transition: transform .18s ease, box-shadow .18s ease;
}
.card-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 34px rgba(14,40,65,0.20), 0 0 0 2px rgba(218,226,85,0.6), 0 12px 30px rgba(218,226,85,0.22);
}
.card h1, .card h2, .card h3 { margin-top: 0; }
.top-nav-wrap { margin-bottom: 18px; }
.top-nav {
    display: flex;
    gap: 12px;
    justify-content: center;
    align-items: stretch;
    padding: 14px 18px;
    overflow-x: auto;
}
.top-nav::-webkit-scrollbar { height: 8px; }
.top-nav::-webkit-scrollbar-thumb { background: rgba(14,40,65,0.20); border-radius: 999px; }
.nav-item {
    min-width: 110px;
    color: #5d6272;
    text-align: center;
    padding: 10px 10px 8px;
    border-radius: 10px;
    position: relative;
    transition: background .18s ease, color .18s ease, transform .18s ease;
    flex: 0 0 auto;
}
.nav-item:hover { background: rgba(160,43,147,0.08); color: var(--navy); transform: translateY(-1px); }
.nav-item.active {
    color: var(--violet);
    background: rgba(160,43,147,0.10);
}
.nav-item.active::after {
    content: "";
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: -6px;
    height: 4px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--violet), var(--sky));
}
.nav-icon {
    width: 42px;
    height: 42px;
    margin: 0 auto 8px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    background: rgba(14,40,65,0.04);
    border: 1px solid rgba(14,40,65,0.08);
}
.nav-item.active .nav-icon {
    background: linear-gradient(180deg, rgba(160,43,147,0.18), rgba(15,158,213,0.08));
    border-color: rgba(160,43,147,0.14);
}
.nav-label {
    display: block;
    font-size: 0.92rem;
    font-weight: 700;
    line-height: 1.15;
}
.content-wrap { display: block; }
.grid-4, .grid-3, .grid-2 { display: grid; gap: 18px; }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }

.btn, button, input[type=submit] {
    display: inline-block;
    border: 0;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--violet) 0%, #8b3cf0 100%);
    color: white;
    padding: 10px 14px;
    cursor: pointer;
    font-weight: 700;
    box-shadow: 0 8px 16px rgba(160,43,147,0.18);
}
.btn:hover, button:hover, input[type=submit]:hover { filter: brightness(1.03); }
.btn.alt { background: linear-gradient(135deg, var(--green) 0%, #196b24 100%); }
.btn.warn { background: linear-gradient(135deg, #b14b3b 0%, #7b3b2f 100%); }
.btn.light { background: linear-gradient(135deg, #8f98a4 0%, #66777d 100%); }

h1, h2, h3 { margin-top: 0; color: var(--deep-teal); }
h1.page-title, h2.page-title { color: #fff; text-shadow: 0 6px 18px rgba(0,0,0,0.18); }

.kpi-card {
    position: relative;
    overflow: hidden;
}
.kpi-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto auto;
    width: 120px;
    height: 120px;
    background: radial-gradient(circle, rgba(218,226,85,0.22), transparent 65%);
    transform: translate(32%, -24%);
}
.kpi {
    font-size: 2rem;
    font-weight: 800;
    color: var(--navy);
    position: relative;
}
.kpi-label { font-weight: 700; color: var(--muted); position: relative; }

.table-card { overflow: hidden; }
table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: rgba(255,255,255,0.65);
    border-radius: 10px;
    overflow: hidden;
}
th, td {
    padding: 10px;
    border-bottom: 1px solid rgba(14,40,65,0.08);
    vertical-align: top;
    text-align: left;
}
th {
    background: rgba(15,71,97,0.08);
    color: var(--navy);
}
tr:last-child td { border-bottom: 0; }

.form-row { margin-bottom: 14px; }
label { display: block; font-weight: 700; margin-bottom: 6px; }
input[type=text], input[type=email], input[type=password], input[type=date], input[type=time], textarea, select {
    width: 100%;
    box-sizing: border-box;
    padding: 11px 12px;
    border-radius: 10px;
    border: 1px solid rgba(14,40,65,0.12);
    background: rgba(255,255,255,0.95);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.6);
}
input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: rgba(160,43,147,0.35);
    box-shadow: 0 0 0 3px rgba(160,43,147,0.12);
}
textarea { min-height: 100px; }
.inline-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.inline-form { display: inline; }
.section-space { margin-top: 18px; }
.alert {
    padding: 12px 14px;
    border-radius: 10px;
    margin: 0 0 16px 0;
    box-shadow: 0 8px 16px rgba(14,40,65,0.10);
}
.alert.success { background: #dff4d7; color: #2e5f1a; }
.alert.error { background: #f9d7d7; color: #7b2222; }
.alert.info { background: #ddeef7; color: #114d67; }
.muted { color: var(--muted); }
.badge {
    display: inline-block;
    padding: 6px 8px;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 700;
    background: #e4ece8;
}
.badge.attended { background: #dff4d7; color: #2e5f1a; }
.badge.registered { background: #ddeef7; color: #114d67; }
.badge.no-show { background: #f9d7d7; color: #7b2222; }
.small { font-size: 0.92rem; }
.text-right { text-align: right; }
.nowrap { white-space: nowrap; }
.footer-note { color: rgba(255,255,255,0.88); text-align: center; margin-top: 16px; }

@media (max-width: 900px) {
    .page-wrap { padding: 14px; }
    .top-nav { justify-content: flex-start; }
    th, td { font-size: 0.93rem; }
    .nav-item { min-width: 92px; }
}
