* {
    box-sizing: border-box;
}
body {
    margin: 0;
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: linear-gradient(180deg, #f2f7ff 0%, #eaf2ff 100%);
    color: #1f2937;
}
header.topbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 24px 32px;
    background: #1d4ed8;
    color: #fff;
}
.brand {
    font-size: 1.2rem;
    font-weight: 700;
}
.nav-bar {
    flex: 1 1 auto;
}
.nav-menu {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 0;
    padding: 0;
}
.nav-menu a {
    color: rgba(255,255,255,0.9);
    text-decoration: none;
    padding: 10px 16px;
    border-radius: 9999px;
    transition: background 0.2s ease, color 0.2s ease;
}
.nav-menu a:hover,
.nav-menu a.active {
    background: rgba(255,255,255,0.18);
    color: #fff;
}
.user-panel {
    font-size: 0.95rem;
}
.user-panel a.logout {
    color: #ffedd5;
    text-decoration: underline;
}
.container {
    width: min(1200px, calc(100% - 32px));
    margin: 24px auto 40px;
    background: #ffffff;
    border-radius: 24px;
    box-shadow: 0 32px 80px rgba(15, 23, 42, 0.08);
    padding: 32px;
}
.page-header {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
    margin-bottom: 28px;
}
.page-header h2 {
    margin: 0;
    font-size: clamp(1.8rem, 2vw, 2.4rem);
}
.page-header p {
    margin: 0;
    color: #4b5563;
}
.section-card,
.card {
    border-radius: 24px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    box-shadow: 0 12px 40px rgba(15, 23, 42, 0.06);
    padding: 24px;
}
.login-card {
    max-width: 420px;
    margin: 0 auto;
}
.login-top {
    margin-bottom: 24px;
    text-align: center;
}
.login-top h3 {
    margin: 0 0 8px;
    font-size: 1.3rem;
}
.eyebrow {
    display: inline-block;
    margin-bottom: 12px;
    font-size: 0.85rem;
    color: #2563eb;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.login-form label {
    margin-bottom: 14px;
}
.login-form input {
    width: 100%;
    max-width: 100%;
}
button,
input[type="submit"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: none;
    border-radius: 9999px;
    padding: 12px 20px;
    cursor: pointer;
    background: #1d4ed8;
    color: #fff;
    font-weight: 600;
    transition: transform 0.2s ease, background 0.2s ease;
}
button:hover,
input[type="submit"]:hover {
    transform: translateY(-1px);
    background: #2563eb;
}
.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}
.filter-form {
    margin-bottom: 20px;
}
.filter-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, auto));
    gap: 18px;
    align-items: end;
}
.filter-row label {
    margin-bottom: 0;
}
.card strong {
    display: block;
    margin-top: 10px;
    font-size: 2rem;
    color: #1d4ed8;
}
button,
input[type="submit"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: none;
    border-radius: 9999px;
    padding: 12px 20px;
    cursor: pointer;
    background: #1d4ed8;
    color: #fff;
    font-weight: 600;
    transition: transform 0.2s ease, background 0.2s ease;
}
button:hover,
input[type="submit"]:hover {
    transform: translateY(-1px);
    background: #2563eb;
}
label {
    display: block;
    margin-bottom: 16px;
    font-weight: 600;
    color: #334155;
}
input[type="text"],
input[type="number"],
input[type="date"],
select,
textarea {
    width: 100%;
    padding: 14px 16px;
    border-radius: 16px;
    border: 1px solid #d1d5db;
    background: #f8fafc;
    font-size: 1rem;
    color: #111827;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
input:focus,
select:focus,
textarea:focus {
    outline: none;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.12);
    border-color: #2563eb;
}
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    border-radius: 18px;
    overflow: hidden;
}
table th,
table td {
    padding: 16px 18px;
    text-align: left;
}
table thead {
    background: #eef2ff;
}
table th {
    font-weight: 700;
    color: #1e3a8a;
}
table tr {
    border-bottom: 1px solid #e2e8f0;
}
table tr:last-child {
    border-bottom: none;
}
.success,
.error {
    border-radius: 18px;
    padding: 16px;
    margin-bottom: 24px;
    font-weight: 600;
}
.success {
    color: #065f46;
    background: #ecfdf5;
}
.error {
    color: #7f1d1d;
    background: #fef2f2;
}
.room-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
    gap: 12px;
    margin-top: 16px;
}
.room-pill {
    padding: 14px 16px;
    border-radius: 16px;
    font-weight: 700;
    text-align: center;
}
.room-pill.empty {
    background: #e0f2fe;
    color: #0c4a6e;
}
.room-pill.occupied {
    background: #fee2e2;
    color: #991b1b;
}
.room-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 18px;
    margin-bottom: 18px;
}
.muted {
    color: #64748b;
    font-size: 0.95rem;
}
.link-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 18px;
    border-radius: 9999px;
    background: #1d4ed8;
    color: #fff;
    text-decoration: none;
}
.footer {
    text-align: center;
    padding: 24px 16px 40px;
    color: #64748b;
}
@media (max-width: 720px) {
    header.topbar {
        flex-direction: column;
        align-items: flex-start;
    }
    .nav-menu {
        flex-wrap: wrap;
    }
}

.btn-print {
    background: #2ecc71;
    color: white;
    padding: 6px 10px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 12px;
}

.btn-print:hover {
    background: #27ae60;
}