/*
|--------------------------------------------------------------------------
| Header Component Styling
| WebPixLab Billing Software
|--------------------------------------------------------------------------
*/

.top-navbar {
    width: 100%;
    background: #ffffff;
    padding: 16px clamp(14px, 2vw, 28px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    margin-bottom: 25px;
    position: relative;
    z-index: 10;
    transition: all 0.3s ease;
}

/* NAVBAR LEFT */
.navbar-left {
    display: flex;
    align-items: center;
    gap: clamp(10px, 1.5vw, 16px);
    min-width: 0;
}

.navbar-logo {
    width: clamp(42px, 5vw, 50px);
    height: clamp(42px, 5vw, 50px);
    flex-shrink: 0;
    border-radius: 14px;
    background: linear-gradient(135deg, #5f00ff, #d100ff);
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    font-size: clamp(18px, 2.2vw, 22px);
    box-shadow: 0 8px 18px rgba(95, 0, 255, 0.25);
}

.navbar-title {
    min-width: 0;
}

.navbar-title h3 {
    margin: 0 0 3px 0;
    font-size: clamp(16px, 2.2vw, 22px);
    font-weight: 700;
    color: #16003b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.navbar-title p {
    margin: 0;
    color: #777;
    font-size: clamp(11px, 1.2vw, 13px);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* NAVBAR RIGHT */
.navbar-right {
    display: flex;
    align-items: center;
    gap: clamp(10px, 1.5vw, 18px);
    flex-shrink: 0;
}

.admin-profile {
    display: flex;
    align-items: center;
    gap: 12px;
}

.admin-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, #5f00ff, #d100ff);
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    box-shadow: 0 6px 14px rgba(95, 0, 255, 0.2);
}

.admin-info {
    line-height: 1.3;
}

.admin-info h5 {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    color: #16003b;
}

.admin-info span {
    font-size: 12px;
    color: #777;
    display: block;
}

/* RESPONSIVE NAVBAR BREAKPOINTS */

/* Tablet landscape / small desktop: 1024px to 1280px */
@media screen and (max-width: 1280px) {
    .top-navbar .sidebar-toggle {
        display: flex;
    }
}

/* Tablet portrait / small screens: <= 1024px */
@media screen and (max-width: 1024px) {
    .navbar-right .admin-profile,
    .navbar-right .logout-btn,
    .navbar-right .notification-btn {
        display: none !important;
    }

    .top-navbar {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    .navbar-right {
        justify-content: flex-end;
    }

    .top-navbar .sidebar-toggle {
        display: flex;
    }
}

/* Mobile phones: <= 480px */
@media screen and (max-width: 480px) {
    .top-navbar {
        padding: 12px 14px;
        margin-bottom: 18px;
        border-radius: 16px;
    }

    .navbar-logo {
        width: 38px;
        height: 38px;
        border-radius: 10px;
        font-size: 16px;
    }

    .navbar-title h3 {
        font-size: 15px;
    }

    .navbar-title p {
        font-size: 10px;
    }

    .sidebar-toggle {
        width: 40px;
        height: 40px;
        font-size: 16px;
        border-radius: 10px;
    }
}

