/* =====================================================
   GOVSECURE — DARK MODE UI
   Unified Sidebar + Bottom Nav Layout
   ===================================================== */

/* --- Global Reset --- */
html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: "Segoe UI", Arial, sans-serif;
    background-color: #121212;
    color: #e5e5e5;
    -webkit-font-smoothing: antialiased;
}

button:focus-visible,
a:focus-visible,
input:focus-visible {
    outline: 3px solid rgba(45, 212, 191, 0.42);
    outline-offset: 2px;
}

a {
    color: #00A884;
    text-decoration: none;
}

    a:hover {
        color: #00b996;
    }

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    outline: none;
    background: none;
}

/* =====================================================
   APP CONTAINER
   ===================================================== */
.app-container {
    min-height: 100vh;
    background-color: #121212;
    display: flex;
    flex-direction: column;
}

.page-content {
    background-color: #121212;
    flex: 1;
    padding: 1rem;
    overflow-y: auto;
}

/* =====================================================
   DESKTOP SIDEBAR — Flat Dark Mode
   ===================================================== */
.desktop-nav {
    width: 264px;
    background: #0b1117;
    border-right: 1px solid rgba(148, 163, 184, 0.14);
    box-shadow: 16px 0 40px rgba(0, 0, 0, 0.2);
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 998;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 1.1rem;
}

.side-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 64px;
    padding: 0.4rem 0.35rem 1rem;
    border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

.desktop-nav .sidebar-tika-logo {
    width: 100%;
    max-width: 216px;
    height: auto;
    object-fit: contain;
}

.side-menu {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    width: 100%;
    flex: 1;
    padding-top: 1.2rem;
}

.side-section-label {
    color: #64748b;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 0 0.5rem 0.35rem;
}

.desktop-nav .menu-item {
    width: 100%;
    color: #cbd5e1;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.78rem;
    border-radius: 8px;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
    border: 1px solid transparent;
    text-align: left;
}

.desktop-nav .menu-item:hover,
.desktop-nav .menu-item.active {
    color: #f8fafc;
    background: #111827;
    border-color: rgba(52, 211, 153, 0.2);
}

.desktop-nav .menu-item.active {
    box-shadow: inset 3px 0 0 #34d399;
}

.menu-icon {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(148, 163, 184, 0.1);
    color: #94a3b8;
    flex: 0 0 auto;
}

.desktop-nav .menu-item.active .menu-icon,
.desktop-nav .menu-item:hover .menu-icon {
    color: #34d399;
    background: rgba(52, 211, 153, 0.12);
}

.menu-icon i {
    font-size: 1.15rem;
}

.menu-copy {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.12rem;
}

.menu-copy strong {
    color: inherit;
    font-size: 0.92rem;
    font-weight: 700;
    line-height: 1.2;
}

.menu-copy small {
    color: #94a3b8;
    font-size: 0.74rem;
    line-height: 1.25;
}

.side-footer {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    color: #cbd5e1;
    background: #111827;
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 8px;
    padding: 0.8rem;
}

.side-footer-icon {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(52, 211, 153, 0.1);
    color: #34d399;
    flex: 0 0 auto;
}

.side-footer strong,
.side-footer small {
    display: block;
    line-height: 1.25;
}

.side-footer strong {
    color: #f8fafc;
    font-size: 0.82rem;
}

.side-footer small {
    color: #94a3b8;
    font-size: 0.72rem;
}

.page-content {
    margin-left: 264px;
}

/* =====================================================
   MOBILE BOTTOM NAV — Unified Style
   ===================================================== */
.bottom-nav {
    background-color: #1A1A1A;
    border: none;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.4);
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 999;
}

    .bottom-nav .bottom-item {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 3px;
        color: #aaa;
        font-size: 0.75rem;
        transition: all 0.25s ease;
    }

        .bottom-nav .bottom-item i {
            font-size: 1.3rem;
        }

        .bottom-nav .bottom-item:hover,
        .bottom-nav .bottom-item.active {
            color: #00A884;
            transform: translateY(-2px);
        }

/* =====================================================
   FLOATING ACTION BUTTON
   ===================================================== */
