/* Reports-specific styles */

.pagination-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 20px;
    padding: 15px;
}

#pageInfo {
    font-weight: 600;
    color: var(--text-color);
}

.status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.85em;
    font-weight: 600;
    text-transform: uppercase;
}

.status-badge.success {
    background-color: #d4edda;
    color: #155724;
}

.status-badge.failed {
    background-color: #f8d7da;
    color: #721c24;
}

.status-badge.not-sent {
    background-color: #e2e3e5;
    color: #383d41;
}

/* Message Detail Modal Styles */
.modal-wide {
    max-width: 800px;
}

.detail-section {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #dee2e6;
}

.detail-section:last-child {
    border-bottom: none;
}

.detail-section h3 {
    margin: 0 0 15px 0;
    color: var(--primary-color);
    font-size: 1.1em;
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.detail-item {
    margin-bottom: 15px;
}

.detail-label {
    display: block;
    font-weight: 600;
    color: #495057;
    margin-bottom: 5px;
}

.detail-value {
    display: block;
    color: var(--text-color);
}

.detail-message {
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 4px;
    border-left: 3px solid var(--primary-color);
    white-space: pre-wrap;
    word-wrap: break-word;
    font-family: inherit;
    line-height: 1.6;
}

.detail-response {
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 4px;
    border: 1px solid #dee2e6;
    max-height: 200px;
    overflow-y: auto;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
    margin: 0;
}

/* Table action buttons */
.btn-view {
    padding: 6px 12px;
    font-size: 0.85em;
    background-color: #31C8F1;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn-view:hover {
    background-color: #2ab3d9;
}

/* Empty state */
.empty-state {
    text-align: center;
    padding: 40px;
    color: #6c757d;
}

.empty-state h3 {
    margin-bottom: 10px;
}

/* Loading state */
.loading {
    text-align: center;
    padding: 20px;
    color: #6c757d;
}

/* Enhanced table styles for reports */
.data-table tbody tr:hover {
    background-color: #f8f9fa;
}

.data-table th,
.data-table td {
    font-size: 0.9em;
}

.data-table td {
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.data-table td.subject-cell {
    max-width: 300px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .detail-grid {
        grid-template-columns: 1fr;
    }

    .stats-container {
        grid-template-columns: repeat(2, 1fr);
    }

    .pagination-controls {
        flex-direction: column;
        gap: 10px;
    }

    .data-table td {
        max-width: 150px;
    }
}
