/* RDS Newsletter Admin Styles */

/* Dashboard Cards */
.rdsnl-dashboard-cards {
    display: flex;
    gap: 15px;
    margin: 20px 0;
    flex-wrap: wrap;
}

.rdsnl-card {
    background: #fff;
    border: 1px solid #c3c4c7;
    border-radius: 4px;
    padding: 20px 25px;
    min-width: 150px;
    flex: 1;
    text-align: center;
}

.rdsnl-card h3 {
    margin: 0 0 5px;
    font-size: 28px;
    color: #1d2327;
}

.rdsnl-card p {
    margin: 0;
    color: #646970;
    font-size: 13px;
}

/* Status badges */
.rdsnl-status {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: 600;
}

.rdsnl-status-active,
.rdsnl-status-sent {
    background: #d4edda;
    color: #155724;
}

.rdsnl-status-pending,
.rdsnl-status-scheduled {
    background: #fff3cd;
    color: #856404;
}

.rdsnl-status-sending {
    background: #cce5ff;
    color: #004085;
}

.rdsnl-status-draft {
    background: #e2e3e5;
    color: #383d41;
}

.rdsnl-status-failed,
.rdsnl-status-bounced {
    background: #f8d7da;
    color: #721c24;
}

/* Two-column layout */
.rdsnl-two-col {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.rdsnl-col-main {
    flex: 2;
}

.rdsnl-col-side {
    flex: 1;
    min-width: 280px;
}

.rdsnl-sidebar-box {
    background: #fff;
    border: 1px solid #c3c4c7;
    border-radius: 4px;
    padding: 15px 20px;
}

.rdsnl-sidebar-box h3 {
    margin-top: 0;
}

/* Compose actions */
.rdsnl-compose-actions {
    margin: 15px 0;
    display: flex;
    gap: 8px;
}

/* Modal */
.rdsnl-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.rdsnl-modal-content {
    background: #fff;
    border-radius: 6px;
    padding: 25px;
    max-width: 800px;
    width: 90%;
    position: relative;
    max-height: 90vh;
    overflow: auto;
}

.rdsnl-modal-close {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
    line-height: 1;
}

.rdsnl-modal-close:hover {
    color: #000;
}

/* Code textarea */
textarea.code {
    tab-size: 2;
}

/* Responsive */
@media (max-width: 782px) {
    .rdsnl-dashboard-cards {
        flex-direction: column;
    }

    .rdsnl-two-col {
        flex-direction: column;
    }

    .rdsnl-col-side {
        min-width: auto;
    }
}
