/**
 * SEPA Plugin Custom Styles
 * Custom styling for SEPA plugin components
 */

/* SEPA Status Badges */
.sepa-status-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.sepa-status-draft {
    background-color: #95a5a6;
    color: #fff;
}

.sepa-status-pending {
    background-color: #f39c12;
    color: #fff;
}

.sepa-status-active {
    background-color: #27ae60;
    color: #fff;
}

.sepa-status-scheduled {
    background-color: #3498db;
    color: #fff;
}

.sepa-status-completed {
    background-color: #2ecc71;
    color: #fff;
}

.sepa-status-failed {
    background-color: #e74c3c;
    color: #fff;
}

.sepa-status-cancelled,
.sepa-status-suspended {
    background-color: #e67e22;
    color: #fff;
}

.sepa-status-expired {
    background-color: #7f8c8d;
    color: #fff;
}

/* SEPA Dashboard Widget */
.sepa-dashboard-widget {
    padding: 15px;
}

.sepa-widget-stat {
    text-align: center;
    padding: 15px;
    border-radius: 4px;
    background-color: #f8f9fa;
    margin-bottom: 10px;
}

.sepa-widget-stat-value {
    font-size: 24px;
    font-weight: bold;
    color: #2c3e50;
}

.sepa-widget-stat-label {
    font-size: 12px;
    color: #7f8c8d;
    text-transform: uppercase;
    margin-top: 5px;
}

/* SEPA Mandate Form Styles */
.sepa-mandate-info-box {
    background-color: #ecf0f1;
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 15px;
}

.sepa-mandate-info-box h6 {
    margin-top: 0;
    color: #2c3e50;
}

/* SEPA Transaction Amount Display */
.sepa-amount-large {
    font-size: 28px;
    font-weight: bold;
    color: #27ae60;
}

.sepa-amount-negative {
    color: #e74c3c !important;
}

/* SEPA Batch Preview */
.sepa-batch-preview {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    padding: 15px;
    margin-top: 15px;
}

.sepa-batch-preview-item {
    padding: 10px;
    border-bottom: 1px solid #e9ecef;
}

.sepa-batch-preview-item:last-child {
    border-bottom: none;
}

/* SEPA Error Messages */
.sepa-error-box {
    background-color: #fee;
    border: 1px solid #fcc;
    border-radius: 4px;
    padding: 15px;
    margin: 15px 0;
}

.sepa-error-code {
    font-family: monospace;
    font-weight: bold;
    color: #c0392b;
}

/* SEPA Chargeback Indicator */
.sepa-chargeback-alert {
    border-left: 4px solid #e74c3c;
    padding-left: 10px;
}

/* SEPA XML Preview */
.sepa-xml-preview {
    background-color: #2c3e50;
    color: #ecf0f1;
    padding: 15px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    overflow-x: auto;
    max-height: 500px;
}

/* SEPA Client Portal Styles */
.sepa-client-consent-box {
    background-color: #e8f8f5;
    border: 2px solid #27ae60;
    border-radius: 4px;
    padding: 20px;
    margin: 20px 0;
}

.sepa-client-consent-box h6 {
    color: #27ae60;
    margin-top: 0;
}

/* SEPA Table Customizations */
.sepa-table-icon {
    display: inline-block;
    width: 16px;
    height: 16px;
    margin-right: 5px;
}

/* SEPA Modal Customizations */
.sepa-modal-large {
    max-width: 800px;
}

/* SEPA Loading Spinner */
.sepa-loading {
    text-align: center;
    padding: 40px;
}

.sepa-loading::after {
    content: "";
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    animation: sepa-spin 1s linear infinite;
}

@keyframes sepa-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* SEPA Responsive Adjustments */
@media (max-width: 768px) {
    .sepa-widget-stat {
        margin-bottom: 15px;
    }
    
    .sepa-amount-large {
        font-size: 20px;
    }
}

/* SEPA Print Styles */
@media print {
    .sepa-no-print {
        display: none !important;
    }
}
