/* Main CSS file */

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-color: #f8f9fa;
    font-family: 'Sarabun', sans-serif;
}

/* ปรับแต่งแถบเมนู */
.navbar {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    font-weight: bold;
}

/* แถบสถานะการลงทะเบียน */
.registration-status-bar {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Card สำหรับชุมนุม */
.club-card {
    transition: transform 0.2s, box-shadow 0.2s;
    height: 100%;
    border-radius: 8px;
    overflow: hidden;
}

.club-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.club-card .card-img-top {
    height: 160px;
    object-fit: cover;
}

.club-card .card-body {
    display: flex;
    flex-direction: column;
}

.club-card .card-footer {
    background-color: rgba(0, 0, 0, 0.02);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

/* Dashboard Stats */
.stats-card {
    transition: transform 0.2s;
    border-radius: 8px;
    overflow: hidden;
}

.stats-card:hover {
    transform: translateY(-5px);
}

.stats-card .card-body {
    position: relative;
    padding-left: 70px;
}

.stats-card .stats-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.stats-card .stats-number {
    font-size: 1.8rem;
    font-weight: bold;
    margin-bottom: 5px;
}

.stats-card .stats-title {
    margin-bottom: 0;
    opacity: 0.8;
}

/* Forms */
.form-control:focus, .form-select:focus {
    border-color: #80bdff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.form-label {
    font-weight: 500;
}

/* Login Form */
.login-form {
    max-width: 400px;
    margin: 0 auto;
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Tables */
.table {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.table th {
    background-color: #f8f9fa;
    font-weight: 600;
}

/* Pagination */
.pagination .page-item.active .page-link {
    background-color: #0d6efd;
    border-color: #0d6efd;
}

/* Buttons */
.btn {
    border-radius: 4px;
    padding: 0.375rem 1rem;
}

.btn-primary {
    background-color: #0d6efd;
    border-color: #0d6efd;
}

.btn-success {
    background-color: #198754;
    border-color: #198754;
}

.btn-danger {
    background-color: #dc3545;
    border-color: #dc3545;
}

.btn-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
}

/* Footer */
footer {
    margin-top: auto;
    box-shadow: 0 -2px 4px rgba(0, 0, 0, 0.05);
}

/* Countdown Timer */
.countdown-timer {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.countdown-timer .countdown-title {
    font-size: 1.2rem;
    margin-bottom: 15px;
}

.countdown-timer .countdown-value {
    font-size: 2.5rem;
    font-weight: bold;
    display: block;
    margin-bottom: 5px;
}

.countdown-timer .countdown-label {
    font-size: 0.9rem;
    text-transform: uppercase;
    opacity: 0.7;
}

.countdown-timer .countdown-section {
    display: inline-block;
    margin: 0 10px;
}

/* Progress Bar */
.progress {
    height: 15px;
    border-radius: 20px;
    margin-bottom: 10px;
}

.progress-bar {
    border-radius: 20px;
}

/* Club details */
.club-details {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    padding: 20px;
    margin-bottom: 20px;
}

/* Media queries */
@media (max-width: 768px) {
    .stats-card .card-body {
        padding-left: 15px;
        padding-top: 60px;
        text-align: center;
    }
    
    .stats-card .stats-icon {
        left: 50%;
        top: 15px;
        transform: translateX(-50%);
    }
}
