/* ============================================
   Zuidplas Logistics - Top Navigation Layout
   Matches reference design: https://zuidplas.mainfact.ai
   ============================================ */

/* === Top Header === */
.top-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 70px;
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    z-index: 1000;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.header-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.header-logo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
}

.logo-image {
    height: auto;
    max-height: 60px;
    width: auto;
    display: block;
}

/* Hide old logo blocks if they exist */
.header-logo .logo-blocks,
.header-logo .logo-block {
    display: none !important;
}

.logo-text-large {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.logo-main-text {
    font-size: 18px;
    font-weight: 700;
    color: #374151;
    letter-spacing: 0.5px;
    margin-top: 4px;
}

.logo-blocks {
    display: flex;
    gap: 4px;
    margin-bottom: 4px;
}

.logo-block {
    width: 40px;
    height: 40px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 20px;
    color: white;
}

.logo-block.d {
    background: #f97316; /* Orange */
}

.logo-block.flower {
    background: #1a365d; /* Dark Blue */
    position: relative;
}

.logo-block.z {
    background: #374151; /* Dark Grey */
}

.logo-flower-icon {
    width: 24px;
    height: 24px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-flower-icon::before {
    content: '';
    position: absolute;
    width: 6px;
    height: 6px;
    background: white;
    border-radius: 50%;
    z-index: 2;
}

.logo-flower-icon::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid #f97316;
    border-radius: 50%;
    box-shadow: 
        0 0 0 1px #f97316,
        -4px -4px 0 0 #f97316,
        4px -4px 0 0 #f97316,
        -4px 4px 0 0 #f97316,
        4px 4px 0 0 #f97316,
        -6px 0 0 0 #f97316,
        6px 0 0 0 #f97316,
        0 -6px 0 0 #f97316,
        0 6px 0 0 #f97316;
}

.logo-icon-large {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(249, 115, 22, 0.2);
}

.logo-icon-large svg {
    width: 28px;
    height: 28px;
    color: white;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.user-menu {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s;
}

.user-menu:hover {
    background: #f9fafb;
}

.logout-btn-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: transparent;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    color: #6b7280;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.logout-btn-header:hover {
    background: #f9fafb;
    border-color: #d1d5db;
    color: #1f2937;
}

.logout-btn-header svg {
    width: 16px;
    height: 16px;
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 14px;
}

.user-badge {
    padding: 4px 8px;
    background: #ef4444;
    color: white;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

/* === Top Navigation Bar === */
.top-nav {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    height: 56px;
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    padding: 0 24px;
    z-index: 999;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.nav-items {
    display: flex;
    align-items: center;
    gap: 4px;
    flex: 1;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    color: #6b7280;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    border-radius: 6px;
    transition: all 0.2s;
    position: relative;
}

.nav-item:hover {
    background: #f9fafb;
    color: #1f2937;
}

.nav-item.active {
    color: #f97316;
    background: #fff7ed;
}

.nav-item.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 16px;
    right: 16px;
    height: 3px;
    background: #f97316;
    border-radius: 3px 3px 0 0;
}

.nav-item-icon {
    width: 18px;
    height: 18px;
}

.nav-item-label {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    line-height: 1.3;
}

.nav-step {
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    opacity: 0.6;
}

/* === Main Content Area === */
.main-content {
    margin-top: 126px; /* 70px header + 56px nav */
    padding: 24px;
    min-height: calc(100vh - 126px);
    background: #f9fafb;
}

/* === Mobile Responsive === */
@media (max-width: 768px) {
    .top-header {
        padding: 0 16px;
        height: 60px;
    }
    
    .logo-text-large {
        display: none;
    }
    
    .top-nav {
        top: 60px;
        height: 48px;
        padding: 0 16px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .nav-items {
        gap: 2px;
        min-width: max-content;
    }
    
    .nav-item {
        padding: 8px 12px;
        font-size: 13px;
        white-space: nowrap;
    }
    
    .main-content {
        margin-top: 108px; /* 60px header + 48px nav */
        padding: 16px;
    }
    
    .user-menu span {
        display: none;
    }
}

/* === Remove old sidebar styles === */
.sidebar {
    display: none !important;
}

.mobile-menu-btn {
    display: none !important;
}

