/* WealthX Light Mode Theme */
:root {
    --bg-cream: #FAF8F5;
    --bg-white: #FFFFFF;
    --gold-primary: #A08B5B;
    --gold-dark: #8B7355;
    --gold-light: #C4A96C;
    --gold-50: rgba(160, 139, 91, 0.05);
    --gold-100: rgba(160, 139, 91, 0.12);
    --text-dark: #2C2C2C;
    --text-medium: #5A5A5A;
    --text-light: #8A8A8A;
    --border-light: #E8E4DC;
    --border-medium: #D4CFC4;
    --success-green: #3D9970;
    --success-light: rgba(61, 153, 112, 0.12);
    --danger-red: #C0392B;
    --danger-light: rgba(192, 57, 43, 0.12);
    --accent-blue: #3498DB;
    --info-light: rgba(52, 152, 219, 0.12);
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.12);
    --shadow-gold: 0 4px 16px rgba(160, 139, 91, 0.25);
}

/* Page Layout */
.campaigns-page { min-height: 100vh; background: var(--bg-cream); }
.campaigns-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    min-height: calc(100vh - 140px);
}

/* Sidebar */
.campaigns-sidebar {
    background: var(--bg-white);
    border-right: 1px solid var(--border-light);
    padding: 24px;
    display: flex;
    flex-direction: column;
}
.sidebar-header { margin-bottom: 24px; }
.sidebar-header h2 {
    font-family: 'big-caslon-fb', serif;
    font-size: 20px;
    font-weight: 500;
    margin: 0 0 4px 0;
    color: var(--text-dark);
}
.sidebar-header p {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--text-light);
    margin: 0;
}
.sidebar-search { margin-bottom: 20px; }
.sidebar-search input {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border-light);
    border-radius: 6px;
    font-family: 'articulat-cf', sans-serif;
    font-size: 13px;
    background: var(--bg-white);
    color: var(--text-dark);
}
.sidebar-search input:focus {
    outline: none;
    border-color: var(--gold-primary);
    box-shadow: 0 0 0 3px rgba(160, 139, 91, 0.1);
}
.new-campaign-btn {
    width: 100%;
    padding: 12px 20px;
    background: linear-gradient(135deg, var(--gold-primary), var(--gold-dark));
    border: none;
    border-radius: 6px;
    color: white;
    font-family: 'articulat-cf', sans-serif;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    cursor: pointer;
    margin-bottom: 24px;
    transition: all 0.2s ease;
}
.new-campaign-btn:hover {
    background: linear-gradient(135deg, var(--gold-dark), #5A4A35);
    transform: translateY(-1px);
    box-shadow: var(--shadow-gold);
}
.pipeline-section { margin-bottom: 24px; }
.pipeline-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-light);
    margin-bottom: 12px;
}
.pipeline-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    border-radius: 6px;
    margin-bottom: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
}
.pipeline-item:hover { background: var(--gold-50); }
.pipeline-item.active {
    background: var(--gold-100);
    border-left: 3px solid var(--gold-primary);
}
.pipeline-item span:first-child { font-size: 14px; color: var(--text-medium); }
.pipeline-count {
    font-family: 'big-caslon-fb', serif;
    font-size: 16px;
    font-weight: 500;
    color: var(--gold-primary);
}
.sidebar-links {
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid var(--border-light);
}
.sidebar-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 6px;
    text-decoration: none;
    color: var(--text-medium);
    font-size: 13px;
    transition: all 0.2s ease;
}
.sidebar-link:hover {
    background: var(--gold-50);
    color: var(--gold-primary);
}
.sidebar-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border-light);
}
.sidebar-stat { text-align: center; }
.sidebar-stat-value {
    font-family: 'big-caslon-fb', serif;
    font-size: 18px;
    font-weight: 500;
    color: var(--text-dark);
}
.sidebar-stat-label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-light);
}

/* Main Content */
.campaigns-main { padding: 32px; overflow-y: auto; }

