/* Senaro Logo Styles */

.senaro-logo {
    display: inline-block;
    vertical-align: middle;
}

/* Main logo for headers and prominent placement */
.senaro-logo-main {
    width: 180px;
    height: 50px;
    max-width: 100%;
}

/* Compact logo for navigation bars */
.senaro-logo-compact {
    width: 120px;
    height: 32px;
    max-width: 100%;
}

/* Icon only for small spaces */
.senaro-logo-icon {
    width: 40px;
    height: 40px;
}

/* Responsive logo sizing */
@media (max-width: 768px) {
    .senaro-logo-main {
        width: 140px;
        height: 39px;
    }
    
    .senaro-logo-compact {
        width: 100px;
        height: 27px;
    }
    
    .senaro-logo-icon {
        width: 32px;
        height: 32px;
    }
}

@media (max-width: 480px) {
    .senaro-logo-main {
        width: 120px;
        height: 32px;
    }
    
    .senaro-logo-compact {
        width: 90px;
        height: 24px;
    }
}

/* Logo in navigation header */
.navbar-brand .senaro-logo {
    margin-right: 0.5rem;
}

/* Dark navigation background logo visibility using pseudo-element */
.navbar-dark .senaro-logo-compact,
.bg-dark .senaro-logo-compact {
    position: relative;
}

.navbar-dark .senaro-logo-compact::before,
.bg-dark .senaro-logo-compact::before {
    content: "";
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('/images/senaro-logo-compact-light.svg') no-repeat center center;
    background-size: contain;
    z-index: 1;
    pointer-events: none;
}

/* Main page logo styles */
.senaro-logo-hero {
    width: 500px !important;
    height: 138px !important;
    max-width: 95% !important;
    margin: 3rem auto 4rem auto !important;
    padding: 0 !important;
    background: transparent !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    display: block !important;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.08)) !important;
}

@media (max-width: 768px) {
    .senaro-logo-hero {
        width: 400px !important;
        height: 110px !important;
        margin: 2rem auto 3rem auto !important;
    }
}

@media (max-width: 480px) {
    .senaro-logo-hero {
        width: 320px !important;
        height: 88px !important;
        margin: 1.5rem auto 2.5rem auto !important;
    }
}

/* Logo with hover effect for interactive elements */
.senaro-logo-interactive {
    transition: opacity 0.2s ease, transform 0.2s ease;
    cursor: pointer;
}

.senaro-logo-interactive:hover {
    opacity: 0.8;
    transform: scale(1.02);
}

/* Dark theme variations */
@media (prefers-color-scheme: dark) {
    .senaro-logo {
        filter: brightness(1.1);
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .senaro-logo {
        filter: contrast(1.2);
    }
}

/* Print styles */
@media print {
    .senaro-logo {
        filter: grayscale(100%);
    }
}

/* Navigation link alignment fixes */
.nav-link.d-flex.align-items-center {
    align-items: center !important;
    padding: 0.75rem 1rem !important;
}

.nav-link .bi {
    font-size: 1.1rem !important;
    line-height: 1 !important;
    vertical-align: middle !important;
    display: inline-block !important;
    margin-right: 0.5rem !important;
}

.nav-link span {
    font-size: 1rem !important;
    line-height: 1.2 !important;
    vertical-align: middle !important;
    display: inline-block !important;
}

/* Ensure proper vertical alignment */
.nav-item .nav-link {
    display: flex !important;
    align-items: center !important;
    min-height: 2.5rem !important;
}
