/* RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

/* NAVBAR */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: #ffffff;
    color: #fff;
    z-index: 1000;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 6px 18px rgba(0,0,0,1.15);
}

.nav-container {
    max-width: 1200px;
    margin: auto;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* LOGO */
.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 20px;
    font-weight: bold;
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.logo:hover {
    color: #60a5fa;
}

/* DESKTOP MENU */
.nav-menu {
    display: flex;
    list-style: none;
    gap: 25px;
}

.nav-menu a {
    color: black;
    text-decoration: none;
    font-size: 15px;
    padding: 8px 0;
    position: relative;
    transition: color 0s ease;
    
}

.nav-menu a:hover {
    color: #f97316;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(45deg, #60a5fa, #3b82f6);
    transition: width 0.3s ease;
}

.nav-menu a:hover::after {
    width: 100%;
}

/* LOGIN BUTTONS */
.login-buttons {
    display: flex;
    gap: 10px;
}

.btn-login {
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 13px;
    text-decoration: none;
    color: #fff;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 6px 18px rgba(0,0,0,1.15);
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

.customer { background: linear-gradient(135deg, #2563eb, #1d4ed8); }
.employee { background: linear-gradient(135deg, #16a34a, #15803d); }
.admin { background: linear-gradient(135deg, #dc2626, #b91c1c); }

/* HAMBURGER */
.hamburger {
    display: none;
    font-size: 22px;
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
    transition: all 0.1s ease;
    color: black;
}

.hamburger:hover {
    background: rgba(255,255,255,0.1);
    transform: rotate(90deg);
}

/* MOBILE MENU - SMOOTH & SCROLLABLE */
.mobile-menu {
    position: fixed;
    top: 70px;
    right: -350px;
    width: 340px;
    max-width: 90vw;
    height: auto; /* Full height minus navbar */
    background: linear-gradient(145deg, #6495ED 0%, #5A8FD4 100%);
    backdrop-filter: blur(25px);
    border-left: 2px solid rgba(255,255,255,0.2);
    padding: 20px 16px; /* Reduced from 30px 25px */
    transition: right 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 2000;
    overflow-y: auto;
    box-shadow: -12px 0 45px rgba(0,0,0,0.4);
    border-radius: 10px 20px 20px 10px;
}

/* Custom Scrollbar */
.mobile-menu::-webkit-scrollbar {
    width: 5px;
}

.mobile-menu::-webkit-scrollbar-track {
    background: rgba(255,255,255,0.1);
    border-radius: 10px;
}

.mobile-menu::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.4);
    border-radius: 10px;
}

.mobile-menu::-webkit-scrollbar-thumb:hover {
    background: rgba(255,255,255,0.6);
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu ul {
    list-style: none;
    margin-top: 12px; /* Reduced from 20px */
}

.mobile-menu li {
    margin-bottom: 10px; /* Reduced from 15px */
    border-bottom: 1px solid rgba(255,255,255,0.12);
    padding-bottom: 6px; /* Reduced from 10px */
}

.mobile-menu a {
    color: #fff;
    text-decoration: none;
    font-size: 17px; /* Slightly reduced from 18px */
    font-weight: 500;
    display: block;
    padding: 10px 8px; /* Reduced from 12px 0 */
    border-radius: 8px;
    transition: all 0.3s ease;
}

.mobile-menu a:hover {
    color: #60a5fa;
    padding-left: 16px;
    background: rgba(255,255,255,0.15);
    transform: translateX(4px);
}

/* MOBILE LOGIN */
.mobile-login {
    margin-top: 22px; /* Reduced from 30px */
    display: flex;
    flex-direction: column;
    gap: 10px; /* Reduced from 12px */
    padding-top: 18px; /* Reduced from 25px */
    border-top: 1px solid rgba(255,255,255,0.15);
}

.mobile-login a {
    text-align: center;
    padding: 12px 14px; /* Reduced from 14px */
    border-radius: 10px;
    font-weight: 600;
    font-size: 14px; /* Reduced from 15px */
    box-shadow: 0 4px 18px rgba(0,0,0,0.25);
    transition: all 0.3s ease;
}

.mobile-login a:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 22px rgba(0,0,0,0.35);
}

/* BACKDROP OVERLAY */
.mobile-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    opacity: 0;
    visibility: hidden;
    z-index: 1500;
    transition: all 0.4s ease;
}

.mobile-backdrop.active {
    opacity: 1;
    visibility: visible;
}


/* RESPONSIVE */
@media (max-width: 768px) {
    .nav-menu,
    .login-buttons {
        display: none;
    }

    .hamburger {
        display: block;
    }
    
    body.menu-open {
        overflow: hidden;
    }
}
@media (min-width: 769px) {
    .hamburger {
        display: none !important;
    }

    .mobile-menu,
    .mobile-backdrop {
        display: none !important;
    }
}

/* BODY SPACING */
body {
    padding-top: 70px;
    transition: overflow 0.3s ease;
}


/* =========================
   LOGO (IMAGE + TEXT)
========================= */

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

/* Logo image styling */
.logo img {
    height: 60px;
    width: auto;
    padding: 6px 12px;
    
    border-radius: 8px;
    box-shadow: 0 6px 18px rgba(0,0,0,1.15);
    object-fit: contain;
    transition: all 0.3s ease;
}

/* Logo hover effect */
.logo img:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 25px rgba(0,0,0,0.25);
}

/* =========================
   COMPANY NAME TEXT
========================= */

.logo-text {
    font-size: 1.6rem;
    font-weight: 700;
    color: #2563eb;                 /* Brand blue */
    letter-spacing: 0.5px;
    white-space: nowrap;
    transition: color 0.3s ease;
}

/* Hover effect on text */
.logo:hover .logo-text {
    color: #1d4ed8;
}

/* =========================
   RESPONSIVE (MOBILE)
========================= */

@media (max-width: 768px) {
    .logo img {
        height: 48px;
        padding: 5px 10px;
    }

    .logo-text {
        font-size: 1.3rem;
    }
}
.logo-tagline{
    display:block;
    font-size:11px;
    font-weight:500;
    letter-spacing:0.8px;
    color:#6b7280;        /* soft gray */
    margin-top:2px;
    white-space:nowrap;  /* keeps it in one line */
}

.logo{
    display:flex;
    align-items:center;
    gap:12px;
    text-decoration:none;
}

/* Logo image */
.logo img{
    height:48px;
    width:85px;
}

/* Text wrapper */
.logo-text-wrapper{
    display:flex;
    flex-direction:column;   /* ⬅ KEY FIX */
    line-height:1.1;
}

/* Company name */
.logo-text{
    font-size:20px;
    font-weight:700;
}

/* Tagline */
.logo-tagline{
    font-size:11px;
    font-weight:500;
    color:#6b7280;
    letter-spacing:0.7px;
    white-space:nowrap;
}