/* ============================================
   استایل یکپارچه برای بنرها در تمام صفحات
   ============================================ */

/* Banner Styles */
.banner-header {
    background: linear-gradient(135deg, #17a2b8 0%, #138496 100%);
    color: white;
    padding: 2.5rem 0;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(23, 162, 184, 0.3);
}

.banner-header-info {
    background: linear-gradient(135deg, #17a2b8 0%, #138496 100%);
    box-shadow: 0 4px 20px rgba(23, 162, 184, 0.3);
}

/* تبدیل خودکار card-header های رنگی به بنر با رنگ و سایه یکسان */
.card-header.bg-primary,
.card-header.bg-info,
.card-header.bg-success,
.card-header.bg-warning,
.card-header.bg-danger,
.card-header.bg-gradient-primary {
    background: linear-gradient(135deg, #17a2b8 0%, #138496 100%) !important;
    box-shadow: 0 4px 20px rgba(23, 162, 184, 0.3) !important;
    border-radius: 12px 12px 0 0 !important;
    padding: 1.5rem 1.25rem !important;
    color: white !important;
    border: none !important;
    display: block !important; /* Override display: none از project-colors.css */
}

.card-header.bg-primary .card-title,
.card-header.bg-primary h3,
.card-header.bg-primary h4,
.card-header.bg-primary h5,
.card-header.bg-primary h6,
.card-header.bg-info .card-title,
.card-header.bg-info h3,
.card-header.bg-info h4,
.card-header.bg-info h5,
.card-header.bg-info h6,
.card-header.bg-success .card-title,
.card-header.bg-success h3,
.card-header.bg-success h4,
.card-header.bg-success h5,
.card-header.bg-success h6,
.card-header.bg-warning .card-title,
.card-header.bg-warning h3,
.card-header.bg-warning h4,
.card-header.bg-warning h5,
.card-header.bg-warning h6,
.card-header.bg-danger .card-title,
.card-header.bg-danger h3,
.card-header.bg-danger h4,
.card-header.bg-danger h5,
.card-header.bg-danger h6 {
    color: white !important;
    margin: 0 !important;
}

.card-header.bg-primary i,
.card-header.bg-info i,
.card-header.bg-success i,
.card-header.bg-warning i,
.card-header.bg-danger i {
    color: white !important;
}

.banner-icon {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.banner-icon i {
    font-size: 2.5rem;
    color: white;
}

.banner-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: white;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.banner-subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
    margin-top: 0.5rem;
}

.banner-header .btn-light {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    backdrop-filter: blur(10px);
    transition: all 0.3s;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 8px;
}

.banner-header .btn-light:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* استایل برای دکمه اصلی (primary) در بنر */
.banner-header .btn-light.fw-semibold {
    background: rgba(255, 255, 255, 0.25);
    border: 1.5px solid rgba(255, 255, 255, 0.4);
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.banner-header .btn-light.fw-semibold:hover {
    background: rgba(255, 255, 255, 0.35);
    border-color: rgba(255, 255, 255, 0.6);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

/* تبدیل خودکار headerهای صفحات به بنر */
.page-header,
.page-title-section,
.content-header {
    background: linear-gradient(135deg, #17a2b8 0%, #138496 100%);
    color: white;
    padding: 2rem 0;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(23, 162, 184, 0.3);
    margin-bottom: 2rem;
}

/* تبدیل همه gradientهای رنگی به رنگ بنر */
[style*="linear-gradient"][style*="#667eea"],
[style*="linear-gradient"][style*="#764ba2"],
[style*="linear-gradient"][style*="#3b82f6"],
[style*="linear-gradient"][style*="#1e40af"],
[style*="linear-gradient"][style*="#a855f7"],
[style*="linear-gradient"][style*="#7e22ce"] {
    background: linear-gradient(135deg, #17a2b8 0%, #138496 100%) !important;
}

/* تبدیل gradientهای سبز و بنفش به آبی */
[style*="linear-gradient"][style*="#10b981"],
[style*="linear-gradient"][style*="#047857"],
[style*="linear-gradient"][style*="#34d399"] {
    background: linear-gradient(135deg, #17a2b8 0%, #138496 100%) !important;
}

.page-header h1,
.page-header h2,
.page-header h3,
.page-header h4,
.page-header h5,
.page-header h6,
.page-title-section h1,
.page-title-section h2,
.page-title-section h3,
.page-title-section h4,
.page-title-section h5,
.page-title-section h6,
.content-header h1,
.content-header h2,
.content-header h3,
.content-header h4,
.content-header h5,
.content-header h6 {
    color: white !important;
    margin: 0 !important;
}

/* تبدیل headerهای card به بنر */
.card > .card-header:first-child {
    border-radius: 12px 12px 0 0 !important;
}

/* استایل برای صفحاتی که header دارند اما بنر ندارند */
.container-fluid > .row > .col-12 > h1:first-child,
.container-fluid > .row > .col-12 > h2:first-child,
.container-fluid > h1:first-child,
.container-fluid > h2:first-child {
    background: linear-gradient(135deg, #17a2b8 0%, #138496 100%);
    color: white;
    padding: 1.5rem 1.25rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(23, 162, 184, 0.3);
    margin-bottom: 2rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .banner-header,
    .page-header,
    .page-title-section,
    .content-header {
        padding: 1.5rem 0;
    }
    
    .banner-icon {
        width: 60px;
        height: 60px;
    }
    
    .banner-icon i {
        font-size: 2rem;
    }
    
    .banner-title {
        font-size: 1.5rem;
    }
    
    .banner-subtitle {
        font-size: 0.875rem;
    }
}

