/* assets/css/styles.css */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

body {
    font-family: 'Inter', sans-serif;
}

.btn-transition {
    transition: all 0.3s ease;
}

.glass {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.app-shell {
    background:
        radial-gradient(circle at top left, rgba(43, 179, 163, 0.18), transparent 34rem),
        radial-gradient(circle at top right, rgba(242, 184, 75, 0.2), transparent 30rem),
        linear-gradient(180deg, #f8fbff 0%, #eef3f8 100%);
}

.topbar {
    background: rgba(18, 60, 105, 0.96);
    box-shadow: 0 18px 45px rgba(18, 60, 105, 0.18);
}

.site-footer {
    color: white;
    background: #123c69;
}

.brand-mark {
    width: 2.75rem;
    height: 2.75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.75rem;
    color: white;
    background: linear-gradient(135deg, #123c69 0%, #2bb3a3 100%);
    box-shadow: 0 16px 36px rgba(18, 60, 105, 0.24);
}

.hero-panel {
    background:
        linear-gradient(135deg, rgba(18, 60, 105, 0.94), rgba(29, 111, 165, 0.9)),
        linear-gradient(45deg, rgba(43, 179, 163, 0.18), rgba(242, 184, 75, 0.2));
}

.lab-card,
.action-card,
.metric-card,
.form-panel,
.soft-panel {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(207, 217, 229, 0.72);
    box-shadow: 0 18px 45px rgba(23, 32, 51, 0.08);
}

.lab-card,
.action-card,
.metric-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.lab-card:hover,
.action-card:hover {
    transform: translateY(-3px);
    border-color: rgba(43, 179, 163, 0.45);
    box-shadow: 0 24px 55px rgba(23, 32, 51, 0.12);
}

.status-dot {
    width: 0.65rem;
    height: 0.65rem;
    border-radius: 999px;
    background: #10b981;
    box-shadow: 0 0 0 0.28rem rgba(16, 185, 129, 0.12);
}

.field-control {
    min-height: 2.8rem;
    border-radius: 0.75rem;
    border: 1px solid #d6deea;
    background: #fbfdff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.field-control:focus {
    border-color: #1d6fa5;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(29, 111, 165, 0.12);
    outline: none;
}

.primary-button,
.secondary-button,
.danger-button,
.amber-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    min-height: 2.85rem;
    border-radius: 0.8rem;
    font-weight: 700;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.primary-button:hover,
.secondary-button:hover,
.danger-button:hover,
.amber-button:hover {
    transform: translateY(-1px);
}

.primary-button {
    color: white;
    background: #123c69;
    box-shadow: 0 14px 28px rgba(18, 60, 105, 0.2);
}

.secondary-button {
    color: #123c69;
    background: #e9f7f5;
}

.danger-button {
    color: white;
    background: #ef6f61;
    box-shadow: 0 14px 28px rgba(239, 111, 97, 0.2);
}

.amber-button {
    color: #172033;
    background: #f2b84b;
    box-shadow: 0 14px 28px rgba(242, 184, 75, 0.22);
}

.step-badge {
    width: 2rem;
    height: 2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: white;
    background: #123c69;
    font-size: 0.85rem;
    font-weight: 800;
}

.line-clamp-1,
.line-clamp-2 {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-1 {
    -webkit-line-clamp: 1;
}

.line-clamp-2 {
    -webkit-line-clamp: 2;
}

.lab-picker-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(25rem, 1fr));
    gap: 1.7rem;
}

.lab-option {
    cursor: pointer;
}

.lab-option-card {
    display: block;
    height: 100%;
    border: 2px solid #dce5f0;
    border-radius: 1.25rem;
    padding: 1.05rem 1.05rem 1.15rem;
    background: #ffffff;
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.lab-option:hover .lab-option-card {
    transform: translateY(-2px);
    border-color: rgba(43, 179, 163, 0.55);
    box-shadow: 0 18px 38px rgba(23, 32, 51, 0.1);
}

.lab-option input:checked + .lab-option-card {
    border-color: #2bb3a3;
    box-shadow: 0 0 0 4px rgba(43, 179, 163, 0.14), 0 18px 38px rgba(23, 32, 51, 0.1);
}

.lab-check {
    width: 1.85rem;
    height: 1.85rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: #94a3b8;
    background: #f1f5f9;
}

.lab-option input:checked + .lab-option-card .lab-check {
    color: white;
    background: #2bb3a3;
}

.lab-floorplan {
    position: relative;
    display: block;
    min-height: 16.7rem;
    margin-top: 0.85rem;
    padding: 3.15rem 1.35rem 1.05rem 1rem;
    overflow: hidden;
    border: 1px solid #d8e2ed;
    border-radius: 1rem;
    background:
        linear-gradient(90deg, rgba(29, 111, 165, 0.08) 0 0.75rem, transparent 0.75rem calc(100% - 0.75rem), rgba(29, 111, 165, 0.12) calc(100% - 0.75rem)),
        repeating-linear-gradient(0deg, #f8fbff 0 1.4rem, #f2f6fb 1.4rem 1.45rem);
}

.lab-window {
    position: absolute;
    top: 0.65rem;
    bottom: 0.65rem;
    width: 0.7rem;
    display: flex;
    align-items: center;
    justify-content: center;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    border-radius: 999px;
    color: #1d6fa5;
    background: rgba(29, 111, 165, 0.13);
    font-size: 0.52rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.lab-window-left {
    left: 0.45rem;
}

.lab-window-right {
    right: 0.2rem;
}

.lab-door {
    position: absolute;
    left: 0.15rem;
    top: 0.7rem;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1.35rem;
    height: 2.8rem;
    border-radius: 0 0.55rem 0.55rem 0;
    border: 2px solid #f2b84b;
    border-left: 0;
    color: #172033;
    background: #fff8e6;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    font-size: 0.55rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    box-shadow: 0 8px 18px rgba(242, 184, 75, 0.22);
}

.lab-tv {
    position: absolute;
    top: 0.55rem;
    left: 50%;
    z-index: 3;
    transform: translateX(-50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3.2rem;
    height: 1.45rem;
    border-radius: 0.45rem;
    color: white;
    background: #172033;
    border: 2px solid #2bb3a3;
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.06em;
    box-shadow: 0 8px 18px rgba(23, 32, 51, 0.2);
    cursor: pointer;
    transition: transform 0.14s ease, background 0.14s ease, box-shadow 0.14s ease;
}

.lab-tv:hover {
    transform: translateX(-50%) scale(1.05);
}

.lab-tv.is-selected {
    color: #172033;
    background: #f2b84b;
    box-shadow: 0 0 0 3px rgba(242, 184, 75, 0.28), 0 8px 18px rgba(23, 32, 51, 0.2);
}

.lab-tv.is-disabled {
    cursor: default;
    opacity: 0.82;
}

.lab-tv.is-disabled:hover {
    transform: translateX(-50%);
}
.teacher-zone {
    position: absolute;
    top: 0.75rem;
    right: 0.95rem;
    width: min(31%, 6.4rem);
}

.teacher-desk {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    min-height: 1.65rem;
    border-radius: 0.7rem;
    color: #123c69;
    background: #e9f7f5;
    border: 1px solid rgba(43, 179, 163, 0.34);
    font-size: 0.7rem;
    font-weight: 800;
}


.teacher-desk {
    cursor: pointer;
    transition: transform 0.14s ease, background 0.14s ease, box-shadow 0.14s ease;
}

.teacher-desk:hover {
    transform: scale(1.03);
}

.teacher-desk.is-selected {
    background: #f2b84b;
    color: #172033;
    border-color: #f2b84b;
    box-shadow: 0 0 0 3px rgba(242, 184, 75, 0.28);
}
.student-zone {
    display: grid;
    grid-template-columns: minmax(6.8rem, 0.9fr) 1.9rem minmax(9.8rem, 1.5fr);
    gap: 0.78rem;
    height: 100%;
}

.passage-zone,
.window-zone {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(0, 1fr);
    align-content: start;
    gap: 0.62rem;
    padding: 0.34rem;
    border-radius: 0.55rem;
    background: #eef3f8;
    border: 1px solid #d7e1ec;
}

.passage-zone {
    grid-column: 1;
}

.window-zone {
    grid-column: 3;
}

.pc-column {
    display: grid;
    grid-template-rows: repeat(4, minmax(0, 1fr));
    gap: 0.58rem;
    min-height: 9.5rem;
}

.pc-dot {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.15rem;
    min-height: 2.15rem;
    border-radius: 0.42rem;
    color: white;
    background: #123c69;
    font-size: 0.62rem;
    font-weight: 800;
    cursor: pointer;
    transition: transform 0.14s ease, background 0.14s ease, box-shadow 0.14s ease;
}

.pc-dot:hover {
    transform: scale(1.08);
    background: #1d6fa5;
}

.pc-dot.is-selected {
    background: #f2b84b;
    color: #172033;
    box-shadow: 0 0 0 3px rgba(242, 184, 75, 0.28);
}

.aisle {
    grid-column: 2;
    grid-row: 1 / span 2;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 1.45rem;
    border-radius: 999px;
    color: #64748b;
    background: repeating-linear-gradient(90deg, rgba(100, 116, 139, 0.08) 0 0.25rem, transparent 0.25rem 0.5rem);
    font-size: 0.48rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    writing-mode: vertical-rl;
}

@media (max-width: 640px) {
    .lab-picker-grid {
        grid-template-columns: 1fr;
    }
}

.sialab-logo {
    display: block;
    object-fit: contain;
    background: #ffffff;
    border: 1px solid rgba(207, 217, 229, 0.75);
    box-shadow: 0 16px 36px rgba(18, 60, 105, 0.18);
}

.sialab-logo--hero {
    width: min(28rem, 100%);
    max-width: 100%;
    height: auto;
    border-radius: 0;
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
}

.sialab-logo--card {
    width: 3.45rem;
    height: 3.45rem;
    border-radius: 0.95rem;
    padding: 0.14rem;
}

.sialab-logo--nav {
    width: 3rem;
    height: 3rem;
    border-radius: 0.85rem;
    padding: 0.12rem;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}
.login-hero {
    color: #123c69;
    background:
        radial-gradient(circle at 14% 12%, rgba(43, 179, 163, 0.18), transparent 16rem),
        radial-gradient(circle at 88% 18%, rgba(242, 184, 75, 0.16), transparent 15rem),
        linear-gradient(135deg, #ffffff 0%, #f6fbff 48%, #e8f4f7 100%);
    border: 1px solid rgba(207, 217, 229, 0.9);
    box-shadow: 0 24px 60px rgba(18, 60, 105, 0.12);
}

.login-feature-card {
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(207, 217, 229, 0.95);
    box-shadow: 0 12px 28px rgba(18, 60, 105, 0.08);
}

.login-lab-chip {
    background: rgba(255, 255, 255, 0.74);
    border: 1px solid rgba(207, 217, 229, 0.95);
    box-shadow: 0 10px 24px rgba(18, 60, 105, 0.07);
}
.login-brand-panel {
    color: #123c69;
}

.login-form-card {
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(207, 217, 229, 0.95);
    box-shadow: 0 24px 60px rgba(18, 60, 105, 0.12);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.lab-status-card {
    position: relative;
    min-height: 9.4rem;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 1rem;
    padding: 1rem;
    color: white;
    background: rgba(255, 255, 255, 0.12);
}

.lab-status-card--free {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.32), rgba(255, 255, 255, 0.1));
}

.lab-status-card--busy {
    background: linear-gradient(135deg, rgba(29, 111, 165, 0.45), rgba(255, 255, 255, 0.1));
}

.lab-status-card--upcoming {
    background: linear-gradient(135deg, rgba(242, 184, 75, 0.42), rgba(255, 255, 255, 0.1));
}

.lab-status-card--maintenance {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.4), rgba(255, 255, 255, 0.1));
}

.lab-status-dot {
    width: 0.8rem;
    height: 0.8rem;
    flex: 0 0 auto;
    border-radius: 999px;
    background: currentColor;
    box-shadow: 0 0 0 0.26rem rgba(255, 255, 255, 0.16);
}

.schedule-modal-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2rem;
    border-radius: 999px;
    padding: 0 0.8rem;
    color: #123c69;
    background: rgba(255, 255, 255, 0.92);
    font-size: 0.75rem;
    font-weight: 800;
}

.schedule-modal {
    position: fixed;
    inset: 0;
    z-index: 60;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.schedule-modal.is-open {
    display: flex;
}

.schedule-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(23, 32, 51, 0.52);
}

.schedule-modal__panel {
    position: relative;
    width: min(42rem, 100%);
    max-height: min(42rem, 88vh);
    overflow-y: auto;
    border-radius: 1.25rem;
    background: white;
    padding: 1.35rem;
    box-shadow: 0 30px 90px rgba(23, 32, 51, 0.28);
}

.schedule-modal__close {
    width: 2.4rem;
    height: 2.4rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: #123c69;
    background: #eef4fb;
}

.schedule-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.schedule-lab-card {
    border: 1px solid #d8e2ee;
    border-radius: 1rem;
    background: #ffffff;
    padding: 1rem;
}

.schedule-lab-card h3 {
    color: #172033;
    font-size: 1.05rem;
    font-weight: 800;
}

.schedule-lab-card p {
    color: #64748b;
    font-size: 0.85rem;
}

.schedule-block {
    display: grid;
    grid-template-columns: 7.25rem minmax(0, 1fr);
    gap: 0.85rem;
    border: 1px solid #d8e2ee;
    border-left-width: 0.35rem;
    border-radius: 0.85rem;
    padding: 0.85rem;
    background: #ffffff;
}

.schedule-block--free {
    border-left-color: #10b981;
    background: #f0fdf4;
}

.schedule-block--class {
    border-left-color: #1d6fa5;
    background: #eff6ff;
}

.schedule-block--maintenance {
    border-left-color: #ef4444;
    background: #fef2f2;
}

.schedule-block--cancelled {
    border-left-color: #f2b84b;
    background: #fffbeb;
}

.schedule-block__time {
    color: #123c69;
    font-size: 0.82rem;
    font-weight: 900;
}

.schedule-block__body {
    display: grid;
    gap: 0.16rem;
    color: #475569;
    font-size: 0.82rem;
}

.schedule-block__body strong {
    color: #172033;
    font-size: 0.92rem;
}

.filter-chip,
.schedule-status-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.2rem;
    border-radius: 999px;
    padding: 0 0.9rem;
    background: #eef4fb;
    color: #123c69;
    font-size: 0.82rem;
    font-weight: 800;
}

.filter-chip.is-active {
    color: white;
    background: #123c69;
}

.schedule-status-pill {
    min-height: 1.9rem;
    font-size: 0.72rem;
}

.schedule-status-pill--free,
.now-card--free {
    border-color: rgba(16, 185, 129, 0.32);
}

.schedule-status-pill--busy,
.now-card--busy {
    border-color: rgba(29, 111, 165, 0.32);
}

.schedule-status-pill--upcoming,
.now-card--upcoming {
    border-color: rgba(242, 184, 75, 0.45);
}

.schedule-status-pill--maintenance,
.now-card--maintenance {
    border-color: rgba(239, 68, 68, 0.35);
}

.now-card {
    border: 1px solid #d8e2ee;
    border-radius: 1rem;
    background: #ffffff;
    padding: 1rem;
}

.now-card strong,
.now-card span,
.now-card p {
    display: block;
}

.now-card strong {
    color: #172033;
    font-size: 0.95rem;
}

.now-card span {
    margin-top: 0.55rem;
    color: #123c69;
    font-size: 0.82rem;
    font-weight: 900;
}

.now-card p {
    margin-top: 0.2rem;
    color: #64748b;
    font-size: 0.82rem;
}

@media (max-width: 760px) {
    .schedule-grid {
        grid-template-columns: 1fr;
    }

    .schedule-block {
        grid-template-columns: 1fr;
    }
}