/* Last Campaign Card */
.last-campaign-card {
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    margin-bottom: 24px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}
.last-campaign-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-light);
}
.last-campaign-header h3 {
    font-family: 'big-caslon-fb', serif;
    font-size: 18px;
    font-weight: 500;
    margin: 0;
    color: var(--text-dark);
}
.last-campaign-date { font-size: 12px; color: var(--text-light); }
.status-badge {
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.status-badge.sent, .status-badge.completed { background: var(--success-light); color: var(--success-green); }
.status-badge.draft { background: var(--info-light); color: var(--accent-blue); }
.status-badge.scheduled { background: var(--gold-100); color: var(--gold-dark); }
.status-badge.paused { background: var(--danger-light); color: var(--danger-red); }
.status-badge.sending { background: var(--gold-100); color: var(--gold-dark); }
.status-badge.resend, .status-badge.resend_scheduled { background: #e8f4fd; color: #1976d2; }

.last-campaign-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    padding: 24px;
}
.campaign-preview {
    background: var(--bg-cream);
    border: 1px solid var(--border-light);
    border-radius: 6px;
    height: 300px;
    position: relative;
    overflow: hidden;
}
.campaign-preview iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 200%;
    height: 200%;
    transform: scale(0.5);
    transform-origin: top left;
    border: none;
    pointer-events: none;
}
.campaign-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.campaign-stat {
    background: var(--bg-cream);
    border-radius: 6px;
    padding: 16px;
    text-align: center;
}
.campaign-stat-value {
    font-family: 'big-caslon-fb', serif;
    font-size: 24px;
    font-weight: 500;
    color: var(--gold-primary);
}
.campaign-stat-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-light);
    margin-top: 4px;
}
.campaign-actions { display: flex; gap: 12px; margin-top: 20px; }

/* Stats Tabs */
.stats-tab { padding: 8px 16px; font-size: 13px; }
.stats-tab.active { background: var(--gold-primary); color: white; }

/* Buttons */
.btn {
    padding: 10px 20px;
    border-radius: 6px;
    font-family: 'articulat-cf', sans-serif;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}
.btn-primary {
    background: linear-gradient(135deg, var(--gold-primary), var(--gold-dark));
    color: white;
}
.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-gold);
}
.btn-secondary {
    background: var(--bg-white);
    border: 1px solid var(--border-medium);
    color: var(--text-medium);
}
.btn-secondary:hover {
    border-color: var(--gold-primary);
    color: var(--gold-primary);
}
.btn-success { background: var(--success-green); color: white; }
.btn-danger { background: var(--danger-red); color: white; }
.btn:disabled { opacity: 0.6; cursor: not-allowed; }

/* Section Headers */
.section-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}
.numbered-indicator {
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, var(--gold-primary), var(--gold-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'big-caslon-fb', serif;
    font-size: 13px;
    font-weight: 600;
    color: white;
}
.section-header {
    font-family: 'big-caslon-fb', serif;
    font-size: 18px;
    font-weight: 500;
    color: var(--text-dark);
    margin: 0;
}
.section-divider {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, var(--border-light), transparent);
}

/* Drafts Grid */
.drafts-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 32px; }
.draft-card {
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.2s ease;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
}
.draft-card:hover {
    border-color: var(--gold-light);
    box-shadow: var(--shadow-gold);
    transform: translateY(-2px);
}
.draft-preview {
    height: 120px;
    background: var(--bg-cream);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-size: 24px;
}
.draft-info { padding: 14px 16px; }
.draft-info h4 {
    font-family: 'articulat-cf', sans-serif;
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 4px 0;
    color: var(--text-dark);
}
.draft-info p { font-size: 12px; color: var(--text-light); margin: 0; }

