/**
 * Admin Styles for Charity Campaigns
 *
 * @package CCFS
 * @since 1.0.0
 */

/* Campaign status indicators - only custom status styling */
.campaign-status-active {
    color: #46b450;
    font-weight: 600;
}

.campaign-status-completed {
    color: #00a0d2;
    font-weight: 600;
}

.campaign-status-paused {
    color: #ffb900;
    font-weight: 600;
}

.campaign-status-cancelled {
    color: #dc3232;
    font-weight: 600;
}

/* Donation status indicators - only custom status styling */
.donation-status-pending {
    color: #ffb900;
    font-weight: 600;
}

.donation-status-completed {
    color: #46b450;
    font-weight: 600;
}

.donation-status-failed {
    color: #dc3232;
    font-weight: 600;
}

.donation-status-refunded {
    color: #666;
    font-weight: 600;
}

/* Progress bar for campaigns - custom element only */
.campaign-progress {
    background: #f1f1f1;
    border-radius: 10px;
    height: 20px;
    margin: 10px 0;
    overflow: hidden;
}

.campaign-progress-bar {
    background: linear-gradient(90deg, #46b450, #4caf50);
    height: 100%;
    transition: width 0.3s ease;
    border-radius: 10px;
}

.campaign-progress-text {
    text-align: center;
    font-size: 12px;
    font-weight: 600;
    color: #333;
    margin-top: 5px;
}

/* Dashboard Styles */
.charity-dashboard-overview .dashboard-widgets {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin: 20px 0;
}

.charity-dashboard-overview .dashboard-widget {
    background: #fff;
    border: 1px solid #ccd0d4;
    border-radius: 8px;
    padding: 0;
    box-shadow: 0 2px 4px rgba(0,0,0,.1);
    overflow: hidden;
    transition: box-shadow 0.2s ease;
}

.charity-dashboard-overview .dashboard-widget:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,.15);
}

