.dashboard-container {
    text-align: center;
    padding: 40px 20px;
}

/* TIME */
.time-section h1 {
    font-size: 38px;
    font-weight: 700;
    margin-bottom: 10px;
}

.time-section p {
    font-size: 18px;
    color: #666;
}

/* ACTION GRID */
.actions {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
    flex-wrap: wrap;
}

/* BOX */
.action-box {
    width: 120px;
    cursor: pointer;
}

.action-box img {
    width: 70px;
    height: 70px;
    background: #1f6ed4;
    padding: 18px;
    border-radius: 20px;
    transition: 0.3s;
}

/* ORANGE FIRST */
.action-box.orange img {
    background: #ff6a00;
}

/* HOVER */
.action-box img:hover {
    transform: translateY(-5px);
}

/* TEXT */
.action-box p {
    font-size: 14px;
}

/* RESPONSIVE */
@media (max-width: 768px) {

    .dashboard-container {
        padding: 0px
    }

    .time-section h1 {
        font-size: 40px;
    }

    .actions {
        gap: 25px;
    }

    .action-box {
        width: 90px;
    }

    .action-box img {
        width: 60px;
        height: 60px;
    }
}


/* ── MODAL OVERLAY ── */
.modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(3px);
    display: none;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    z-index: 9999;
}

.modal.active,
.modal[style*="flex"] {
    display: flex;
    opacity: 1;
    visibility: visible;
}

/* ── MODAL BOX ── */
.modal-content {
    background: var(--white);
    width: 420px;
    max-width: calc(100vw - 32px);
    border-radius: 18px;
    border: 1px solid rgba(22, 20, 20, 0.07);
    padding: 28px;
    position: relative;
    animation: modalIn 0.22s ease;
    font-family: 'Inter', sans-serif;
}

.modal-content h2 {
    font-size: 20px;
    font-weight: 700;
    color: #141516;
    margin: 0 0 6px;
}

/* ── CLOSE BUTTON ── */
.close-btn {
    position: absolute;
    right: 18px;
    top: 16px;
    width: 30px;
    height: 30px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #7b82a0;
    cursor: pointer;
    line-height: 1;
    transition: background 0.15s, color 0.15s;
    text-decoration: none;
}

.close-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #f0f2f7;
}

/* ── JOIN BUTTON ── */
.join-btn {
    width: 100%;
    padding: 13px;
    margin-top: 6px;
    background: #4f8ef7;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background 0.15s, transform 0.1s;
    font-family: inherit;
    letter-spacing: 0.02em;
}

.join-btn:hover  { background: #3a7ae8; }
.join-btn:active { transform: scale(0.98); }
.join-btn:disabled {
    background: #2a3550;
    color: #5a6080;
    cursor: not-allowed;
    transform: none;
}

@keyframes modalIn {
    from { opacity: 0; transform: translateY(-12px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0)    scale(1); }
}

@media (max-width: 480px) {
    .modal-content {
        border-radius: 14px;
        padding: 22px 18px;
    }
}



.modal-subtitle {
    font-size: 13px;
    color: #6b7590;
    margin: 0 0 22px;
    line-height: 1.5;
}

/* ── FIELDS ── */
.join-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 16px;
}

.join-field label {
    font-size: 11px;
    font-weight: 600;
    color: var(--black);
    text-transform: uppercase;
    letter-spacing: 0.07em;
}

.join-field input {
    background: var(--white);
    border: 1px solid rgb(45, 45, 45);
    border-radius: 10px;
    color: var(--black);
    padding: 11px 14px;
    font-size: 14px;
    font-family: inherit;
    outline: none;
    transition: border-color 0.15s, background 0.15s;
    letter-spacing: 0.04em;
    width: 100%;
    box-sizing: border-box;
}

.join-field input:hover  { border-color: rgba(255, 255, 255, 0.15); }
.join-field input:focus  { border-color: #4f8ef7; background: var(--white); }

.field-hint {
    font-size: 11px;
    color: #3d4460;
}

/* ── PASSCODE ROW ── */
.passcode-row {
    display: flex;
    gap: 8px;
    align-items: center;
}

.passcode-row input { flex: 1; }

.toggle-pw {
    flex-shrink: 0;
    background: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    color: #6b7590;
    width: 44px;
    height: 44px;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s, color 0.15s;
    padding: 0;
}



/* ── ERROR BANNER ── */
.join-error {
    background: rgba(229, 83, 75, 0.1);
    border: 1px solid rgba(229, 83, 75, 0.35);
    color: #e5534b;
    border-radius: 10px;
    padding: 10px 14px;
    font-size: 13px;
    margin-bottom: 16px;
    line-height: 1.4;
}

.join-error.hidden { display: none; }



/* ── AV TOGGLES ── */
.av-toggles {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}
.av-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.10);
    background: #161925;
    color: #e8eaf0;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
    font-family: inherit;
}
.av-btn img { width: 18px; height: 18px; object-fit: contain; filter: brightness(0) invert(1); }
.av-btn.av-on  { border-color: #4f8ef7; background: rgba(79,142,247,0.12); color: #7bb4ff; }
.av-btn.av-off { border-color: rgba(229,83,75,0.4); background: rgba(229,83,75,0.08); color: #e5534b; }
.av-btn.av-off img { filter: brightness(0) saturate(100%) invert(45%) sepia(80%) saturate(600%) hue-rotate(330deg); }

/* ── JOIN BUTTON ── */
.join-btn {
    width: 100%;
    padding: 13px;
    margin-top: 4px;
    background: #4f8ef7;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background 0.15s, transform 0.1s;
    font-family: inherit;
}
.join-btn:hover  { background: #3a7ae8; }
.join-btn:active { transform: scale(0.98); }
.join-btn:disabled { background: #2a3550; color: #5a6080; cursor: not-allowed; }



/* ── SPINNER ── */
.spinner {
    display: inline-block;
    width: 14px; height: 14px;
    border: 2px solid rgba(255,255,255,0.25);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}
.spinner.hidden { display: none; }
@keyframes spin { to { transform: rotate(360deg); } }

