* { box-sizing: border-box; }
body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: #1f2937;
    background: #f5f5f5;
    line-height: 1.6;
}
a { color: inherit; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.main-section { padding: 2rem 0 3rem; }

/* Public Header */
.public-header { background: #2563eb; color: #fff; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); }
.public-header-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 0;
}
.brand { margin: 0; font-size: 1.5rem; font-weight: 700; }
.brand a { text-decoration: none; color: inherit; }
.public-nav { display: flex; gap: 0.5rem; align-items: center; flex-wrap: wrap; justify-content: center; }
.public-nav a {
    text-decoration: none;
    color: #fff;
    padding: 0.45rem 0.9rem;
    border-radius: 6px;
    transition: background-color 0.2s;
}
.public-nav a:hover { background: rgba(255, 255, 255, 0.12); }

/* Hero and cards */
.hero {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: #fff;
    padding: 3.5rem 0;
    text-align: center;
}
.hero h2 { margin: 0 0 0.8rem; font-size: 2.2rem; }
.hero p { margin: 0; font-size: 1.1rem; opacity: 0.95; }
.section-title { margin: 0 0 1.2rem; font-size: 1.65rem; }

.card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    padding: 1.4rem;
    margin-bottom: 1.2rem;
}
.card-title { margin: 0 0 1rem; font-size: 1.25rem; font-weight: 600; }
.room-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1rem; margin-bottom: 1rem; }
.room-card { border: 1px solid #e5e7eb; border-radius: 8px; padding: 1rem; background: #fff; }
.room-card h3 { margin: 0 0 0.35rem; }
.room-meta { color: #6b7280; font-size: 0.92rem; }
.room-price { margin-top: 0.55rem; color: #2563eb; font-weight: 700; }
.room-desc { color: #4b5563; font-size: 0.9rem; margin-top: 0.4rem; }

.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; }
.feature-card { text-align: center; padding: 1.1rem; border-radius: 8px; background: #fff; border: 1px solid #e5e7eb; }
.feature-icon { font-size: 1.9rem; display: block; margin-bottom: 0.35rem; }

/* Form */
.form-grid { display: grid; gap: 0.9rem; }
.form-grid.two-col { grid-template-columns: repeat(2, minmax(0, 1fr)); }
label, fieldset { display: grid; gap: 0.4rem; font-size: 0.95rem; }
fieldset {
    border: 1px solid #dbe2ea;
    border-radius: 8px;
    padding: 0.7rem 0.8rem;
}
legend { padding: 0 0.4rem; color: #374151; }
.checkbox-group { display: grid; gap: 0.35rem; }
.checkbox-inline {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.92rem;
}
input, select, textarea, button {
    font-size: 0.95rem;
    padding: 0.65rem 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 6px;
}
input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.btn, .link-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: none;
    border-radius: 6px;
    padding: 0.65rem 0.95rem;
    text-decoration: none;
    transition: all 0.2s;
}
.btn-primary, .link-button { background: #2563eb; color: #fff; }
.btn-primary:hover, .link-button:hover { background: #1d4ed8; }
.btn-outline { background: transparent; color: #2563eb; border: 2px solid #2563eb; }
.btn-outline:hover { background: #2563eb; color: #fff; }
.btn-danger, .link-button.danger { background: #dc2626; color: #fff; }
.btn-danger:hover, .link-button.danger:hover { background: #b91c1c; }
.btn-block { width: 100%; }

.notice {
    background: #dcfce7;
    color: #166534;
    padding: 0.75rem;
    border-radius: 6px;
    border-left: 4px solid #10b981;
    margin-bottom: 1rem;
}
.error {
    background: #fee2e2;
    color: #991b1b;
    padding: 0.75rem;
    border-radius: 6px;
    border-left: 4px solid #ef4444;
    margin-bottom: 1rem;
}

/* Footer */
.public-footer {
    margin-top: 2rem;
    background: #1e40af;
    color: #fff;
    padding: 1.5rem 0;
    text-align: center;
}
.public-footer a { color: #fff; text-decoration: none; margin: 0 0.4rem; font-size: 0.9rem; }

/* Staff/Admin layout */
.staff-header {
    background: #2c3e50;
    color: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.staff-header-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0.9rem 1.2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
}
.staff-header h1 { margin: 0; font-size: 1.35rem; }
.staff-header-links { display: flex; gap: 0.5rem; flex-wrap: wrap; justify-content: center; }

.staff-layout { display: flex; max-width: 1400px; margin: 0 auto; min-height: calc(100vh - 70px); }
.staff-sidebar {
    width: 240px;
    background: #fff;
    box-shadow: 2px 0 4px rgba(0, 0, 0, 0.06);
    padding: 1.2rem 0;
}
.staff-sidebar .group-title {
    padding: 0.45rem 1.2rem;
    font-size: 0.75rem;
    font-weight: 700;
    color: #7f8c8d;
    text-transform: uppercase;
}
.staff-sidebar a {
    display: block;
    padding: 0.6rem 1.2rem;
    text-decoration: none;
    color: #334155;
    border-left: 3px solid transparent;
}
.staff-sidebar a:hover, .staff-sidebar a.active {
    background: #ecf0f1;
    color: #3498db;
    border-left-color: #3498db;
}
.staff-main { flex: 1; padding: 1.5rem; }
.page-title { margin: 0; font-size: 1.8rem; }
.page-description { margin: 0.2rem 0 0; color: #6b7280; }

/* Dashboard mock blocks */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0.9rem; margin-bottom: 1rem; }
.stat-box {
    color: #fff;
    border-radius: 10px;
    padding: 1rem;
    min-height: 120px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.stat-box .num { font-size: 2rem; font-weight: 700; line-height: 1; margin-top: 0.35rem; }
.bg1 { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); }
.bg2 { background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%); }
.bg3 { background: linear-gradient(135deg, #fa709a 0%, #fee140 100%); }
.bg4 { background: linear-gradient(135deg, #30cfd0 0%, #330867 100%); }

.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; background: #fff; }
th, td {
    border-bottom: 1px solid #e5e7eb;
    padding: 0.6rem;
    text-align: left;
    vertical-align: top;
    font-size: 0.82rem;
}
th { background: #f9fafb; color: #334155; }
.inline-form { display: grid; gap: 0.4rem; min-width: 210px; }

.status {
    border-radius: 999px;
    padding: 0.2rem 0.55rem;
    font-size: 0.72rem;
    color: #fff;
    display: inline-block;
}
.status-pending { background: #f59e0b; }
.status-approved { background: #10b981; }
.status-rejected, .status-cancelled { background: #ef4444; }
.two-column-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 0.9rem;
}
.dash-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.65rem;
}
.dash-list li {
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    padding: 0.6rem 0.7rem;
}
.quick-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.7rem;
}

.slot-list { margin: 0.35rem 0 0; padding-left: 1.1rem; color: #4b5563; font-size: 0.9rem; }
.availability-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 0.8rem; }
.availability-card { border: 1px solid #e5e7eb; border-radius: 8px; padding: 0.9rem; background: #fff; }
.badge-ok { display: inline-block; background: #dcfce7; color: #166534; border-radius: 999px; padding: 0.2rem 0.55rem; font-size: 0.75rem; font-weight: 600; }
.badge-ng { display: inline-block; background: #fee2e2; color: #991b1b; border-radius: 999px; padding: 0.2rem 0.55rem; font-size: 0.75rem; font-weight: 600; }
.equipment-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 0.5rem; }
.equipment-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    padding: 0.45rem 0.55rem;
    gap: 0.5rem;
}
.equipment-item small { color: #6b7280; }
.equipment-item input { width: 84px; }

@media (max-width: 900px) {
    .form-grid.two-col { grid-template-columns: 1fr; }
    .staff-layout { display: block; }
    .staff-sidebar { width: 100%; padding: 0.7rem 0; }
    .staff-main { padding: 1rem; }
    .hero h2 { font-size: 1.8rem; }
}

