/* RoomPortal platform master login and operations dashboards */

.platform-login-shell {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.platform-login-card {
    width: 100%;
    max-width: 460px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 1.5rem;
    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.08);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.platform-input {
    width: 100%;
    height: 3.5rem;
    padding: 0 1rem;
    border: 2px solid #d1d5db;
    border-radius: 0.85rem;
    outline: none;
}

.platform-input:focus {
    border-color: #6366f1;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.12);
}

.platform-submit-btn {
    margin-top: 0.5rem;
    width: 100%;
    height: 3.5rem;
    border: 0;
    border-radius: 1rem;
    background: #4f46e5;
    color: #fff;
    font-size: 1rem;
    font-weight: 800;
    cursor: pointer;
}

.platform-submit-btn:hover {
    background: #4338ca;
}

.platform-ops-page {
    padding-bottom: 2rem;
}

.platform-status-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.45rem 0.9rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.platform-status-pill--healthy {
    background: #dcfce7;
    color: #166534;
}

.platform-status-pill--attention {
    background: #fef9c3;
    color: #854d0e;
}

.platform-status-pill--degraded {
    background: #fee2e2;
    color: #991b1b;
}

.ops-card,
.ops-panel {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 1.25rem;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}

.ops-card {
    padding: 1.25rem 1.5rem;
}

.ops-card__label,
.ops-panel__title {
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #64748b;
}

.ops-card__value {
    margin-top: 0.35rem;
    font-size: 2rem;
    line-height: 1.1;
    font-weight: 800;
    color: #0f172a;
}

.ops-card__hint {
    margin-top: 0.35rem;
    font-size: 0.85rem;
    color: #94a3b8;
}

.ops-panel {
    padding: 1.5rem;
}

.ops-panel__title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    font-size: 0.95rem;
    color: #334155;
}

.ops-dl {
    display: grid;
    gap: 0.75rem;
}

.ops-dl > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.ops-dl dt {
    color: #64748b;
    font-size: 0.92rem;
}

.ops-dl dd {
    margin: 0;
    font-weight: 700;
    color: #0f172a;
}

.ops-mini-stat {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    padding: 0.9rem 1rem;
}

.ops-mini-stat span {
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #64748b;
}

.ops-mini-stat strong {
    display: block;
    margin-top: 0.35rem;
    font-size: 1.35rem;
    color: #0f172a;
}

.hotel-card__actions {
    display: grid;
    gap: 0.75rem;
}

.hotel-card__btn {
    display: block;
    width: 100%;
    text-align: center;
    padding: 0.75rem 1rem;
    border-radius: 0.85rem;
    font-weight: 800;
    transition: all 0.2s ease;
}

.hotel-card__btn--primary {
    background: #0f172a;
    color: #fff;
}

.hotel-card__btn--primary:hover {
    background: #4f46e5;
}

.hotel-card__btn--secondary {
    background: #eef2ff;
    color: #4338ca;
    border: 1px solid #c7d2fe;
}

.hotel-card__btn--secondary:hover {
    background: #e0e7ff;
}

.ops-panel__intro {
    color: #64748b;
    font-size: 0.9rem;
    margin: 0 0 1.25rem;
    line-height: 1.5;
}

.ops-inline-link {
    color: #4f46e5;
    font-weight: 700;
    text-decoration: underline;
}

.ops-alert {
    border-radius: 0.75rem;
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.ops-alert--success {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.ops-alert--error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.ops-admin-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 1024px) {
    .ops-admin-grid {
        grid-template-columns: 1.2fr 1fr;
    }
}

.ops-subtitle {
    font-size: 0.95rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 0.75rem;
}

.ops-admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

.ops-admin-table th,
.ops-admin-table td {
    text-align: left;
    padding: 0.65rem 0.5rem;
    border-bottom: 1px solid #e2e8f0;
}

.ops-admin-table th {
    color: #64748b;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.ops-admin-actions {
    text-align: right;
    white-space: nowrap;
}

.ops-admin-form {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.ops-field {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #334155;
}

.ops-field input {
    height: 2.75rem;
    padding: 0 0.85rem;
    border: 1px solid #cbd5e1;
    border-radius: 0.65rem;
    font-weight: 500;
}

.ops-field input:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

.ops-field textarea {
    min-height: 5.5rem;
    padding: 0.65rem 0.85rem;
    border: 1px solid #cbd5e1;
    border-radius: 0.65rem;
    font-weight: 500;
    resize: vertical;
}

.ops-field textarea:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

.ops-toggle-field {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: #334155;
    font-size: 0.9rem;
    font-weight: 700;
}

.ops-toggle-field input[type="checkbox"] {
    width: 1rem;
    height: 1rem;
}

.ops-switch-field {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
    color: #334155;
    font-size: 0.9rem;
    font-weight: 700;
}

.ops-switch {
    position: relative;
    width: 2.85rem;
    height: 1.65rem;
    flex: 0 0 auto;
}

.ops-switch-input {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    cursor: pointer;
}

.ops-switch-slider {
    position: absolute;
    inset: 0;
    border-radius: 999px;
    background: #cbd5e1;
    transition: background-color 0.18s ease;
}

.ops-switch-slider::before {
    content: "";
    position: absolute;
    width: 1.3rem;
    height: 1.3rem;
    top: 0.175rem;
    left: 0.175rem;
    border-radius: 999px;
    background: #fff;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.25);
    transition: transform 0.18s ease;
}

.ops-switch-input:checked + .ops-switch-slider {
    background: #4f46e5;
}

.ops-switch-input:checked + .ops-switch-slider::before {
    transform: translateX(1.2rem);
}

.ops-switch-input:focus-visible + .ops-switch-slider {
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.25);
}

.ops-field-hint {
    font-weight: 500;
    color: #64748b;
}

.ops-btn-primary {
    margin-top: 0.25rem;
    height: 2.75rem;
    border: 0;
    border-radius: 0.65rem;
    background: #4f46e5;
    color: #fff;
    font-weight: 800;
    cursor: pointer;
}

.ops-btn-primary:hover {
    background: #4338ca;
}

.ops-btn-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.ops-btn-secondary {
    margin-top: 0.25rem;
    min-height: 2.75rem;
    border: 1px solid #cbd5e1;
    border-radius: 0.65rem;
    background: #fff;
    color: #334155;
    font-weight: 700;
    cursor: pointer;
    padding: 0 0.9rem;
}

.ops-btn-secondary:hover {
    background: #f8fafc;
    border-color: #94a3b8;
}

.ops-date-picker-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: end;
}

.ops-date-picker {
    flex: 1 1 280px;
}

.ops-date-list {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.ops-date-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.7rem;
    padding: 0.5rem 0.65rem;
    border: 1px solid #cbd5e1;
    border-radius: 0.65rem;
    background: #f8fafc;
}

.ops-btn-remove-date {
    border: 0;
    border-radius: 0.55rem;
    background: #fee2e2;
    color: #991b1b;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    padding: 0.35rem 0.7rem;
}

.ops-btn-remove-date:hover {
    background: #fecaca;
}

.ops-btn-remove {
    border: 0;
    background: transparent;
    color: #b91c1c;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    text-decoration: underline;
}