.fab {
    position: fixed;
    right: 20px;
    bottom: 80px;
    background-color: #00A884;
    color: #fff;
    border: none;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.4);
    transition: all 0.25s ease;
    z-index: 1000;
}

    .fab:hover {
        background-color: #00b996;
        transform: scale(1.08);
    }

/* =====================================================
   MEETINGS PAGE
   ===================================================== */
.meeting-page {
    padding: 1rem;
    padding-bottom: 80px;
}

.meeting-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}

.meeting-tile {
    background-color: #1a1a1a;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.25s ease;
    cursor: pointer;
}

    .meeting-tile:hover {
        transform: translateY(-4px);
        background-color: #202020;
    }

.video-thumbnail {
    background-color: #111;
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .video-thumbnail i {
        font-size: 2rem;
        color: #00A884;
    }

.meeting-info {
    padding: 10px 14px;
    color: #ccc;
}

    .meeting-info h6 {
        color: #fff;
        font-size: 1rem;
        margin-bottom: 4px;
    }

    .meeting-info p {
        color: #888;
        font-size: 0.85rem;
        margin-bottom: 4px;
    }

    .meeting-info .participants {
        font-size: 0.8rem;
        color: #00A884;
    }

/* Mobile meeting grid */
@media (max-width: 767px) {
    .meeting-grid {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }

    .video-thumbnail {
        height: 220px;
    }

    .meeting-page {
        padding-bottom: 90px;
    }
}

/* =====================================================
   MEETING ROOM (VIDEO)
   ===================================================== */
.meeting-room {
    background-color: #121212;
    color: #e5e5e5;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
}

/* Header */
.meeting-header {
    padding: 0.6rem 1rem;
    background-color: #1a1a1a;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Body */
.meeting-body {
    flex: 1;
    display: flex;
    flex-direction: row;
}

/* Sidebar */
.meeting-sidebar {
    width: 260px;
    background-color: #1a1a1a;
    padding: 1rem;
    border-right: 1px solid rgba(255,255,255,0.05);
}

.participant-pill {
    background-color: rgba(255,255,255,0.06);
    border-radius: 8px;
    padding: 6px 10px;
    font-size: 0.9rem;
    color: #ddd;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
    transition: all 0.25s;
}

    .participant-pill.joined {
        background-color: rgba(0,255,100,0.1);
        border-left: 3px solid #00ff88;
        color: #00ff88;
    }

/* Policy Badges */
.policy-badge {
    display: inline-block;
    background-color: rgba(255,255,255,0.08);
    color: #aaa;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.8rem;
    margin-bottom: 4px;
}

    .policy-badge.success {
        color: #00A884;
    }

    .policy-badge.danger {
        color: #ff4c4c;
    }

/* Video Grid */
.meeting-stage {
    flex: 1;
    padding: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.video-grid {
    display: grid;
    width: 100%;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    transition: grid-template-columns 0.3s ease;
}

.video-tile {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    background-color: #1a1a1a;
    height: 240px;
    transition: transform 0.25s;
}

    .video-tile:hover {
        transform: scale(1.02);
    }

    .video-tile.inactive {
        opacity: 0.5;
    }

    .video-tile.active-speaker {
        box-shadow: 0 0 12px 3px #00ffb7;
        border: 2px solid #00ffb7;
        animation: pulse 1.6s infinite;
    }

/* Pulse effect for speaker highlight */
@keyframes pulse {
    0% {
        box-shadow: 0 0 6px 1px #00ffb7;
    }

    50% {
        box-shadow: 0 0 14px 4px #00ffb7;
    }

    100% {
        box-shadow: 0 0 6px 1px #00ffb7;
    }
}

/* Video Feed */
.video-feed {
    width: 100%;
    height: 100%;
    background-color: #000;
}

    .video-feed video {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transform: none;
    }

/* Labels */
.label {
    position: absolute;
    bottom: 6px;
    left: 6px;
    background-color: rgba(0,0,0,0.6);
    color: #fff;
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 0.85rem;
}

.badge-overlay {
    position: absolute;
    top: 6px;
    right: 8px;
    background-color: rgba(0,0,0,0.7);
    border-radius: 50%;
    padding: 4px;
    color: #ff6666;
    font-size: 1rem;
}

/* Controls */
.meeting-controls {
    background-color: #1a1a1a;
    padding: 0.75rem;
    border-top: 1px solid rgba(255,255,255,0.05);
    position: sticky;
    bottom: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
}

.control-btn {
    border-radius: 50%;
    width: 52px;
    height: 52px;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: all 0.25s;
}

    .control-btn:hover {
        transform: scale(1.08);
    }

    .control-btn:disabled {
        opacity: 0.5;
        cursor: not-allowed;
    }

/* =====================================================
   PARTICIPANTS OVERLAY SIDEBAR
   ===================================================== */
.participants-overlay {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background-color: rgba(0,0,0,0.55);
    backdrop-filter: blur(4px);
    display: flex;
    justify-content: flex-end;
    z-index: 1050;
    animation: fadeIn 0.25s ease-in-out;
}

.participants-sidebar {
    width: 80%;
    max-width: 320px;
    background-color: #1A1A1A;
    height: 100%;
    padding: 1.25rem;
    box-shadow: -4px 0 12px rgba(0,0,0,0.6);
    display: flex;
    flex-direction: column;
    border-left: 1px solid rgba(255,255,255,0.05);
    animation: slideInRight 0.3s ease-out;
}

    .participants-sidebar .sidebar-header h6 {
        font-weight: 600;
        color: #00ffb7;
    }

.participants-list {
    flex: 1;
    overflow-y: auto;
    padding-right: 0.25rem;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
    }

    to {
        transform: translateX(0);
    }
}

/* =====================================================
   MOBILE ADJUSTMENTS
   ===================================================== */
@media (max-width: 767px) {
    .meeting-body {
        flex-direction: column;
    }

    .meeting-sidebar {
        display: none !important;
    }

    .meeting-stage {
        padding: 0;
    }

    .video-grid {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }

    .video-tile {
        height: 280px;
        border-radius: 12px;
    }

    .page-content {
        margin-left: 0;
        padding-bottom: 70px;
    }
}

/* =====================================================
   LOGIN PAGE
   ===================================================== */
.login-layout {
    min-height: 100vh;
    background: #0b1117;
    color: #fff;
    display: flex;
}

.login-left {
    flex: 1;
    padding: 2rem;
    background: #101820;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-right: 1px solid rgba(148, 163, 184, 0.12);
}

.tika-logo-wrap {
    max-width: 260px;
    width: 100%;
}

    .tika-logo-img {
        width: 100%;
        height: auto;
        display: block;
    }

.brand-logo-on-light {
    display: none;
}

[data-theme="light"] .brand-logo-on-dark {
    display: none;
}

[data-theme="light"] .brand-logo-on-light {
    display: block;
}

.brand-title {
    color: #f8fafc;
    font-size: 1.35rem;
    font-weight: 700;
}

.brand-sub {
    color: #9ca3af !important;
    font-size: 0.95rem;
}

.login-right {
    flex: 1;
    background-color: #0b1117;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.login-card {
    background: #111827;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 10px;
    max-width: 430px;
    width: 100%;
    padding: 2rem;
    box-shadow: 0 24px 48px rgba(0,0,0,0.35);
}

.client-login-panel {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.auth-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    width: fit-content;
    color: #6ee7b7;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(110, 231, 183, 0.2);
    border-radius: 999px;
    padding: 0.35rem 0.65rem;
    font-size: 0.78rem;
    font-weight: 600;
}

.auth-title {
    color: #f8fafc;
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0;
    letter-spacing: 0;
}

.auth-subtitle {
    color: #aeb8c5;
    margin: -0.45rem 0 0;
    line-height: 1.5;
}

.auth-progress {
    display: grid;
    grid-template-columns: 10px 1fr 10px;
    align-items: center;
    gap: 0.5rem;
    margin: 0.25rem 0 0.5rem;
}

.auth-progress-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #334155;
    border: 1px solid #475569;
}

.auth-progress-dot.active {
    background: #34d399;
    border-color: #34d399;
}

.auth-progress-line {
    height: 2px;
    border-radius: 999px;
    background: #334155;
}

.auth-progress-line.active {
    background: #34d399;
}

.auth-field {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.auth-identity {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    color: #e5e7eb;
    background: rgba(148, 163, 184, 0.08);
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 8px;
    padding: 0.7rem 0.85rem;
    word-break: break-word;
}

.login-input {
    background: #0b1117;
    border: 1px solid rgba(148, 163, 184, 0.22);
    color: #f8fafc;
    border-radius: 8px;
    padding: 0.75rem 0.85rem;
    min-height: 46px;
}

    .login-input:focus {
        background: #0b1117;
        color: #fff;
        border-color: #34d399;
        box-shadow: 0 0 0 0.2rem rgba(52, 211, 153, 0.14);
        outline: none;
    }

    .login-input::placeholder {
        color: #64748b;
    }

.login-code-input {
    text-align: center;
    font-size: 1.25rem;
    letter-spacing: 0;
}

.login-label {
    color: #cbd5e1;
    font-size: 0.82rem;
    font-weight: 600;
}

.btn-login {
    background: #22c55e;
    color: #04130a;
    font-weight: 700;
    padding: 0.78rem 1rem;
    border-radius: 8px;
    min-height: 46px;
    transition: all 0.25s ease;
}

    .btn-login:hover {
        background: #34d399;
        color: #04130a;
        transform: translateY(-1px);
    }

    .btn-login:disabled {
        opacity: 0.5;
        cursor: not-allowed;
    }

.btn-login-content {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
}

.login-alert {
    background-color: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.28);
    padding: 0.7rem 0.85rem;
    border-radius: 8px;
    font-size: 0.9rem;
    color: #fde68a;
}

.auth-back-link {
    align-self: center;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: #aeb8c5;
    padding: 0.35rem 0.5rem;
    font-size: 0.88rem;
}

.auth-back-link:hover {
    color: #f8fafc;
}

/* Responsive */
@media (max-width: 767px) {
    .login-layout {
        flex-direction: column;
    }

    .login-left {
        padding: 3rem 1rem;
        border-right: 0;
        border-bottom: 1px solid rgba(148, 163, 184, 0.12);
    }

    .tika-logo-wrap {
        max-width: 200px;
    }

    .login-card {
        margin-top: 1rem;
        max-width: 100%;
        padding: 1.5rem;
        box-shadow: 0 6px 16px rgba(0,0,0,0.7);
    }
}

/* =====================================================
   HOME / UPCOMING MEETINGS PAGE
   ===================================================== */
.home-section {
    padding: 1.5rem;
    color: #e5e7eb;
    max-width: 1180px;
    margin: 0 auto;
}

.home-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.home-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    color: #6ee7b7;
    font-size: 0.82rem;
    font-weight: 600;
    margin-bottom: 0.45rem;
}

