/* Modern Header Styles */
#header-container {
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    background: #ffffff;
    position: sticky;
    top: 0;
    z-index: 1000;
    margin-top: 0 !important;
    padding-top: 0 !important;
}

#header-container.fullwidth {
    margin: 0 !important;
    padding: 0 !important;
}

/* Remove extra space from body/wrapper */
body.gray {
    padding-top: 0 !important;
}

#wrapper {
    padding-top: 0 !important;
}

#header {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* Remove button borders and ensure alignment */
.left-sidebar-btn,
.right-sidebar-btn,
#fullscreen-button {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
}

/* Specific overrides for header elements */
#header button,
#header a:not(.dropdown-nav a),
#header .header-widget,
#header input {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
}

#header .header-widget {
    border-left: none !important;
    border-right: none !important;
}

/* Ensure navigation elements don't have borders */
#header nav,
#header nav *,
#header .language_ul,
#header .language_ul * {
    border: none !important;
}

/* Button Hover Effects */
.left-sidebar-btn:hover,
.right-sidebar-btn:hover,
#fullscreen-button:hover {
    background: #e9ecef !important;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12) !important;
    border: none !important;
}

.left-sidebar-btn:active,
.right-sidebar-btn:active,
#fullscreen-button:active {
    transform: translateY(0);
    border: none !important;
}

.left-sidebar-btn:focus,
.right-sidebar-btn:focus,
#fullscreen-button:focus {
    outline: none !important;
    border: none !important;
}

/* Language Selector Styling */
.language_ul,
.language_ul li,
.language_ul li > a {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
}

.language_ul li {
    display: flex;
    align-items: center;
}

/* Language Selector Hover */
.language_ul li > a:hover {
    background: #e9ecef !important;
    transform: translateY(-1px);
    border: none !important;
}

/* User Menu Styling */
.user-menu .header-notifications-trigger > a {
    border: none !important;
    outline: none !important;
}

/* User Menu Hover */
.user-menu .header-notifications-trigger > a:hover {
    background: #e9ecef !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: none !important;
}

.user-menu .header-notifications-trigger > a:focus {
    outline: none !important;
    border: none !important;
}

.user-avatar {
    transition: all 0.3s ease;
}

.user-menu:hover .user-avatar {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
}

/* Search Input Enhancement */
.general__search input {
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08) !important;
    border: 1px solid #ddd !important;
}

.general__search input:focus {
    outline: none !important;
    border: 1px solid #667eea !important;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1), 0 2px 8px rgba(0, 0, 0, 0.12) !important;
}

/* Logo Enhancement */
#logo a {
    transition: opacity 0.3s ease;
}

#logo a:hover {
    opacity: 0.85;
}

/* Dropdown Navigation Enhancement */
.dropdown-nav {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12) !important;
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 8px;
    overflow: hidden;
}

.dropdown-nav li a {
    transition: all 0.2s ease;
}

.dropdown-nav li a:hover {
    background: #f8f9fa;
    padding-left: 20px !important;
}

/* Dark Mode Toggle Enhancement */
.modeswitch-wrap {
    cursor: pointer;
    border: none !important;
    outline: none !important;
    padding: 8px;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.modeswitch-wrap:hover {
    background: #e9ecef;
    border: none !important;
}

.modeswitch-wrap:focus {
    outline: none !important;
    border: none !important;
}

.modeswitch-item {
    width: 51px;
    height: 22px;
    border-radius: 60px;
    margin-right: 0;
    transition: all 1s;
    background-image: url("../../images/icons/darkmode.svg");
    background-repeat: no-repeat;
    background-size: cover;
    border: none !important;
    display: flex;
    align-items: center;
}

.modeswitch-icon {
    display: block;
    transform: translateX(-5%);
    height: 24px;
    width: 35px;
    background-image: url("../../images/icons/darkIcon.svg");
    background-repeat: no-repeat;
    background-size: cover;
    padding: 0;
    border-radius: 30px;
    box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.4);
    font-size: 14px;
    transition: all 1s;
    border: none !important;
}

