:root {
    --primary: #0066cc;
    --secondary: #00a8e8;
    --dark: #333;
    --light: #f4f7f9;
    --white: #ffffff;
    --gray: #999;
    --red: #ff4d4d;
    --green: #2ecc71;
    --border: #e1e8ed;
    --shadow: 0 4px 12px rgba(0,0,0,0.08);
}

* { margin:0; padding:0; box-sizing:border-box; }
body { font-family: 'Pretendard', sans-serif; color: var(--dark); line-height: 1.6; background: #fff; }

header { background: #fff; border-bottom: 1px solid var(--border); padding: 1rem 5%; position: sticky; top:0; z-index: 100; }
nav { display: flex; justify-content: space-between; align-items: center; }
.logo { font-size: 1.5rem; font-weight: 800; color: var(--primary); text-decoration: none; }
nav ul { display: flex; list-style: none; gap: 1.5rem; }
nav a { text-decoration: none; color: var(--dark); font-weight: 600; font-size: 0.95rem; }
nav a:hover { color: var(--primary); }

section { padding: 4rem 5%; }
.section-title { text-align: center; margin-bottom: 3rem; }
.section-title h2 { font-size: 2.2rem; color: var(--primary); margin-bottom: 0.5rem; }

/* Calendar Styles */
.reservation-container { max-width: 1000px; margin: 0 auto; display: flex; flex-direction: column; gap: 2rem; }
.calendar-wrapper { background: var(--white); border: 1px solid var(--border); border-radius: 12px; padding: 1.5rem; box-shadow: var(--shadow); }
.calendar-controls { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.5rem; }
.calendar-controls button { background: none; border: 1px solid var(--border); padding: 0.5rem 1rem; border-radius: 6px; cursor: pointer; }
.calendar-weekdays { display: grid; grid-template-columns: repeat(7, 1fr); text-align: center; font-weight: bold; padding-bottom: 1rem; border-bottom: 1px solid var(--light); }
.calendar-weekdays .sun { color: var(--red); }
.calendar-weekdays .sat { color: var(--primary); }

.calendar-days-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; background: var(--border); border: 1px solid var(--border); }
.day-cell { background: #fff; min-height: 100px; padding: 0.5rem; display: flex; flex-direction: column; justify-content: space-between; cursor: pointer; transition: 0.2s; }
.day-cell:hover:not(.disabled) { background: var(--light); }
.day-cell.active { border: 2px solid var(--primary); background: #eef6ff; }
.day-cell.disabled { cursor: not-allowed; background: #f9f9f9; }
.day-num { font-weight: bold; font-size: 1.1rem; }
.day-status { font-size: 0.75rem; padding: 2px 6px; border-radius: 4px; text-align: center; align-self: flex-start; }
.status.avail { background: #e8f5e9; color: #2e7d32; }
.status.full { background: #ffebee; color: #c62828; }
.status.past { background: #f5f5f5; color: #9e9e9e; }

.calendar-legend { display: flex; gap: 1rem; margin-top: 1rem; font-size: 0.85rem; justify-content: flex-end; }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 4px; }
.dot.avail { background: #2ecc71; }
.dot.full { background: #ff4d4d; }

/* Booking Form */
.booking-form-wrapper { animation: fadeIn 0.4s ease-out; }
.form-card { background: var(--white); border: 1px solid var(--border); border-radius: 12px; padding: 2rem; box-shadow: var(--shadow); max-width: 600px; margin: 0 auto; }
.form-card h3 { margin-bottom: 1.5rem; color: var(--primary); border-bottom: 2px solid var(--light); padding-bottom: 0.5rem; }

.input-group { margin-bottom: 1.2rem; }
.input-group label { display: block; margin-bottom: 0.4rem; font-weight: 600; font-size: 0.9rem; }
.input-group input, .input-group select { width: 100%; padding: 0.75rem; border: 1px solid var(--border); border-radius: 6px; font-size: 1rem; }
.submit-booking-btn { width: 100%; padding: 1rem; background: var(--primary); color: #fff; border: none; border-radius: 6px; font-weight: 700; font-size: 1.1rem; cursor: pointer; transition: 0.3s; }
.submit-booking-btn:hover { background: var(--secondary); }

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

footer { background: #222; color: #fff; padding: 3rem 5%; text-align: center; margin-top: 4rem; }

/* Mobile */
@media (max-width: 768px) {
    nav ul { display: none; }
    .day-cell { min-height: 70px; padding: 0.3rem; }
    .day-num { font-size: 0.9rem; }
    .day-status { font-size: 0.6rem; padding: 1px 3px; }
    section { padding: 2rem 3%; }
    
    /* Admin Mobile */
    .admin-container { flex-direction: column; }
    .admin-sidebar { width: 100%; height: auto; padding: 1rem; }
    .admin-content { padding: 1rem; }
    .admin-table { font-size: 0.8rem; }
}

/* --- Admin Dashboard Styles --- */
.admin-body { background: #f0f2f5; }
.admin-container { display: flex; min-height: 100vh; }

/* Sidebar */
.admin-sidebar { width: 250px; background: #2c3e50; color: #fff; padding: 2rem; display: flex; flex-direction: column; }
.sidebar-header { margin-bottom: 3rem; text-align: center; }
.sidebar-header h2 { color: #fff; margin-bottom: 0.5rem; }
.sidebar-menu { list-style: none; }
.sidebar-menu li { margin-bottom: 1rem; }
.sidebar-menu a { color: #bdc3c7; text-decoration: none; display: block; padding: 0.8rem; border-radius: 6px; transition: 0.3s; }
.sidebar-menu a:hover, .sidebar-menu li.active a { background: var(--primary); color: #fff; }
.sidebar-menu i { width: 25px; }

/* Main Content */
.admin-content { flex: 1; padding: 2rem 3rem; overflow-y: auto; }
.admin-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 2rem; background: #fff; padding: 1.5rem; border-radius: 8px; box-shadow: var(--shadow); }
.dashboard-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.5rem; margin-bottom: 2rem; }
.stat-card { background: #fff; padding: 1.5rem; border-radius: 8px; box-shadow: var(--shadow); text-align: center; }
.stat-card h3 { font-size: 0.9rem; color: var(--gray); margin-bottom: 0.5rem; }
.stat-card p { font-size: 2rem; font-weight: bold; color: var(--dark); }
.stat-card.pending p { color: var(--accent-color); }
.stat-card.confirmed p { color: var(--green); }

/* Admin Table */
.admin-table-wrapper { background: #fff; padding: 2rem; border-radius: 8px; box-shadow: var(--shadow); }
.table-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.5rem; }
.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th, .admin-table td { padding: 1rem; text-align: left; border-bottom: 1px solid #eee; }
.admin-table th { background: #f8f9fa; font-weight: 600; color: #555; }
.admin-table tr:hover { background: #f8f9fa; }

/* Status Badges */
.badge { padding: 5px 10px; border-radius: 20px; font-size: 0.8rem; font-weight: 600; }
.badge.pending { background: #fff3cd; color: #856404; }
.badge.confirmed { background: #d4edda; color: #155724; }
.badge.cancelled { background: #f8d7da; color: #721c24; }

/* Admin Buttons */
.btn-sm { padding: 5px 10px; font-size: 0.85rem; border: none; border-radius: 4px; cursor: pointer; margin-right: 5px; }
.btn-approve { background: var(--green); color: #fff; }
.btn-cancel { background: var(--red); color: #fff; }
.btn-delete { background: #999; color: #fff; }
.no-data { text-align: center; padding: 3rem; color: var(--gray); }
