@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Thai:wght@300;400;500;600;700&display=swap');

:root {
    --primary: #0f4c81;
    --secondary: #1d9bf0;
    --soft: #eef7ff;
    --dark: #12324a;
    --text: #1f2937;
}

* {
    font-family: 'Noto Sans Thai', sans-serif;
}

body {
    background: linear-gradient(135deg, #f4faff 0%, #eaf5ff 100%);
    color: var(--text);
    padding-top: 95px;
    min-height: 100vh;
}
.custom-navbar {
    margin: 12px auto;
    width: calc(100% - 24px);

    background: linear-gradient(135deg, #062b52, #0f4c81, #1d9bf0);

    border-radius: 28px;

    /* ห้ามใช้ hidden เพราะจะตัด dropdown */
    overflow: visible;
    clip-path: none;

    box-shadow: 0 14px 35px rgba(0, 0, 0, 0.18);
    z-index: 9999;
}

.navbar-brand {
    color: #ffffff !important;
    font-weight: 700;
    letter-spacing: .2px;
}

.navbar-brand i {
    width: 36px;
    height: 36px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,.18);
    color: #ffffff;
}

.nav-link {
    color: #eaf6ff !important;
    font-weight: 500;
    margin-left: 8px;
    border-radius: 18px;
    padding: 9px 16px !important;
    display: flex;
    align-items: center;
    gap: 7px;
    transition: .25s ease;
}

.nav-link i {
    font-size: 1rem;
    color: #bfe8ff;
    transition: .25s ease;
}

.nav-link:hover {
    background: #ffffff;
    color: #0f4c81 !important;
    transform: translateY(-1px);
    box-shadow: 0 8px 22px rgba(255,255,255,.18);
}

.nav-link:hover i {
    color: #1d9bf0;
}

.login-btn,
.logout-link {
    background: rgba(255,255,255,.16);
    color: #ffffff !important;
    border: 1px solid rgba(255,255,255,.28);
}

.login-btn:hover,
.logout-link:hover {
    background: #ffffff;
    color: #0f4c81 !important;
}

.custom-toggler {
    border: 0;
    background: rgba(255,255,255,.18);
    border-radius: 14px;
    padding: 8px 10px;
}

.custom-toggler:focus {
    box-shadow: none;
}

.navbar-toggler-icon {
    filter: invert(1);
}

.navbar-shadow {
    box-shadow: 0 20px 45px rgba(6, 43, 82, 0.36);
}

@media (max-width: 991px) {
    .navbar-nav {
        margin-top: 14px;
        background: rgba(255,255,255,.12);
        border-radius: 22px;
        padding: 10px;
    }

    .nav-link {
        margin-left: 0;
        margin-bottom: 6px;
    }
}

.hero-card,
.form-card,
.club-card {
    background: rgba(255,255,255,.92);
    border: 0;
    border-radius: 28px;
    box-shadow: 0 18px 45px rgba(15, 76, 129, .12);
}

.hero-title {
    color: var(--primary);
    font-weight: 700;
}

.hero-badge {
    display: inline-block;
    background: #e7f1ff;
    color: var(--primary);
    padding: 8px 18px;
    border-radius: 999px;
    font-weight: 600;
    margin-bottom: 16px;
}

.btn-main {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff;
    border: 0;
    border-radius: 18px;
    padding: 11px 24px;
    font-weight: 600;
}

.btn-main:hover {
    color: #fff;
    transform: translateY(-2px);
}

.club-card {
    transition: .25s;
}

.club-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 22px 50px rgba(15, 76, 129, .18);
}

.club-level {
    background: #e7f1ff;
    color: var(--primary);
    border-radius: 999px;
    padding: 5px 12px;
    font-size: 13px;
    font-weight: 600;
}

.site-footer {
    margin-top: 60px;
    padding: 28px 0;
    color: #64748b;
}

@media (max-width: 768px) {
    .custom-navbar {
        border-radius: 22px;
    }

    body {
        padding-top: 110px;
    }
}
.admin-header {
    background: rgba(255,255,255,.92);
    border-radius: 30px;
    box-shadow: 0 18px 45px rgba(15, 76, 129, .12);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
}

.table-card {
    background: rgba(255,255,255,.94);
    border-radius: 28px;
    box-shadow: 0 18px 45px rgba(15, 76, 129, .12);
}

.custom-table {
    margin-bottom: 0;
}

