/* TurboSMTP GDPR Compliance Banner */
.turbo-smtp-gdpr-banner {
    background: linear-gradient(135deg, #2271b1 0%, #1e5a8a 100%);
    border-radius: 8px;
    margin: 20px 0;
    padding: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    display: none; /* Initially hidden, shown by JavaScript */
}

.gdpr-banner-content {
    display: flex;
    align-items: center;
    padding: 20px;
    color: white;
}

.gdpr-banner-icon {
    flex-shrink: 0;
    margin-right: 20px;
}

.gdpr-banner-icon .dashicons {
    font-size: 40px;
    width: 40px;
    height: 40px;
    color: #7dd3fc;
}

.gdpr-banner-text {
    flex: 1;
}

.gdpr-banner-text h3 {
    margin: 0 0 8px 0;
    font-size: 18px;
    font-weight: 600;
    color: white;
}

.gdpr-banner-text p {
    margin: 0;
    font-size: 14px;
    color: #e0f2fe;
    line-height: 1.4;
}

.gdpr-banner-badge {
    flex-shrink: 0;
    margin-left: 20px;
}

.gdpr-badge {
    background: #10b981;
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Responsive design */
@media (max-width: 768px) {
    .gdpr-banner-content {
        flex-direction: column;
        text-align: center;
        padding: 16px;
    }
    
    .gdpr-banner-icon {
        margin-right: 0;
        margin-bottom: 12px;
    }
    
    .gdpr-banner-badge {
        margin-left: 0;
        margin-top: 12px;
    }
}

/* Analytics table styling */
.analytics-table {
    margin-top: 20px;
}

.analytics-table th {
    background-color: #f6f7f7;
    font-weight: 600;
    padding: 12px;
}

.analytics-table td {
    padding: 12px;
    border-bottom: 1px solid #e1e5e9;
}

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

/* Filters styling */
.filters-group {
    margin-bottom: 20px;
}

.filters-group label {
    display: inline-block;
    margin-right: 8px;
    font-weight: 600;
    color: #1d2327;
}

.filters-group select,
.filters-group input[type="date"],
.filters-group input[type="number"] {
    margin-right: 16px;
    padding: 6px 8px;
    border: 1px solid #8c8f94;
    border-radius: 4px;
}

.apply-filter {
    margin-left: 8px;
}

/* Loading overlay */
#loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.8);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
}

.loading-spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #2271b1;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

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

/* Pagination */
#pagination {
    margin-top: 20px;
    text-align: center;
}

#pagination button {
    margin: 0 5px;
    padding: 6px 12px;
    border: 1px solid #c3c4c7;
    background: white;
    border-radius: 4px;
    cursor: pointer;
}

#pagination button:hover {
    background-color: #f6f7f7;
}

#pagination button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

#current-page {
    margin: 0 10px;
    font-weight: 600;
}
