/* Estilos generales */
:root {
    --primary-color: #2563eb;
    --secondary-color: #1e40af;
    --background-color: #f3f4f6;
    --text-color: #1f2937;
    --border-color: #e5e7eb;
    --success-color: #059669;
    --error-color: #dc2626;
    --card-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --button-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background-color: var(--background-color);
    color: var(--text-color);
}

.container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
}

/* Encabezado */
.header {
    background-color: white;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
    text-align: center;
}

.header h2 {
    margin: 0;
    color: var(--primary-color);
    font-size: 2rem;
    font-weight: 700;
}

.button, .btn {
    background-color: #007bff;
    color: white;
    padding: 12px 25px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
    margin-top: 20px;
}

.button:disabled, .btn:disabled {
    background-color: #a0c7ff;
    cursor: not-allowed;
}

.button:hover:not(:disabled), .btn:hover:not(:disabled) {
    background-color: #0056b3;
}

/* Vista previa de campaña */
.campaign-preview {
    background-color: white;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.campaign-preview h3 {
    margin-top: 0;
    color: var(--primary-color);
}

.campaign-content {
    min-height: 200px;
    padding: 1rem;
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
}

/* Sección de suscriptores */


.subscribers-section h3 {
    margin-top: 0;
    color: var(--primary-color);
}

.selection-controls {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.subscribers-list {
    max-height: 250px;
    overflow-y: auto;
    border: 1px solid #eee;
    padding: 15px;
    border-radius: 6px;
    background-color: #f8f9fa;
}

.progress-container {
      margin-top: 30px;
}
.progress-bar {
      width: 100%;
      background-color: #e9ecef;
      border-radius: 6px;
      overflow: hidden;
}
.progress-fill {
      height: 20px;
      width: 0;
      background-color: #28a745;
      transition: width 0.4s ease;
      text-align: center;
      line-height: 20px;
      color: white;
}

.status-container {
        margin-top: 20px;
        text-align: left;
}
.status-list {
      max-height: 250px;
      overflow-y: auto;
      border: 1px solid #eee;
      padding: 15px;
      border-radius: 6px;
      background-color: #f8f9fa;
      list-style: none;
}

.status-list li {
        padding: 5px 0;
        border-bottom: 1px solid #eee;
}

.status-list li.error {
        color: var(--error-color);
        font-weight: 500;
}

.status-list li.success {
        color: var(--success-color);
        font-weight: 500;
}

.status-list li.warning {
        color: #f59e0b;
        font-weight: 500;
}

.status-list li.info {
        color: var(--primary-color);
        font-weight: 400;
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        margin: 1rem;
    }

    .header {
        padding: 1.5rem;
    }

    .header h2 {
        font-size: 1.5rem;
    }

    .selection-controls {
        flex-direction: column;
    }

    .button {
        width: 100%;
    }
}