/* Campaign Module Styles */

/* General Campaign Styles */
.campaign-card {
    transition: all 0.3s ease;
    border: 1px solid #e3e6f0;
    border-radius: 0.35rem;
}

.campaign-card:hover {
    box-shadow: 0 0.15rem 1.75rem 0 rgba(58, 59, 69, 0.15);
    transform: translateY(-2px);
}

.campaign-status {
    font-weight: 600;
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.campaign-status.active {
    background-color: #1cc88a;
    color: white;
}

.campaign-status.paused {
    background-color: #f6c23e;
    color: #5a5c69;
}

.campaign-status.draft {
    background-color: #e74a3b;
    color: white;
}

.campaign-status.completed {
    background-color: #36b9cc;
    color: white;
}

/* Campaign List Styles */
.campaign-filters {
    background: #f8f9fc;
    border-radius: 0.35rem;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border: 1px solid #e3e6f0;
}

.filter-group {
    margin-bottom: 1rem;
}

.filter-group:last-child {
    margin-bottom: 0;
}

.campaign-table {
    background: white;
    border-radius: 0.35rem;
    overflow: hidden;
    box-shadow: 0 0.15rem 1.75rem 0 rgba(58, 59, 69, 0.15);
}

.campaign-table th {
    background: #f8f9fc;
    border-bottom: 1px solid #e3e6f0;
    font-weight: 600;
    color: #5a5c69;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 1rem 0.75rem;
}

.campaign-table td {
    padding: 1rem 0.75rem;
    border-bottom: 1px solid #e3e6f0;
    vertical-align: middle;
}

.campaign-table tbody tr:hover {
    background-color: #f8f9fc;
}

.campaign-name {
    font-weight: 600;
    color: #5a5c69;
    text-decoration: none;
}

.campaign-name:hover {
    color: #4e73df;
    text-decoration: underline;
}

.campaign-advertiser {
    font-size: 0.8rem;
    color: #858796;
    margin-top: 0.25rem;
}

.campaign-budget {
    font-weight: 600;
    color: #1cc88a;
}

.campaign-spend {
    font-size: 0.85rem;
    color: #858796;
}

.campaign-actions {
    white-space: nowrap;
}

.btn-action {
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    margin: 0 0.125rem;
    border-radius: 0.25rem;
}

/* Campaign Detail Styles */
.campaign-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 2rem 0;
    margin-bottom: 2rem;
    border-radius: 0.35rem;
}

.campaign-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.campaign-subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 0;
}

.metric-card {
    background: white;
    border-radius: 0.35rem;
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 0.15rem 1.75rem 0 rgba(58, 59, 69, 0.15);
    border: 1px solid #e3e6f0;
    transition: all 0.3s ease;
}

.metric-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 0.25rem 2rem 0 rgba(58, 59, 69, 0.2);
}

