/* Global Styles */
* { box-sizing: border-box; }
body, input, button, select, textarea { font-family: 'Kanit', sans-serif; }
body { margin: 0; padding: 0; background-color: #f4f7f6; }
table { width: 100%; border-collapse: collapse; }

/* Styles from admin.php */
body.admin-body { background: #f4f7f6; padding: 20px; margin: 0; }
.admin-container { max-width: 1200px; margin: auto; }
.admin-nav-bar { background: #2d5a27; color: white; padding: 15px; border-radius: 12px; margin-bottom: 25px; display: flex; justify-content: space-between; align-items: center; box-shadow: 0 4px 10px rgba(0,0,0,0.1); }
.admin-nav-bar a { color: white; text-decoration: none; margin-left: 15px; font-size: 14px; }

.search-container { background: white; padding: 15px; border-radius: 12px; margin-bottom: 10px; display: flex; gap: 10px; box-shadow: 0 2px 5px rgba(0,0,0,0.05); }
.search-input { flex: 1; padding: 10px; border: 1px solid #ddd; border-radius: 8px; }
.btn-search { background: #2d5a27; color: white; border: none; padding: 0 20px; border-radius: 8px; cursor: pointer; }

.filter-container { display: flex; gap: 10px; margin-bottom: 20px; flex-wrap: wrap; }
.btn-filter { padding: 8px 20px; border-radius: 20px; text-decoration: none; font-size: 14px; background: white; color: #666; border: 1px solid #ddd; transition: 0.3s; box-shadow: 0 2px 5px rgba(0,0,0,0.05); }
.btn-filter.active { background: #2d5a27; color: white; border-color: #2d5a27; }
.btn-filter:hover { border-color: #2d5a27; color: #2d5a27; }
.btn-filter.active:hover { color: white; }

.admin-card { background: white; padding: 20px; border-radius: 15px; margin-bottom: 15px; box-shadow: 0 2px 8px rgba(0,0,0,0.05); border-left: 6px solid #ffc107; display: flex; justify-content: space-between; align-items: center; }
.btn { padding: 8px 15px; border-radius: 8px; text-decoration: none; font-size: 13px; color: white; border: none; cursor: pointer; transition: 0.2s; display: inline-block; text-align: center; }
.btn-view { background: #5c6bc0; } .btn-appr { background: #28a745; } .btn-cancel { background: #fd7e14; } .btn-delete { background: #dc3545; } .btn-edit { background: #ffc107; color: #333; }

.badge { padding: 5px 12px; border-radius: 20px; font-size: 12px; font-weight: 500; }
.badge-paid { background: #e8f5e9; color: #2e7d32; } .badge-cancelled { background: #ffebee; color: #c62828; }

.table-res { overflow-x: auto; background: white; border-radius: 15px; box-shadow: 0 4px 12px rgba(0,0,0,0.05); }
table.admin-table { width: 100%; border-collapse: collapse; min-width: 900px; }
table.admin-table th, table.admin-table td { padding: 15px; text-align: left; border-bottom: 1px solid #f0f0f0; }
table.admin-table th { background: #f8f9fa; color: #666; font-size: 14px; }

.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 25px; }
.pagination a { padding: 10px 16px; background: white; color: #2d5a27; text-decoration: none; border-radius: 8px; border: 1px solid #ddd; transition: 0.3s; }
.pagination a.active { background: #2d5a27; color: white; border-color: #2d5a27; }

.modal { display: none; position: fixed; z-index: 1000; left: 0; top: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.85); padding-top: 40px; }
.modal-content { margin: auto; display: block; max-width: 90%; max-height: 80vh; border-radius: 10px; }
.close-modal { position: absolute; top: 20px; right: 30px; color: white; font-size: 40px; cursor: pointer; }

/* Dashboard Stats */
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; margin-bottom: 25px; }
.stat-card { background: white; padding: 15px; border-radius: 12px; box-shadow: 0 4px 10px rgba(0,0,0,0.05); text-align: center; border-top: 5px solid #2d5a27; }
.stat-card h4 { margin: 0 0 10px 0; color: #666; font-size: 14px; }
.stat-val { font-size: 20px; font-weight: bold; color: #2d5a27; margin-bottom: 5px; }
.stat-cancel { color: #d32f2f; font-size: 13px; }

/* History Display Toggle */
.history-mobile { display: none !important; }
.history-desktop { display: block !important; }

/* Admin Responsive Adjustments */
@media (max-width: 768px) {
    .history-mobile { display: block !important; }
    .history-desktop { display: none !important; }
    
    body.admin-body { padding: 10px; }
    .admin-nav-bar { flex-direction: column; gap: 10px; text-align: center; }
    .admin-nav-bar div { display: flex; flex-wrap: wrap; justify-content: center; gap: 5px; }
    .admin-nav-bar a { margin: 0 5px; font-size: 13px; }
    
    .stats-grid { grid-template-columns: 1fr; }
    
    .admin-card { flex-direction: column; align-items: flex-start; gap: 15px; border-left-width: 4px; }
    .admin-card .btn-group { width: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
    .admin-card .btn { padding: 10px; font-size: 14px; }
    
    .search-container { flex-direction: column; }
    .btn-search { padding: 12px; }
    
    .filter-container { justify-content: center; }
    .btn-filter { flex: 1; text-align: center; padding: 8px 10px; font-size: 12px; }

    /* Responsive Table to Cards */
    .admin-table thead { display: none; }
    .admin-table, .admin-table tbody, .admin-table tr, .admin-table td { display: block; width: 100%; }
    .admin-table tr { 
        margin-bottom: 20px; 
        border: none; 
        border-radius: 15px; 
        padding: 15px; 
        background: #fff; 
        box-shadow: 0 4px 15px rgba(0,0,0,0.08); 
        border-left: 5px solid #5c6bc0;
    }
    .admin-table td { 
        text-align: right; 
        padding: 10px 0; 
        border-bottom: 1px solid #f1f1f1; 
        position: relative; 
        min-height: 45px; 
        display: flex; 
        justify-content: space-between; 
        align-items: center; 
        font-size: 14px;
    }
    .admin-table td:last-child { 
        border-bottom: none; 
        padding-top: 15px;
        display: block;
    }
    .admin-table td::before { 
        content: attr(data-label); 
        font-weight: 600; 
        color: #888; 
        font-size: 12px; 
        text-align: left; 
        text-transform: uppercase;
    }
    .admin-table td b { font-size: 15px; color: #333; }
    .admin-table td .btn-group-mobile {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
        width: 100%;
        margin-top: 5px;
    }
    .admin-table td .btn-group-mobile .btn {
        width: 100%;
        padding: 12px 5px;
        font-size: 13px;
    }
    /* ให้ปุ่มลบ (ถ้ามี) อยู่แถวถัดไปคนเดียว หรือแชร์กับปุ่มอื่น */
    .admin-table td .btn-delete { grid-column: span 2; }
}

/* Styles from booking.php */
.booking-body { font-family: 'Kanit', sans-serif; background-color: #f0f2f5; margin: 0; padding: 10px; color: #333; }
.booking-card { max-width: 450px; margin: 20px auto; background: white; border-radius: 20px; overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,0.1); }
.booking-header { background: linear-gradient(135deg, #2d5a27, #5c6bc0); color: white; padding: 30px 20px; text-align: center; }
.booking-header h2 { margin: 0; font-weight: 500; }
.summary-box { background: #f8f9fa; margin: 20px; padding: 15px; border-radius: 12px; border-left: 5px solid #2d5a27; font-size: 15px; line-height: 1.6; }
form.booking-form { padding: 0 20px 20px; }
label.booking-label { display: block; margin-bottom: 8px; font-weight: 500; color: #444; font-size: 14px; }
input.booking-input { width: 100%; padding: 12px; margin-bottom: 18px; border: 1px solid #ddd; border-radius: 10px; box-sizing: border-box; font-family: 'Kanit'; font-size: 16px; }
.payment-box { background: #eef2ff; padding: 20px; border-radius: 15px; border: 1px solid #d1d9ff; text-align: center; margin-bottom: 25px; }
.promptpay-num { font-size: 24px; font-weight: bold; color: #333; display: block; margin: 5px 0; }
.btn-copy { background: white; border: 1px solid #5c6bc0; color: #5c6bc0; padding: 6px 15px; border-radius: 8px; cursor: pointer; font-family: 'Kanit'; font-size: 13px; transition: 0.3s; margin-top: 5px; }
.btn-copy:active { transform: scale(0.95); }
.upload-area { background: #fff9e6; border: 2px dashed #ffc107; padding: 20px; border-radius: 12px; text-align: center; margin-bottom: 25px; position: relative; }
.upload-area input[type="file"] { width: 100%; font-family: 'Kanit'; }
.upload-area i { font-size: 24px; display: block; margin-bottom: 8px; }
.slip-preview-container { margin-top: 15px; display: none; text-align: center; }
.slip-preview-container img { max-width: 100%; max-height: 300px; border-radius: 10px; border: 2px solid #ddd; box-shadow: 0 4px 10px rgba(0,0,0,0.1); }
.btn-submit { width: 100%; background: #28a745; color: white; border: none; padding: 16px; border-radius: 12px; font-size: 18px; font-weight: 500; cursor: pointer; transition: 0.3s; box-shadow: 0 5px 15px rgba(40,167,69,0.3); }
.btn-submit:hover { background: #218838; }
.btn-cancel-link { display: block; text-align: center; margin-top: 15px; color: #888; text-decoration: none; font-size: 14px; }

/* Styles from index.php */
body.index-body { font-family: 'Kanit', sans-serif; background-color: #f4f7f6; margin: 0; padding: 10px; }
.index-container { max-width: 1200px; margin: auto; padding: 10px; }
h2.index-title { color: #2d5a27; text-align: center; margin-top: 10px; margin-bottom: 20px; font-size: 22px; }

/* Date Selection Card */
.date-selection-card { background: white; padding: 15px; border-radius: 12px; box-shadow: 0 4px 15px rgba(0,0,0,0.08); margin-bottom: 20px; text-align: center; }
.date-form { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; }
.date-input-group { text-align: center; width: 100%; max-width: 300px; }
.date-label { display: block; font-size: 12px; color: #666; margin-bottom: 5px; font-weight: 500; }
.date-input-custom { width: 100%; margin: 0 auto; padding: 10px; font-size: 16px; border: 2px solid #2d5a27; border-radius: 10px; text-align: center; cursor: pointer; background: #fff; }

/* Flatpickr Customization */
.flatpickr-day.selected { background: #2d5a27 !important; border-color: #2d5a27 !important; }

/* Navigation Buttons */
.btn-today { 
    display: inline-block; background: #e8f5e9; color: #2e7d32; padding: 8px 15px; 
    border-radius: 8px; text-decoration: none; font-size: 13px; font-weight: 500; 
    transition: 0.3s; border: 1px solid #c8e6c9; margin-top: 5px;
}
.btn-today:hover { background: #c8e6c9; transform: translateY(-1px); }

.nav-link-prev, .nav-link-next { color: white; text-decoration: none; font-size: 14px; background: rgba(255,255,255,0.15); padding: 6px 12px; border-radius: 8px; transition: 0.3s; }
.nav-link-prev:hover, .nav-link-next:hover { background: rgba(255,255,255,0.25); }
.nav-date-display { font-size: 16px; font-weight: 500; text-align: center; }

.legend { display: flex; justify-content: center; gap: 15px; margin-bottom: 20px; font-size: 13px; flex-wrap: wrap; }
.box { width: 16px; height: 16px; border-radius: 4px; display: inline-block; vertical-align: middle; margin-right: 5px; }
.date-header { background: linear-gradient(135deg, #2d5a27, #1e3a1a); color: white; padding: 12px 15px; border-radius: 12px; margin-bottom: 15px; box-shadow: 0 4px 15px rgba(0,0,0,0.1); display: flex; justify-content: space-between; align-items: center; }
.table-responsive { background: white; border-radius: 12px; box-shadow: 0 0 20px rgba(0,0,0,0.05); overflow-x: auto; margin-bottom: 20px; -webkit-overflow-scrolling: touch; }
table.index-table { width: 100%; border-collapse: collapse; min-width: 600px; table-layout: fixed; }
table.index-table th { background-color: #5c6bc0; color: white; padding: 10px 5px; font-weight: 500; font-size: 13px; }
table.index-table td { text-align: center; border: 1px solid #edf0f2; padding: 0; height: 60px; word-break: break-word; }
.slot-available { background-color: #28a745; }
.slot-pending { background-color: #ffc107; color: #333; font-size: 11px; font-weight: 500; padding: 4px !important; }
.slot-booked { background-color: #dc3545; color: white; font-size: 11px; padding: 4px !important; }
.btn-booking { text-decoration: none; color: white; display: flex; flex-direction: column; align-items: center; justify-content: center; width: 100%; height: 100%; padding: 5px; transition: 0.2s; }
.btn-booking:active { background-color: #218838; }
.btn-booking span { font-size: 14px; font-weight: 500; }
.btn-booking small { font-size: 9px !important; opacity: 0.9; }

@media (max-width: 600px) {
    body.index-body { padding: 5px; }
    .index-container { padding: 5px; }
    h2.index-title { font-size: 18px; }
    .legend { gap: 10px; font-size: 12px; }
    .date-header { font-size: 14px; padding: 10px; }
    table.index-table th { font-size: 11px; padding: 8px 2px; }
    table.index-table td { height: 55px; font-size: 11px; }
    .btn-booking span { font-size: 12px; }
    .btn-booking small { display: inline-block !important; font-size: 8px !important; padding: 1px 3px !important; } /* นำ "จองเลย" กลับมาและปรับขนาดให้เล็กลงบนมือถือ */
}

/* Styles from login.php */
body.login-body {
    font-family: 'Kanit', sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}
.login-container {
    width: 100%;
    max-width: 380px;
    padding: 20px;
}
.login-card {
    background: white;
    padding: 40px 30px;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    text-align: center;
}
.logo-area {
    font-size: 50px;
    margin-bottom: 10px;
}
.login-card h2 {
    margin: 0 0 10px 0;
    color: #2d5a27;
    font-weight: 500;
}
.login-card p {
    color: #777;
    font-size: 14px;
    margin-bottom: 30px;
}
.login-form-group {
    text-align: left;
    margin-bottom: 20px;
}
label.login-label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    color: #555;
}
input.login-input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 10px;
    box-sizing: border-box;
    font-family: 'Kanit';
    font-size: 16px;
    transition: 0.3s;
}
input.login-input:focus {
    border-color: #2d5a27;
    outline: none;
    box-shadow: 0 0 8px rgba(45, 90, 39, 0.1);
}
.btn-login {
    width: 100%;
    padding: 14px;
    background: #2d5a27;
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: 0.3s;
    margin-top: 10px;
}
.btn-login:hover {
    background: #1e3d1a;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(45, 90, 39, 0.2);
}
.error-msg {
    background: #fff0f0;
    color: #d32f2f;
    padding: 10px;
    border-radius: 8px;
    font-size: 14px;
    margin-bottom: 20px;
    border: 1px solid #ffcdd2;
}
.back-to-site {
    margin-top: 25px;
    display: block;
    text-decoration: none;
    color: #5c6bc0;
    font-size: 14px;
}

/* Styles from profile.php */
body.profile-body { font-family: 'Kanit', sans-serif; background-color: #f4f7f6; margin: 0; padding: 15px; color: #333; }
.profile-container { max-width: 500px; margin: 20px auto; }
.profile-login-card { background: white; padding: 30px; border-radius: 20px; box-shadow: 0 10px 25px rgba(0,0,0,0.05); text-align: center; }
.profile-input { width: 100%; padding: 12px; margin: 15px 0; border: 1px solid #ddd; border-radius: 10px; box-sizing: border-box; font-size: 16px; text-align: center; font-family: 'Kanit'; }
.profile-card {
    background: linear-gradient(135deg, #2d5a27, #5c6bc0);
    color: white;
    padding: 30px 20px;
    border-radius: 20px;
    text-align: center;
    margin-bottom: 25px;
    box-shadow: 0 10px 20px rgba(45, 90, 39, 0.2);
}
.points-badge { font-size: 3em; font-weight: bold; color: #ffeb3b; margin: 10px 0; text-shadow: 0 2px 4px rgba(0,0,0,0.2); }
.section-title { font-weight: 500; color: #2d5a27; margin-bottom: 15px; display: flex; align-items: center; gap: 8px; }
.history-item {
    background: white;
    padding: 15px;
    border-radius: 15px;
    margin-bottom: 12px;
    border-left: 6px solid #ccc;
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.status-paid { border-left-color: #28a745; }
.status-pending { border-left-color: #ffc107; }
.status-cancelled { border-left-color: #dc3545; }
.history-info b { font-size: 1.1em; color: #333; }
.history-info p { margin: 5px 0 0; font-size: 0.9em; color: #666; }
.status-text { font-size: 0.85em; padding: 4px 10px; border-radius: 20px; font-weight: 500; }
.btn-logout { display: block; text-align: center; margin-top: 30px; color: #999; text-decoration: none; font-size: 14px; }
.btn-back { display: block; text-align:center; margin-bottom: 20px; color: #2d5a27; text-decoration: none; font-weight: 500; }

/* Styles from manage_staff.php, manage_settings.php, manage_members.php */
body.manage-body { font-family: 'Kanit', sans-serif; background: #f4f7f6; padding: 20px; margin: 0; }
.manage-container { max-width: 1200px; margin: auto; }
.nav-bar { background: #2d5a27; color: white; padding: 15px; border-radius: 12px; margin-bottom: 25px; display: flex; justify-content: space-between; align-items: center; box-shadow: 0 4px 10px rgba(0,0,0,0.1); }
.nav-bar a { color: white; text-decoration: none; margin-left: 15px; font-size: 14px; }
.settings-layout { display: flex; gap: 25px; }
.settings-sidebar { width: 280px; flex-shrink: 0; }
.menu-list { background: white; border-radius: 15px; overflow: hidden; box-shadow: 0 4px 12px rgba(0,0,0,0.05); list-style: none; padding: 0; margin: 0; }
.menu-item { border-bottom: 1px solid #f0f0f0; }
.menu-item:last-child { border-bottom: none; }
.menu-link { display: flex; align-items: center; gap: 12px; padding: 15px 20px; text-decoration: none; color: #666; transition: 0.3s; }
.menu-link i { font-size: 18px; width: 25px; text-align: center; }
.menu-link:hover { background: #f8f9fa; color: #2d5a27; }
.menu-link.active { background: #eef2ed; color: #2d5a27; border-left: 4px solid #2d5a27; font-weight: 500; }
.settings-content { flex-grow: 1; overflow: hidden; }

/* Members Management Styling */
.manage-mobile-view { display: none; }
.manage-desktop-view { display: block; }

.member-mobile-card {
    background: white;
    border-radius: 15px;
    margin-bottom: 15px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    overflow: hidden;
    border-left: 5px solid #2d5a27;
}
.member-card-main {
    padding: 15px;
    display: flex;
    gap: 15px;
    align-items: center;
}
.member-icon {
    width: 50px;
    height: 50px;
    background: #eef2ed;
    color: #2d5a27;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}
.member-info { flex: 1; }
.member-name { font-weight: bold; font-size: 16px; color: #333; margin-bottom: 3px; }
.member-phone { font-size: 14px; color: #666; margin-bottom: 3px; }
.member-points { font-size: 13px; color: #2d5a27; font-weight: 500; }

.member-card-actions {
    display: flex;
    gap: 1px;
    background: #f0f0f0;
}
.btn-member-action {
    flex: 1;
    padding: 14px;
    text-align: center;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: 0.3s;
    color: white;
}
.btn-member-action.edit { background: #ffc107; color: #000; }
.btn-member-action.delete { background: #dc3545; color: #fff; }
.btn-member-action:active { opacity: 0.8; transform: scale(0.98); }

/* Management Responsive Adjustments */
@media (max-width: 992px) {
    .settings-layout { flex-direction: column; gap: 20px; }
    .settings-sidebar { width: 100%; }
    .menu-list { display: flex; overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: 12px; border: 1px solid #eee; }
    .menu-item { border-bottom: none; border-right: 1px solid #f0f0f0; flex-shrink: 0; }
    .menu-link { padding: 12px 15px; font-size: 13px; white-space: nowrap; flex-direction: column; gap: 5px; text-align: center; min-width: 100px; }
    .menu-link i { width: auto; font-size: 16px; }
    .menu-link.active { border-left: none; border-bottom: 3px solid #2d5a27; background: #fff; }
}

@media (max-width: 768px) {
    .manage-mobile-view { display: block; }
    .manage-desktop-view { display: none; }

    body.manage-body { padding: 10px; }

    .nav-bar { flex-direction: column; gap: 10px; text-align: center; border-radius: 10px; }
    .nav-bar div { display: flex; flex-wrap: wrap; justify-content: center; gap: 5px; }
    .nav-bar a { margin: 0 5px; font-size: 13px; }
    
    .table-card { padding: 15px; border-radius: 15px; }
    .card-header h3 { font-size: 16px; }

    /* Responsive Management Table to Cards */
    .manage-table thead { display: none; }
    .manage-table, .manage-table tbody, .manage-table tr, .manage-table td { display: block; width: 100%; }
    .manage-table tr { margin-bottom: 12px; border: 1px solid #eee; border-radius: 10px; padding: 10px; background: #fff; }
    .manage-table td { text-align: right; padding: 8px 10px; border-bottom: 1px solid #f9f9f9; position: relative; min-height: 40px; display: flex; justify-content: space-between; align-items: center; }
    .manage-table td:last-child { border-bottom: none; flex-direction: row; align-items: center; justify-content: flex-end; gap: 8px; margin-top: 5px; padding-top: 15px; }
    .manage-table td::before { content: attr(data-label); font-weight: bold; color: #666; font-size: 13px; text-align: left; }
    .manage-table td b { text-align: right; }
    
    .btn-edit-manage, .btn-delete-manage, .btn-save-manage { flex: 1; text-align: center; padding: 10px; }
}
.form-card { background: white; padding: 25px; border-radius: 20px; box-shadow: 0 4px 12px rgba(0,0,0,0.05); margin-bottom: 25px; }
.card-header { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; border-bottom: 2px solid #f0f0f0; padding-bottom: 15px; }
.card-header i { font-size: 22px; color: #2d5a27; }
.card-header h3 { margin: 0; color: #2d5a27; font-size: 18px; }

.form-group { margin-bottom: 20px; }
label { display: block; margin-bottom: 8px; font-weight: 500; color: #555; font-size: 14px; }
.input-group { position: relative; }
.input-group i { position: absolute; left: 12px; top: 14px; color: #aaa; }
.input-group input { width: 100%; padding: 12px 12px 12px 40px; border: 1px solid #ddd; border-radius: 10px; box-sizing: border-box; font-family: 'Kanit'; font-size: 16px; transition: 0.3s; }
.input-group input:focus { border-color: #2d5a27; outline: none; box-shadow: 0 0 0 3px rgba(45, 90, 39, 0.1); }

.btn-save { background: #2d5a27; color: white; border: none; padding: 15px 30px; border-radius: 10px; font-size: 16px; cursor: pointer; transition: 0.3s; width: 100%; font-weight: 500; margin-top: 10px; }
.btn-save:hover { background: #1e3d1a; transform: translateY(-2px); box-shadow: 0 5px 15px rgba(45, 90, 39, 0.2); }

.alert { padding: 15px; background: #e8f5e9; color: #2e7d32; border-radius: 10px; margin-bottom: 20px; border: 1px solid #c8e6c9; display: flex; align-items: center; gap: 10px; }

.input-text { width: 100%; padding: 10px; border: 1px solid #ddd; border-radius: 8px; font-family: 'Kanit'; font-size: 14px; }
.btn-add { background: #2d5a27; color: white; border: none; padding: 10px 20px; border-radius: 8px; cursor: pointer; transition: 0.3s; font-weight: 500; }
.btn-add:hover { background: #1e3d1a; }
.manage-table { width: 100%; border-collapse: collapse; }
.manage-table th, .manage-table td { padding: 12px; border-bottom: 1px solid #eee; text-align: left; font-size: 14px; }
.manage-table th { background: #f8f9fa; color: #666; font-weight: 500; }
.btn-save-manage { background: #28a745; color: white; border: none; padding: 6px 12px; border-radius: 5px; cursor: pointer; margin-right: 5px; font-family: 'Kanit'; font-size: 13px; }
.btn-delete-manage { background: #dc3545; color: white; border: none; padding: 6px 12px; border-radius: 5px; cursor: pointer; text-decoration: none; font-size: 13px; font-family: 'Kanit'; }
.btn-edit-manage { background: #ffc107; color: #000; border: none; padding: 6px 12px; border-radius: 5px; cursor: pointer; text-decoration: none; font-size: 13px; font-family: 'Kanit'; }
.btn-save-manage:hover { background: #218838; }
.btn-delete-manage:hover { background: #c82333; }
.btn-edit-manage:hover { background: #e0a800; }
.role-badge { padding: 2px 8px; border-radius: 10px; font-size: 11px; font-weight: bold; }
.role-admin { background: #fff3cd; color: #856404; }
.role-staff { background: #d1ecf1; color: #0c5460; }
.table-card { background: white; padding: 30px; border-radius: 20px; box-shadow: 0 4px 12px rgba(0,0,0,0.05); }
.alert-manage { padding: 15px; background: #e8f5e9; color: #2e7d32; border-radius: 10px; margin-bottom: 20px; border: 1px solid #c8e6c9; display: flex; align-items: center; gap: 10px; }

/* Styles from edit_member.php, edit_booking.php */
.edit-card { max-width: 450px; margin: 40px auto; background: white; padding: 30px; border-radius: 20px; box-shadow: 0 10px 25px rgba(0,0,0,0.1); }
.edit-container { max-width: 500px; margin: 30px auto; background: white; padding: 30px; border-radius: 20px; box-shadow: 0 10px 25px rgba(0,0,0,0.1); }
h3.edit-title { color: #2d5a27; text-align: center; margin-top: 0; margin-bottom: 25px; border-bottom: 2px solid #f0f0f0; padding-bottom: 15px; }
label.edit-label { display: block; margin-bottom: 8px; font-weight: 500; color: #555; font-size: 14px; }
input.edit-input, select.edit-select { width: 100%; padding: 12px; margin-bottom: 20px; border: 1px solid #ddd; border-radius: 10px; box-sizing: border-box; font-family: 'Kanit'; font-size: 16px; }
.btn-group { display: flex; gap: 10px; margin-top: 10px; }
.btn-save-edit { flex: 2; padding: 15px; background: #28a745; color: white; border: none; border-radius: 12px; font-size: 16px; font-weight: 500; cursor: pointer; transition: 0.3s; font-family: 'Kanit'; }
.btn-save-edit:hover { background: #218838; transform: translateY(-2px); box-shadow: 0 5px 15px rgba(40,167,69,0.3); }
.btn-cancel-edit { flex: 1; padding: 15px; background: #6c757d; color: white; text-align: center; text-decoration: none; border-radius: 12px; font-size: 16px; transition: 0.3s; font-family: 'Kanit'; }
.btn-cancel-edit:hover { background: #5a6268; }
.info-box { background: #eef2ff; padding: 10px; border-radius: 8px; font-size: 13px; color: #5c6bc0; margin-bottom: 20px; text-align: center; }

/* Styles from thankyou.php */
body.thankyou-body { background-color: #f4f7f6; display: flex; justify-content: center; align-items: center; min-height: 100vh; margin: 0; font-family: 'Kanit', sans-serif; }
.thankyou-card { background: white; padding: 40px 30px; border-radius: 25px; box-shadow: 0 15px 40px rgba(0,0,0,0.1); text-align: center; max-width: 420px; width: 90%; position: relative; overflow: hidden; }
.icon-success { width: 70px; height: 70px; background: #28a745; color: white; font-size: 40px; line-height: 70px; border-radius: 50%; margin: 0 auto 20px; display: block; box-shadow: 0 5px 15px rgba(40,167,69,0.3); }
h2.thankyou-title { color: #2d5a27; margin: 0 0 10px 0; font-size: 24px; }
p.thankyou-p { color: #666; line-height: 1.6; margin-bottom: 25px; }
.line-btn { display: block; background-color: #00b900; color: white; padding: 18px; border-radius: 15px; text-decoration: none; font-weight: 500; font-size: 18px; transition: 0.3s; box-shadow: 0 5px 15px rgba(0,185,0,0.2); margin-bottom: 20px; }
.line-btn:hover { background-color: #009900; transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,185,0,0.3); }
.progress-container { width: 100%; height: 6px; background-color: #eee; border-radius: 10px; margin: 20px 0 10px; overflow: hidden; }
.progress-bar { height: 100%; width: 0%; background: linear-gradient(90deg, #28a745, #00b900); border-radius: 10px; transition: width 1s linear; }
.timer-text { font-size: 14px; color: #999; }
.back-home { color: #888; font-size: 14px; text-decoration: none; display: inline-block; margin-top: 15px; border-bottom: 1px solid transparent; transition: 0.3s; }
.back-home:hover { color: #2d5a27; border-bottom-color: #2d5a27; }
.booking-summary { background: #f9f9f9; padding: 15px; border-radius: 15px; text-align: left; margin-bottom: 25px; border-left: 4px solid #2d5a27; }
.summary-item { font-size: 14px; color: #555; margin-bottom: 5px; }
.summary-label { font-weight: 500; color: #333; }
