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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #f0f4f8;
    color: #2d3748;
}

/* --- Navigation --- */
nav {
    background: #1a365d;
    color: white;
    padding: 0 24px;
    display: flex;
    align-items: center;
    height: 56px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}
nav .brand { color: white; text-decoration: none; font-weight: 700; font-size: 1.1rem; letter-spacing: 0.02em; }
nav .spacer { flex: 1; }
nav .nav-links a { color: #bee3f8; text-decoration: none; margin-left: 24px; font-size: 0.9rem; font-weight: 500; }
nav .nav-links a:hover { color: white; }

/* --- Container --- */
.container { max-width: 1100px; margin: 0 auto; padding: 28px 16px; }

/* --- Cards --- */
.card { background: white; border-radius: 10px; box-shadow: 0 1px 4px rgba(0,0,0,0.08); padding: 24px; margin-bottom: 20px; }
.card h2 { font-size: 1.1rem; color: #1a365d; margin-bottom: 16px; }

/* --- Page header --- */
.page-header { margin-bottom: 24px; }
.page-header h1 { font-size: 1.7rem; color: #1a365d; }
.page-header p { color: #718096; margin-top: 5px; font-size: 0.95rem; }

/* --- Buttons --- */
.btn {
    display: inline-block; padding: 9px 20px; border-radius: 6px;
    border: none; cursor: pointer; font-size: 0.9rem; font-weight: 500;
    text-decoration: none; transition: filter 0.15s;
}
.btn:hover { filter: brightness(0.92); }
.btn-primary  { background: #3182ce; color: white; }
.btn-success  { background: #38a169; color: white; }
.btn-danger   { background: #e53e3e; color: white; }
.btn-outline  { background: transparent; border: 1.5px solid #3182ce; color: #3182ce; }
.btn-sm       { padding: 4px 12px; font-size: 0.8rem; }
.btn-block    { width: 100%; text-align: center; padding: 13px; font-size: 1rem; }

/* --- Tables --- */
table { width: 100%; border-collapse: collapse; }
th {
    background: #ebf8ff; color: #2b6cb0; text-align: left;
    padding: 10px 14px; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.05em;
}
td { padding: 10px 14px; border-bottom: 1px solid #e2e8f0; font-size: 0.9rem; vertical-align: middle; }
tr:last-child td { border-bottom: none; }
tr:hover td { background: #f7fafc; }

/* --- Forms --- */
.form-group { margin-bottom: 18px; }
label { display: block; font-size: 0.85rem; font-weight: 600; color: #4a5568; margin-bottom: 5px; }
input[type=text], input[type=email], input[type=tel], input[type=date],
input[type=time], input[type=number], select, textarea {
    width: 100%; padding: 9px 13px; border: 1.5px solid #cbd5e0;
    border-radius: 6px; font-size: 0.95rem; background: white;
}
input:focus, select:focus, textarea:focus {
    outline: none; border-color: #3182ce;
    box-shadow: 0 0 0 3px rgba(49,130,206,0.18);
}
.form-hint { font-size: 0.8rem; color: #718096; margin-top: 4px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* --- Stats row --- */
.stats { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 22px; }
.stat-card {
    background: white; border-radius: 10px; padding: 18px 24px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08); text-align: center; flex: 1; min-width: 110px;
}
.stat-card .num { font-size: 2rem; font-weight: 700; color: #1a365d; line-height: 1; }
.stat-card .lbl { font-size: 0.78rem; color: #718096; margin-top: 4px; text-transform: uppercase; letter-spacing: 0.04em; }

/* --- Badges --- */
.badge { display: inline-block; padding: 3px 9px; border-radius: 12px; font-size: 0.75rem; font-weight: 600; }
.badge-success { background: #c6f6d5; color: #276749; }
.badge-danger  { background: #fed7d7; color: #9b2c2c; }
.badge-warning { background: #fefcbf; color: #744210; }
.badge-blue    { background: #bee3f8; color: #2c5282; }

/* --- Alerts --- */
.alert { padding: 12px 16px; border-radius: 7px; margin-bottom: 18px; font-size: 0.95rem; }
.alert-success { background: #c6f6d5; color: #276749; border: 1px solid #9ae6b4; }
.alert-danger  { background: #fed7d7; color: #9b2c2c; border: 1px solid #fc8181; }
.alert-info    { background: #bee3f8; color: #2c5282; border: 1px solid #90cdf4; }

/* --- Show grid (registration / admin list) --- */
.show-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 16px; }
.show-card { background: white; border-radius: 10px; box-shadow: 0 1px 4px rgba(0,0,0,0.08); padding: 22px; }
.show-card h3 { color: #1a365d; margin-bottom: 6px; font-size: 1.05rem; }
.show-card .meta { font-size: 0.85rem; color: #718096; margin: 3px 0; }

/* --- Utility --- */
.flex         { display: flex; align-items: center; gap: 10px; }
.flex-between { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; }
.text-center  { text-align: center; }
.text-right   { text-align: right; }
.text-muted   { color: #718096; }
.mt-2  { margin-top: 8px; }
.mt-4  { margin-top: 16px; }
.mb-4  { margin-bottom: 16px; }
.mono  { font-family: monospace; }
.empty-state { color: #a0aec0; text-align: center; padding: 40px 0; font-size: 1rem; }

/* --- Cancelled row --- */
tr.cancelled td { opacity: 0.5; text-decoration: line-through; }
tr.cancelled td:last-child { text-decoration: none; }

/* --- Live indicator --- */
.live-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #38a169; margin-right: 6px; animation: pulse 1.5s infinite; }
@keyframes pulse { 0%,100% { opacity:1; } 50% { opacity:0.3; } }
