@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.2/css/all.min.css');

:root {
    --bg-soft: #f3f7fb;
    --surface: #ffffff;
    --surface-alt: #f7fafc;
    --border: #dfeaf5;
    --text: #1d2d3d;
    --muted: #5f7285;
    --shadow: 0 18px 40px rgba(18, 34, 52, 0.08);
}

body { font-family: Arial, sans-serif; margin: 0; background: #f4f7fb; color: #1d2a39; }
.body-login { background: linear-gradient(135deg, var(--club-primary), var(--club-secondary)); display: flex; justify-content: center; align-items: center; min-height: 100vh; margin: 0; }
h2 { margin: 0 0 22px; font-size: 1.8rem; font-weight: 600;}
h3 { margin: 0 0 14px; font-size: 1.1rem; color: var(--text);}
.container { max-width: 1200px; margin: 0 auto; padding: 8px; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.card { background: white; border-radius: 12px; padding: 12px 9px; box-shadow: 0 2px 10px rgba(0,0,0,0.05); margin-bottom: 18px; }
.button { background: #1e6bb8; color: white; text-decoration: none; padding: 10px 14px; border-radius: 8px; display: inline-block; }
.link { color: var(--club-primary, #1d9a6c); text-decoration: none; }
form { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
input, select,textarea { width: 100%;  padding: 12px; margin: 8px 0 16px; border: 1px solid var(--border); border-radius: 8px; box-sizing: border-box; background: white; font-size: 16px; }
select { 
        line-height: 1.2;
         min-height: 48px;
}
input {
    min-height: 48px;
    line-height: 1.2;
}
textarea { min-height: 90px; }
button { background: var(--club-primary, #1d9a6c); color: white; border: none; padding: 10px 14px; border-radius: 8px; cursor: pointer; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 10px 8px; text-align: left; border-bottom: 1px solid #e4ebf3; }
.status { display: inline-block; padding: 4px 8px; border-radius: 999px; font-size: 12px; }
.status.registered { background: #e7f2ff; color: #1a4f9a; }
.status.present { background: #eafaf1; color: #166a3d; }
.status.cancelled { background: #fff1f0; color: #b23a2c; }
.status.unexcused { background: #fff7e6; color: #8a5d00; }
.status.absent { background: #fff1f0; color: #b23a2c; }
.danger { background: #c33a2d; }
.calendar-day { border: 1px solid #dfeaf5; border-radius: 10px; padding: 10px; background: #f9fbff; }
.calendar-day h4 { margin: 0 0 8px; }
.calendar-day ul { margin: 0; padding-left: 18px; }

.panel { background: white; width: min(440px, 90vw); padding: 30px; border-radius: 18px; box-shadow: 0 15px 35px rgba(0,0,0,0.18); }
.brand { text-align: center; margin-bottom: 20px; }
.brand img { max-width: 140px; max-height: 90px; object-fit: contain; }
.brand h1 { color: var(--club-secondary); margin: 8px 0 0; font-size: 28px; }
h1 { color: var(--club-secondary); margin: 0 0 6px; font-size: 1.5rem; }
p.sub { color: #52647a; margin: 0 0 24px; font-size: 14px; }
label { display: block; font-weight: 700; font-size: 14px; margin-bottom: 4px; }
button { width: 100%; background: var(--club-primary); color: white; border: none; padding: 12px; border-radius: 8px; cursor: pointer; font-weight: bold; font-size: 16px; }
.error { color: #b23a2c; margin-bottom: 12px; background: #fff1f0; border: 1px solid #f5c6c2; border-radius: 8px; padding: 10px 14px; font-size: 14px; }
.hint { text-align: center; color: #52647a; margin-top: 14px; }
.success { color: #166a3d; background: #eafaf1; border: 1px solid #b7e5cb; border-radius: 8px; padding: 14px; text-align: center; }
.login-link { display: block; text-align: center; margin-top: 16px; color: var(--club-primary); font-weight: 700; text-decoration: none; }

.fa-arrow-left
{
    color: var(--muted);
    text-decoration: none;
    font-size: 22px;
    line-height: 1;
    padding: 0px 14px;
    margin-bottom: 1em;
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 10;
    background: linear-gradient(135deg, var(--club-secondary), rgba(10, 18, 25, 0.72));
    color: #fff;
    box-shadow: 0 6px 18px rgba(18, 34, 52, 0.14);
    padding: 6px 24px;
}
.topbar-stack { display: flex; flex-direction: column; gap: 6px; padding: 10px 0 12px; }
.nav-row1 { display: flex; align-items: center; justify-content: space-between; width: 100%; }
.nav-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    white-space: nowrap;
}
.nav-brand img {
    width: 32px;
    height: 32px;
    max-width: 32px;
    max-height: 32px;
    border-radius: 50%;
    object-fit: cover;
    background: rgba(255,255,255,0.15);
}
.nav {
    display: flex;
    gap: 10px 18px;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
}

.nav a { 
    color: white; 
    text-decoration: none; 
}

.nav-link {
    color: rgba(255,255,255,0.92);
    text-decoration: none;
    font-weight: 700;
    padding: 8px 12px;
    border-radius: 999px;
    transition: background 0.2s ease, color 0.2s ease;
}
.nav-link:hover {
    background: rgba(255,255,255,0.12);
}
.nav-link.active {
    background: rgba(255,255,255,0.16);
    color: white;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.18);
}
.nav-logout {
    margin-left: auto;
}

@media (max-width: 768px) {
    .nav {
        gap: 6px;
        padding: 10px 0;
    }
    .nav a {
        padding: 8px 10px;
        font-size: 14px;
    }
}

/* ── Card List ────────────────────────────────────────── */
.list-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.list-header h2, .list-header h3 { margin: 0; }
.card-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.card-list-item {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #fff;
    border: 1px solid #e4ebf3;
    border-radius: 12px;
    padding: 10px 14px;
}
.cli-badge {
    flex-shrink: 0;
    width: 42px; height: 42px;
    border-radius: 10px;
    background: #3a4a5c;
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 13px;
}
.cli-main { flex: 1; min-width: 80px; }
.cli-title { font-weight: 700; font-size: 15px; line-height: 1.3; }
.cli-sub { color: #5f7285; font-size: 13px; margin-top: 2px; white-space: nowrap; }
.cli-side { margin-left: auto; display: flex; align-items: center; gap: 5px; flex-shrink: 0; text-align: right; }
.cli-side-label { color: #5f7285; font-size: 14px; }
.cli-action {
    background: none;
    border: 1px solid #dfe8f0;
    color: #5f7285;
    width: 30px; height: 30px;
    border-radius: 7px;
    cursor: pointer;
    font-size: 18px; font-weight: 700; line-height: 1;
    display: flex; align-items: center; justify-content: center;
    padding: 0;
}
.cli-action:hover { background: #fff1f0; color: #c33a2d; border-color: #f5c6c2; }
.cli-action i { font-size: 14px; }
@media (max-width: 600px) {
    .card-list-item { flex-wrap: wrap; }
}
