/* ===================================
   FASTBLUE PORTAL - MAIN STYLESHEET
   Company Colors:
   - Primary Blue: #0074E0
   - Light Blue: #C8E1FA
   - Dark Grey: #7C8690
   - Light Grey: #EDF4FA
   - Dark Navy: #0B1926
   =================================== */

/* Global Styles */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #EDF4FA;
}

/* ===================================
   NEW NAVBAR STYLES (FastBlue Website Style)
   =================================== */

.main-navbar {
    background-color: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid #e5e5e5;
}

.navbar-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

/* Logo */
.navbar-logo {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 40px;
    width: auto;
}

/* Navigation Items */
.navbar-nav {
    display: flex;
    align-items: center;
    gap: 5px;
    flex: 1;
    justify-content: center;
}

.nav-item {
    position: relative;
    padding: 10px 16px;
    color: #0B1926;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.nav-item:hover,
.nav-item.active {
    color: #0074E0;
    border-bottom-color: #0074E0;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
}

.dropdown-icon {
    font-size: 12px;
    transition: transform 0.3s ease;
}

.nav-item.has-dropdown:hover .dropdown-icon {
    transform: rotate(180deg);
}

/* Dropdown Menu */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: white;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    min-width: 260px;
    padding: 8px;
    margin-top: 3px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1001;
}

.dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    color: #0B1926;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s ease;
    margin: 4px 8px;
    border-radius: 6px;
}

.dropdown-link:hover {
    background-color: #EDF4FA;
    color: #0074E0;
}

.dropdown-link i {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #EDF4FA;
    border: 1px solid #C8E1FA;
    border-radius: 6px;
    color: #0074E0;
    font-size: 16px;
    flex-shrink: 0;
}

/* User Menu (Right Side) */
.navbar-user {
    display: flex;
    align-items: center;
}

.user-dropdown-wrapper {
    position: relative;
}

.user-menu-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background-color: #EDF4FA;
    border: 1px solid #C8E1FA;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: #0B1926;
    transition: all 0.3s ease;
}

.user-menu-btn:hover {
    background-color: #C8E1FA;
    border-color: #0074E0;
}

.user-menu-btn i {
    font-size: 12px;
}

.user-name {
    color: #0074E0;
}

.user-dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background-color: white;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    min-width: 200px;
    padding: 8px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1001;
}

.user-dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.user-dropdown-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    color: #0B1926;
    text-decoration: none;
    font-size: 14px;
    transition: background-color 0.2s ease;
}

.user-dropdown-link:hover {
    background-color: #EDF4FA;
    color: #0074E0;
}

.user-dropdown-link i {
    width: 18px;
    color: #0074E0;
}

.dropdown-divider {
    height: 1px;
    background-color: #e5e5e5;
    margin: 8px 0;
}

/* ===================================
   OLD HEADER STYLES (Keep for backwards compatibility)
   =================================== */

.header {
    background-color: #0074E0;
    color: white;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.header h1 {
    margin: 0;
    font-size: 24px;
}

.header-links {
    display: flex;
    gap: 15px;
}

.header-links a {
    color: white;
    text-decoration: none;
    padding: 8px 15px;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.header-links a:hover {
    background-color: rgba(255,255,255,0.2);
}

.logout-btn {
    background-color: #7C8690;
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.logout-btn:hover {
    background-color: #6a7380;
}

/* Container */
.container {
    max-width: 1400px;
    margin: 30px auto;
    padding: 0 20px;
}

/* Page Header */
.page-header {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    margin-bottom: 20px;
}

.page-header h2 {
    margin: 0 0 10px 0;
    color: #0B1926;
}

.account-info {
    color: #7C8690;
    font-size: 14px;
}

/* Welcome Box (Dashboard) */
.welcome-box {
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    margin-bottom: 30px;
}

.welcome-box h2 {
    color: #0B1926;
}

/* Info Grid (Dashboard) */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.info-card {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    border-left: 4px solid #0074E0;
}

.info-card h3 {
    margin-top: 0;
    color: #0074E0;
}

.info-row {
    margin: 10px 0;
    padding: 10px 0;
    border-bottom: 1px solid #EDF4FA;
}

.info-row:last-child {
    border-bottom: none;
}

.label {
    font-weight: bold;
    color: #7C8690;
}

/* Login Container */
.login-container {
    background-color: white;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 400px;
}

.login-page {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

.login-container h2 {
    text-align: center;
    color: #0B1926;
    margin-bottom: 30px;
}

/* Forms */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    color: #7C8690;
    font-weight: 500;
}

input[type="email"],
input[type="password"],
input[type="text"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #C8E1FA;
    border-radius: 4px;
    box-sizing: border-box;
    font-size: 14px;
    transition: border-color 0.3s;
}

input[type="email"]:focus,
input[type="password"]:focus,
input[type="text"]:focus {
    outline: none;
    border-color: #0074E0;
}

button,
.btn {
    width: 100%;
    padding: 12px;
    background-color: #0074E0;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
}

button:hover,
.btn:hover {
    background-color: #0060c0;
}

/* Messages */
.error {
    background-color: #fee;
    color: #c33;
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
    text-align: center;
    border-left: 4px solid #c33;
}

.success {
    background-color: #efe;
    color: #2a7;
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
    text-align: center;
    border-left: 4px solid #2a7;
}

/* Inventory Table */
.inventory-table {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th {
    background-color: #0074E0;
    color: white;
    padding: 15px;
    text-align: left;
    font-weight: 600;
    position: sticky;
    top: 0;
}

td {
    padding: 12px 15px;
    border-bottom: 1px solid #EDF4FA;
    color: #0B1926;
}

tr:hover {
    background-color: #C8E1FA;
}

.no-data {
    text-align: center;
    padding: 40px;
    color: #7C8690;
}

.item-count {
    padding: 15px 20px;
    background-color: #EDF4FA;
    font-weight: 600;
    color: #0B1926;
    border-bottom: 2px solid #0074E0;
}

/* Utility Classes */
.text-primary {
    color: #0074E0;
}

.text-grey {
    color: #7C8690;
}

.text-dark {
    color: #0B1926;
}

.bg-light {
    background-color: #EDF4FA;
}

.bg-primary {
    background-color: #0074E0;
}

/* ===================================
   RESPONSIVE DESIGN
   =================================== */

@media (max-width: 1200px) {
    .navbar-nav {
        gap: 2px;
    }
    
    .nav-item {
        padding: 10px 12px;
        font-size: 14px;
    }
}

@media (max-width: 992px) {
    .navbar-wrapper {
        flex-wrap: wrap;
        height: auto;
        padding: 10px;
    }
    
    .navbar-nav {
        order: 3;
        width: 100%;
        flex-direction: column;
        margin-top: 10px;
        gap: 5px;
    }
    
    .nav-item {
        width: 100%;
        text-align: center;
    }
    
    .dropdown-menu {
        position: static;
        box-shadow: none;
        border: none;
        margin-top: 5px;
        padding-left: 20px;
    }
}