/* Room reservations — shared UI */
.rooms-page {
    max-width: 1180px;
    margin: 0 auto 2.5rem;
    padding: 0 0.25rem;
}

.rooms-page--public {
    max-width: 820px;
    margin: 2rem auto 3rem;
    padding: 0 1rem;
}

.rooms-page__hero {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.25rem;
    padding-bottom: 1.25rem;
    border-bottom: 2px solid #e2e8f0;
}

.rooms-page__eyebrow {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #64748b;
    margin: 0 0 0.35rem;
}

.rooms-page__title {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--brand-button-bg, #22333b);
    margin: 0 0 0.25rem;
}

.rooms-page__subtitle {
    margin: 0;
    color: #64748b;
    font-size: 0.95rem;
}

.rooms-page__hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

/* Sub-navigation */
.rooms-subnav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-bottom: 1.25rem;
    padding: 0.5rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px !important;
}

.rooms-subnav__link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.45rem 0.85rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: #475569;
    text-decoration: none;
    border-radius: 8px !important;
    transition: background 0.15s, color 0.15s;
}

.rooms-subnav__link:hover {
    background: #fff;
    color: var(--brand-button-bg, #22333b);
}

.rooms-subnav__link.active {
    background: var(--brand-button-bg, #22333b);
    color: #fff;
}

.rooms-subnav__badge {
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.1rem 0.45rem;
    background: #fbbf24;
    color: #78350f;
    border-radius: 999px !important;
}

.rooms-subnav__link.active .rooms-subnav__badge {
    background: #fff;
    color: var(--brand-button-bg, #22333b);
}

/* Cards & panels */
.rooms-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px !important;
    box-shadow: 0 2px 12px rgba(15, 23, 42, 0.06);
    padding: 1.25rem;
    margin-bottom: 1rem;
}

.rooms-card__title {
    font-size: 1rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 1rem;
}

.rooms-card--flush-table {
    padding: 0;
    overflow: hidden;
}

.rooms-card--flush-table .table {
    margin: 0;
}

.rooms-card--flush-table .table thead th {
    background: #f8fafc;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #64748b;
    border-bottom: 1px solid #e2e8f0;
}

/* Stat chips */
.rooms-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.rooms-stat {
    flex: 1 1 140px;
    min-width: 120px;
    padding: 0.85rem 1rem;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px !important;
}

.rooms-stat__value {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--brand-button-bg, #22333b);
    line-height: 1.2;
}

.rooms-stat__label {
    font-size: 0.75rem;
    color: #64748b;
    margin-top: 0.15rem;
}

/* Room grid (manage) */
.rooms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1rem;
}

.rooms-room-card {
    border: 1px solid #e2e8f0;
    border-radius: 12px !important;
    padding: 1.15rem;
    background: #fff;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    height: 100%;
    transition: box-shadow 0.15s;
}

.rooms-room-card:hover {
    box-shadow: 0 6px 20px rgba(15, 23, 42, 0.08);
}

.rooms-room-card__name {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
}

.rooms-room-card__desc {
    font-size: 0.875rem;
    color: #64748b;
    margin: 0;
    flex: 1;
}

.rooms-room-card__meta {
    font-size: 0.8rem;
    font-weight: 600;
    color: #0369a1;
    background: #e0f2fe;
    display: inline-block;
    padding: 0.2rem 0.55rem;
    border-radius: 6px !important;
    width: fit-content;
}

.rooms-room-card__actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.25rem;
}

/* Badges */
.rooms-badge {
    display: inline-block;
    padding: 0.25rem 0.6rem;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 999px !important;
}

.rooms-badge--approved { background: #dcfce7; color: #166534; }
.rooms-badge--pending { background: #fef3c7; color: #92400e; }
.rooms-badge--rejected { background: #fee2e2; color: #991b1b; }
.rooms-badge--created { background: #dbeafe; color: #1e40af; }
.rooms-badge--cancelled { background: #fee2e2; color: #991b1b; }
.rooms-badge--muted { background: #f1f5f9; color: #475569; }

/* Table row states */
.rooms-row--past {
    background: #fef2f2 !important;
}

.rooms-row--past td {
    color: #64748b;
}

/* Buttons */
.rooms-btn {
    font-weight: 600;
    font-size: 0.875rem;
    padding: 0.45rem 1rem;
    border-radius: 8px !important;
    border: none;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    cursor: pointer;
}

.rooms-btn--primary {
    background: var(--brand-button-bg, #22333b);
    color: #fff;
}

.rooms-btn--primary:hover {
    background: var(--brand-button-hover-bg, #ffb845);
    color: var(--brand-button-hover-text, #22333b);
}

.rooms-btn--outline {
    background: #fff;
    color: var(--brand-button-bg, #22333b);
    border: 1px solid #cbd5e1;
}

.rooms-btn--outline:hover {
    background: #f8fafc;
}

.rooms-btn--success {
    background: #437057;
    color: #fff;
}

.rooms-btn--success:hover {
    background: #2f5249;
    color: #fff;
}

.rooms-btn--danger {
    background: #932c27;
    color: #fff;
}

.rooms-btn--danger:hover {
    background: #722323;
    color: #fff;
}

.rooms-btn--warning {
    background: #f59e0b;
    color: #1e293b;
}

.rooms-btn--sm {
    font-size: 0.8rem;
    padding: 0.3rem 0.65rem;
}

/* Forms */
.rooms-form .form-label {
    font-weight: 600;
    font-size: 0.875rem;
    color: #334155;
}

.rooms-form .form-control,
.rooms-form .form-select {
    border: 1px solid #cbd5e1;
    border-radius: 8px !important;
    padding: 0.5rem 0.75rem;
}

.rooms-form .form-control:focus,
.rooms-form .form-select:focus {
    border-color: var(--brand-button-bg, #22333b);
    box-shadow: 0 0 0 3px rgba(34, 51, 59, 0.1);
}

.rooms-form-section {
    margin-bottom: 1.25rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px dashed #e2e8f0;
}

.rooms-form-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.rooms-form-section__title {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--brand-button-bg, #22333b);
    margin: 0 0 0.75rem;
}

/* Detail list */
.rooms-detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}

.rooms-detail-item dt {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #64748b;
    margin-bottom: 0.2rem;
}

.rooms-detail-item dd {
    margin: 0;
    font-size: 0.95rem;
    color: #1e293b;
}

.rooms-student-list {
    margin: 0.5rem 0 0;
    padding-left: 1.15rem;
}

.rooms-student-list li {
    margin-bottom: 0.2rem;
}

.rooms-empty {
    text-align: center;
    padding: 2.5rem 1rem;
    color: #64748b;
}

.rooms-empty__icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

/* Public booking */
.rooms-book-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px !important;
    box-shadow: 0 4px 24px rgba(15, 23, 42, 0.08);
    padding: 1.75rem;
}

.rooms-book-aside {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px !important;
    padding: 1.25rem;
    font-size: 0.9rem;
    color: #475569;
}

.rooms-book-aside h3 {
    font-size: 1rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 0.75rem;
}

.rooms-book-aside ul {
    margin: 0;
    padding-left: 1.1rem;
}

.rooms-book-aside li {
    margin-bottom: 0.35rem;
}

@media (max-width: 768px) {
    .rooms-page__hero {
        flex-direction: column;
    }

    .rooms-page__hero-actions {
        width: 100%;
    }

    .rooms-page__hero-actions .rooms-btn {
        flex: 1;
    }

    .rooms-subnav {
        flex-direction: column;
    }

    .rooms-subnav__link {
        width: 100%;
    }
}
