:root {
    --primary-color: #2563eb;
    --secondary-color: #f3f4f6;
    --success-color: #10b981;
    --danger-color: #ef4444;
    --warning-color: #f59e0b;
    --info-color: #3b82f6;
    --pending-color: #f59e0b;
    --border-radius: 12px;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}


/* ========================================
   MAIN CONTENT CARD
   ======================================== */
.main-content-card {
    border: none;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

.main-content-card .card-header {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-bottom: 1px solid #e5e7eb;
    padding: 1.5rem;
}

.card-title-section h5 {
    color: #1f2937;
    font-weight: 600;
    font-size: 1.25rem;
}

.card-subtitle {
    color: #6b7280;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.card-actions .btn {
    border-radius: 8px;
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: var(--transition);
}

.card-actions .btn:hover {
    transform: translateY(-1px);
}

/* ========================================
   SEARCH AND FILTER SECTION
   ======================================== */
.search-filter-section {
    background: #f8fafc;
    border-radius: var(--border-radius);
    padding: 1.5rem;
    border: 1px solid #e5e7eb;
}

.search-box .input-group {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.search-box .input-group-text {
    border: 1px solid #d1d5db;
    border-right: none;
    background: white;
    color: #6b7280;
}

.search-box .form-control {
    border: 1px solid #d1d5db;
    border-left: none;
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
}

.search-box .form-control:focus {
    box-shadow: none;
    border-color: var(--primary-color);
}

.form-select {
    border-radius: 8px;
    border: 1px solid #d1d5db;
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    box-shadow: var(--shadow-sm);
}

.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* ========================================
   TABLE STYLING
   ======================================== */
.campaigns-table {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.table-header th {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    color: #374151;
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 1rem;
    border: none;
    border-bottom: 2px solid #e5e7eb;
}

.campaigns-table tbody tr {
    /* transition: var(--transition); */
    border-bottom: 1px solid #f3f4f6;
}





/* ========================================
   LOADING AND EMPTY STATES
   ======================================== */
.loading-spinner {
    padding: 2rem;
}

.loading-spinner .spinner-border {
    width: 3rem;
    height: 3rem;
}

.empty-state {
    padding: 3rem 1rem;
}

.empty-state i {
    color: #d1d5db;
    margin-bottom: 1rem;
}

/* ========================================
   MODAL STYLING
   ======================================== */
.modal-content {
    border: none;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.modal-header {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-bottom: 1px solid #e5e7eb;
    padding: 1.5rem;
}

.modal-title-section h5 {
    color: #1f2937;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.modal-subtitle {
    color: #6b7280;
    font-size: 0.875rem;
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    background: #f8fafc;
    border-top: 1px solid #e5e7eb;
    padding: 1rem 1.5rem;
}

/* ========================================
   STEP INDICATORS
   ======================================== */
.step-header {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
}

.step-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    position: relative;
}

.step-indicator::after {
    content: '';
    position: absolute;
    top: 20px;
    left: 50%;
    width: 2rem;
    height: 2px;
    background: #d1d5db;
    transform: translateX(-50%);
}

.step-indicator:last-child::after {
    display: none;
}

.step-indicator.active::after {
    background: var(--primary-color);
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #d1d5db;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.875rem;
    transition: var(--transition);
}

.step-indicator.active .step-number {
    background: var(--primary-color);
    transform: scale(1.1);
}

.step-indicator.completed .step-number {
    background: var(--success-color);
}

.step-label {
    font-size: 0.875rem;
    color: #6b7280;
    font-weight: 500;
}

.step-indicator.active .step-label {
    color: var(--primary-color);
    font-weight: 600;
}

/* ========================================
   TABLE CONTAINER
   ======================================== */
.table-container {
    background: white;
    border-radius: var(--border-radius);
    border: 1px solid #e5e7eb;
    overflow: hidden;
}

.table-header-actions {
    background: #f8fafc;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #e5e7eb;
}

.table-info {
    font-size: 0.875rem;
}

.bulk-actions .btn {
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    padding: 0.5rem 1rem;
}

/* ========================================
   PRODUCT CONTEXT
   ======================================== */
.product-context .alert {
    border: none;
    border-radius: var(--border-radius);
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    color: #1e40af;
    border-left: 4px solid var(--info-color);
}

/* ========================================
   BUTTON STYLING
   ======================================== */
.btn {
    border-radius: 8px;
    font-weight: 500;
    transition: var(--transition);
    border: none;
    padding: 0.5rem 1rem;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), #1d4ed8);
}

.btn-success {
    background: linear-gradient(135deg, var(--success-color), #059669);
}

.btn-danger {
    background: linear-gradient(135deg, var(--danger-color), #dc2626);
}

.btn-warning {
    background: linear-gradient(135deg, var(--warning-color), #d97706);
}

.btn-info {
    background: linear-gradient(135deg, var(--info-color), #2563eb);
}

.btn-outline-primary {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    background: transparent;
}

.btn-outline-primary:hover {
    background: var(--primary-color);
    color: white;
}

.btn-outline-success {
    border: 2px solid var(--success-color);
    color: var(--success-color);
    background: transparent;
}

.btn-outline-success:hover {
    background: var(--success-color);
    color: white;
}

.btn-outline-danger {
    border: 2px solid var(--danger-color);
    color: var(--danger-color);
    background: transparent;
}

.btn-outline-danger:hover {
    background: var(--danger-color);
    color: white;
}

/* ========================================
   TABLE FIX HEAD
   ======================================== */
.tableFixHead {
    max-height: 70vh;
    overflow: auto;
    border-radius: var(--border-radius);
    background: white;
}

.tableFixHead thead th {
    position: sticky;
    top: 0;
    z-index: 2;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    box-shadow: inset 0 -1px 0 #e5e7eb;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .stat-card {
        margin-bottom: 1rem;
    }
    
    .step-header {
        flex-direction: column;
        gap: 1rem;
    }
    
    .step-indicator::after {
        display: none;
    }
    
    .search-filter-section .row {
        margin: 0;
    }
    
    .search-filter-section .col-md-4,
    .search-filter-section .col-md-3,
    .search-filter-section .col-md-2 {
        margin-bottom: 1rem;
    }
}

@media (max-width: 576px) {
    .hero-section {
        padding: 40px 0;
    }
    
    .stat-card-body {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
    
    .card-actions {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .card-actions .btn {
        width: 100%;
    }
}

/* ========================================
   ANIMATIONS
   ======================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.stat-card,
.main-content-card {
    animation: fadeInUp 0.6s ease-out;
}

.stat-card:nth-child(1) { animation-delay: 0.1s; }
.stat-card:nth-child(2) { animation-delay: 0.2s; }
.stat-card:nth-child(3) { animation-delay: 0.3s; }
.stat-card:nth-child(4) { animation-delay: 0.4s; }

/* ========================================
   SCROLLBAR STYLING
   ======================================== */
.tableFixHead::-webkit-scrollbar {
    width: 8px;
}

.tableFixHead::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 4px;
}

.tableFixHead::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

.tableFixHead::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* ========================================
   FOCUS STATES
   ======================================== */
.form-control:focus,
.form-select:focus,
.btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* ========================================
   HOVER EFFECTS
   ======================================== */
.campaigns-table tbody tr:hover td {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
}

.modal-content:hover {
    transform: translateY(-2px);
    transition: var(--transition);
}

/* ========================================
   STATUS BADGES
   ======================================== */
.badge {
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    font-weight: 500;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.badge-warning {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    color: #92400e;
}

.badge-success {
    background: linear-gradient(135deg, #d1fae5, #a7f3d0);
    color: #065f46;
}

.badge-danger {
    background: linear-gradient(135deg, #fee2e2, #fecaca);
    color: #991b1b;
}

.badge-info {
    background: linear-gradient(135deg, #dbeafe, #bfdbfe);
    color: #1e40af;
} 