.campaign-details-page { margin: 30px; }
.tab-container { margin-top: 30px; }
.tab-header { display: flex; border-bottom: 2px solid #eee; justify-content: space-around; }
.tab-header button { background: none; border: none; padding: 12px 32px; font-size: 1.1em; cursor: pointer; border-bottom: 3px solid transparent; transition: border 0.2s; }
.tab-header button.active { border-bottom: 3px solid #2563eb; color: #2563eb; }
.tab-content { padding: 20px 0; }
.reply-list { margin-top: 10px; }
.reply-item { border-bottom: 1px solid #eee; padding: 10px 0; }
.reply-header { font-weight: bold; }
.reply-date { color: #888; font-size: 0.95em; margin-left: 10px; }
.reply-content { margin-top: 4px; }


.campaigns-container {
    padding: 20px;
}

.header-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

/* Update modal styles to match contacts page */
.import-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background: white;
    width: 600px;
    margin: 100px auto;
    padding: 20px;
    border-radius: 8px;
    position: absolute;
    top: -83px;
    left: 28%;
    height: 93vh;
    overflow-y: auto;
}

/* Rest of your existing styles */
.campaign-status {
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.9em;
}

.status-draft {
    background: #f0f0f0;
}

.status-queued {
    background: #fff3cd;
}

.status-sending {
    background: #cce5ff;
}

.status-completed {
    background: #d4edda;
}
.status-scheduled {
    background: #fff3cd;
}

.status-failed {
    background: #f8d7da;
}

.contact-selection {
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid #ddd;
    padding: 10px;
    margin: 10px 0;
    /* border-radius: 4px; */
}

.contact-item {
    padding: 8px;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
}

.contact-item:hover {
    background: #f8f9fa;
}

.contact-checkbox {
    margin-right: 10px;
}

.select-all-container {
    padding: 10px;
    background: #f8f9fa;
    border-bottom: 2px solid #ddd;
    margin-bottom: 10px;
}

.form-group {
    margin-bottom: 20px;
}

.form-control {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.mt-3 {
    margin-top: 1rem;
}

.campaign-detail-modal .modal-content {
    max-width: 1000px;   /* Increase width */
    min-width: 800px;
    /* min-height: 600px; */
    max-height: 90vh;
    /* margin: 40px auto; */
    padding: 30px 40px 20px 40px;
    /* border-radius: 12px; */
    background: #fff;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    overflow-y: auto;
}

.campaign-detail-modal h3 {
    margin-bottom: 18px;
    font-size: 1.5em;
}

.campaign-detail-modal .campaign-info p {
    margin: 0 0 8px 0;
    font-size: 1.08em;
}
.replies-list {
    margin-top: 20px;
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid #eee;
    border-radius: 6px;
    background: #fafbfc;
    padding: 10px;
}

.reply-item {
    margin-bottom: 18px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e0e0e0;
}

.reply-header {
    font-size: 1em;
    font-weight: 600;
    margin-bottom: 4px;
}

.reply-date {
    color: #888;
    font-size: 0.95em;
    margin-left: 10px;
}

.campaign-detail-modal .campaign-content-box {
    border: 1px solid #e0e0e0;
    background: #fafbfc;
    padding: 12px;
    border-radius: 6px;
    margin-bottom: 18px;
    font-family: monospace;
    white-space: pre-wrap;
}

.campaign-detail-modal .recipients-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

.campaign-detail-modal .recipients-table th,
.campaign-detail-modal .recipients-table td {
    padding: 8px 10px;
    border-bottom: 1px solid #f0f0f0;
    text-align: left;
}

.campaign-detail-modal .status-badge {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 0.95em;
    font-weight: 500;
}

.status-sent {
    background: #d4edda;
    color: #256029;
}

.status-failed {
    background: #f8d7da;
    color: #842029;
}

.status-pending {
    background: #fff3cd;
    color: #856404;
}

.status-other {
    background: #e2e3e5;
    color: #41464b;
}

.campaign-detail-modal .error-message {
    color: #b71c1c;
    font-size: 0.95em;
    margin-top: 2px;
}

.action-button-pg {
    position: relative;
    padding: 4px 8px;
    font-size: 10px;
    border: none;
    background: #3b82f6;
    color: white;
    border-radius: 8px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(59, 130, 246, 0.1);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 10px;
}

#campaignsPagination button {
    background: #2563eb;
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 4px 12px;
    margin: 0 2px;
    cursor: pointer;
    font-size: 1em;
}

#campaignsPagination button[disabled] {
    background: #e0e0e0;
    color: #888;
    cursor: not-allowed;
}

#recipient-thread-modal .chat-bubble {
    margin-bottom: 10px;
    padding: 10px 16px;
    border-radius: 16px;
    max-width: 70%;
    word-break: break-word;
}
#recipient-thread-modal .chat-bubble.sent {
    background: #2563eb;
    color: #fff;
    margin-left: auto;
    border-radius: 16px 16px 0 16px;
}
#recipient-thread-modal .chat-bubble.reply {
    background: #f3f4f6;
    color: #222;
    margin-right: auto;
    border-radius: 16px 16px 16px 0;
}