/**
 * Top Emails Admin Styles
 */

/* Dashboard Styles */
.top-emails-dashboard {
    margin-top: 20px;
}

.top-emails-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.top-emails-stat-box {
    background: #fff;
    border: 1px solid #e2e4e7;
    border-radius: 4px;
    padding: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    text-align: center;
}

.top-emails-stat-box h2 {
    margin-top: 0;
    font-size: 16px;
    color: #555;
}

.top-emails-stat-box .stat-number {
    font-size: 32px;
    font-weight: 600;
    color: #0073aa;
    margin: 10px 0;
}

.top-emails-quick-actions {
    background: #fff;
    border: 1px solid #e2e4e7;
    border-radius: 4px;
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.top-emails-quick-actions h2 {
    margin-top: 0;
    margin-bottom: 15px;
}

.top-emails-quick-actions .button {
    margin-right: 10px;
    margin-bottom: 10px;
}

.top-emails-recent-campaigns {
    background: #fff;
    border: 1px solid #e2e4e7;
    border-radius: 4px;
    padding: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.top-emails-recent-campaigns h2 {
    margin-top: 0;
    margin-bottom: 15px;
}

/* Status Indicators */
.status-active {
    background-color: #46b450;
    color: #fff;
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: 500;
}

.status-inactive {
    background-color: #bbb;
    color: #fff;
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: 500;
}

.log-status-success {
    color: #46b450;
    font-weight: 500;
}

.log-status-error {
    color: #dc3232;
    font-weight: 500;
    cursor: help;
}

/* Meta Box Styles */
.form-table th {
    width: 150px;
}

.weekdays-row label {
    display: inline-block;
    margin-right: 15px;
    margin-bottom: 5px;
}

/* Campaign Recipients */
.selected-recipients-row div {
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid #ddd;
    padding: 10px;
}

.selected-recipients-row label {
    display: block;
    margin-bottom: 5px;
}

/* Logs Page */
.top-emails-logs .tablenav-pages {
    float: right;
    margin: 0 0 10px;
}

.top-emails-logs .displaying-num {
    margin-right: 10px;
}

.top-emails-logs .pagination-links {
    display: inline-block;
}

.top-emails-logs .pagination-links a,
.top-emails-logs .pagination-links span {
    padding: 4px 8px;
    margin: 0 3px;
    border: 1px solid #ddd;
    background: #f7f7f7;
    text-decoration: none;
    border-radius: 2px;
}

.top-emails-logs .pagination-links .current {
    background: #0073aa;
    color: #fff;
    border-color: #0073aa;
}
