/* Top Navbar */
.top-navbar {
    background: #fff;
    border-bottom: 1px solid #E9E9E9;
    padding: 1rem 1.5rem;
    position: relative;
}

.navbar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 100%;
    gap: 20px;
}

.left-section {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.logo-circle {
    width: 40px;
    height: 40px;
    background: #FCB117;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.title-texts .title {
    font-weight: 600;
    font-size: 18px;
    color: #2C2C2C;
}

.title-texts .subtitle {
    font-size: 12px;
    color: #777;
}

/* Middle Section - Search Box */
.middle-section {
    flex: 1;
    max-width: 500px;
    margin: 0 20px;
}

.search-box {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.search-box i {
    position: absolute;
    left: 12px;
    color: #777;
    z-index: 1;
}

.search-box input {
    padding: 10px 12px 10px 36px;
    border: 1px solid #E9E9E9;
    border-radius: 8px;
    background: #f9f9fb;
    width: 100%;
    outline: none;
    transition: all 0.3s ease;
}

.search-box input:focus {
    border-color: #FCB117;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(154, 63, 239, 0.1);
}

/* Right Section */
.right-section {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-shrink: 0;
}

/* Desktop Icons */
.desktop-icons {
    display: flex;
    align-items: center;
    gap: 15px;
}

.notif {
    width: 40px;
    height: 40px;
    background: #f9f9fb;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #555;
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid transparent;
}

.notif:hover {
    background: #FFF9EF;
    color: #FCB117;
    border-color: #FFF9EF;
}

.avatar {
    display: flex;
    align-items: center;
    gap: 8px;
}

.avatar-img {
    width: 40px;
    height: 40px;
    background: #FCB117;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 14px;
    font-weight: 600;
}

.admin-text {
    font-size: 14px;
    color: #555;
    font-weight: 500;
}

/* Mobile Hamburger */
.mobile-hamburger {
    display: none;
}

.hamburger-btn {
    width: 40px;
    height: 40px;
    background: #f9f9fb;
    border: 1px solid #E9E9E9;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #555;
    cursor: pointer;
    transition: all 0.3s ease;
}

.hamburger-btn:hover {
    background: #FFF9EF;
    color: #FCB117;
    border-color: #FFF9EF;
}

/* Mobile Menu */
.mobile-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid #E9E9E9;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.mobile-menu.active {
    display: block;
}

.mobile-menu-content {
    padding: 1rem 1.5rem;
}

.mobile-search {
    margin-bottom: 1rem;
}

.mobile-search-box {
    width: 100%;
}

.mobile-menu-items {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.mobile-menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    color: #555;
}

.mobile-menu-item:hover {
    background: #f9f9fb;
    color: #FCB117;
}

.mobile-menu-item i {
    width: 20px;
    text-align: center;
}

/* Scroll to Top Button */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: #FCB117;
    color: white;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(154, 63, 239, 0.3);
    z-index: 1000;
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    background: #8a2be2;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(154, 63, 239, 0.4);
}

/* Responsive Design */
@media (max-width: 992px) {
    .middle-section {
        max-width: 400px;
        margin: 0 15px;
    }
}

@media (max-width: 768px) {
    .top-navbar {
        padding: 1rem;
    }
    
    .navbar-inner {
        gap: 15px;
    }
    
    .middle-section {
        display: none;
    }
    
    .desktop-icons {
        display: none;
    }
    
    .mobile-hamburger {
        display: block;
    }
    
    .left-section {
        flex: 1;
    }
    
    .title-texts .title {
        font-size: 16px;
    }
    
    .title-texts .subtitle {
        font-size: 11px;
    }
}

@media (max-width: 480px) {
    .top-navbar {
        padding: 0.75rem 1rem;
    }
    
    .logo-circle {
        width: 36px;
        height: 36px;
    }
    
    .title-texts .title {
        font-size: 15px;
    }
    
    .scroll-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
}

/* Extra Small Mobile Screens - Icon on top, no border */
@media (max-width: 375px) {
    .top-navbar {
        padding: 0.5rem 0.75rem;
    }
    
    .navbar-inner {
        flex-direction: column;
        gap: 8px;
        align-items: flex-start;
    }
    
    .left-section {
        width: 100%;
        justify-content: center;
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }
    
    .logo-circle {
        width: 32px;
        height: 32px;
        background: #FCB117;
        border: none; /* Remove border */
        box-shadow: none; /* Remove any shadow */
    }
    
    .logo-circle i {
        font-size: 14px;
    }
    
    .title-texts {
        width: 100%;
    }
    
    .title-texts .title {
        font-size: 14px;
        line-height: 1.2;
    }
    
    .title-texts .subtitle {
        font-size: 10px;
        line-height: 1.2;
    }
    
    .mobile-hamburger {
        position: absolute;
        right: 0.75rem;
        top: 50%;
        transform: translateY(-50%);
    }
    
    .hamburger-btn {
        width: 32px;
        height: 32px;
        background: transparent;
        border: none; /* Remove border */
    }
    
    .hamburger-btn:hover {
        background: transparent;
        color: #FCB117;
    }
}

