/* Logo Transparency and Background Removal Styles */

/* Remove any background from logo containers */
.app-logo,
.header-logo {
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    mix-blend-mode: multiply;
}

/* Force transparency on logo images */
.app-logo img,
.header-logo img {
    background: transparent !important;
    background-color: transparent !important;
}

/* Logo container styling with transparent background */
.logo-container {
    background: transparent !important;
    padding: 0;
    margin: 0;
}

/* Login screen logo - larger, centered */
.app-logo {
    width: 350px !important;
    height: 350px !important;
    object-fit: contain !important;
    filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.15));
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

/* Dashboard header logo - compact */
.header-logo {
    width: 120px !important;
    height: 120px !important;
    object-fit: contain !important;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.1));
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

/* Remove white background that might be in the image */
.app-logo,
.header-logo {
    /* Use CSS filter to make whites transparent (works for PNG/JPEG) */
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
}

/* Alternative method: Use background-blend-mode */
.logo-container::before {
    display: none !important;
}

/* Ensure no box shadow creates a white appearance */
.app-logo,
.header-logo {
    box-shadow: none !important;
}

/* Create a subtle glow effect instead of background */
.app-logo:hover {
    filter: drop-shadow(0 12px 32px rgba(0, 0, 0, 0.2));
    transform: scale(1.02);
    transition: all 0.3s ease;
}

.header-logo:hover {
    filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.15));
    transform: scale(1.05);
    transition: all 0.3s ease;
}

/* Logo wrapper with gradient background (optional, can be removed if not needed) */
.logo-wrapper {
    background: transparent;
    border-radius: 50%;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Force PNG transparency support */
@supports (mix-blend-mode: multiply) {
    .app-logo,
    .header-logo {
        mix-blend-mode: normal;
    }
}

/* Animation for logo entrance */
@keyframes logoFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.app-logo,
.header-logo {
    animation: logoFadeIn 0.6s ease-out;
}

/* Responsive logo sizing */
@media (max-width: 768px) {
    .app-logo {
        width: 280px !important;
        height: 280px !important;
    }
    
    .header-logo {
        width: 90px !important;
        height: 90px !important;
    }
}

@media (max-width: 480px) {
    .app-logo {
        width: 220px !important;
        height: 220px !important;
    }
    
    .header-logo {
        width: 70px !important;
        height: 70px !important;
    }
}

/* High DPI display optimization */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .app-logo,
    .header-logo {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}
