/* mainheader.css - Header Styles for Redelec Portal */

/* Header Styles */
.app-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(16, 185, 129, 0.1);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    height: 70px;
}

.nav-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0.875rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-left, .nav-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.navbar-toggler {
    padding: 0.5rem;
    border: none;
    background: transparent;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: background 0.2s;
}

.navbar-toggler:hover {
    background: rgba(16, 185, 129, 0.1);
}

.navbar-toggler-icon {
    width: 1.5rem;
    height: 1.5rem;
    display: inline-block;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23475569' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 6h16M4 12h16M4 18h16'/%3E%3C/svg%3E");
    background-size: 100% 100%;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-circle {
    position: relative;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background: linear-gradient(135deg, #7FB844, #5A8F2E);
    display: flex;
    align-items: center;
    justify-content: center;
    filter: drop-shadow(0 0 20px rgba(127, 184, 68, 0.3));
}

.logo-inner {
    width: 1rem;
    height: 1rem;
    background: #1e293b;
    border-radius: 50%;
}

.navbar-nav {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-item {
    position: relative;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
    color: #475569;
    text-decoration: none;
    border-radius: 0.5rem;
    transition: all 0.2s;
    font-size: 0.875rem;
    font-weight: 500;
}

.nav-link:hover {
    background: rgba(16, 185, 129, 0.1);
    color: #1e293b;
}

.icon-bell {
    width: 1.25rem;
    height: 1.25rem;
    display: inline-block;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23475569' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 8A6 6 0 0 0 6 8c0 7-3 9-3 9h18s-3-2-3-9'/%3E%3Cpath d='M13.73 21a2 2 0 0 1-3.46 0'/%3E%3C/svg%3E");
    background-size: 100% 100%;
}

.badge {
    display: inline-block;
    padding: 0.125rem 0.375rem;
    font-size: 0.625rem;
    font-weight: 700;
    line-height: 1;
    color: #fff;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    border-radius: 9999px;
}

.badge-pill {
    padding-right: 0.5rem;
    padding-left: 0.5rem;
    border-radius: 10rem;
}

.badge-danger {
    background-color: #ef4444;
}

.img-avatar {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #e5e7eb;
    transition: all 0.2s;
}

.nav-link:hover .img-avatar {
    border-color: #10b981;
    transform: scale(1.05);
}

.user-name-display {
    display: none;
    color: #475569;
    font-weight: 500;
    font-size: 0.875rem;
}

@media (min-width: 768px) {
    .user-name-display {
        display: block;
    }
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    z-index: 1000;
    display: none;
    min-width: 12rem;
    padding: 0.5rem 0;
    margin: 0.5rem 0 0;
    font-size: 0.875rem;
    color: #1e293b;
    text-align: left;
    list-style: none;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 0.75rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.dropdown-menu.show {
    display: block;
}

.dropdown-header {
    display: block;
    padding: 0.75rem 1rem;
    margin-bottom: 0.5rem;
    font-size: 0.75rem;
    color: #64748b;
    white-space: nowrap;
    border-bottom: 1px solid #e5e7eb;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    padding: 0.625rem 1rem;
    clear: both;
    font-weight: 400;
    color: #475569;
    text-align: inherit;
    text-decoration: none;
    white-space: nowrap;
    background-color: transparent;
    border: 0;
    transition: all 0.2s;
}

.dropdown-item:hover {
    color: #1e293b;
    background-color: rgba(16, 185, 129, 0.1);
}

.dropdown-item i {
    width: 1rem;
    height: 1rem;
    color: #10b981;
}

.fa-user {
    display: inline-block;
    width: 1rem;
    height: 1rem;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2310b981' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='12' cy='7' r='4'/%3E%3C/svg%3E");
    background-size: 100% 100%;
}

.fa-lock {
    display: inline-block;
    width: 1rem;
    height: 1rem;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2310b981' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='11' width='18' height='11' rx='2' ry='2'/%3E%3Cpath d='M7 11V7a5 5 0 0 1 10 0v4'/%3E%3C/svg%3E");
    background-size: 100% 100%;
}

.d-md-down-none {
    display: none !important;
}

@media (min-width: 768px) {
    .d-md-down-none {
        display: flex !important;
    }
}

.d-lg-none {
    display: block;
}

@media (min-width: 1024px) {
    .d-lg-none {
        display: none !important;
    }
}

.mobile-sidebar-toggler {
    display: block;
}

@media (min-width: 1024px) {
    .mobile-sidebar-toggler {
        display: none;
    }
}

.sidebar-toggler {
    display: none;
}

@media (min-width: 768px) {
    .sidebar-toggler {
        display: block;
    }
}

.mr-auto {
    margin-right: auto;
}

.ml-auto {
    margin-left: auto;
}