/* Even smaller screens for very compact devices */
@media (max-width: 320px) {
    .top-navbar {
        padding: 0.4rem 0.5rem;
    }
    
    .logo-circle {
        width: 28px;
        height: 28px;
    }
    
    .logo-circle i {
        font-size: 12px;
    }
    
    .title-texts .title {
        font-size: 13px;
    }
    
    .title-texts .subtitle {
        font-size: 9px;
    }
    
    .mobile-hamburger {
        right: 0.5rem;
    }
    
    .hamburger-btn {
        width: 28px;
        height: 28px;
    }
    
    .hamburger-btn i {
        font-size: 14px;
    }
}

/* Notification bar */
.notification-bar {
    padding: 14px 20px;
    margin-bottom: 20px;
    background: #fff;
    border: 1px solid #E9E9E9;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.notification-bar .icon-container {
    width: 32px;
    height: 32px;
    background: #FFF9EF;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FCB117;
    font-size: 14px;
    flex-shrink: 0;
}

.notification-bar .notice-title {
    font-weight: 600;
    color: #2C2C2C;
    font-size: 14px;
}

.notification-bar .notice-text {
    font-size: 14px;
    color: #555;
    line-height: 1.4;
}

.notification-bar .chevron {
    background: #FFF9EF;
    color: #FCB117;
    cursor: pointer;
    transition: all 0.2s;
}

.notification-bar .chevron:hover {
    background: #FFF9EF;
}

/* Additional Navbar Styles for Water System Page */

/* Dropdown buttons in navbar */
.dropdown-nav {
    position: relative;
    display: inline-block;
}

.dropdown-btn.nav-dropdown {
    padding: 8px 16px;
    border: 1px solid #E9E9E9;
    background: #fff;
    border-radius: 8px;
    font-size: 14px;
    color: #555;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.dropdown-btn.nav-dropdown:hover {
    border-color: #FCB117;
    color: #FCB117;
}

.dropdown-btn.nav-dropdown i {
    font-size: 12px;
    transition: transform 0.2s;
}

.dropdown-btn.nav-dropdown.active i {
    transform: rotate(180deg);
}

/* Export button */
.btn-export {
    padding: 8px 16px;
    border: 1px solid #E9E9E9;
    background: #fff;
    border-radius: 8px;
    font-size: 14px;
    color: #555;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.btn-export:hover {
    border-color: #FCB117;
    color: #FCB117;
    background: #f9f9fb;
}

/* Mobile dropdown styles */
.mobile-dropdown {
    width: 100%;
}

.mobile-dropdown-btn {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #E9E9E9;
    background: #fff;
    border-radius: 8px;
    font-size: 14px;
    color: #555;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.mobile-dropdown-btn:hover {
    border-color: #FCB117;
    color: #FCB117;
}

.mobile-export-btn {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #E9E9E9;
    background: #fff;
    border-radius: 8px;
    font-size: 14px;
    color: #555;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
    margin-bottom: 8px;
}

.mobile-export-btn:hover {
    border-color: #FCB117;
    color: #FCB117;
    background: #f9f9fb;
}

/* Responsive adjustments for navbar buttons */
@media (max-width: 1200px) {
    .dropdown-btn.nav-dropdown,
    .btn-export {
        padding: 6px 12px;
        font-size: 13px;
    }
}

@media (max-width: 992px) {
    .desktop-icons {
        gap: 8px;
    }
    
    .dropdown-btn.nav-dropdown,
    .btn-export {
        padding: 6px 10px;
        font-size: 12px;
    }
}

@media (max-width: 768px) {
    .desktop-icons {
        display: none;
    }
    
    .mobile-hamburger {
        display: block;
    }
}

/* Mobile notification adjustments */
@media (max-width: 768px) {
    .notification-bar {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
        padding: 12px 16px;
    }
    
    .notification-bar .notice-text {
        font-size: 13px;
    }
}

/* Extra small mobile adjustments for notification bar */
@media (max-width: 375px) {
    .notification-bar {
        padding: 10px 12px;
        gap: 8px;
    }
    
    .notification-bar .icon-container {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }
    
    .notification-bar .notice-title {
        font-size: 13px;
    }
    
    .notification-bar .notice-text {
        font-size: 12px;
    }
}