/* Wincos Header Color Scheme - Matching Sidebar Blue Corporate Theme */
/* Mengikuti skema warna sidebar dengan dominasi biru corporate yang elegan */

/* Header Background - Very soft blue-gray matching sidebar */
.app-header {
    background: linear-gradient(90deg, #f1f5f9 0%, #e2e8f0 25%, #cbd5e0 50%, #a0aec0 100%) !important;
    border-bottom: 1px solid rgba(160, 174, 192, 0.15) !important;
    box-shadow: 0 1px 3px rgba(160, 174, 192, 0.08) !important;
}

/* Header Container */
.app-header .container-fluid {
    background: transparent !important;
}

/* Logo Section in Header */
.app-header .fs-18.fw-semibold {
    color: #64748b !important;
    font-weight: 600 !important;
}

/* Toggle Button - Very soft theme */
.app-header .vertical-toggle,
.app-header .horizontal-toggle {
    background: rgba(241, 245, 249, 0.6) !important;
    border: 1px solid rgba(160, 174, 192, 0.2) !important;
    color: #64748b !important;
}

.app-header .vertical-toggle:hover,
.app-header .horizontal-toggle:hover {
    background: rgba(226, 232, 240, 0.8) !important;
    border-color: rgba(160, 174, 192, 0.3) !important;
    color: #475569 !important;
    box-shadow: 0 1px 3px rgba(160, 174, 192, 0.1) !important;
}

/* Sidebar Toggle Button - Position and Orange Tint */
.app-header .vertical-toggle {
    margin-left: 10px !important;
    /* Move slightly to the right */
}

.app-header .vertical-toggle .bi-arrow-bar-left {
    color: #f97316 !important;
    /* Orange tint */
    opacity: 0.8;
}

.app-header .vertical-toggle:hover .bi-arrow-bar-left {
    color: #ea580c !important;
    /* Darker orange on hover */
    opacity: 1;
}

/* Header Icons */
.app-header .header-icon {
    color: #64748b !important;
}

.app-header .vertical-toggle:hover .header-icon,
.app-header .horizontal-toggle:hover .header-icon {
    color: #475569 !important;
}

/* List/Menu Icon - Slight Orange Tint */
.app-header .horizontal-toggle .ri-menu-2-line {
    color: #f97316 !important;
    /* Orange-500 with slight transparency */
    opacity: 0.8;
}

.app-header .horizontal-toggle:hover .ri-menu-2-line {
    color: #ea580c !important;
    /* Darker orange on hover */
    opacity: 1;
}

/* Compact Theme Toggle Button */
.app-header .theme-toggle-wrapper {
    position: relative;
}

.app-header .theme-toggle-btn {
    width: 36px !important;
    height: 36px !important;
    padding: 0 !important;
    border-radius: 50% !important;
    background: rgba(241, 245, 249, 0.6) !important;
    border: 1px solid rgba(160, 174, 192, 0.2) !important;
    color: #64748b !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.3s ease !important;
    position: relative !important;
    overflow: hidden !important;
}

.app-header .theme-toggle-btn:hover {
    background: rgba(226, 232, 240, 0.8) !important;
    border-color: rgba(160, 174, 192, 0.3) !important;
    color: #475569 !important;
    box-shadow: 0 2px 8px rgba(160, 174, 192, 0.15) !important;
    transform: translateY(-1px) !important;
}

.app-header .theme-toggle-btn .theme-icon {
    font-size: 16px !important;
    transition: all 0.4s ease !important;
    position: relative !important;
    z-index: 2 !important;
}

/* Icon rotation animation */
.app-header .theme-toggle-btn.dark-mode .theme-icon {
    transform: rotate(180deg) !important;
}

/* Subtle glow effect on hover */
.app-header .theme-toggle-btn:hover::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(100, 116, 139, 0.1) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    border-radius: 50%;
    z-index: 1;
}

/* Header Button General Styling */
.app-header .header-btn {
    background: rgba(241, 245, 249, 0.5) !important;
    border: 1px solid rgba(160, 174, 192, 0.15) !important;
    color: #64748b !important;
    border-radius: 6px !important;
}

.app-header .header-btn:hover {
    background: rgba(226, 232, 240, 0.7) !important;
    border-color: rgba(160, 174, 192, 0.25) !important;
    color: #475569 !important;
    box-shadow: 0 1px 2px rgba(160, 174, 192, 0.1) !important;
}

/* Header Dropdown Menus */
.app-header .dropdown-menu {
    border: 1px solid rgba(160, 174, 192, 0.15) !important;
    box-shadow: 0 2px 8px rgba(160, 174, 192, 0.1) !important;
}

.app-header .dropdown-item:hover {
    background: rgba(241, 245, 249, 0.8) !important;
    color: #475569 !important;
}

/* Header Text and Links */
.app-header a {
    color: #64748b !important;
}

.app-header a:hover {
    color: #475569 !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .app-header {
        background: linear-gradient(90deg, #f1f5f9 0%, #e2e8f0 50%, #cbd5e0 100%) !important;
    }
}