.home-title {
    font-size: 1.7rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.25rem;
    letter-spacing: 0;
}

.home-sub {
    color: #aeb8c5;
    font-size: 0.95rem;
    margin: 0;
}

.meeting-summary-strip {
    display: flex;
    gap: 0.65rem;
    flex-shrink: 0;
}

.meeting-summary-item {
    min-width: 78px;
    background: #111827;
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 8px;
    padding: 0.65rem 0.8rem;
    text-align: center;
}

.meeting-summary-item span {
    display: block;
    color: #f8fafc;
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1;
}

.meeting-summary-item small {
    color: #94a3b8;
    font-size: 0.72rem;
}

.meeting-summary-item.live span {
    color: #34d399;
}

.meetings-list {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.meeting-card {
    position: relative;
    display: grid;
    grid-template-columns: 88px minmax(0, 1fr) auto;
    gap: 1rem;
    align-items: center;
    background: #111827;
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 8px;
    padding: 1rem;
    color: #fff;
    box-shadow: none;
    transition: border-color 0.2s ease, transform 0.2s ease, background-color 0.2s ease;
}

    .meeting-card:hover {
        transform: translateY(-2px);
        background: #132033;
        border-color: rgba(52, 211, 153, 0.34);
    }

.meeting-card.in-session {
    border-color: rgba(52, 211, 153, 0.38);
}

.meeting-time-block {
    width: 88px;
    min-height: 78px;
    background: #0b1117;
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 0.25rem;
}

.meeting-time-block span {
    color: #94a3b8;
    font-size: 0.82rem;
    font-weight: 600;
}

.meeting-time-block strong {
    color: #f8fafc;
    font-size: 0.95rem;
}

.meeting-card-content {
    min-width: 0;
}

.meeting-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.65rem;
}

