/* ── iMedical SmartDeviceManager — Kiosk/TV Display Styles ──────────────────────────── */

/* ── Reset and kiosk base ────────────────────────────────────────────────── */
*, *::before, *::after {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    background: #0D1B2A;
    font-family: 'Roboto', sans-serif;
    user-select: none;
    -webkit-user-select: none;
    /* Uncomment for unattended displays: cursor: none; */
}

#app {
    width: 100vw;
    height: 100vh;
    overflow: hidden;
}

h1, h2, h3, h4, h5, h6 {
    margin: 0;
    font-weight: 500;
}

/* ── Scrollbars hidden globally (kiosk) ─────────────────────────────────── */
::-webkit-scrollbar { display: none; }
* { scrollbar-width: none; -ms-overflow-style: none; }

/* ── Scrollable lists (internal — scrollbar hidden) ─────────────────────── */
.call-list-scroll {
    overflow-y: auto;
    max-height: 100%;
    scrollbar-width: none;
}
.call-list-scroll::-webkit-scrollbar { display: none; }

/* ── Animations ──────────────────────────────────────────────────────────── */
@keyframes pulse-emergency {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%       { opacity: 0.6; transform: scale(1.08); }
}

@keyframes slide-in-up {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes fade-in {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@keyframes message-slide {
    0%   { opacity: 0; transform: translateY(16px); }
    10%  { opacity: 1; transform: translateY(0); }
    85%  { opacity: 1; transform: translateY(0); }
    100% { opacity: 0; transform: translateY(-16px); }
}

/* ── Utility animation classes ───────────────────────────────────────────── */
.pulse-emergency { animation: pulse-emergency 1.5s ease-in-out infinite; }
.slide-in        { animation: slide-in-up 0.4s ease-out; }
.fade-in         { animation: fade-in 0.6s ease-in; }
.message-slide   { animation: message-slide 8s ease-in-out; }

/* ── Room status badge colors (FloorStatusView) ──────────────────────────── */
.room-occupied    { background-color: #1565C0 !important; }
.room-available   { background-color: #2E7D32 !important; }
.room-cleaning    { background-color: #E65100 !important; }
.room-maintenance { background-color: #B71C1C !important; }

/* ── Fullscreen media ────────────────────────────────────────────────────── */
.kiosk-media {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ── Blazor error UI — hidden in kiosk ───────────────────────────────────── */
#blazor-error-ui { display: none !important; }

/* ── Blazor loading progress (initial WASM load) ─────────────────────────── */
.loading-progress {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    background: #0D1B2A;
    z-index: 9999;
}

.loading-progress circle {
    fill: none;
    stroke: #263238;
    stroke-width: 0.6rem;
    transform-origin: 50% 50%;
    transform: rotate(-90deg);
}

.loading-progress circle:last-child {
    stroke: #1565C0;
    stroke-dasharray: calc(3.141 * var(--blazor-load-percentage, 0%) * 0.8), 500%;
    transition: stroke-dasharray 0.05s ease-in-out;
}

.loading-progress-text {
    color: #90CAF9;
    font-size: 1rem;
    margin-top: 12px;
    text-align: center;
}

.loading-progress-text::after {
    content: var(--blazor-load-percentage-text, "Cargando");
}

/* ── MudBlazor dark theme helpers ────────────────────────────────────────── */
.mud-table-cell {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}
