@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@100;200;300;400;500;600&display=swap");

/* ===== Modern Translucent Navbar ===== */
.main-header {
    font-family: "Montserrat", sans-serif;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.85),
        rgba(249, 250, 251, 0.9)
    );
    border-bottom: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow:
        0 4px 30px rgba(0, 0, 0, 0.05),
        0 1px 3px rgba(0, 0, 0, 0.03),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    position: relative;
    z-index: 1000;
}

.main-header::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        90deg,
        rgba(71, 85, 105, 0.03) 0%,
        rgba(100, 116, 139, 0.02) 50%,
        rgba(236, 72, 153, 0.02) 100%
    );
    pointer-events: none;
    z-index: -1;
}

#userSearch {
    border: none;
}

/* ===== Modern Search Bar ===== */
.userSearchWrapper {
    padding: 0 16px;
    border-radius: 12px;
    border: 1px solid rgba(229, 231, 235, 0.6);
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.9),
        rgba(249, 250, 251, 0.8)
    );
    box-shadow:
        0 2px 8px rgba(71, 85, 105, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 10px;
}

.userSearchWrapper:hover {
    border-color: rgba(71, 85, 105, 0.3);
    box-shadow:
        0 4px 12px rgba(71, 85, 105, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.userSearchWrapper:focus-within {
    border-color: rgba(71, 85, 105, 0.5);
    box-shadow:
        0 4px 16px rgba(71, 85, 105, 0.15),
        0 0 0 3px rgba(71, 85, 105, 0.1);
}

.userSearchWrapper img {
    opacity: 0.6;
    transition: opacity 0.2s ease;
}

.userSearchWrapper:focus-within img {
    opacity: 0.9;
}

.userSearchWrapper,
.userSearchWrapper input {
    background-color: transparent;
    color: #374151;
}

.userSearchWrapper input::placeholder {
    color: #9ca3af;
    font-weight: 400;
}

/* ===== Nav Links ===== */
.navbar-light .navbar-nav .nav-link {
    color: #4b5563;
    font-weight: 500;
    letter-spacing: 0.01em;
    transition: all 0.2s ease;
    position: relative;
}

.navbar-light .navbar-nav .nav-link:hover {
    color: #475569;
}

.navbar-light .navbar-nav .nav-link i {
    font-size: 1.1rem;
    transition: transform 0.2s ease;
}

.navbar-light .navbar-nav .nav-link:hover i {
    transform: scale(1.1);
}

.userSearchWrapper input:focus {
    background-color: transparent;
    outline: none;
    box-shadow: none;
}
/* ===== Modern Quick Action Buttons ===== */
.navbar-nav .nav-link.border.noted,
.navbar-nav .border.noted {
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.95),
        rgba(249, 250, 251, 0.9)
    );
    border: 1px solid rgba(229, 231, 235, 0.5) !important;
    border-radius: 10px !important;
    padding: 6px 14px !important;
    font-size: 0.8rem;
    font-weight: 500;
    color: #4b5563;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.navbar-nav .nav-link.border.noted:hover,
.navbar-nav .border.noted:hover {
    background: linear-gradient(
        135deg,
        rgba(71, 85, 105, 0.1),
        rgba(100, 116, 139, 0.08)
    );
    border-color: rgba(71, 85, 105, 0.3) !important;
    color: #475569;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(71, 85, 105, 0.12);
}

/* Primary colored action buttons */
.navbar-nav .nav-link.border.noted[style*="background: #14b8a6"],
.navbar-nav a.nav-link.border.noted[style*="background: #14b8a6"] {
    background: linear-gradient(135deg, #14b8a6, #0d9488) !important;
    border-color: rgba(20, 184, 166, 0.3) !important;
    color: #fff !important;
}

.navbar-nav .nav-link.border.noted[style*="background: #ea580c"],
.navbar-nav a.nav-link.border.noted[style*="background: #ea580c"] {
    background: linear-gradient(135deg, #f97316, #ea580c) !important;
    border-color: rgba(249, 115, 22, 0.3) !important;
    color: #fff !important;
}

/* ===== Modern Badges ===== */
.navbar-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    font-size: 0.65rem !important;
    padding: 3px 6px !important;
    border-radius: 8px !important;
    font-weight: 600;
    min-width: 18px;
    text-align: center;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.badge-warning.navbar-badge {
    background: linear-gradient(135deg, #fbbf24, #f59e0b) !important;
    color: #1f2937 !important;
}

.badge-danger.navbar-badge,
.navbar-badge[style*="background:#e11d48"] {
    background: linear-gradient(135deg, #f43f5e, #e11d48) !important;
    color: #fff !important;
}

/* ===== Modern Icon Buttons ===== */
.navbar-nav .nav-link img,
.navbar-nav .nav-link .fa,
.navbar-nav .nav-link .fas,
.navbar-nav .nav-link .far,
.navbar-nav .nav-link .fa-solid {
    transition: all 0.2s ease;
}

.navbar-nav .nav-link:hover img {
    transform: scale(1.1);
    filter: brightness(0.9);
}

/* Notification/Icon wrapper */
.nav-link.border.d-flex.align-items-center.noted {
    padding: 4px 10px !important;
    border-radius: 10px !important;
    position: relative;
}

.nav-link.border.d-flex.align-items-center.noted .nav-link {
    padding: 4px 6px !important;
}

/* ===== Modern Dropdown Menu ===== */
.dropdown-menu {
    background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.98),
        rgba(249, 250, 251, 0.95)
    );
    border: 1px solid rgba(229, 231, 235, 0.5);
    border-radius: 14px !important;
    box-shadow:
        0 10px 40px rgba(0, 0, 0, 0.1),
        0 4px 12px rgba(0, 0, 0, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    padding: 8px !important;
    margin-top: 8px !important;
    overflow: hidden;
}

.dropdown-menu::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        180deg,
        rgba(71, 85, 105, 0.02) 0%,
        rgba(100, 116, 139, 0.01) 100%
    );
    pointer-events: none;
    z-index: -1;
}

.dropdown-item {
    border-radius: 10px !important;
    padding: 10px 14px !important;
    font-size: 0.875rem;
    font-weight: 500;
    color: #4b5563;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 2px 0;
}

.dropdown-item:hover,
.dropdown-item:focus {
    background: linear-gradient(
        135deg,
        rgba(71, 85, 105, 0.1),
        rgba(100, 116, 139, 0.08)
    );
    color: #475569;
    transform: translateX(4px);
}

.dropdown-item i {
    font-size: 1rem;
    width: 20px;
    text-align: center;
    color: #475569;
    opacity: 0.8;
}

.dropdown-item:hover i {
    opacity: 1;
    transform: scale(1.1);
}

/* Profile section in dropdown */
.dropdown-item.drop-border {
    background: linear-gradient(
        135deg,
        rgba(249, 250, 251, 0.8),
        rgba(243, 244, 246, 0.6)
    );
    border-bottom: 1px solid rgba(229, 231, 235, 0.5) !important;
    margin-bottom: 8px;
    padding: 14px !important;
}

.dropdown-item.drop-border:hover {
    transform: none;
    background: linear-gradient(
        135deg,
        rgba(249, 250, 251, 0.8),
        rgba(243, 244, 246, 0.6)
    );
}

/* ===== Modern Toggler Button ===== */
.toggler-button .nav-link {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.9),
        rgba(249, 250, 251, 0.8)
    );
    border: 1px solid rgba(229, 231, 235, 0.5);
    transition: all 0.2s ease;
}