.custom-table thead th {
    background: #eef7ff;
    color: #0f4c81;
    font-weight: 700;
    border-bottom: 0;
    padding: 16px 14px;
}

.custom-table tbody td {
    padding: 16px 14px;
    vertical-align: middle;
    border-color: #edf2f7;
}

.custom-table tbody tr {
    transition: .2s ease;
}

.custom-table tbody tr:hover {
    background: #f8fbff;
}

.btn-edit {
    background: #e7f1ff;
    color: #0d6efd;
    border-radius: 14px;
    padding: 8px 11px;
}

.btn-edit:hover {
    background: #0d6efd;
    color: #fff;
}

.btn-delete {
    background: #ffe8e8;
    color: #dc3545;
    border-radius: 14px;
    padding: 8px 11px;
}

.btn-delete:hover {
    background: #dc3545;
    color: #fff;
}

.form-label {
    font-weight: 600;
    color: #12324a;
}

.form-control,
.form-select {
    border: 1px solid #dbeafe;
    background-color: #fbfdff;
}

.form-control:focus,
.form-select:focus {
    border-color: #1d9bf0;
    box-shadow: 0 0 0 .2rem rgba(29, 155, 240, .14);
}

@media (max-width: 768px) {
    .admin-header {
        display: block;
    }

    .custom-table {
        min-width: 850px;
    }
}
.user-profile {
    background: rgba(255,255,255,.18);
    border: 1px solid rgba(255,255,255,.25);
    padding: 6px 12px !important;
}

.user-profile:hover {
    background: #ffffff;
}

.avatar-circle {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ffffff, #dff3ff);
    color: #0f4c81;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    box-shadow: 0 6px 14px rgba(0,0,0,.12);
}

.user-info {
    display: flex;
    flex-direction: column;
    line-height: 1.05;
}

.user-info strong {
    font-size: 13px;
    color: inherit;
}

.user-info small {
    font-size: 11px;
    color: #d8f0ff;
}

.user-profile:hover .user-info small {
    color: #64748b;
}

.custom-dropdown {
    border: 0;
    border-radius: 18px;
    padding: 10px;
    box-shadow: 0 18px 40px rgba(15, 76, 129, .18);
}

.custom-dropdown .dropdown-item {
    border-radius: 12px;
    padding: 9px 12px;
}

@media (max-width: 991px) {
    .user-profile {
        margin-top: 6px;
        width: 100%;
    }

    .user-info {
        display: flex;
    }

    .custom-dropdown {
        width: 100%;
    }
}
.index-hero {
    background:
        radial-gradient(circle at top right, rgba(29,155,240,.22), transparent 35%),
        linear-gradient(135deg, rgba(255,255,255,.96), rgba(239,248,255,.92));
    border-radius: 34px;
    padding: 44px;
    box-shadow: 0 20px 50px rgba(15, 76, 129, .13);
    overflow: hidden;
}

.index-title {
    color: #0f4c81;
    font-size: clamp(2rem, 4vw, 3.7rem);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 16px;
}

.index-subtitle {
    color: #64748b;
    font-size: 1.05rem;
    line-height: 1.8;
    max-width: 720px;
}

.btn-soft-main {
    background: #e7f1ff;
    color: #0f4c81;
    border: 0;
    border-radius: 18px;
    padding: 11px 24px;
    font-weight: 600;
}

.btn-soft-main:hover {
    background: #d7ebff;
    color: #062b52;
    transform: translateY(-2px);
}

.hero-glass-card {
    background: linear-gradient(135deg, #062b52, #0f4c81, #1d9bf0);
    border-radius: 32px;
    padding: 34px;
    color: #fff;
    min-height: 300px;
    box-shadow: 0 22px 50px rgba(6,43,82,.26);
    position: relative;
    overflow: hidden;
}

.hero-glass-card::after {
    content: "";
    position: absolute;
    width: 190px;
    height: 190px;
    border-radius: 50%;
    right: -60px;
    bottom: -70px;
    background: rgba(255,255,255,.14);
}

.hero-icon {
    width: 72px;
    height: 72px;
    border-radius: 24px;
    background: rgba(255,255,255,.18);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 34px;
    margin-bottom: 22px;
}

.hero-glass-card h4 {
    font-weight: 700;
}

.hero-glass-card p {
    color: #dff3ff;
    line-height: 1.8;
}

.index-stat-card {
    background: rgba(255,255,255,.94);
    border-radius: 26px;
    padding: 22px;
    box-shadow: 0 16px 40px rgba(15, 76, 129, .11);
    transition: .25s ease;
    min-height: 150px;
}

.index-stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 22px 48px rgba(15, 76, 129, .17);
}