.charity-dashboard-overview .widget-header {
    background: #f8f9fa;
    padding: 15px 20px;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.charity-dashboard-overview .widget-header h3 {
    margin: 0;
    color: #23282d;
    font-size: 16px;
    font-weight: 600;
}

.charity-dashboard-overview .widget-link {
    color: #0073aa;
    text-decoration: none;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.charity-dashboard-overview .widget-link:hover {
    color: #005177;
    text-decoration: underline;
}

.charity-dashboard-overview .widget-content {
    padding: 20px;
}

.charity-dashboard-overview .widget-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 15px;
}

.charity-dashboard-overview .widget-stat:last-child {
    margin-bottom: 0;
}

.charity-dashboard-overview .stat-number {
    font-size: 28px;
    font-weight: bold;
    color: #0073aa;
    margin-bottom: 5px;
    line-height: 1.2;
}

.charity-dashboard-overview .stat-label {
    font-size: 12px;
    color: #666;
    text-align: center;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Widget-specific styling */
.charity-dashboard-overview .campaigns-widget .stat-number {
    color: #46b450;
}

.charity-dashboard-overview .donations-widget .stat-number {
    color: #0073aa;
}

.charity-dashboard-overview .monthly-widget .stat-number {
    color: #ff6b35;
}

.charity-dashboard-overview .insights-widget .stat-number {
    color: #9c27b0;
}

/* Legacy support for old widget structure */
.charity-dashboard-overview .widget-number {
    font-size: 32px;
    font-weight: bold;
    color: #0073aa;
    margin: 0 0 5px 0;
}

.charity-dashboard-overview .widget-label {
    color: #666;
    margin: 0;
    font-size: 12px;
}

.charity-dashboard-overview .recent-activity {
    background: #fff;
    border: 1px solid #ccd0d4;
    border-radius: 4px;
    padding: 20px;
    margin-top: 20px;
}

.charity-dashboard-overview .recent-activity h3 {
    margin: 0 0 15px 0;
    color: #23282d;
}

/* Metabox progress panel */
.campaign-progress-container {
    background: #fff;
    padding: 16px;
    margin-bottom: 16px;
}

.campaign-progress {
    background: #f1f1f1;
    border-radius: 10px;
    height: 14px;
    overflow: hidden;
}

.campaign-progress-bar {
    background: linear-gradient(90deg, #46b450, #4caf50);
    height: 100%;
    transition: width 0.3s ease;
}

.campaign-progress-text {
    margin-top: 8px;
    font-size: 13px;
    color: #23282d;
}

/* Dashboard Calendar Styles */
.dashboard-calendar-section {
    background: #fff;
    border: 1px solid #ccd0d4;
    border-radius: 4px;
    margin-bottom: 20px;
    box-shadow: 0 1px 1px rgba(0,0,0,.04);
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #ccd0d4;
    background: #f9f9f9;
}

.calendar-header h2 {
    margin: 0;
    color: #23282d;
    font-size: 18px;
}

.calendar-navigation {
    display: flex;
    align-items: center;
    gap: 15px;
}

.calendar-navigation button {
    padding: 8px 12px;
    border: 1px solid #ccd0d4;
    background: #fff;
    border-radius: 3px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s ease;
}

.calendar-navigation button:hover {
    background: #f1f1f1;
    border-color: #999;
}

#current-month-year {
    font-weight: 600;
    color: #23282d;
    min-width: 150px;
    text-align: center;
}

.calendar-container {
    padding: 20px;
}

.calendar-grid {
    width: 100%;
    border-collapse: collapse;
}

.calendar-header-row {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1px;
    margin-bottom: 1px;
}

.calendar-day-header {
    background: #f1f1f1;
    padding: 12px 8px;
    text-align: center;
    font-weight: 600;
    color: #666;
    font-size: 12px;
    text-transform: uppercase;
}

.calendar-week {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1px;
    margin-bottom: 1px;
}

.calendar-day {
    background: #fff;
    border: 1px solid #e1e1e1;
    min-height: 80px;
    padding: 8px;
    position: relative;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.calendar-day:hover {
    background: #f9f9f9;
}

.calendar-day.other-month {
    background: #f9f9f9;
    color: #999;
}

.calendar-day.today {
    background: #e3f2fd;
    border-color: #2196f3;
}

.calendar-day.today .day-number {
    background: #2196f3;
    color: #fff;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.day-number {
    font-weight: 600;
    margin-bottom: 4px;
    font-size: 14px;
}

.day-events {
    display: flex;
    flex-wrap: wrap;
    gap: 2px;
    margin-top: 4px;
}

.event-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    display: inline-block;
}

.day-event-details {
    margin-top: 4px;
}

.event-detail {
    font-size: 12px;
    line-height: 1.3;
    padding: 3px 6px;
    margin: 2px 0;
    background: rgba(255, 255, 255, 0.95);
    border-left: 3px solid;
    border-radius: 3px;
    color: #333;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 500;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.calendar-day.has-events {
    position: relative;
    overflow: hidden;
}

.calendar-tooltip {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #333;
    color: #fff;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    margin-top: 4px;
}

.calendar-tooltip::before {
    content: '';
    position: absolute;
    top: -4px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-bottom: 4px solid #333;
}

.tooltip-event {
    padding: 2px 0;
    border-left: 3px solid;
    padding-left: 8px;
    margin: 2px 0;
}

/* Dashboard Stats Section */
.dashboard-stats-section {
    width: 100%;
}

/* Responsive Design */

@media (max-width: 768px) {
    .calendar-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .calendar-navigation {
        justify-content: center;
    }
    
    .calendar-day {
        min-height: 60px;
        padding: 4px;
    }
    
    .day-number {
        font-size: 12px;
    }
    
    .event-dot {
        width: 4px;
        height: 4px;
    }
    
    .event-detail {
        font-size: 11px;
        padding: 2px 4px;
        line-height: 1.2;
    }
    
    .calendar-tooltip {
        font-size: 11px;
        padding: 6px 8px;
    }
}

@media (max-width: 480px) {
    .calendar-container {
        padding: 10px;
    }
    
    .calendar-day {
        min-height: 50px;
        padding: 2px;
    }
    
    .calendar-day-header {
        padding: 8px 4px;
        font-size: 10px;
    }
    
    .day-number {
        font-size: 11px;
    }
    
    .event-detail {
        font-size: 10px;
        padding: 2px 3px;
        line-height: 1.2;
    }
}

/* Tab Content Styles */
.dashboard-section {
    background: #fff;
    border: 1px solid #ccd0d4;
    border-radius: 4px;
    padding: 20px;
    margin: 20px 0;
}

.dashboard-section h3 {
    margin: 0 0 15px 0;
    color: #23282d;
}

.dashboard-section p {
    margin: 0 0 15px 0;
    color: #666;
}

/* Recent Activity Styles */
.activity-list {
    max-height: 400px;
    overflow-y: auto;
}

/* Reports Tab Styles */
.charity-dashboard-reports {
    margin-top: 20px;
}

.reports-section {
    background: #fff;
    border: 1px solid #ccd0d4;
    border-radius: 4px;
    padding: 20px;
    margin-bottom: 20px;
}

.reports-section h2 {
    margin: 0 0 20px 0;
    color: #23282d;
    font-size: 18px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.reports-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

/* Primary metrics - larger cards */
.reports-grid.primary-metrics {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    margin-bottom: 30px;
}

.report-card {
    background: #f8f9fa;
    border: 1px solid #e1e5e9;
    border-radius: 6px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
}

.report-card:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

/* Primary cards - enhanced styling */
.report-card.primary-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    position: relative;
    overflow: hidden;
}

.report-card.primary-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.05) 100%);
    pointer-events: none;
}

