/* Campaigns Page Styles */

/* Page specific overrides */
.page-header {
    margin-bottom: 1.5rem;
}

.page-header-content {
    flex: 1;
}

.page-header-actions {
    display: flex;
    gap: 0.5rem;
}

/* Filters */
.filters-container {
    background: white;
    padding: 1.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    margin-bottom: 1.5rem;
}

.filter-row {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.filter-group {
    flex: 1;
    max-width: 300px;
}

.filter-group:first-child {
    flex: 2;
    max-width: none;
}

.search-input {
    padding-left: 2.5rem;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23999' viewBox='0 0 16 16'%3E%3Cpath d='M11.742 10.344a6.5 6.5 0 1 0-1.397 1.398h-.001c.03.04.062.078.098.115l3.85 3.85a1 1 0 0 0 1.415-1.414l-3.85-3.85a1.007 1.007 0 0 0-.115-.1zM12 6.5a5.5 5.5 0 1 1-11 0 5.5 5.5 0 0 1 11 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: 0.75rem center;
}

/* Table Container */
.table-container {
    background: white;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

/* Campaign Type Badge */
.campaign-type {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
}

.campaign-type-fundraising {
    background-color: #e3f2fd;
    color: #1976d2;
}

.campaign-type-email {
    background-color: #f3e5f5;
    color: #7b1fa2;
}

.campaign-type-event {
    background-color: #e8f5e9;
    color: #388e3c;
}

.campaign-type-membership {
    background-color: #fff3e0;
    color: #f57c00;
}

.campaign-type-other {
    background-color: #eceff1;
    color: #546e7a;
}

/* Campaign Status Badge */
.campaign-status {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    font-weight: 500;
}

.campaign-status-draft {
    background-color: #f5f5f5;
    color: #616161;
}

.campaign-status-active {
    background-color: #d4edda;
    color: #155724;
}

.campaign-status-scheduled {
    background-color: #cce5ff;
    color: #004085;
}

.campaign-status-sent {
    background-color: #d1ecf1;
    color: #0c5460;
}

.campaign-status-completed {
    background-color: #e2e3e5;
    color: #383d41;
}

.campaign-status-archived {
    background-color: #f8d7da;
    color: #721c24;
}

/* Progress Bar */
.campaign-progress {
    width: 150px;
}

.progress {
    height: 0.5rem;
    background-color: #e9ecef;
    border-radius: 0.25rem;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background-color: #10b981;
    transition: width 0.3s ease;
}

.progress-text {
    font-size: 0.75rem;
    color: #6c757d;
    margin-top: 0.25rem;
    text-align: center;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    gap: 0.5rem;
}

.action-buttons .btn {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: #6c757d;
}

.empty-state i {
    font-size: 4rem;
    color: #dee2e6;
    margin-bottom: 1rem;
    display: block;
}

.empty-state h5 {
    color: #495057;
    margin-bottom: 0.5rem;
}

.empty-state p {
    margin-bottom: 1.5rem;
}

/* Modal Customizations */
.email-fields {
    border-top: 1px solid #dee2e6;
    margin-top: 1rem;
    padding-top: 1rem;
}

.form-row {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.form-row .form-group {
    flex: 1;
    margin-bottom: 0;
}

.input-group {
    display: flex;
    align-items: center;
}

.input-group-text {
    background-color: #f8f9fa;
    border: 1px solid #ced4da;
    border-right: 0;
    padding: 0.375rem 0.75rem;
    color: #495057;
    border-radius: 0.25rem 0 0 0.25rem;
}

.input-group .form-control {
    border-radius: 0 0.25rem 0.25rem 0;
}

/* Pagination Styles */
.pagination-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    background: white;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    margin-top: 1.5rem;
}

.pagination-info {
    color: #6c757d;
    font-size: 0.875rem;
}

.pagination-list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 0.25rem;
}

.pagination-item {
    display: inline-block;
}

.pagination-link {
    display: flex;
    align-items: center;
    padding: 0.5rem 0.75rem;
    text-decoration: none;
    color: #495057;
    background-color: white;
    border: 1px solid #dee2e6;
    border-radius: 0.25rem;
    transition: all 0.15s ease;
    font-size: 0.875rem;
}

.pagination-link:hover {
    color: #0f172a;
    background-color: #f8f9fa;
    border-color: #dee2e6;
}

.pagination-item.active .pagination-link {
    color: white;
    background-color: #0284c7;
    border-color: #0284c7;
}

.pagination-item.disabled .pagination-link {
    color: #6c757d;
    background-color: #f8f9fa;
    border-color: #dee2e6;
    cursor: not-allowed;
    opacity: 0.6;
}

.pagination-item.disabled .pagination-link:hover {
    color: #6c757d;
    background-color: #f8f9fa;
}

/* Responsive */
@media (max-width: 768px) {
    .filter-row {
        flex-wrap: wrap;
    }
    
    .filter-group {
        flex: 1 1 100%;
        max-width: none;
    }
    
    .table-container {
        overflow-x: auto;
    }
    
    .data-table {
        min-width: 700px;
    }
    
    .page-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .page-header-actions {
        width: 100%;
    }
    
    .page-header-actions .btn {
        width: 100%;
    }
    
    .form-row {
        flex-direction: column;
    }
    
    .action-buttons {
        flex-direction: column;
    }
}