/**
 * V1 Application Header Styles
 * Fixed header bar for all V1 pages
 */

.app-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: #ffffff;
    border-bottom: 1px solid #e0e0e0;
    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);
}

.app-header-logo {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    height: 80px;
    margin: 0;
    padding: 0;
    text-decoration: none;
    transition: opacity 0.2s ease;
    line-height: 1;
    flex-shrink: 0;
}

.app-header-logo:hover {
    opacity: 0.8;
}

.app-header-logout {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    font-size: 0.9rem;
    color: #495057;
    text-decoration: none;
    border-radius: 6px;
    transition: background 0.2s, color 0.2s;
}
.app-header-logout:hover {
    background: #f1f3f5;
    color: #212529;
}

.app-header-logo .logo-image {
    height: 124px !important;
    width: auto !important;
    max-width: none !important;
    max-height: none !important;
    min-height: 124px !important;
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    object-fit: contain !important;
    object-position: left center !important;
    flex-shrink: 0;
    transform: none !important;
    scale: 1 !important;
}

/* Header right: one row - title, view switcher, nav links - all next to each other */
.app-header-right {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1;
    justify-content: flex-end;
    min-width: 0;
    flex-wrap: nowrap;
}

.app-header-title {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: #212529;
    margin: 0;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.app-header-title i {
    color: #0066cc;
}

.app-header-right .view-switcher {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

/* Body padding to account for fixed header */
body.has-app-header {
    padding-top: 80px;
}

