/* Logo Theme Styling */
.navbar-brand {
    padding: 0;
    margin: 0;
}

.logo-svg {
    width: 130px;
    height: auto;
    transition: all 0.3s ease;
    display: block;
}

/* Tablet and Mobile logo adjustments */
@media (max-width: 991px) {
    .navbar-brand {
        padding: 8px 0;
        margin-right: 0;
    }

    .logo-svg {
        width: 110px !important;
        height: auto !important;
        max-height: 35px;
        object-fit: contain;
        display: block;
    }
}

/* Small tablet and large mobile */
@media (max-width: 768px) {
    .logo-svg {
        width: 100px !important;
        max-height: 32px;
    }
}

/* Small mobile */
@media (max-width: 576px) {
    .navbar-brand {
        padding: 5px 0;
    }

    .logo-svg {
        width: 90px !important;
        max-height: 30px;
    }
}

/* Logo color handling for different states */
.navbar-dark .navbar-brand .logo-svg {
    filter: brightness(0) invert(1); /* Make logo white */
}

.navbar-light .navbar-brand .logo-svg,
.navbar-scrolled .navbar-brand .logo-svg {
    filter: none; /* Keep logo black */
}

/* Ensure proper spacing for mobile menu toggle */
.navbar-toggler {
    padding: 4px 8px;
    margin-left: 10px;
}

/* Sticky header logo handling */
.navbar-scrolled .logo-light {
    display: none;
}

.navbar-scrolled .logo-dark {
    display: block;
}

/* Default state logo handling */
.navbar-dark .logo-light {
    display: block;
}

.navbar-dark .logo-dark {
    display: none;
}