/* ============================================
   Splash Screen Styles
   ============================================ */

#crmSplash {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    background: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

#crmSplash[aria-hidden="true"] {
    display: none;
}

#crmSplash .crm-splash-card {
    min-width: 260px;
    border-radius: 16px;
    background: #ffffff;
    color: #1c2333;
    padding: 2rem 2.25rem;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

/* Dark mode styles for splash */
html[data-theme="dark"] #crmSplash .crm-splash-card,
[data-theme="dark"] #crmSplash .crm-splash-card {
    background: #1a1f2b;
    color: #f5f7ff;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

html.dark #crmSplash .crm-splash-card {
    background: #1a1f2b;
    color: #f5f7ff;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

#crmSplash .crm-splash-logo-img {
    max-width: 100px;
    height: auto;
    margin-bottom: 1rem;
}

#crmSplash .crm-splash-spinner {
    width: 40px;
    height: 40px;
    margin: 1rem auto;
    border: 3px solid rgba(28, 35, 51, 0.1);
    border-top-color: #1c2333;
    border-radius: 50%;
    animation: crm-spin 1s linear infinite;
}

html[data-theme="dark"] #crmSplash .crm-splash-spinner,
[data-theme="dark"] #crmSplash .crm-splash-spinner,
html.dark #crmSplash .crm-splash-spinner {
    border-color: rgba(245, 247, 255, 0.1);
    border-top-color: #f5f7ff;
}

#crmSplash .crm-splash-text {
    font-size: 0.9rem;
    margin-top: 1rem;
    font-weight: 500;
}

@keyframes crm-spin {
    to {
        transform: rotate(360deg);
    }
}