.meeting-card-header h2 {
    color: #f8fafc;
    font-size: 1.05rem;
    font-weight: 700;
    margin: 0;
    letter-spacing: 0;
}

.meeting-time {
    color: #94a3b8;
    font-size: 0.85rem;
}

.meeting-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem 1rem;
    color: #cbd5e1;
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
}

.meeting-meta span {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.meeting-status {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    border-radius: 999px;
    padding: 0.3rem 0.55rem;
    font-size: 0.75rem;
    font-weight: 700;
    white-space: nowrap;
}

.meeting-status.live {
    color: #bbf7d0;
    background: rgba(34, 197, 94, 0.12);
    border: 1px solid rgba(34, 197, 94, 0.24);
}

.meeting-status.scheduled {
    color: #dbeafe;
    background: rgba(59, 130, 246, 0.12);
    border: 1px solid rgba(59, 130, 246, 0.24);
}

.participants-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 0.5rem;
}

.participant-tag {
    background: rgba(148, 163, 184, 0.1);
    border: 1px solid rgba(148, 163, 184, 0.12);
    border-radius: 999px;
    padding: 0.25rem 0.55rem;
    font-size: 0.8rem;
    color: #e5e7eb;
}

.participant-tag.more {
    color: #6ee7b7;
}

.meeting-card-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 104px;
}