/* Quick Actions */
.quick-actions-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 32px; }
.quick-action-card {
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    padding: 24px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: var(--shadow-sm);
}
.quick-action-card:hover {
    border-color: var(--gold-primary);
    background: var(--gold-50);
    transform: translateY(-2px);
}
.quick-action-icon {
    width: 48px;
    height: 48px;
    background: var(--gold-100);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
    font-size: 20px;
}
.quick-action-card h4 {
    font-family: 'articulat-cf', sans-serif;
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 4px 0;
    color: var(--text-dark);
}
.quick-action-card p { font-size: 12px; color: var(--text-light); margin: 0; }

/* Campaigns Table */
.campaigns-list {
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}
.campaigns-table { width: 100%; border-collapse: collapse; }
.campaigns-table th {
    font-family: 'articulat-cf', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-light);
    text-align: left;
    padding: 14px 16px;
    background: var(--bg-cream);
    border-bottom: 2px solid var(--gold-primary);
}
.campaigns-table td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--border-light);
    font-size: 14px;
    color: var(--text-medium);
}
.campaigns-table td strong { color: var(--text-dark); }
.campaigns-table tbody tr { cursor: pointer; transition: background 0.15s; }
.campaigns-table tbody tr:hover { background: var(--gold-50); }
.campaigns-table tbody tr:last-child td { border-bottom: none; }

/* Modal Styles */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(51, 51, 51, 0.7);
    backdrop-filter: blur(4px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}
.modal-overlay.show { display: flex; }
.modal {
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    width: 90%;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.modal-sm { max-width: 500px; }
.modal-md { max-width: 700px; }
.modal-lg { max-width: 900px; }
.modal-xl { max-width: 1200px; }
.modal-full { max-width: 95%; height: 90vh; }
.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-light);
    background: var(--bg-cream);
}
.modal-header h2 {
    font-family: 'big-caslon-fb', serif;
    font-size: 20px;
    font-weight: 500;
    margin: 0;
    color: var(--text-dark);
}
.editable-title {
    font-family: 'big-caslon-fb', serif;
    font-size: 20px;
    font-weight: 500;
    color: var(--text-dark);
    background: transparent;
    border: 1px solid transparent;
    border-radius: 4px;
    padding: 4px 8px;
    margin: -4px -8px;
    flex: 1;
    min-width: 200px;
}
.editable-title:hover {
    border-color: var(--border-light);
    background: var(--bg-white);
}
.editable-title:focus {
    outline: none;
    border-color: var(--gold-primary);
    background: var(--bg-white);
    box-shadow: 0 0 0 3px rgba(160, 139, 91, 0.1);
}
.modal-close {
    width: 32px;
    height: 32px;
    border: none;
    background: var(--bg-white);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: var(--text-medium);
    transition: all 0.2s;
    border: 1px solid var(--border-light);
}
.modal-close:hover { background: var(--danger-light); color: var(--danger-red); border-color: var(--danger-red); }
.modal-body { flex: 1; overflow-y: auto; padding: 24px; }
.modal-footer {
    padding: 20px 24px;
    border-top: 1px solid var(--border-light);
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    background: var(--bg-cream);
}

/* Form Styles */
.form-group { margin-bottom: 20px; }
.form-label {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-light);
    margin-bottom: 8px;
    font-weight: 600;
}
.form-input, .form-select, .form-textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-light);
    border-radius: 6px;
    font-family: 'articulat-cf', sans-serif;
    font-size: 14px;
    transition: all 0.2s;
    background: var(--bg-white);
    color: var(--text-dark);
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
    outline: none;
    border-color: var(--gold-primary);
    box-shadow: 0 0 0 3px rgba(160, 139, 91, 0.1);
}
.form-textarea { min-height: 100px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-row-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; }
.form-hint { font-size: 12px; color: var(--text-light); margin-top: 6px; }

/* List Selection */
.list-selector { max-height: 200px; overflow-y: auto; border: 1px solid var(--border-light); border-radius: 6px; }
.list-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-light);
    cursor: pointer;
    transition: background 0.15s;
}
.list-item:last-child { border-bottom: none; }
.list-item:hover { background: var(--gold-50); }
.list-item.selected { background: var(--gold-100); }
.list-item input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--gold-primary); }
.list-name { flex: 1; font-weight: 500; color: var(--text-dark); }
.list-count { font-size: 12px; color: var(--text-light); }

