:root {
    --primary-dark: #304C89;
    --primary: #648DE5;
    --primary-light: #9EB7E5;
    --accent: #F4AE71;
    --accent-light: #FFBE86;
    --accent-dark: #c78b56;
}

.nav {
    /* background: linear-gradient(to bottom, rgb(68, 105, 185) 0%, rgba(23, 22, 128, 0) 100%); */
    background-color: #304C89;
    color: white;
    padding: 20px 0;
    width: 100vw;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    margin: 0;
    box-sizing: border-box;
}



.subnavbar {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #1E2A47;
    color: white;
    margin: 0 10px 0 10px;
    padding: 20px 30px;
    width: 100vw;
    position: fixed;
    top: 110px;
    left: 0;
    z-index: 999;
    box-sizing: border-box;
}

.subnavbar a {
    color: white;
    text-decoration: none;
    transition: color 0.3s;
    margin: 0 18px;
    font-size: 1.08rem;
}

.logo {
    height: 70px;
    margin-left: 40px;
}

.nav ul {
    list-style: none;
    padding: 0 0;
    margin: 0 40px 0 auto;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    width: auto;
    max-width: none;
    box-sizing: border-box;
}

.nav li {
    margin: 0 15px;
    font-weight: 600;
    stroke-width: 1.5;
}

.nav a {
    color: white;
    text-decoration: none;
    transition: color 0.3s;
}

.nav a:hover {
    color: #ff4081;
}

/* Dropdown container */
.dropdown-user {
    position: relative;
}

/* Dropdown menu */
#userDropdownMenu {
    display: none;
    position: absolute;
    right: 0;
    top: 36px;
    background: #fff;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.13);
    border-radius: 8px;
    min-width: 140px;
    padding: 0;
    z-index: 9999;
    list-style: none;
    margin: 0;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.3s, transform 0.3s;
}

#userDropdownMenu.dropdown-anim-show {
    opacity: 1;
    transform: translateY(0);
}

/* Links */
#userDropdownMenu li a {
    display: block;
    width: 100%;
    padding: 10px 22px;
    color: #333;
    text-decoration: none;
    font-weight: 500;
    background: #fff;
    text-align: left;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.2s, color 0.2s;
}

/* Forms inside dropdown (Logout) */
#userDropdownMenu li form {
    margin: 0;
    /* remove default margins */
    width: 100%;
    /* full width */
}

#userDropdownMenu li button {
    display: block;
    width: 100%;
    /* full width */
    padding: 10px 22px;
    color: #333;
    background: #fff;
    border: none;
    text-align: left;
    font-weight: 500;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.2s, color 0.2s;
    outline: none;
}

/* Hover for both links and buttons */
#userDropdownMenu li a:hover,
#userDropdownMenu li button:hover {
    background: #f0f0f7;
    color: #7c5fe6;
}

/* Optional: smooth border-radius for first/last items */
#userDropdownMenu li:first-child a:hover,
#userDropdownMenu li:first-child button:hover {
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}

#userDropdownMenu li:last-child a:hover,
#userDropdownMenu li:last-child button:hover {
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
}




/* Navbar search bar styles */
.search-nav-item {
    position: relative;
}

.navbar-search-bar {
    display: none;
    position: absolute;
    left: 40px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    transition: width 0.3s, padding 0.3s, background 0.3s, box-shadow 0.3s;
    padding: 0;
    border-radius: 26px;
    border: 1px solid #ccc;
    background: rgba(255, 255, 255, 0.5);
    color: #222;
    font-size: 1rem;
    z-index: 1001;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.10);
    backdrop-filter: blur(4px);
    text-align: left;
    direction: ltr;
}

.navbar-search-bar.expanded {
    display: block;
    width: 100px;
    padding: 6px 12px;
}

/* Notifications */
#notification-container {
    position: fixed;
    top: 50px;
    /* move closer to the navbar */
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
}

.notification {
    min-width: 400px;
    /* smaller width */
    max-width: 80%;
    /* responsive max-width */
    margin: 5px auto;
    /* smaller vertical spacing */
    padding: 10px 15px;
    /* smaller padding */
    border-radius: 10px;
    /* slightly smaller radius */
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem;
    /* slightly smaller text */
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.15);
    animation: slideDown 0.3s ease;
}

/* Success notifications use accent colors */
.notification.success {
    background-color: var(--accent);
}

/* Error notifications use primary-dark color */
.notification.error {
    background-color: var(--primary-dark);
}

.notification .close-btn {
    cursor: pointer;
    font-weight: bold;
    padding-left: 10px;
}



.order-card-link {
    display: block;
    color: inherit;
    /* keep text color */
    text-decoration: none;
    /* remove underline */
}


.page-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    /* full height of viewport */
}

.main-container {
    flex: 1;
    /* takes up remaining space pushing footer down */
}

.footer {
    background: rgba(32, 32, 32, 0.7);
    color: white;
    padding: 12px 0;
    text-align: center;
}