/* Reports Dashboard Styles */
.irandargah-reports-wrap {
    padding: 20px;
    background: #f5f5f5;
    min-height: calc(100vh - 32px);
}

.irandargah-reports-header {
    background: #fff;
    padding: 20px 30px;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.irandargah-reports-title {
    margin: 0;
    font-size: 24px;
    font-weight: 600;
    color: #1f2937;
    display: flex;
    align-items: center;
    gap: 10px;
}

.irandargah-reports-title .dashicons {
    font-size: 28px;
    width: 28px;
    height: 28px;
    color: #3b82f6;
}

/* Tabs */
.irandargah-reports-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    background: #fff;
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    flex-wrap: wrap;
}

.irandargah-tab {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    text-decoration: none;
    color: #6b7280;
    border-radius: 6px;
    transition: all 0.2s;
    font-weight: 500;
}

.irandargah-tab:hover {
    background: #f3f4f6;
    color: #3b82f6;
}

.irandargah-tab.active {
    background: #3b82f6;
    color: #fff;
}

.irandargah-tab .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
}

/* Content */
.irandargah-reports-content {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Filters */
.irandargah-filters-card {
    background: #f9fafb;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
    border: 1px solid #e5e7eb;
}

.irandargah-filters-card h3 {
    margin: 0 0 15px 0;
    font-size: 16px;
    color: #1f2937;
}

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

.irandargah-filter-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.irandargah-filter-group label {
    font-size: 13px;
    color: #6b7280;
    font-weight: 500;
}

.irandargah-select,
.irandargah-input,
.irandargah-datepicker {
    padding: 8px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    min-width: 150px;
}

.irandargah-select:focus,
.irandargah-input:focus,
.irandargah-datepicker:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.irandargah-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.irandargah-btn-primary {
    background: #3b82f6;
    color: #fff;
}

.irandargah-btn-primary:hover {
    background: #2563eb;
}

.irandargah-btn-secondary {
    background: #6b7280;
    color: #fff;
}

.irandargah-btn-secondary:hover {
    background: #4b5563;
}

/* Stats Grid */
.irandargah-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.irandargah-stat-card {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 15px;
    border-right: 4px solid;
}

.irandargah-stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}

.irandargah-stat-icon .dashicons {
    font-size: 24px;
    width: 24px;
    height: 24px;
}

.irandargah-stat-content h3 {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
    color: #1f2937;
}

.irandargah-stat-content p {
    margin: 5px 0 0 0;
    font-size: 14px;
    color: #6b7280;
}

/* Charts Grid */
.irandargah-charts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 20px;
}

.irandargah-chart-card {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.irandargah-chart-card h3 {
    margin: 0 0 20px 0;
    font-size: 16px;
    color: #1f2937;
    font-weight: 600;
}

.irandargah-chart-card canvas {
    max-height: 300px;
}

/* Alerts */
.irandargah-alerts-notification-bar {
    margin-bottom: 20px;
    padding: 15px;
    border-radius: 8px;
    display: none;
}

.irandargah-alerts-notification-bar.show {
    display: block;
}

.irandargah-alerts-notification-bar.error {
    background: #fee2e2;
    border-left: 4px solid #ef4444;
    color: #991b1b;
}

.irandargah-alerts-notification-bar.warning {
    background: #fef3c7;
    border-left: 4px solid #f59e0b;
    color: #92400e;
}

.irandargah-alerts-notification-bar.success {
    background: #d1fae5;
    border-left: 4px solid #10b981;
    color: #065f46;
}

.irandargah-alert-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 15px;
    background: #fff;
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border-left: 4px solid;
}

.irandargah-alert-item.irandargah-alert-error {
    border-left-color: #ef4444;
}

.irandargah-alert-item.irandargah-alert-warning {
    border-left-color: #f59e0b;
}

.irandargah-alert-item .dashicons {
    font-size: 24px;
    width: 24px;
    height: 24px;
    color: #ef4444;
    margin-top: 2px;
}

.irandargah-alert-content {
    flex: 1;
}