.toggler-button .nav-link:hover {
    background: linear-gradient(
        135deg,
        rgba(71, 85, 105, 0.1),
        rgba(100, 116, 139, 0.08)
    );
    border-color: rgba(71, 85, 105, 0.3);
}

/* ===== User Profile Button ===== */
#togglerIcon-desktop > a,
#toggleDropDown > a {
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.95),
        rgba(249, 250, 251, 0.9)
    );
    border: 1px solid rgba(229, 231, 235, 0.5) !important;
    border-radius: 12px !important;
    padding: 8px 14px !important;
    transition: all 0.25s ease;
}

#togglerIcon-desktop > a:hover,
#toggleDropDown > a:hover {
    background: linear-gradient(
        135deg,
        rgba(71, 85, 105, 0.08),
        rgba(100, 116, 139, 0.06)
    );
    border-color: rgba(71, 85, 105, 0.25) !important;
    box-shadow: 0 4px 12px rgba(71, 85, 105, 0.1);
}

#togglerIcon-desktop .fa-circle-user,
#toggleDropDown .fa-circle-user {
    color: #475569 !important;
    font-size: 20px !important;
}

#togglerIcon-desktop .fa-angle-down,
#toggleDropDown .fa-angle-down {
    color: #9ca3af;
    font-size: 12px;
    transition: transform 0.2s ease;
}

#togglerIcon-desktop > a:hover .fa-angle-down,
#toggleDropDown > a:hover .fa-angle-down {
    transform: translateY(2px);
}

