/* ==================== MOBILE PAGE HEADER COMPONENT ==================== */
.mobile-page-header {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(242, 168, 58, 0.15);
    padding: 12px 16px;
    z-index: 100;
    transition: all 0.3s ease;
}

.mobile-page-header.scrolled {
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
    background: rgba(255, 255, 255, 0.98);
}

/* Header Container */
.header-container {
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: 1280px;
    margin: 0 auto;
}

/* Back Button */
.header-back-btn {
    background: #f1f5f9;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #1f2a44;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.header-back-btn:hover {
    background: #fef9f0;
    transform: translateX(-2px);
}

.header-back-btn:active {
    transform: scale(0.95);
}

/* Title Section */
.header-title-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.header-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1f2a44;
    margin: 0;
    line-height: 1.3;
}

.header-subtitle {
    font-size: 0.7rem;
    color: #64748b;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 6px;
}

.header-subtitle i {
    font-size: 0.65rem;
    color: #f2a83a;
}

/* Action Buttons */
.header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.header-action-btn {
    background: #f1f5f9;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #64748b;
    font-size: 1rem;
    position: relative;
}

.header-action-btn:hover {
    background: #fef9f0;
    color: #f2a83a;
    transform: translateY(-1px);
}

.header-action-btn:active {
    transform: scale(0.95);
}

/* Notification Badge */
.notification-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    background: #ef4444;
    color: white;
    font-size: 0.6rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 20px;
    min-width: 18px;
    text-align: center;
    border: 2px solid white;
}

/* Menu Dropdown (for more options) */
.header-menu-dropdown {
    position: absolute;
    top: 60px;
    right: 16px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
    min-width: 180px;
    overflow: hidden;
    z-index: 1000;
    transform: scale(0.95);
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    border: 1px solid #e2e8f0;
}

.header-menu-dropdown.open {
    transform: scale(1);
    opacity: 1;
    visibility: visible;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #475569;
    font-size: 0.85rem;
    border-bottom: 1px solid #f1f5f9;
}

.dropdown-item:last-child {
    border-bottom: none;
}

.dropdown-item i {
    width: 20px;
    font-size: 0.9rem;
    color: #f2a83a;
}

.dropdown-item:hover {
    background: #fef9f0;
    padding-left: 20px;
}

.dropdown-item.danger {
    color: #ef4444;
}

.dropdown-item.danger i {
    color: #ef4444;
}

.dropdown-item.danger:hover {
    background: #fef2f2;
}

/* Divider in dropdown */
.dropdown-divider {
    height: 1px;
    background: #e2e8f0;
    margin: 4px 0;
}

/* Progress Bar (for steps/wizard) */
.header-progress {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid #e2e8f0;
}

.progress-bar-container {
    background: #e2e8f0;
    border-radius: 20px;
    height: 4px;
    overflow: hidden;
}

.progress-bar-fill {
    background: linear-gradient(90deg, #f2a83a, #e5982b);
    height: 100%;
    border-radius: 20px;
    transition: width 0.3s ease;
    width: 0%;
}

.progress-text {
    display: flex;
    justify-content: space-between;
    margin-top: 6px;
    font-size: 0.65rem;
    color: #64748b;
}

.progress-step {
    display: flex;
    align-items: center;
    gap: 4px;
}

.progress-step i {
    font-size: 0.6rem;
}

.progress-step.active {
    color: #f2a83a;
    font-weight: 600;
}

/* Search Bar (expanded mode) */
.header-search-mode {
    display: none;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.header-search-mode.active {
    display: flex;
}

.header-search-input {
    flex: 1;
    background: #f1f5f9;
    border: none;
    padding: 10px 16px;
    border-radius: 40px;
    font-size: 0.9rem;
    outline: none;
    transition: all 0.2s;
}

.header-search-input:focus {
    background: white;
    box-shadow: 0 0 0 2px rgba(242, 168, 58, 0.2);
}

.header-search-cancel {
    background: none;
    border: none;
    color: #64748b;
    font-size: 0.85rem;
    cursor: pointer;
    padding: 8px;
}

.header-search-cancel:hover {
    color: #ef4444;
}

/* Hide default title when search is active */
.header-search-mode.active ~ .header-title-section {
    display: none;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .mobile-page-header {
        padding: 10px 16px;
    }
    
    .header-title {
        font-size: 1rem;
    }
    
    .header-back-btn,
    .header-action-btn {
        width: 36px;
        height: 36px;
    }
}

/* Desktop - hide sticky header on desktop if needed */
@media (min-width: 769px) {
    .mobile-page-header {
        position: relative;
    }
}

/* Animation for header */
@keyframes headerSlideDown {
    from {
        transform: translateY(-100%);
    }
    to {
        transform: translateY(0);
    }
}

.mobile-page-header.animate {
    animation: headerSlideDown 0.3s ease forwards;
}