.report-card.primary-card h3 {
    color: rgba(255, 255, 255, 0.9);
    position: relative;
    z-index: 1;
}

.report-card.primary-card .report-value {
    color: white;
    position: relative;
    z-index: 1;
}

.report-card.primary-card .report-subtitle {
    color: rgba(255, 255, 255, 0.8);
    font-size: 12px;
    margin-top: 5px;
    position: relative;
    z-index: 1;
}

.report-card h3 {
    margin: 0 0 10px 0;
    color: #666;
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.report-value {
    font-size: 28px;
    font-weight: 700;
    color: #23282d;
    line-height: 1.2;
}

/* Progress bar styling */
.progress-bar {
    width: 100%;
    height: 8px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    margin-top: 10px;
    overflow: hidden;
    position: relative;
    z-index: 1;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #4caf50 0%, #8bc34a 100%);
    border-radius: 4px;
    transition: width 0.3s ease;
}

/* Campaign status breakdown */
.campaign-status-breakdown {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.campaign-status-breakdown h3 {
    margin: 0 0 15px 0;
    color: #23282d;
    font-size: 16px;
}

.status-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
}

.status-item {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    background: #f8f9fa;
    border-radius: 6px;
    border: 1px solid #e1e5e9;
    cursor: help;
    transition: background-color 0.2s ease;
}

.status-item:hover {
    background: #f0f0f0;
}

.status-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 10px;
    flex-shrink: 0;
}

.status-label {
    flex: 1;
    font-size: 14px;
    color: #666;
}

.status-count {
    font-weight: 600;
    color: #23282d;
    font-size: 16px;
}

/* Donations List Styles */
.donations-filters {
    background: #f8f9fa;
    border: 1px solid #e1e5e9;
    border-radius: 6px;
    padding: 20px;
    margin-bottom: 20px;
}

.filter-form {
    margin: 0;
}

.filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: end;
}

.filter-group {
    display: flex;
    flex-direction: column;
    min-width: 150px;
}

.filter-group label {
    font-size: 12px;
    font-weight: 600;
    color: #666;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.filter-group select,
.filter-group input[type="date"] {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    background: white;
}

.filter-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.donations-list {
    margin-top: 20px;
}

.donations-table-wrapper {
    overflow-x: auto;
    border: 1px solid #e1e5e9;
    border-radius: 6px;
}

.donations-table {
    margin: 0;
    border: none;
    border-collapse: collapse;
    width: 100%;
}

.donations-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #23282d;
    padding: 12px 15px;
    border-bottom: 1px solid #e1e5e9;
    text-align: left;
}

.donations-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #f0f0f1;
    vertical-align: middle;
}

.donations-table tr:hover {
    background-color: #f8f9fa;
}

.donation-amount {
    font-weight: 600;
    color: #46b450;
    font-size: 16px;
}

.donor-info strong {
    display: block;
    color: #23282d;
}

.donor-info small {
    color: #666;
    font-size: 12px;
}

.no-campaign,
.anonymous,
.no-donor {
    color: #999;
    font-style: italic;
}

.status-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

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

.status-pending {
    background: #fff3cd;
    color: #856404;
}

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

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

.donation-actions {
    display: flex;
    gap: 5px;
}

.donation-actions .button {
    padding: 4px 8px;
    font-size: 11px;
    line-height: 1.4;
    min-height: auto;
}

.no-donations {
    text-align: center;
    padding: 40px 20px;
    color: #666;
}

.no-donations p {
    margin: 0 0 15px 0;
}

/* Charts & Analytics Styles */
.chart-tabs {
    display: flex;
    border-bottom: 1px solid #e1e5e9;
    margin-bottom: 20px;
    background: #f8f9fa;
    border-radius: 6px 6px 0 0;
    overflow: hidden;
}