/* Admin name styling */
.admin-name {
    font-weight: 500;
    color: #374151;
    margin: 0 6px;
}

/* ===== Profile Image ===== */
.profile-image-container {
    background: linear-gradient(135deg, #475569, #64748b);
    padding: 2px;
    border-radius: 50%;
}

.profile-image {
    border: 2px solid rgba(255, 255, 255, 0.9) !important;
}

/* ===== Online/Offline Status ===== */
#topbar_online_user {
    color: #22c55e !important;
    font-weight: 600;
}

#topbar_offline_user {
    color: #ef4444 !important;
    font-weight: 600;
}

/* ===== Dark Mode Styles ===== */
.dark-mode .main-header {
    background: linear-gradient(
        135deg,
        rgba(30, 41, 59, 0.95),
        rgba(15, 23, 42, 0.98)
    );
    border-bottom: 1px solid rgba(71, 85, 105, 0.3);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.dark-mode .main-header::before {
    background: linear-gradient(
        90deg,
        rgba(71, 85, 105, 0.05) 0%,
        rgba(100, 116, 139, 0.03) 50%,
        rgba(236, 72, 153, 0.03) 100%
    );
}

.dark-mode .userSearchWrapper,
.dark-mode .userSearchWrapper input {
    background: linear-gradient(
        135deg,
        rgba(51, 65, 85, 0.8),
        rgba(30, 41, 59, 0.9)
    );
    color: #e2e8f0;
    border: 1px solid rgba(71, 85, 105, 0.5);
}

.dark-mode .userSearchWrapper input::placeholder {
    color: #94a3b8;
}

.dark-mode .userSearchWrapper input:focus {
    background: linear-gradient(
        135deg,
        rgba(51, 65, 85, 0.9),
        rgba(30, 41, 59, 0.95)
    );
    color: #f1f5f9;
    box-shadow: 0 0 0 3px rgba(71, 85, 105, 0.2);
}

.dark-mode .navbar-light .navbar-nav .nav-link {
    color: #cbd5e1;
    font-weight: 500;
}

.dark-mode .navbar-light .navbar-nav .nav-link:hover {
    color: #94a3b8;
}

.dark-mode .dropdown-menu {
    background: linear-gradient(
        180deg,
        rgba(30, 41, 59, 0.98),
        rgba(15, 23, 42, 0.95)
    );
    border-color: rgba(71, 85, 105, 0.4);
}

.dark-mode .dropdown-item {
    color: #cbd5e1;
}

.dark-mode .dropdown-item:hover {
    background: linear-gradient(
        135deg,
        rgba(71, 85, 105, 0.15),
        rgba(100, 116, 139, 0.1)
    );
    color: #94a3b8;
}

.dark-mode .navbar-nav .nav-link.border.noted,
.dark-mode .navbar-nav .border.noted {
    background: linear-gradient(
        135deg,
        rgba(51, 65, 85, 0.8),
        rgba(30, 41, 59, 0.9)
    );
    border-color: rgba(71, 85, 105, 0.5) !important;
    color: #cbd5e1;
}

.dark-mode .navbar-nav .nav-link.border.noted:hover,
.dark-mode .navbar-nav .border.noted:hover {
    background: linear-gradient(
        135deg,
        rgba(71, 85, 105, 0.2),
        rgba(100, 116, 139, 0.15)
    );
    border-color: rgba(71, 85, 105, 0.4) !important;
    color: #94a3b8;
}

.dark-mode #togglerIcon-desktop > a,
.dark-mode #toggleDropDown > a {
    background: linear-gradient(
        135deg,
        rgba(51, 65, 85, 0.8),
        rgba(30, 41, 59, 0.9)
    );
    border-color: rgba(71, 85, 105, 0.5) !important;
}

.dark-mode #togglerIcon-desktop > a:hover,
.dark-mode #toggleDropDown > a:hover {
    background: linear-gradient(
        135deg,
        rgba(71, 85, 105, 0.15),
        rgba(100, 116, 139, 0.1)
    );
    border-color: rgba(71, 85, 105, 0.3) !important;
}

.dark-mode .admin-name {
    color: #e2e8f0;
}

.dark-mode .toggler-button .nav-link {
    background: linear-gradient(
        135deg,
        rgba(51, 65, 85, 0.8),
        rgba(30, 41, 59, 0.9)
    );
    border-color: rgba(71, 85, 105, 0.5);
}

.dark-mode .toggler-button .nav-link:hover {
    background: linear-gradient(
        135deg,
        rgba(71, 85, 105, 0.15),
        rgba(100, 116, 139, 0.1)
    );
}