.irandargah-alert-content h4 {
    margin: 0 0 5px 0;
    font-size: 16px;
    color: #1f2937;
}

.irandargah-alert-content p {
    margin: 0 0 5px 0;
    font-size: 14px;
    color: #6b7280;
}

.irandargah-alert-time {
    font-size: 12px;
    color: #9ca3af;
}

.irandargah-alert-dismiss {
    background: none;
    border: none;
    font-size: 24px;
    color: #9ca3af;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    line-height: 1;
}

.irandargah-alert-dismiss:hover {
    color: #ef4444;
}

/* Transactions Table */
.irandargah-transactions-filters {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.irandargah-search {
    flex: 1;
    min-width: 250px;
    padding: 8px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
}

.irandargah-transactions-table-wrapper {
    overflow-x: auto;
}

.irandargah-transactions-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
}

.irandargah-transactions-table thead {
    background: #f9fafb;
}

.irandargah-transactions-table th {
    padding: 12px;
    text-align: right;
    font-size: 13px;
    font-weight: 600;
    color: #6b7280;
    border-bottom: 2px solid #e5e7eb;
}

.irandargah-transactions-table td {
    padding: 12px;
    text-align: right;
    font-size: 14px;
    color: #1f2937;
    border-bottom: 1px solid #e5e7eb;
}

.irandargah-transactions-table tbody tr:hover {
    background: #f9fafb;
}

.irandargah-status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.irandargah-status-badge.success {
    background: #d1fae5;
    color: #065f46;
}

.irandargah-status-badge.failed {
    background: #fee2e2;
    color: #991b1b;
}

.irandargah-status-badge.pending {
    background: #fef3c7;
    color: #92400e;
}

.irandargah-loading {
    text-align: center;
    padding: 40px !important;
    color: #6b7280;
}

/* Pending Payments */
.irandargah-pending-filters {
    margin-bottom: 20px;
}

.irandargah-pending-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.irandargah-pending-item {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-left: 4px solid #f59e0b;
}

.irandargah-pending-item-info h4 {
    margin: 0 0 5px 0;
    font-size: 16px;
    color: #1f2937;
}

.irandargah-pending-item-info p {
    margin: 0;
    font-size: 14px;
    color: #6b7280;
}

.irandargah-pending-item-actions {
    display: flex;
    gap: 10px;
}

/* Fraud Detection */
.irandargah-fraud-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.irandargah-fraud-card {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.irandargah-fraud-card h3 {
    margin: 0 0 15px 0;
    font-size: 14px;
    color: #6b7280;
    font-weight: 500;
}

.irandargah-fraud-count {
    font-size: 32px;
    font-weight: 700;
    color: #ef4444;
    margin: 0;
}

.irandargah-fraud-ip {
    font-size: 18px;
    font-weight: 600;
    color: #1f2937;
    margin: 0;
}

.irandargah-fraud-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.irandargah-fraud-item {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border-left: 4px solid;
}

.irandargah-fraud-item.risk-low {
    border-left-color: #10b981;
}

.irandargah-fraud-item.risk-medium {
    border-left-color: #f59e0b;
}

.irandargah-fraud-item.risk-high {
    border-left-color: #ef4444;
}

/* CRM */
.irandargah-crm-settings,
.irandargah-crm-reports {
    background: #f9fafb;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.irandargah-crm-settings h3,
.irandargah-crm-reports h3 {
    margin: 0 0 20px 0;
    font-size: 18px;
    color: #1f2937;
}

.irandargah-form-group {
    margin-bottom: 20px;
}

.irandargah-form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #1f2937;
}

.irandargah-form-group input[type="text"],
.irandargah-form-group input[type="password"] {
    width: 100%;
    max-width: 400px;
    padding: 8px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
}

/* Responsive */
@media (max-width: 768px) {
    .irandargah-reports-tabs {
        flex-direction: column;
    }
    
    .irandargah-tab {
        width: 100%;
        justify-content: center;
    }
    
    .irandargah-charts-grid {
        grid-template-columns: 1fr;
    }
    
    .irandargah-stats-grid {
        grid-template-columns: 1fr;
    }
}