.chart-tab {
    flex: 1;
    padding: 12px 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: #666;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
}

.chart-tab:hover {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
}

.chart-tab.active {
    background: white;
    color: #667eea;
    border-bottom-color: #667eea;
}

.chart-container {
    display: none;
    padding: 20px 0;
}

.chart-container.active {
    display: block;
}

.chart-container h3 {
    margin: 0 0 20px 0;
    color: #23282d;
    font-size: 16px;
    font-weight: 600;
}

.chart-wrapper {
    position: relative;
    height: 300px;
    margin-bottom: 20px;
    background: white;
    border: 1px solid #e1e5e9;
    border-radius: 6px;
    padding: 20px;
}

.chart-summary {
    background: #f8f9fa;
    border: 1px solid #e1e5e9;
    border-radius: 6px;
    padding: 15px;
    margin-top: 15px;
}

.chart-summary p {
    margin: 0;
    color: #666;
    font-size: 14px;
}

.chart-summary strong {
    color: #23282d;
}

.reports-actions {
    margin-bottom: 20px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.reports-actions .button {
    margin: 0;
}

.reports-content {
    background: #f8f9fa;
    border: 1px solid #e1e5e9;
    border-radius: 4px;
    padding: 20px;
    color: #666;
    font-style: italic;
}

/* Responsive adjustments for reports */
@media (max-width: 768px) {
    .reports-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 15px;
    }
    
    .reports-grid.primary-metrics {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
    
    .report-card {
        padding: 15px;
    }
    
    .report-value {
        font-size: 24px;
    }
    
    .reports-actions {
        flex-direction: column;
    }
    
    .reports-actions .button {
        width: 100%;
        text-align: center;
    }
    
    .status-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 10px;
    }
    
    .status-item {
        padding: 8px 12px;
    }
}

@media (max-width: 480px) {
    .reports-grid {
        grid-template-columns: 1fr;
    }
    
    .reports-grid.primary-metrics {
        grid-template-columns: 1fr;
    }
    
    .report-value {
        font-size: 20px;
    }
    
    .status-grid {
        grid-template-columns: 1fr;
    }
    
    .status-item {
        justify-content: space-between;
    }
    
    /* Donations list responsive */
    .filter-row {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filter-group {
        min-width: auto;
    }
    
    .filter-actions {
        justify-content: center;
        margin-top: 10px;
    }
    
    .donations-table-wrapper {
        font-size: 12px;
    }
    
    .donations-table th,
    .donations-table td {
        padding: 8px 10px;
    }
    
    .donation-actions {
        flex-direction: column;
        gap: 3px;
    }
    
    .donation-actions .button {
        width: 100%;
        text-align: center;
    }
    
    /* Charts responsive */
    .chart-tabs {
        flex-direction: column;
    }
    
    .chart-tab {
        border-bottom: 1px solid #e1e5e9;
        border-right: none;
    }
    
    .chart-tab.active {
        border-bottom-color: #e1e5e9;
        border-left: 3px solid #667eea;
    }
    
    .chart-wrapper {
        height: 250px;
        padding: 15px;
    }
}

/* Special styling for excess funds card */
#total-excess-funds {
    color: #ff6b35;
    font-weight: 700;
}

/* Date filter controls */
.reports-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.date-filter-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.date-filter-controls label {
    font-weight: 600;
    color: #333;
    margin: 0;
}

.date-filter-controls select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #fff;
    font-size: 14px;
    min-width: 150px;
    cursor: pointer;
}

.date-filter-controls select:focus {
    border-color: #667eea;
    outline: none;
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.2);
}

@media (max-width: 480px) {
    .chart-wrapper {
        height: 200px;
        padding: 10px;
    }
    
    .reports-header {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }
    
    .date-filter-controls {
        justify-content: center;
    }
    
    .date-filter-controls select {
        min-width: 120px;
    }
    
    .chart-tab {
        padding: 10px 15px;
        font-size: 13px;
    }
}

.activity-item {
    display: flex;
    align-items: flex-start;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f1;
}

.activity-item:last-child {
    border-bottom: none;
}

.activity-icon {
    font-size: 18px;
    margin-right: 12px;
    flex-shrink: 0;
}

.activity-content {
    flex: 1;
}

.activity-text {
    margin: 0 0 4px 0;
    color: #1d2327;
    font-size: 14px;
    line-height: 1.4;
}

.activity-time {
    color: #646970;
    font-size: 12px;
}

.activity-donation .activity-icon {
    color: #00a32a;
}