.index-stat-card span {
    color: #64748b;
    font-size: .92rem;
}

.index-stat-card h3 {
    color: #0f4c81;
    font-weight: 800;
    margin: 10px 0 0;
}

.stat-mini-icon {
    width: 48px;
    height: 48px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    margin-bottom: 14px;
    font-size: 22px;
}

.bg-blue {
    background: linear-gradient(135deg, #062b52, #0f4c81);
}

.bg-sky {
    background: linear-gradient(135deg, #0ea5e9, #38bdf8);
}

.bg-indigo {
    background: linear-gradient(135deg, #1e3a8a, #3b82f6);
}

.bg-green {
    background: linear-gradient(135deg, #059669, #34d399);
}

.index-panel {
    background: rgba(255,255,255,.96);
    border-radius: 30px;
    padding: 28px;
    box-shadow: 0 18px 45px rgba(15, 76, 129, .12);
}

.panel-title-wrap {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: flex-start;
    margin-bottom: 22px;
}

.panel-label {
    display: inline-block;
    color: #1d9bf0;
    font-weight: 700;
    font-size: .82rem;
    margin-bottom: 4px;
    letter-spacing: .4px;
}

.panel-title-wrap h4 {
    color: #0f4c81;
    font-weight: 800;
    margin: 0;
}

.panel-main-icon {
    width: 52px;
    height: 52px;
    border-radius: 20px;
    background: #e7f1ff;
    color: #0f4c81;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.panel-main-icon.warning {
    background: #fff1f2;
    color: #dc3545;
}

.announcement-list,
.not-check-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.announcement-item {
    display: flex;
    gap: 14px;
    padding: 16px;
    border-radius: 22px;
    background: #f8fbff;
    border: 1px solid #eaf3ff;
}

.announce-icon {
    width: 42px;
    height: 42px;
    border-radius: 16px;
    background: linear-gradient(135deg, #0f4c81, #1d9bf0);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.announcement-item h6,
.not-check-item h6 {
    color: #12324a;
    font-weight: 700;
    margin-bottom: 5px;
}

.announcement-item p {
    color: #64748b;
    margin-bottom: 6px;
    line-height: 1.65;
}

.announcement-item small {
    color: #94a3b8;
}

.not-check-item {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: center;
    padding: 16px;
    border-radius: 22px;
    background: #fff8f8;
    border: 1px solid #ffe3e3;
}

.not-check-item p,
.not-check-item small {
    color: #64748b;
}

.empty-box,
.success-box {
    border-radius: 22px;
    padding: 22px;
    text-align: center;
    background: #f8fbff;
    color: #64748b;
}

.success-box {
    background: #ecfdf5;
    color: #059669;
    font-weight: 700;
}

@media (max-width: 768px) {
    .index-hero {
        padding: 28px;
        border-radius: 28px;
    }

    .not-check-item {
        align-items: flex-start;
        flex-direction: column;
    }

    .index-panel {
        padding: 22px;
    }
}
.week-card {
    display: flex;
    flex-direction: column;
    gap: 6px;
    text-decoration: none;
    background: #f8fbff;
    border: 1px solid #eaf3ff;
    border-radius: 22px;
    padding: 16px;
    color: #12324a;
    transition: .25s ease;
    height: 100%;
}

.week-card:hover {
    transform: translateY(-3px);
    background: #eef7ff;
    color: #0f4c81;
}

.week-card strong {
    font-size: 1rem;
}

.week-card small {
    color: #64748b;
}

.attendance-options {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.attendance-options label {
    cursor: pointer;
    margin: 0;
}

.attendance-options input {
    display: none;
}

.attendance-options span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 54px;
    padding: 7px 10px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    background: #f1f5f9;
    color: #64748b;
    transition: .2s ease;
}

.attendance-options input:checked + .present {
    background: #dcfce7;
    color: #15803d;
}

.attendance-options input:checked + .late {
    background: #fef3c7;
    color: #b45309;
}

.attendance-options input:checked + .leave {
    background: #e0f2fe;
    color: #0369a1;
}

.attendance-options input:checked + .absent {
    background: #fee2e2;
    color: #b91c1c;
}

.bg-danger-soft {
    background: linear-gradient(135deg, #dc2626, #fb7185);
}
.week-card {
    min-height: 145px;
    padding: 20px;
    border-radius: 24px;
}

.week-card strong {
    font-size: 1.08rem;
}

.week-card .badge {
    font-size: 13px;
    padding: 8px 12px;
    border-radius: 999px;
    width: fit-content;
}

.week-checked {
    background: #ecfdf5;
    border-color: #bbf7d0;
}

.week-not-checked {
    background: #f8fbff;
    border-color: #dbeafe;
}
.custom-confirm-modal {
    border: 0;
    border-radius: 28px;
    padding: 8px;
    box-shadow: 0 24px 60px rgba(15, 76, 129, .22);
}

.confirm-club-box {
    background: linear-gradient(135deg, #f8fbff, #eef7ff);
    border: 1px solid #dbeafe;
    border-radius: 22px;
    padding: 20px;
}

.confirm-club-box h5 {
    color: #0f4c81;
    font-weight: 800;
}

.confirm-club-box i {
    color: #1d9bf0;
}
.club-level {
    font-size: 12px;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 999px;
    display: inline-block;
}

/* ม.ต้น */
.level-junior {
    background: #dcfce7;
    color: #15803d;
    border: 1px solid #bbf7d0;
}

/* ม.ปลาย */
.level-senior {
    background: #e0f2fe;
    color: #0369a1;
    border: 1px solid #bae6fd;
}
.report-attendance-table {
    min-width: 1200px;
}

.report-attendance-table th,
.report-attendance-table td {
    white-space: nowrap;
}

@media print {
    .custom-navbar,
    .site-footer,
    .btn,
    .hero-badge {
        display: none !important;
    }

    body {
        padding-top: 0 !important;
        background: #fff !important;
    }

    .admin-header,
    .table-card {
        box-shadow: none !important;
        border-radius: 0 !important;
    }
}
.club-upload-preview {
    width: 100%;
    height: 260px;
    object-fit: cover;
    border-radius: 24px;
    border: 1px solid #dbeafe;
    box-shadow: 0 12px 28px rgba(15, 76, 129, .12);
}
.photo-preview-box {
    background: #f8fbff;
    border: 1px dashed #bcdcff;
    border-radius: 26px;
    padding: 14px;
}

.club-upload-preview {
    width: 100%;
    height: 280px;
    object-fit: cover;
    border-radius: 22px;
    background: #eef7ff;
    border: 1px solid #dbeafe;
}

.print-photos-area {
    display: none;
}

.print-photo-card {
    border: 1px solid #dbeafe;
    border-radius: 18px;
    padding: 14px;
    background: #fff;
}

.print-photo-card h5 {
    color: #0f4c81;
    font-weight: 700;
    margin-bottom: 12px;
}

.print-photo-img {
    width: 100%;
    height: 360px;
    object-fit: cover;
    border-radius: 14px;
    border: 1px solid #e5e7eb;
}

@media print {
    .custom-navbar,
    .site-footer,
    .form-card,
    .alert,
    .btn {
        display: none !important;
    }

    body {
        background: #fff !important;
        padding-top: 0 !important;
    }

    .print-photos-area {
        display: block !important;
    }

    .container {
        width: 100% !important;
        max-width: 100% !important;
    }
}
.plan-display-card {
    background: #f8fbff;
    border: 1px solid #e3f0ff;
    border-radius: 22px;
    padding: 18px;
    height: 100%;
}

.plan-display-card h6 {
    color: #0f4c81;
    font-weight: 800;
    margin-bottom: 10px;
}

.plan-display-card p {
    color: #475569;
    line-height: 1.7;
    margin-bottom: 0;
}
/* แก้ปุ่มทั้งหมดใน dashboard ให้เท่ากัน */
.d-flex.flex-wrap.gap-2 .btn {
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    line-height: 1.3;
    white-space: normal;
    padding: 8px 12px;
}

/* ทำให้ icon ไม่ดัน layout */
.d-flex.flex-wrap.gap-2 .btn i {
    flex-shrink: 0;
}

/* ปุ่มสรุปผล (ให้กลมกลืนกับระบบเดิม) */
.btn-summary-ready {
    background: #fbbf24;
    color: #fff;
    border: 0;
}

.btn-summary-ready:hover {
    background: #f59e0b;
    color: #fff;
}

.btn-summary-done {
    background: #22c55e;
    color: #fff;
    border: 0;
}

.btn-summary-done:hover {
    background: #16a34a;
    color: #fff;
}

.btn-summary-locked {
    background: #e5e7eb;
    color: #6b7280;
    border: 0;
}
