/* ============================================================
   ระบบลงทะเบียนชุมนุม v2 - Stylesheet
   ============================================================ */

.club-reg-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 25px;
    font-family: 'Sarabun', 'TH Sarabun New', -apple-system, sans-serif;
}

.club-reg-header {
    text-align: center;
    padding: 20px 15px;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #1e3a8a, #3b82f6);
    color: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(30, 58, 138, 0.2);
}

.school-name {
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 4px;
    letter-spacing: 0.5px;
}

.school-term {
    font-size: 16px;
    opacity: 0.95;
    font-weight: 500;
}

.club-reg-title {
    text-align: center;
    color: #1e3a8a;
    font-size: 28px;
    margin-bottom: 10px;
}

.club-reg-subtitle {
    text-align: center;
    color: #64748b;
    margin-bottom: 30px;
}

.club-reg-form {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
}

.form-group { margin-bottom: 20px; }

.form-row {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 15px;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #1e293b;
    font-size: 16px;
}

.form-group small {
    display: block;
    margin-top: 5px;
    font-size: 13px;
}

.required { color: #dc2626; }

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #cbd5e1;
    border-radius: 8px;
    font-size: 16px;
    font-family: inherit;
    transition: border-color 0.3s, box-shadow 0.3s;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.form-group select option:disabled {
    color: #94a3b8;
    background: #f1f5f9;
}

.club-reg-submit {
    width: 100%;
    padding: 14px 20px;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    font-family: inherit;
}

.club-reg-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

.club-reg-submit:disabled {
    background: #94a3b8;
    cursor: not-allowed;
    transform: none;
}

#club-reg-message { margin-bottom: 20px; }

.club-reg-alert {
    padding: 15px 20px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 15px;
    animation: slideDown 0.3s;
}

.club-reg-alert.success {
    background: #dcfce7;
    color: #166534;
    border-left: 4px solid #22c55e;
}

.club-reg-alert.error {
    background: #fee2e2;
    color: #991b1b;
    border-left: 4px solid #ef4444;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ปุ่มกรองระดับชั้น */
.level-filter {
    display: flex;
    gap: 10px;
    margin: 20px 0 15px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 20px;
    background: #fff;
    color: #475569;
    border: 2px solid #cbd5e1;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}

.filter-btn:hover {
    border-color: #3b82f6;
    color: #3b82f6;
}

.filter-btn.active {
    background: #3b82f6;
    color: #fff;
    border-color: #3b82f6;
}

/* ตารางสถานะ */
.club-status-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.club-status-table thead {
    background: #1e3a8a;
    color: #fff;
}

.club-status-table th,
.club-status-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
}

.club-status-table tbody tr:hover { background: #f8fafc; }

.club-status-table tr.hidden { display: none; }

.progress-bar {
    width: 100%;
    height: 6px;
    background: #e2e8f0;
    border-radius: 3px;
    margin-top: 5px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #22c55e, #3b82f6);
    transition: width 0.5s;
}

.status-badge {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
}

.status-badge.open {
    background: #dcfce7;
    color: #166534;
}

.status-badge.full {
    background: #fee2e2;
    color: #991b1b;
}

@media (max-width: 700px) {
    .form-row { grid-template-columns: 1fr; }
    .club-status-table { font-size: 14px; }
    .club-status-table th,
    .club-status-table td { padding: 8px; }
    .club-status-table thead { display: none; }
    .club-status-table tr {
        display: block;
        margin-bottom: 15px;
        border: 1px solid #e2e8f0;
        border-radius: 8px;
        padding: 10px;
    }
    .club-status-table td {
        display: block;
        border: none;
        padding: 5px 0;
    }
    .club-status-table td:before {
        content: attr(data-label);
        font-weight: 600;
        display: inline-block;
        width: 110px;
    }
}