.activity-campaign .activity-icon {
    color: #0073aa;
}

.activity-milestone .activity-icon {
    color: #d63638;
}

.activity-excess .activity-icon {
    color: #ff9900;
}

.charity-dashboard-overview {
    margin-top: 20px;
}

/* Activity Page Styles */
.charity-activity-page {
    width: 100%;
    margin-top: 20px;
}

.activity-filters {
    background: #fff;
    border: 1px solid #ccd0d4;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,.1);
}

.activity-filters .filter-row {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
    flex-wrap: wrap;
    align-items: end;
}

.activity-filters .filter-row:last-child {
    margin-bottom: 0;
}

.activity-filters .filter-row.fields-row {
    flex-wrap: wrap;
}

.activity-filters .filter-row.buttons-row {
    justify-content: flex-end;
    margin-top: 10px;
    padding-top: 15px;
    border-top: 1px solid #e1e1e1;
    margin-bottom: 0;
}

.activity-filters .filter-group {
    display: flex;
    flex-direction: column;
    min-width: 200px;
    flex: 1;
    border: none;
}

.activity-filters .filter-group label {
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
    font-size: 14px;
}

.activity-filters .filter-group input,
.activity-filters .filter-group select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    background: #fff;
}

.activity-filters .filter-group input:focus,
.activity-filters .filter-group select:focus {
    border-color: #0073aa;
    outline: none;
    box-shadow: 0 0 0 2px rgba(0, 115, 170, 0.2);
}

.activity-filters .filter-actions {
    display: flex;
    gap: 10px;
    align-items: end;
}

.activity-results {
    background: #fff;
    border: 1px solid #ccd0d4;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,.1);
}

.activity-header {
    background: #f8f9fa;
    padding: 20px;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.activity-header h2 {
    margin: 0;
    color: #23282d;
    font-size: 18px;
    font-weight: 600;
}

.activity-count {
    color: #666;
    font-size: 14px;
    font-weight: 500;
}

.activity-timeline {
    padding: 20px;
}

.activity-timeline .activity-item {
    display: flex;
    align-items: flex-start;
    padding: 15px 0;
    border-bottom: 1px solid #f0f0f0;
    position: relative;
}

.activity-timeline .activity-item:last-child {
    border-bottom: none;
}

.activity-timeline .activity-item::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #e9ecef;
}

.activity-timeline .activity-item:last-child::before {
    display: none;
}

.activity-timeline .activity-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    margin-right: 15px;
    position: relative;
    z-index: 1;
    background: #fff;
    border: 2px solid #e9ecef;
}

.activity-timeline .activity-content {
    flex: 1;
    padding-top: 2px;
}

.activity-timeline .activity-text {
    font-size: 15px;
    line-height: 1.4;
    color: #333;
    margin-bottom: 8px;
}

.activity-timeline .activity-meta {
    display: flex;
    gap: 15px;
    align-items: center;
    font-size: 13px;
    color: #666;
}

.activity-timeline .activity-time {
    font-weight: 500;
}

.activity-timeline .activity-campaign {
    background: #f0f0f0;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    color: #555;
}

.no-activities {
    text-align: center;
    padding: 40px 20px;
    color: #666;
}

.no-activities p {
    margin-bottom: 20px;
    font-size: 16px;
}

/* Activity type specific styling */
.activity-timeline .activity-campaign .activity-icon {
    background: #e3f2fd;
    border-color: #2196f3;
    color: #1976d2;
}

.activity-timeline .activity-donation .activity-icon {
    background: #e8f5e8;
    border-color: #4caf50;
    color: #388e3c;
}

.activity-timeline .activity-milestone .activity-icon {
    background: #fff3e0;
    border-color: #ff9800;
    color: #f57c00;
}

.activity-timeline .activity-excess .activity-icon {
    background: #fce4ec;
    border-color: #e91e63;
    color: #c2185b;
}