.metric-value {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.metric-label {
    font-size: 0.85rem;
    color: #858796;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.metric-change {
    font-size: 0.75rem;
    margin-top: 0.25rem;
}

.metric-change.positive {
    color: #1cc88a;
}

.metric-change.negative {
    color: #e74a3b;
}

/* Progress Bars */
.progress-custom {
    height: 0.5rem;
    border-radius: 0.25rem;
    background-color: #eaecf4;
}

.progress-bar-custom {
    border-radius: 0.25rem;
    transition: width 0.6s ease;
}

.progress-bar-success {
    background: linear-gradient(90deg, #1cc88a 0%, #13855c 100%);
}

.progress-bar-warning {
    background: linear-gradient(90deg, #f6c23e 0%, #dda20a 100%);
}

.progress-bar-danger {
    background: linear-gradient(90deg, #e74a3b 0%, #c0392b 100%);
}

/* Campaign Form Styles */
.form-section {
    background: white;
    border-radius: 0.35rem;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 0.15rem 1.75rem 0 rgba(58, 59, 69, 0.15);
    border: 1px solid #e3e6f0;
}

.form-section-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #5a5c69;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #e3e6f0;
}

.form-group-custom {
    margin-bottom: 1.5rem;
}

.form-label-custom {
    font-weight: 600;
    color: #5a5c69;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.form-control-custom {
    border: 1px solid #d1d3e2;
    border-radius: 0.35rem;
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.form-control-custom:focus {
    border-color: #4e73df;
    box-shadow: 0 0 0 0.2rem rgba(78, 115, 223, 0.25);
}

.form-help-text {
    font-size: 0.8rem;
    color: #858796;
    margin-top: 0.25rem;
}

.required-field::after {
    content: " *";
    color: #e74a3b;
    font-weight: bold;
}

/* Campaign Dashboard Styles */
.dashboard-card {
    background: white;
    border-radius: 0.35rem;
    box-shadow: 0 0.15rem 1.75rem 0 rgba(58, 59, 69, 0.15);
    border: 1px solid #e3e6f0;
    transition: all 0.3s ease;
}

.dashboard-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 0.25rem 2rem 0 rgba(58, 59, 69, 0.2);
}

.stats-card {
    padding: 1.5rem;
    text-align: center;
}

.stats-value {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.stats-label {
    font-size: 0.85rem;
    color: #858796;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.chart-container {
    position: relative;
    height: 300px;
    padding: 1rem;
}

/* Campaign Performance Chart */
.performance-chart {
    background: white;
    border-radius: 0.35rem;
    padding: 1.5rem;
    box-shadow: 0 0.15rem 1.75rem 0 rgba(58, 59, 69, 0.15);
}

.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #e3e6f0;
}

.chart-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #5a5c69;
    margin: 0;
}

.chart-controls {
    display: flex;
    gap: 0.5rem;
}

.chart-control-btn {
    padding: 0.25rem 0.75rem;
    font-size: 0.8rem;
    border: 1px solid #d1d3e2;
    background: white;
    color: #5a5c69;
    border-radius: 0.25rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.chart-control-btn:hover,
.chart-control-btn.active {
    background: #4e73df;
    color: white;
    border-color: #4e73df;
}

/* Campaign Schedule Styles */
.schedule-item {
    background: #f8f9fc;
    border: 1px solid #e3e6f0;
    border-radius: 0.35rem;
    padding: 1rem;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.schedule-item:hover {
    background: #eaecf4;
    border-color: #d1d3e2;
}

.schedule-channel {
    font-weight: 600;
    color: #5a5c69;
    margin-bottom: 0.5rem;
}

.schedule-time {
    font-size: 0.9rem;
    color: #858796;
    margin-bottom: 0.25rem;
}

.schedule-days {
    font-size: 0.8rem;
    color: #858796;
}

.schedule-budget {
    font-weight: 600;
    color: #1cc88a;
    text-align: right;
}

/* Geographic Zones */
.zone-item {
    display: flex;
    align-items: center;
    padding: 0.5rem;
    border-radius: 0.25rem;
    margin-bottom: 0.5rem;
    background: #f8f9fc;
    border: 1px solid #e3e6f0;
}

.zone-icon {
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background: #4e73df;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 0.75rem;
    font-size: 0.8rem;
}

.zone-name {
    font-weight: 600;
    color: #5a5c69;
    margin-bottom: 0.25rem;
}

.zone-details {
    font-size: 0.8rem;
    color: #858796;
}

/* Responsive Design */
@media (max-width: 768px) {
    .campaign-header {
        padding: 1.5rem 0;
        text-align: center;
    }
    
    .campaign-title {
        font-size: 1.5rem;
    }
    
    .metric-card {
        margin-bottom: 1rem;
    }
    
    .campaign-table {
        font-size: 0.8rem;
    }
    
    .campaign-table th,
    .campaign-table td {
        padding: 0.5rem 0.25rem;
    }
    
    .campaign-actions {
        display: flex;
        flex-direction: column;
        gap: 0.25rem;
    }
    
    .btn-action {
        margin: 0;
        width: 100%;
    }
    
    .form-section {
        padding: 1rem;
    }
    
    .chart-container {
        height: 250px;
    }
}

@media (max-width: 576px) {
    .campaign-filters {
        padding: 1rem;
    }
    
    .filter-group {
        margin-bottom: 0.75rem;
    }
    
    .stats-value {
        font-size: 2rem;
    }
    
    .metric-value {
        font-size: 1.5rem;
    }
    
    .chart-header {
        flex-direction: column;
        gap: 0.5rem;
        align-items: flex-start;
    }
    
    .chart-controls {
        width: 100%;
        justify-content: center;
    }
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.slide-in {
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        transform: translateX(-100%);
    }
    to {
        transform: translateX(0);
    }
}

.bounce-in {
    animation: bounceIn 0.6s ease-out;
}

@keyframes bounceIn {
    0% {
        transform: scale(0.3);
        opacity: 0;
    }
    50% {
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Loading States */
.loading {
    position: relative;
    overflow: hidden;
}

.loading::after {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.4),
        transparent
    );
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

/* Utility Classes */
.text-primary-custom {
    color: #4e73df !important;
}

.text-success-custom {
    color: #1cc88a !important;
}

.text-warning-custom {
    color: #f6c23e !important;
}

.text-danger-custom {
    color: #e74a3b !important;
}

.bg-primary-custom {
    background-color: #4e73df !important;
}

.bg-success-custom {
    background-color: #1cc88a !important;
}

.bg-warning-custom {
    background-color: #f6c23e !important;
}

.bg-danger-custom {
    background-color: #e74a3b !important;
}

.border-primary-custom {
    border-color: #4e73df !important;
}

.border-success-custom {
    border-color: #1cc88a !important;
}

.border-warning-custom {
    border-color: #f6c23e !important;
}

.border-danger-custom {
    border-color: #e74a3b !important;
}

/* Print Styles */
@media print {
    .campaign-actions,
    .btn,
    .dropdown,
    .chart-controls {
        display: none !important;
    }
    
    .campaign-card,
    .dashboard-card,
    .form-section {
        box-shadow: none !important;
        border: 1px solid #000 !important;
    }
    
    .campaign-header {
        background: #f8f9fc !important;
        color: #000 !important;
    }
}