.btn-join {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    background: #22c55e;
    color: #04130a;
    font-weight: 700;
    padding: 0.62rem 0.9rem;
    border-radius: 6px;
    text-decoration: none;
    min-width: 96px;
    transition: background-color 0.2s, transform 0.2s;
}

    .btn-join:hover {
        background: #34d399;
        color: #04130a;
        transform: translateY(-1px);
    }

.btn-join.rejoin {
    background: #38bdf8;
    color: #06111c;
}

.btn-join.rejoin:hover {
    background: #7dd3fc;
    color: #06111c;
}

.meeting-state-panel {
    min-height: 220px;
    background: #111827;
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    text-align: center;
    color: #aeb8c5;
}

.meeting-state-panel i {
    color: #34d399;
    font-size: 2rem;
}

.meeting-state-panel.error {
    color: #fecaca;
    border-color: rgba(239, 68, 68, 0.24);
}

.meeting-state-panel.error i {
    color: #f87171;
}

@media (max-width: 860px) {
    .home-header {
        flex-direction: column;
    }

    .meeting-card {
        grid-template-columns: 74px minmax(0, 1fr);
    }

    .meeting-time-block {
        width: 74px;
        min-height: 74px;
    }

    .meeting-card-actions {
        grid-column: 1 / -1;
        justify-content: stretch;
        min-width: 0;
    }

    .btn-join {
        width: 100%;
    }
}


.meeting-room {
    padding-bottom: 0;
}

/* =====================================================
   MEETING LAYOUT (full-screen, no nav chrome)
   ===================================================== */
.meeting-layout {
    min-height: 100vh;
    background-color: #121212;
    color: #e5e5e5;
    overflow: hidden;
}

/* =====================================================
   FORMAL CLIENT EXPERIENCE
   ===================================================== */
.app-container,
.page-content {
    background: #0c1218;
}

.desktop-nav {
    background: #0a1016;
    box-shadow: none;
}

.desktop-nav .menu-item {
    min-height: 58px;
}

.desktop-nav .menu-item:hover,
.desktop-nav .menu-item.active {
    background: #121c25;
    border-color: rgba(45, 212, 191, 0.2);
}

.desktop-nav .menu-item.active {
    box-shadow: inset 3px 0 0 #2dd4bf;
}

.desktop-nav .menu-item.active .menu-icon,
.desktop-nav .menu-item:hover .menu-icon {
    color: #5eead4;
    background: rgba(13, 148, 136, 0.16);
}

.side-section-label {
    letter-spacing: 0;
}

.bottom-nav {
    min-height: 64px;
    height: calc(64px + env(safe-area-inset-bottom));
    padding-bottom: env(safe-area-inset-bottom);
    background: #0a1016;
    border-top: 1px solid rgba(148, 163, 184, 0.16);
    box-shadow: none;
}