/* Responsive */
@media (max-width: 1400px) {
    .charity-dashboard-overview .dashboard-widgets {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .charity-dashboard-overview .dashboard-widgets {
        grid-template-columns: 1fr;
    }
    
    .activity-item {
        padding: 8px 0;
    }
    
    /* Activity page responsive */
    .activity-filters .filter-row {
        flex-direction: column;
        gap: 15px;
    }
    
    .activity-filters .filter-group {
        min-width: auto;
    }
    
    .activity-filters .filter-actions {
        justify-content: center;
    }
    
    .activity-header {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .activity-timeline .activity-item {
        padding: 12px 0;
    }
    
    .activity-timeline .activity-icon {
        width: 35px;
        height: 35px;
        font-size: 16px;
        margin-right: 12px;
    }
    
    .activity-timeline .activity-meta {
        flex-direction: column;
        gap: 5px;
        align-items: flex-start;
    }
}
    
    .activity-icon {
        font-size: 16px;
        margin-right: 8px;
    }
}

/* Read-only fields styling */
input[readonly] {
    background-color: #f9f9f9 !important;
    color: #666 !important;
    cursor: not-allowed !important;
    border-color: #ddd !important;
}

input[readonly]:focus {
    box-shadow: none !important;
    border-color: #ddd !important;
}

/* Payment gateway and transaction ID specific styling */
#donation_gateway[readonly],
#donation_txn_id[readonly] {
    font-family: monospace;
    font-size: 13px;
    letter-spacing: 0.5px;
}

#donation_gateway[readonly] {
    text-transform: uppercase;
    font-weight: 600;
}

#donation_txn_id[readonly] {
    word-break: break-all;
}

/* Inline-style replacements */
.scroll-max-300 {
    max-height: 300px;
    overflow-y: auto;
}

.mt-10 {
    margin-top: 10px;
}

.input-readonly[readonly] {
    background-color: #f9f9f9;
    color: #666;
}

/* Admin columns inline style replacements */
.text-muted { color: #999; }
.text-warning { color: #ff9900; }
.fw-bold { font-weight: bold; }
.mini-progress-text { margin-bottom: 4px; }
.mini-progress-bar { background: #f1f1f1; border-radius: 3px; height: 8px; width: 100px; }
.mini-progress-fill { display: block; background: #46b450; height: 100%; width: 0; border-radius: 3px; }
.mini-progress-note { font-size: 11px; color: #666; margin-top: 2px; }

/* Help Section Styles */
.charity-dashboard-help {
    max-width: 1200px;
    margin: 20px auto;
}

.help-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 8px;
}

.help-header h2 {
    margin: 0 0 10px 0;
    font-size: 2.2em;
    font-weight: 600;
    color: #ffffff;
}

.help-header p {
    margin: 0;
    font-size: 1.1em;
    opacity: 0.9;
}

.help-sections {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.help-section {
    background: #fff;
    border: 1px solid #e1e5e9;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    transition: box-shadow 0.3s ease;
}

.help-section:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.help-section h3 {
    margin: 0 0 20px 0;
    font-size: 1.4em;
    color: #2c3e50;
    display: flex;
    align-items: center;
    gap: 10px;
}

.help-section h3 .dashicons {
    color: #667eea;
    font-size: 1.2em;
}

.help-content h4 {
    margin: 20px 0 10px 0;
    color: #34495e;
    font-size: 1.1em;
}

.help-content p {
    margin: 10px 0;
    line-height: 1.6;
    color: #555;
}

.help-content ul, .help-content ol {
    margin: 10px 0;
    padding-left: 20px;
}

.help-content li {
    margin: 8px 0;
    line-height: 1.5;
}

.help-content strong {
    color: #2c3e50;
}

.help-content code {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 4px;
    padding: 2px 6px;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.9em;
    color: #e74c3c;
}

/* Shortcode Reference Styles */
.shortcode-item {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    padding: 20px;
    margin: 15px 0;
}

.shortcode-item code {
    display: block;
    background: #2c3e50;
    color: #ecf0f1;
    padding: 10px;
    border-radius: 4px;
    margin: 10px 0;
    font-size: 1.1em;
}

/* Troubleshooting Styles */
.troubleshoot-item {
    background: #fff5f5;
    border-left: 4px solid #e74c3c;
    padding: 15px;
    margin: 15px 0;
    border-radius: 0 4px 4px 0;
}

.troubleshoot-item strong {
    color: #c0392b;
    display: block;
    margin-bottom: 8px;
}

/* Support Links Styles */
.support-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.support-item {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    padding: 20px;
    text-align: center;
}

.support-item h4 {
    margin: 0 0 10px 0;
    color: #2c3e50;
}

.support-item p {
    margin: 0;
    font-size: 0.95em;
    color: #666;
}

/* Responsive Design */
@media (max-width: 768px) {
    .help-sections {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .help-section {
        padding: 20px;
    }
    
    .help-header {
        padding: 20px;
    }
    
    .help-header h2 {
        font-size: 1.8em;
    }
    
    .support-links {
        grid-template-columns: 1fr;
    }
}