/* Template Selection in Modal */
.template-option {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    margin-bottom: 12px;
    cursor: pointer;
    transition: all 0.2s;
}
.template-option:hover { border-color: var(--gold-primary); background: var(--gold-50); }
.template-option.selected { border-color: var(--gold-primary); background: var(--gold-100); border-width: 2px; }
.template-option-icon {
    width: 48px;
    height: 48px;
    background: var(--bg-cream);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}
.template-option-info { flex: 1; }
.template-option-info h4 { font-size: 14px; font-weight: 600; margin: 0 0 4px 0; color: var(--text-dark); }
.template-option-info p { font-size: 12px; color: var(--text-light); margin: 0; }
.template-option input[type="radio"] { width: 18px; height: 18px; accent-color: var(--gold-primary); }

/* Tabs */
.modal-tabs {
    display: flex;
    gap: 0;
    border-bottom: 1px solid var(--border-light);
    margin-bottom: 24px;
    flex-wrap: wrap;
}
.modal-tab {
    padding: 12px 20px;
    background: none;
    border: none;
    font-family: 'articulat-cf', sans-serif;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-light);
    cursor: pointer;
    position: relative;
    transition: color 0.2s;
}
.modal-tab:hover { color: var(--gold-primary); }
.modal-tab.active { color: var(--gold-primary); }
.modal-tab.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gold-primary);
}

/* Template Grid */
.templates-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.template-card {
    border: 1px solid var(--border-light);
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.2s;
    background: var(--bg-white);
}
.template-card:hover {
    border-color: var(--gold-primary);
    box-shadow: var(--shadow-gold);
}
.template-card.selected {
    border-color: var(--gold-primary);
    border-width: 2px;
}
.template-preview {
    height: 140px;
    background: var(--bg-cream);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
}
.template-info { padding: 12px; }
.template-info h4 { font-size: 14px; font-weight: 600; margin: 0 0 4px 0; color: var(--text-dark); }
.template-info p { font-size: 12px; color: var(--text-light); margin: 0; }

/* Send Steps */
.send-steps { display: flex; gap: 8px; margin-bottom: 24px; }
.send-step {
    flex: 1;
    padding: 12px;
    background: var(--bg-cream);
    border-radius: 6px;
    text-align: center;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-light);
}
.send-step.active { background: var(--gold-100); color: var(--gold-primary); }
.send-step.completed { background: var(--success-light); color: var(--success-green); }
.send-step-number {
    display: inline-flex;
    width: 24px;
    height: 24px;
    align-items: center;
    justify-content: center;
    background: var(--text-light);
    color: white;
    border-radius: 50%;
    margin-right: 8px;
    font-size: 11px;
}
.send-step.active .send-step-number { background: var(--gold-primary); }
.send-step.completed .send-step-number { background: var(--success-green); }

/* Verification / Failsafe */
.failsafe-card {
    background: var(--bg-cream);
    border: 2px solid var(--border-light);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}
.failsafe-card.pending { border-color: var(--gold-primary); }
.failsafe-card.verified { border-color: var(--success-green); background: var(--success-light); }
.failsafe-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}
.failsafe-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}
.failsafe-card.pending .failsafe-icon { background: var(--gold-100); }
.failsafe-card.verified .failsafe-icon { background: var(--success-green); color: white; }
.failsafe-title { font-weight: 600; color: var(--text-dark); }
.failsafe-status { font-size: 12px; color: var(--text-light); }
.failsafe-checks { margin-top: 12px; }
.failsafe-check {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 0;
    font-size: 13px;
    color: var(--text-medium);
}
.failsafe-check-icon { width: 20px; text-align: center; }
.failsafe-check.verified .failsafe-check-icon { color: var(--success-green); }
.failsafe-check.pending .failsafe-check-icon { color: var(--text-light); }
.failsafe-time { margin-left: auto; font-size: 11px; color: var(--text-muted); }
.failsafe-check.verified .failsafe-time { color: var(--success-green); }

