/* ========================================
   Modern Page Header Component Styles
   ======================================== */

/* Modern Page Header */
.modern-page-header {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 16px;
    padding: 32px;
    margin-bottom: 32px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(99, 102, 241, 0.1);
    position: relative;
    overflow: hidden;
}

.modern-page-header::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(40%, -40%);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    position: relative;
    z-index: 1;
}

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

.header-icon-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-background {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--primary-color, #6366f1) 0%, #8b5cf6 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.3);
    transition: all 0.3s ease;
}

.icon-background:hover {
    transform: translateY(-4px) rotate(5deg);
    box-shadow: 0 12px 32px rgba(99, 102, 241, 0.4);
}

.icon-background i {
    font-size: 28px;
    color: white;
}

/* Icon Color Variants */
.icon-primary {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%) !important;
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.3) !important;
}

.icon-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.3) !important;
}

.icon-warning {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%) !important;
    box-shadow: 0 8px 24px rgba(245, 158, 11, 0.3) !important;
}

.icon-danger {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%) !important;
    box-shadow: 0 8px 24px rgba(239, 68, 68, 0.3) !important;
}

.icon-info {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%) !important;
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.3) !important;
}

.icon-secondary {
    background: linear-gradient(135deg, #64748b 0%, #475569 100%) !important;
    box-shadow: 0 8px 24px rgba(100, 116, 139, 0.3) !important;
}

.header-text {
    flex: 1;
}

.header-title {
    font-size: 28px;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
    margin-bottom: 6px;
    letter-spacing: -0.5px;
}

.header-subtitle {
    font-size: 14px;
    color: #64748b;
    margin: 0;
    font-weight: 400;
}

.header-actions {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
    flex-wrap: wrap;
}

/* Modern Buttons */
.btn-modern {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.btn-modern::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-modern:hover::before {
    width: 300px;
    height: 300px;
}

.btn-modern i {
    font-size: 16px;
    position: relative;
    z-index: 1;
}

.btn-modern span {
    position: relative;
    z-index: 1;
}

.btn-modern-primary {
    background: linear-gradient(135deg, var(--primary-color, #6366f1) 0%, #8b5cf6 100%);
    color: white;
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.3);
}

.btn-modern-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.4);
    color: white;
}

.btn-modern-primary:active {
    transform: translateY(0);
}

.btn-modern-success {
    background: linear-gradient(135deg, var(--success-color, #10b981) 0%, #059669 100%);
    color: white;
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.3);
}

.btn-modern-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.4);
    color: white;
}

.btn-modern-warning {
    background: linear-gradient(135deg, var(--warning-color, #f59e0b) 0%, #d97706 100%);
    color: white;
    box-shadow: 0 4px 16px rgba(245, 158, 11, 0.3);
}

.btn-modern-warning:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(245, 158, 11, 0.4);
    color: white;
}

.btn-modern-danger {
    background: linear-gradient(135deg, var(--danger-color, #ef4444) 0%, #dc2626 100%);
    color: white;
    box-shadow: 0 4px 16px rgba(239, 68, 68, 0.3);
}

.btn-modern-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(239, 68, 68, 0.4);
    color: white;
}

.btn-modern-info {
    background: linear-gradient(135deg, var(--info-color, #3b82f6) 0%, #2563eb 100%);
    color: white;
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.3);
}

.btn-modern-info:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.4);
    color: white;
}

.btn-modern-outline {
    background: white;
    color: var(--primary-color, #6366f1);
    border: 2px solid var(--primary-color, #6366f1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.btn-modern-outline:hover {
    background: var(--primary-color, #6366f1);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.3);
}

.btn-modern-outline:active {
    transform: translateY(0);
}

.btn-modern-secondary {
    background: linear-gradient(135deg, #64748b 0%, #475569 100%);
    color: white;
    box-shadow: 0 4px 16px rgba(100, 116, 139, 0.3);
}

.btn-modern-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(100, 116, 139, 0.4);
    color: white;
}

/* Responsive Design */
@media (max-width: 992px) {
    .modern-page-header {
        padding: 24px;
    }
    
    .header-content {
        gap: 20px;
    }
    
    .icon-background {
        width: 56px;
        height: 56px;
    }
    
    .icon-background i {
        font-size: 24px;
    }
    
    .header-title {
        font-size: 24px;
    }
}

@media (max-width: 768px) {
    .modern-page-header {
        padding: 20px;
        margin-bottom: 20px;
    }
    
    .header-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    
    .header-left {
        gap: 16px;
        width: 100%;
    }
    
    .header-actions {
        width: 100%;
        gap: 8px;
    }
    
    .btn-modern {
        width: 100%;
        justify-content: center;
        padding: 10px 20px;
    }
    
    .icon-background {
        width: 48px;
        height: 48px;
    }
    
    .icon-background i {
        font-size: 20px;
    }
    
    .header-title {
        font-size: 20px;
    }
    
    .header-subtitle {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .modern-page-header {
        padding: 16px;
        border-radius: 12px;
    }
    
    .header-left {
        gap: 12px;
    }
    
    .icon-background {
        width: 40px;
        height: 40px;
    }
    
    .icon-background i {
        font-size: 18px;
    }
    
    .header-title {
        font-size: 18px;
    }
    
    .btn-modern {
        font-size: 13px;
        padding: 8px 16px;
    }
}
