/* iQWYK brand overrides on top of UITemplate / PlainAdmin */

.iqwyk-logo {
    display: block;
    width: auto;
    height: auto;
    max-height: 42px;
    object-fit: contain;
}

.iqwyk-logo-sidebar {
    max-height: 52px;
    max-width: 170px;
}

.iqwyk-logo-auth {
    max-height: 140px;
    max-width: 280px;
    margin-left: auto;
    margin-right: auto;
}

.iqwyk-logo-home {
    max-height: 64px;
    max-width: 220px;
    margin-bottom: 1rem;
}

.iqwyk-logo-welcome {
    margin: 2rem auto 0;
    max-height: 72px;
    max-width: 240px;
}

/* Welcome page QWYK ID sign-in (fallback when Vite/Tailwind build is absent) */
.bg-primary {
    background-color: #ff6f00;
}

.text-primary {
    color: #ff6f00;
}

.hover\:text-primary:hover {
    color: #ff6f00;
}

.hover\:bg-primary:hover {
    background-color: #ff6f00;
}

.welcome-sign-in-actions {
    align-items: center;
    margin-top: 0.5rem;
}

#sign-in-link-mobile {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 9999px;
    color: #1b1b18;
}

#sign-in-link-desktop {
    display: none;
    border-radius: 0.375rem;
    padding: 0.35rem 0.625rem 0.5rem;
    font-size: 1rem;
    font-weight: 500;
    color: #fff;
    background-color: #ff6f00;
}

@media (min-width: 640px) {
    #sign-in-link-mobile {
        display: none !important;
    }

    #sign-in-link-desktop {
        display: inline-block !important;
    }
}

.spinner {
    animation: iqwyk-spin 1s linear infinite;
}

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

.landing-user-dropdown {
    position: relative;
}

.landing-user-trigger {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border-radius: 9999px;
    border: 1px solid rgba(112, 131, 245, 0.18);
    background: #ffffff;
    color: #181c31;
    padding: 6px 8px 6px 12px;
    box-shadow: 0 10px 30px rgba(74, 108, 247, 0.08);
}

.dark .landing-user-trigger {
    background: #15182a;
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.12);
}

.landing-user-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 9999px;
    background: #e86705;
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
}

.landing-user-name {
    max-width: 140px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    font-size: 14px;
    font-weight: 600;
}

.landing-user-menu {
    position: absolute;
    right: 0;
    top: calc(100% + 10px);
    z-index: 50;
    min-width: 190px;
    border-radius: 16px;
    border: 1px solid rgba(112, 131, 245, 0.14);
    background: #ffffff;
    padding: 10px;
    box-shadow: 0 24px 60px rgba(16, 24, 40, 0.16);
}

.landing-user-menu.hidden {
    display: none;
}

.dark .landing-user-menu {
    background: #15182a;
    border-color: rgba(255, 255, 255, 0.08);
}

.landing-user-menu-link {
    display: block;
    border-radius: 12px;
    padding: 10px 12px;
    color: #181c31;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
}

.landing-user-menu-link:hover {
    background: #f4f7ff;
    color: #7083f5;
}

.dark .landing-user-menu-link {
    color: #ffffff;
}

.dark .landing-user-menu-link:hover {
    background: rgba(112, 131, 245, 0.14);
}