html[data-theme=dark] .modeswitch-item {
    background-image: url("../../images/icons/lightmode.svg");
}

html[data-theme=dark] .modeswitch-icon {
    background-repeat: no-repeat;
    background-size: cover;
    transform: translateX(18px);
    background-image: url("../../images/icons/lightIcon.svg");
    padding: 0;
}

/* Remove borders from all header widgets */
.header-widget,
.header-widget *,
.header-notifications,
.header-notifications *,
.header-notifications-trigger,
.header-notifications-trigger * {
    border: none !important;
    box-shadow: none !important;
}

.header-widget button,
.header-widget a {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
}

.header-widget button:focus,
.header-widget button:active,
.header-widget a:focus,
.header-widget a:active {
    outline: none !important;
    border: none !important;
    box-shadow: none !important;
}

/* Ensure all header elements are vertically aligned */
#header .header__f,
#header .left-side,
#header .right-side {
    align-items: center !important;
    display: flex !important;
}

#header .header-widget {
    display: flex !important;
    align-items: center !important;
    height: auto !important;
}

/* User Menu Dropdown Enhancement */
.header-notifications-dropdown {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15) !important;
    border-radius: 12px !important;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.user-menu-small-nav li {
    transition: all 0.2s ease;
}

.user-menu-small-nav li:hover {
    background: #f8f9fa;
}

.user-menu-small-nav li a {
    transition: all 0.2s ease;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-menu-small-nav li a:hover {
    padding-left: 25px;
    color: #667eea;
}

.user-menu-small-nav li a img {
    transition: transform 0.2s ease;
}

.user-menu-small-nav li a:hover img {
    transform: scale(1.1);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    #header .container {
        padding: 0 10px;
    }
    
    .language-text {
        display: none;
    }
    
    .user-name {
        max-width: 100px !important;
    }
}

/* Animation for dropdown */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.header-notifications-dropdown {
    animation: slideDown 0.3s ease;
}

/* Status online indicator */
.status-online::after {
    content: '';
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 10px;
    height: 10px;
    background: #10b981;
    border: 2px solid #fff;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Fix header to top - content scrolls underneath */
#header-container {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    z-index: 1000 !important;
    background: #ffffff !important;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08) !important;
    margin: 0 !important;
}

.dashboard-container {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

.dashboard-content-container {
    margin-top: 0 !important;
    padding-top: 80px !important; /* Space for fixed header */
}

.dashboard-content-inner.pt-50 {
    padding-top: 30px !important;
}

.dashboard-headline {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* Breadcrumbs Display Fix - FORCE VISIBLE */
.dashboard-headline #breadcrumbs,
#breadcrumbs {
    position: relative !important;
    z-index: 1 !important;
    display: block !important;
    background-color: transparent !important;
    visibility: visible !important;
    opacity: 1 !important;
    height: auto !important;
    overflow: visible !important;
    left: 0 !important;
    right: auto !important;
    transform: none !important;
}

#breadcrumbs ul {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 5px !important;
    visibility: visible !important;
    opacity: 1 !important;
}

#breadcrumbs ul li {
    display: inline-flex !important;
    align-items: center !important;
    font-size: 14px !important;
    color: #666 !important;
    visibility: visible !important;
    opacity: 1 !important;
}

#breadcrumbs ul li:not(:last-child)::after {
    content: "/" !important;
    margin: 0 8px !important;
    color: #ccc !important;
}

#breadcrumbs ul li a {
    color: #667eea !important;
    text-decoration: none !important;
    transition: color 0.3s ease !important;
    display: inline-block !important;
}

#breadcrumbs ul li a:hover {
    color: #764ba2 !important;
    text-decoration: underline !important;
}

#breadcrumbs ul li:last-child {
    color: #333 !important;
    font-weight: 500 !important;
}

