/* Handover Demo Premium UI */

/* 1. Glassmorphism Utilities */
.ho-demo-popup {
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 24px !important;
    background: rgba(255, 255, 255, 0.85) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    box-shadow:
        0 25px 50px -12px rgba(0, 0, 0, 0.25),
        0 0 0 1px rgba(255, 255, 255, 0.3) inset !important;
    padding: 0 !important;
    font-family: 'Inter', system-ui, -apple-system, sans-serif !important;
    overflow: hidden !important;
}

/* 2. Welcome Modal Content */
.ho-demo-modal {
    text-align: center;
}

.ho-demo-header {
    padding: 40px 40px 20px 40px;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.5), transparent);
}

.ho-demo-header h2 {
    font-size: 24px !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    margin: 0 0 12px 0 !important;
    letter-spacing: -0.02em !important;
}

.ho-demo-header p {
    font-size: 15px !important;
    line-height: 1.6 !important;
    color: #475569 !important;
    margin: 0 !important;
}

.ho-demo-header strong {
    color: #4f46e5;
    font-weight: 600;
}

.ho-demo-actions {
    padding: 0 40px 10px 40px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ho-btn {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 14px 20px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none !important;
    transition: all 0.2s ease;
    cursor: pointer;
    box-sizing: border-box;
    /* Critical for width */
}

/* Primary Button (Create Project) */
.ho-btn-primary {
    background: #0f172a !important;
    color: #fff !important;
    border: 1px solid transparent !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.ho-btn-primary:hover {
    background: #1e293b !important;
    transform: translateY(-1px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Secondary Button (Client Portal) */
.ho-btn-secondary {
    background: #fff !important;
    color: #334155 !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.ho-btn-secondary:hover {
    background: #f8fafc !important;
    border-color: #cbd5e1 !important;
    color: #0f172a !important;
}

.ho-demo-footer {
    border-top: 1px solid rgba(0, 0, 0, 0.04);
    background: rgba(248, 250, 252, 0.5);
    padding: 16px;
    font-size: 12px;
    color: #64748b;
    font-weight: 500;
}

/* 3. Sandbox Timer Widget */
#handover-sandbox-timer {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 99999;
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(8px);
    color: #fff;
    padding: 10px 16px;
    border-radius: 99px;
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 13px;
    font-weight: 600;
    box-shadow:
        0 10px 15px -3px rgba(0, 0, 0, 0.1),
        0 4px 6px -2px rgba(0, 0, 0, 0.05),
        0 0 0 1px rgba(255, 255, 255, 0.1) inset;
    display: flex;
    align-items: center;
    gap: 8px;
    animation: ho-fade-in 0.5s ease-out;
}

#demo-countdown {
    color: #4ade80;
    /* Green timer */
    font-feature-settings: "tnum";
    font-variant-numeric: tabular-nums;
}

@keyframes ho-fade-in {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 4. Admin Bar Icon Fix (Glassmorphism) */
#toplevel_page_handover .wp-menu-image img {
    background: rgba(255, 255, 255, 0.1) !important;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* 5. Hide annoying defaults if any */
div.swal2-container.swal2-center.swal2-backdrop-show {
    background: rgba(9, 9, 11, 0.65) !important;
    /* Darker, more premium backdrop */
}