/* AI Analysis */
.ai-score-card {
    background: linear-gradient(135deg, var(--gold-50), var(--bg-cream));
    border: 1px solid var(--gold-light);
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    margin-bottom: 20px;
}
.ai-score-value {
    font-family: 'big-caslon-fb', serif;
    font-size: 64px;
    font-weight: 700;
    color: var(--gold-primary);
    line-height: 1;
}
.ai-score-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-light);
    margin-top: 8px;
}
.ai-recommendations {
    background: var(--bg-cream);
    border-radius: 8px;
    padding: 16px;
}
.ai-recommendation {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-light);
}
.ai-recommendation:last-child { border-bottom: none; }
.ai-recommendation-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    flex-shrink: 0;
}
.ai-recommendation-icon.success { background: var(--success-light); color: var(--success-green); }
.ai-recommendation-icon.warning { background: var(--gold-100); color: var(--gold-dark); }
.ai-recommendation-icon.error { background: var(--danger-light); color: var(--danger-red); }
.ai-recommendation-text { font-size: 13px; color: var(--text-medium); }

/* Follow-up Settings */
.followup-option {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: var(--bg-cream);
    border-radius: 8px;
    margin-bottom: 12px;
}
.followup-option input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--gold-primary); }
.followup-option-content { flex: 1; }
.followup-option-label { font-weight: 600; color: var(--text-dark); margin-bottom: 4px; }
.followup-option-desc { font-size: 12px; color: var(--text-light); }

/* Unlayer Editor Container */
#unlayer-editor-container {
    height: calc(90vh - 200px);
    min-height: 500px;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    overflow: hidden;
}

/* SVG Icon Styles */
.icon-svg {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1em;
    height: 1em;
    vertical-align: -0.125em;
}
.icon-svg svg {
    width: 100%;
    height: 100%;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Toast Notifications */
.toast-container { position: fixed; bottom: 24px; right: 24px; z-index: 10001; }
.toast {
    padding: 14px 20px;
    background: var(--text-dark);
    color: white;
    border-radius: 8px;
    margin-top: 8px;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 12px;
    animation: slideIn 0.3s ease;
}
.toast.success { background: var(--success-green); }
.toast.error { background: var(--danger-red); }
.toast.info { background: var(--gold-primary); }
@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* Loading States */
.loading-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid var(--border-light);
    border-top-color: var(--gold-primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Segmentation Criteria Builder */
.criterion-row {
    transition: all 0.2s ease;
}
.criterion-row:hover {
    border-color: var(--gold-light);
    box-shadow: 0 2px 8px rgba(160, 139, 91, 0.1);
}
.criterion-row select,
.criterion-row input {
    font-size: 13px;
}
.criterion-row select:focus,
.criterion-row input:focus {
    border-color: var(--gold-primary);
    box-shadow: 0 0 0 2px rgba(160, 139, 91, 0.1);
}
#criteriaList:empty::after {
    content: 'No criteria added. Click "+ Add Criterion" to start building your segment.';
    display: block;
    text-align: center;
    padding: 40px 20px;
    color: var(--text-light);
    font-size: 13px;
    background: var(--bg-cream);
    border: 2px dashed var(--border-light);
    border-radius: 8px;
}

/* Responsive */
@media (max-width: 1024px) {
    .campaigns-layout { grid-template-columns: 1fr; }
    .campaigns-sidebar { display: none; }
    .last-campaign-content { grid-template-columns: 1fr; }
    .campaign-stats { grid-template-columns: repeat(2, 1fr); }
    .drafts-grid { grid-template-columns: repeat(2, 1fr); }
    .quick-actions-grid { grid-template-columns: repeat(2, 1fr); }
    .templates-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .form-row { grid-template-columns: 1fr; }
    .drafts-grid { grid-template-columns: 1fr; }
    .quick-actions-grid { grid-template-columns: 1fr; }
}
