/*!
 * Copyright © 2024–2026 aplexi (https://aplexi.ai). All rights reserved.
 * Proprietary. Not licensed for redistribution, derivative works, or
 * use as a design reference for competing products.
 * License: https://aplexi.ai/md-render/?md=/static/docs/aplexi-license.md
 */
/* Common Components Styles */

/* Header area layout - used across multiple pages */
.header-area {
    position: relative;
    padding-top: 20px;
    padding-bottom: 20px;
    display: flex;
    align-items: flex-start;
}

/* User info styles - shared across all apps */
.map-user-info {
    position: absolute;
    top: 20px;
    right: 15px;
    margin: 0;
    z-index: 1000;
    width: auto;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0 6px;
}

.user-info {
    font-size: 14px;
    color: #666;
}

.user-info strong,
.map-user-info strong {
    color: #333;
}

.user-info a,
.map-user-info a {
    color: #007bff;
    text-decoration: none;
}

.user-info a:hover,
.map-user-info a:hover {
    text-decoration: underline;
}

/* Inline nav icons in user info bar */
.user-info-nav-icons {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    vertical-align: middle;
    margin: 0 2px;
}

.user-info-nav-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 21px;
    height: 21px;
    text-decoration: none;
}

.user-info-nav-icon:hover {
    text-decoration: none;
}

.user-info-nav-icon img {
    width: 21px;
    height: 21px;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.user-info-nav-icon:hover img {
    opacity: 1;
}

/* Desktop: show full label and text sign-out, hide compact label and icon sign-out */
.user-info-label-compact { display: none; }
.user-info-label-full { display: inline; }
.user-info-signout-text { display: inline; margin-left: 2px; }
.user-info-signout-icon { display: none !important; }

/* Narrow screens: fixed toolbar at top */
@media (max-width: 839px) {
    div.user-info.map-user-info {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        margin: 0;
        border-radius: 0;
        padding: 6px 12px;
        font-size: 12px;
        background: white;
        box-shadow: 0 2px 4px rgba(0,0,0,0.15);
        justify-content: space-between;
        flex-wrap: nowrap;
        z-index: 10000;
    }
    .user-info-left {
        display: inline-flex;
        align-items: center;
        gap: 4px;
    }
    .user-info-right {
        display: inline-flex;
        align-items: center;
        gap: 4px;
    }
    div.user-info > .user-info-pipe { display: none; }
    .user-info-right > .user-info-pipe { display: inline; margin: 0 1px; }
    .user-info-label-full { display: none; }
    .user-info-label-compact { display: inline; }
    .user-info-signout-text { display: none; }
    .user-info-signout-icon { display: inline-flex !important; }
    .header-area { padding-top: 34px; }
    .main-container { padding-top: 34px; }
}

/* Title styles - shared banner component */
.title-container {
    padding: 0 30px 5px 30px;
    text-align: left;
}

h1.client-title {
    color: rgb(0, 57, 146);
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 5px 0;
}

.client-title .aplexi-shimmer {
    font-weight: bold;
    font-style: italic;
    color: rgb(0, 57, 146);
    background: linear-gradient(90deg, rgb(0, 57, 146) 0%, #00a8ff 50%, rgb(0, 57, 146) 100%);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: brandingShimmer 2.5s ease-in-out infinite;
}

.client-title-pipe {
    color: rgba(0, 0, 0, 0.5);
    -webkit-text-fill-color: rgba(0, 0, 0, 0.5);
    font-weight: 400;
}

@keyframes brandingShimmer {
    0% { background-position: 100% 0; }
    100% { background-position: -100% 0; }
}

.client-title a {
    color: rgb(0, 57, 146);
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.client-title a:hover {
    color: rgb(0, 57, 146);
    opacity: 0.8;
    text-decoration: none;
}

.client-subtitle {
    color: #333;
    font-size: 16px;
    font-weight: 500;
    margin: 0;
}

/* Quick Navigation Icons */
.quick-nav-icons {
    position: absolute;
    left: 50%;
    top: 20px;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    align-items: center;
}

.nav-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: #ffffff;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    transition: all 0.2s ease;
    text-decoration: none;
}

.nav-icon:hover {
    background: #f7fafc;
    border-color: #cbd5e0;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    text-decoration: none;
}

.nav-icon img {
    width: 26px;
    height: 26px;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.nav-icon:hover img {
    opacity: 1;
}

@media (max-width: 800px) {
    .quick-nav-icons {
        display: none;
    }
}