/* ========================================
   App Header Styles
   ======================================== */

.app-header {
    background: linear-gradient(135deg, #007AFF 0%, #0051D5 100%);
    padding: var(--spacing-lg) 0;
    box-shadow: 0 4px 20px rgba(0, 122, 255, 0.3);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.app-header-content {
    max-width: 1920px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.app-header-left {
    text-align: left;
}

.app-header-right {
    display: flex;
    gap: var(--spacing-sm);
}

.header-btn {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 10px 20px;
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.header-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.header-btn span {
    margin-right: 5px;
}

.app-logo {
    max-height: 50px;
    width: auto;
    filter: brightness(1.1);
}

.app-subtitle {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
    margin: var(--spacing-xs) 0 0 0;
    font-weight: 400;
}

/* Container adjustment for header */
body {
    padding-top: 0;
}

.container {
    margin-top: var(--spacing-lg);
}

/* Responsive */
@media (max-width: 768px) {
    .app-header-content {
        flex-direction: column;
        gap: var(--spacing-sm);
        text-align: center;
    }

    .app-header-left {
        text-align: center;
    }

    .app-header-right {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
    }

    .app-logo {
        max-height: 40px;
    }

    .app-subtitle {
        font-size: 0.8rem;
    }

    .app-header {
        padding: var(--spacing-sm) 0;
    }

    .header-btn {
        padding: 8px 12px;
        font-size: 0.8rem;
    }
}

/* Navigation */
.app-header-nav {
    margin-left: 40px;
    display: flex;
    gap: 24px;
    align-items: center;
}

.app-header-nav a {
    text-decoration: none;
    color: white;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s, background-color 0.2s;
    padding: 8px 12px;
    border-radius: 8px;
}

.app-header-nav a:hover,
.app-header-nav a.active {
    color: #007aff;
    background-color: #f1f5f9;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .app-header-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .app-header-nav {
        margin-left: 0;
        width: 100%;
        overflow-x: auto;
        padding-bottom: 5px;
        gap: 10px;
        -webkit-overflow-scrolling: touch;
    }

    .app-header-nav a {
        white-space: nowrap;
        font-size: 0.9rem;
    }

    .app-header-right {
        width: 100%;
        justify-content: space-between;
    }
}

/* Extra Small Devices */
@media (max-width: 480px) {
    .app-header-right {
        flex-direction: column;
        gap: var(--spacing-xs);
    }

    .header-btn {
        width: 100%;
        justify-content: center;
    }

    .app-logo {
        max-height: 35px;
    }
}

/* Print - hide header */
@media print {
    .app-header {
        display: none;
    }

    .container {
        margin-top: 0;
    }
}