/* Dark mode compatibility */
[data-bs-theme=dark] .app-header {
    background: linear-gradient(90deg, #4a5568 0%, #2d3748 50%, #1a202c 100%) !important;
    border-bottom-color: rgba(255, 255, 255, 0.1) !important;
}

[data-bs-theme=dark] .app-header .vertical-toggle,
[data-bs-theme=dark] .app-header .horizontal-toggle,
[data-bs-theme=dark] .app-header .header-btn {
    background: rgba(255, 255, 255, 0.1) !important;
    border-color: rgba(255, 255, 255, 0.2) !important;
    color: #cbd5e0 !important;
}

[data-bs-theme=dark] .app-header .vertical-toggle:hover,
[data-bs-theme=dark] .app-header .horizontal-toggle:hover,
[data-bs-theme=dark] .app-header .header-btn:hover {
    background: rgba(255, 255, 255, 0.2) !important;
    color: #ffffff !important;
}

/* Dark mode theme toggle styling */
[data-bs-theme=dark] .app-header .theme-toggle-btn {
    background: rgba(255, 255, 255, 0.1) !important;
    border-color: rgba(255, 255, 255, 0.2) !important;
    color: #cbd5e0 !important;
}

[data-bs-theme=dark] .app-header .theme-toggle-btn:hover {
    background: rgba(255, 255, 255, 0.2) !important;
    border-color: rgba(255, 255, 255, 0.3) !important;
    color: #ffffff !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2) !important;
}

[data-bs-theme=dark] .app-header .theme-toggle-btn:hover::before {
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
}

/* Profile Avatar Styling - Compact & Clean */
.app-header .profile-avatar-btn {
    width: 40px !important;
    height: 40px !important;
    padding: 2px !important;
    border-radius: 50% !important;
    background: rgba(241, 245, 249, 0.6) !important;
    border: 1px solid rgba(160, 174, 192, 0.2) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.3s ease !important;
}

.app-header .profile-avatar-btn:hover {
    background: rgba(226, 232, 240, 0.8) !important;
    border-color: rgba(160, 174, 192, 0.3) !important;
    box-shadow: 0 2px 8px rgba(160, 174, 192, 0.15) !important;
    transform: translateY(-1px) !important;
}

.app-header .profile-avatar-img {
    width: 32px !important;
    height: 32px !important;
    object-fit: cover !important;
    border-radius: 50% !important;
}

/* Profile dropdown avatar - smaller size */
.app-header .profile-dropdown-avatar {
    width: 36px !important;
    height: 36px !important;
    object-fit: cover !important;
    border-radius: 50% !important;
    border: 2px solid rgba(160, 174, 192, 0.1) !important;
}

/* Header profile button styling */
.app-header .header-profile-btn {
    background: transparent !important;
    border: none !important;
    padding: 4px 8px !important;
    border-radius: 25px !important;
    transition: all 0.3s ease !important;
}

.app-header .header-profile-btn:hover {
    background: rgba(241, 245, 249, 0.6) !important;
    box-shadow: 0 2px 8px rgba(160, 174, 192, 0.1) !important;
}

/* Dark mode profile styling */
[data-bs-theme=dark] .app-header .profile-avatar-btn {
    background: rgba(255, 255, 255, 0.1) !important;
    border-color: rgba(255, 255, 255, 0.2) !important;
}

[data-bs-theme=dark] .app-header .profile-avatar-btn:hover {
    background: rgba(255, 255, 255, 0.2) !important;
    border-color: rgba(255, 255, 255, 0.3) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2) !important;
}

[data-bs-theme=dark] .app-header .profile-dropdown-avatar {
    border-color: rgba(255, 255, 255, 0.2) !important;
}

[data-bs-theme=dark] .app-header .header-profile-btn:hover {
    background: rgba(255, 255, 255, 0.1) !important;
}/* Header L
ogo Visibility Rules */
/* Default: Hide all logos first */
.header-sidebar-logo-default,
.header-sidebar-logo-light,
.header-sidebar-logo-small,
.header-sidebar-logo-small-light {
    display: none !important;
}

/* Desktop: Show full logo */
@media (min-width: 992px) {
    .header-sidebar-logo-default {
        display: inline-block !important;
    }
}

/* Mobile: Show small logo */
@media (max-width: 991.98px) {
    .header-sidebar-logo-small {
        display: inline-block !important;
    }
}

/* Dark mode adjustments */
[data-bs-theme=dark] .header-sidebar-logo-default {
    display: none !important;
}

[data-bs-theme=dark] .header-sidebar-logo-light {
    display: inline-block !important;
}

[data-bs-theme=dark] .header-sidebar-logo-small {
    display: none !important;
}

[data-bs-theme=dark] .header-sidebar-logo-small-light {
    display: inline-block !important;
}

/* Mobile dark mode */
@media (max-width: 991.98px) {
    [data-bs-theme=dark] .header-sidebar-logo-light {
        display: none !important;
    }
    
    [data-bs-theme=dark] .header-sidebar-logo-small-light {
        display: inline-block !important;
    }
}

/* Ensure logo is properly sized and positioned */
.app-header img[class*="header-sidebar-logo"] {
    max-height: 30px !important;
    width: auto !important;
    object-fit: contain !important;
}