.bottom-nav .bottom-item {
    min-height: 52px;
    justify-content: center;
    color: #aeb8c5;
}

.bottom-nav .bottom-item:hover,
.bottom-nav .bottom-item.active {
    color: #5eead4;
    transform: none;
}

.login-layout {
    background: #0a1016;
}

.login-left {
    flex: 0 1 42%;
    background: #101820;
}

.login-right {
    flex: 1 1 58%;
    background: #0c1218;
}

.login-card {
    max-width: 460px;
    padding: 2.15rem;
    background: #121a23;
    border-color: rgba(148, 163, 184, 0.2);
    border-radius: 8px;
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.28) !important;
}

.auth-kicker {
    color: #99f6e4;
    background: rgba(13, 148, 136, 0.12);
    border-color: rgba(45, 212, 191, 0.22);
    border-radius: 6px;
}

.auth-title {
    font-size: 1.65rem;
    font-weight: 650;
}

.auth-title:focus {
    outline: none;
}

.auth-progress-dot.active,
.auth-progress-line.active {
    background: #2dd4bf;
    border-color: #2dd4bf;
}

.login-input {
    background: #0b1219;
    border-color: rgba(148, 163, 184, 0.3);
}

.login-input:focus {
    background: #0b1219;
    border-color: #2dd4bf;
    box-shadow: 0 0 0 0.2rem rgba(45, 212, 191, 0.14);
}

.btn-login,
.btn-join {
    background: #147d64;
    color: #ffffff;
}

.btn-login:hover,
.btn-join:hover {
    background: #1a9175;
    color: #ffffff;
    transform: none;
}

.btn-join.rejoin,
.btn-join.rejoin:hover {
    background: #1d6fa5;
    color: #ffffff;
}

.home-section {
    padding: clamp(1.15rem, 2.2vw, 2rem);
}

.home-kicker {
    color: #5eead4;
}

.home-title {
    font-size: 1.65rem;
    font-weight: 650;
}

.meeting-summary-item,
.meeting-card,
.meeting-state-panel {
    background: #121a23;
    border-color: rgba(148, 163, 184, 0.18);
}

.meeting-card:hover {
    transform: none;
    background: #15212c;
    border-color: rgba(45, 212, 191, 0.34);
}

.meeting-time-block {
    background: #0b1219;
}

.meeting-card-header h2 {
    font-weight: 650;
}

.btn-join {
    min-width: 128px;
    min-height: 42px;
}

.state-action-btn {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    padding: 0.55rem 0.8rem;
    border: 1px solid rgba(45, 212, 191, 0.32);
    border-radius: 6px;
    background: rgba(13, 148, 136, 0.12);
    color: #99f6e4;
    font-size: 0.85rem;
    font-weight: 650;
}

.state-action-btn:hover {
    background: rgba(13, 148, 136, 0.22);
    color: #ffffff;
}

.state-action-btn i,
.meeting-state-panel .state-action-btn i {
    color: inherit;
    font-size: 0.95rem;
}

@media (max-width: 767px) {
    .page-content {
        padding: 0;
        padding-bottom: calc(70px + env(safe-area-inset-bottom));
    }

    .login-left {
        min-height: 176px;
        padding: 1.75rem 1rem;
    }

    .login-right {
        align-items: flex-start !important;
        padding: 1rem;
    }

    .login-card {
        margin-top: 0;
        padding: 1.35rem;
        box-shadow: none !important;
    }

    .home-section {
        padding: 1.15rem 1rem;
    }

    .meeting-card {
        gap: 0.8rem;
        padding: 0.85rem;
    }
}

@media (max-width: 520px) {
    .meeting-summary-strip {
        width: 100%;
    }

    .meeting-summary-item {
        flex: 1;
    }

    .meeting-card {
        grid-template-columns: 1fr;
    }

    .meeting-time-block {
        width: 100%;
        min-height: 52px;
        flex-direction: row;
        gap: 0.55rem;
    }

    .meeting-card-header {
        flex-direction: column;
    }

    .meeting-card-actions {
        grid-column: auto;
    }
}
