/* ==============================================
   LK-Call Dashboard - Main Styles
   ============================================== */

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: system-ui;
    background: #f5f5f5;
    padding: 20px;
}

/* Layout Components */
.card {
    background: white;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.center {
    text-align: center;
    padding: 20px;
}

.hidden {
    display: none;
}

/* Header clock (IST) */
.ist-clock {
    color: #666;
    font-size: 13px;
    white-space: nowrap;
}

/* Simple table layout utility for callbacks card */
.table {
    width: 100%;
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
}
.table-row {
    display: grid;
    grid-template-columns: minmax(180px, 1.5fr) minmax(140px, 1fr) minmax(110px, 0.8fr) minmax(220px, 2fr);
    gap: 8px;
    padding: 10px 12px;
    border-top: 1px solid #f0f0f0;
    align-items: center;
}
.table-row:first-child { border-top: none; }
.table-row.table-header {
    background: #fafafa;
    font-weight: 600;
    color: #444;
}
.table-cell { 
    overflow: hidden; 
    text-overflow: ellipsis; 
    white-space: nowrap; 
}
.table-row.table-header .table-cell {
    font-size: 13px;
    letter-spacing: .2px;
    white-space: nowrap;
}
.table-cell.when { white-space: normal; font-size: 13px; line-height: 1.2; }
.table-cell.reason { white-space: normal; }

/* ==================================================
   Minimal Export Modal Styles - Clean & Modern
   ================================================== */

/* Minimal Modal Base */
.minimal-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease;
}

/* Generic content container for minimal modal (used by campaign preview) */
.minimal-modal-content {
    background: #ffffff;
    border-radius: 12px;
    width: 96%;
    max-width: 1100px;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04);
    display: flex;
    flex-direction: column;
}

.minimal-body {
    padding: 16px;
    overflow: auto;
}

.minimal-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.preview-block { margin-bottom: 12px; }
.preview-block-title { font-size: 12px; font-weight: 600; color: #374151; margin-bottom: 6px; }
.preview-pre {
    white-space: pre-wrap;
    background: #fafafa;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 10px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-size: 12px;
    max-height: 220px;
    overflow: auto;
}

.minimal-export-modal {
    background: white;
    border-radius: 12px;
    width: 90%;
    max-width: 720px;
    max-height: 90vh;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
}

/* Minimal Header */
.minimal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #e5e7eb;
    flex-shrink: 0;
}

.minimal-title {
    font-size: 20px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.minimal-close {
    background: none;
    border: none;
    padding: 4px;
    cursor: pointer;
    color: #6b7280;
    transition: color 0.2s;
}

.minimal-close:hover {
    color: #111827;
}

/* Minimal Form */
.minimal-form {
    padding: 20px;
    overflow-y: auto;
    flex: 1;
    min-height: 0;
}

/* Campaign Fields Scrollable Container */
.campaign-fields-scrollable {
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: 16px;
    background: #fafafa;
}

/* Two Column Layout */
.minimal-two-column {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

/* Generic responsive grids for forms/pages */
.campaign-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 200px;
    gap: 20px;
}

.grid-two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.grid-two-col-20 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

/* Generic flex utility rows */
.row {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.ml-auto { margin-left: auto; }

.stack-sm {}

.minimal-column {
    display: flex;
    flex-direction: column;
}

.minimal-column-left {
    border-right: 1px solid #e5e7eb;
    padding-right: 24px;
}

.minimal-column-right {
    padding-left: 0;
}

.minimal-section {
    margin-bottom: 16px;
}

.minimal-section:last-of-type {
    margin-bottom: 0;
}

.minimal-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    margin-bottom: 8px;
}

/* Radio Group */
.minimal-radio-group {
    display: flex;
    gap: 16px;
}

.minimal-radio {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.minimal-radio input[type="radio"] {
    margin-right: 8px;
    cursor: pointer;
}

.minimal-radio-label {
    font-size: 14px;
    color: #4b5563;
}

/* Date Range */
.minimal-date-range {
    display: flex;
    align-items: center;
    gap: 8px;
}

.minimal-input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.2s;
}

.minimal-input:focus {
    outline: none;
    border-color: #6366f1;
}

.minimal-date-separator {
    color: #9ca3af;
    font-size: 14px;
}

.minimal-hint {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
}

/* Dropdown */
.minimal-dropdown {
    position: relative;
}

.minimal-dropdown-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    background: white;
    cursor: pointer;
    transition: all 0.2s;
}

.minimal-dropdown-trigger:hover {
    border-color: #9ca3af;
}

.minimal-dropdown.active .minimal-dropdown-trigger {
    border-color: #111827;
}

.minimal-dropdown.active .minimal-dropdown-trigger svg {
    transform: rotate(180deg);
}

.minimal-dropdown-trigger span {
    font-size: 14px;
    color: #374151;
}

.minimal-dropdown-trigger svg {
    transition: transform 0.2s;
    color: #6b7280;
}

.minimal-dropdown-content {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    z-index: 1000;
    max-height: 280px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.minimal-dropdown-search {
    padding: 12px;
    border-bottom: 1px solid #e5e7eb;
}

.minimal-search-input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.2s;
}

.minimal-search-input:focus {
    outline: none;
    border-color: #111827;
}

.minimal-dropdown-actions {
    display: flex;
    gap: 8px;
    padding: 12px;
    border-bottom: 1px solid #e5e7eb;
}

.minimal-dropdown-btn {
    flex: 1;
    padding: 8px 16px;
    background: white;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    color: #374151;
    cursor: pointer;
    transition: all 0.2s;
}

.minimal-dropdown-btn:hover {
    background: #f9fafb;
    border-color: #9ca3af;
}

.minimal-dropdown-btn:active {
    background: #f3f4f6;
}

.minimal-dropdown-list {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 8px;
    max-height: 200px;
    overscroll-behavior: contain;
}

.minimal-dropdown-item {
    display: flex;
    align-items: center;
    padding: 8px;
    cursor: pointer;
    border-radius: 4px;
    transition: background 0.2s;
}

.minimal-dropdown-item:hover {
    background: #f9fafb;
}

.minimal-dropdown-item input[type="checkbox"] {
    margin-right: 12px;
}

.minimal-campaign-name {
    flex: 1;
    font-size: 14px;
    color: #374151;
}

.minimal-campaign-info {
    font-size: 12px;
    color: #9ca3af;
}

.minimal-field-name {
    flex: 1;
    font-size: 14px;
    color: #374151;
}

.minimal-empty {
    padding: 24px;
    text-align: center;
    color: #9ca3af;
    font-size: 14px;
}

/* Toggle Switches */
.minimal-toggle-group {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.minimal-toggle-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.minimal-toggle-label {
    font-size: 14px;
    color: #4b5563;
}

.minimal-toggle {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
    cursor: pointer;
}

.minimal-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.minimal-toggle-slider {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #d1d5db;
    transition: background-color 0.2s;
    border-radius: 24px;
}

.minimal-toggle-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: transform 0.2s;
    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.minimal-toggle input:checked + .minimal-toggle-slider {
    background-color: #111827;
}

.minimal-toggle input:checked + .minimal-toggle-slider:before {
    transform: translateX(20px);
}

.minimal-toggle:hover .minimal-toggle-slider {
    background-color: #9ca3af;
}

.minimal-toggle input:checked:hover + .minimal-toggle-slider {
    background-color: #374151;
}

/* Stats */
.minimal-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    padding: 12px;
    background: #f9fafb;
    border-radius: 6px;
    margin-top: auto;
}

.minimal-stat {
    text-align: center;
}

.minimal-stat-value {
    display: block;
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 2px;
}

.minimal-stat-label {
    font-size: 11px;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Action Buttons */
.minimal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 20px;
    border-top: 1px solid #e5e7eb;
    flex-shrink: 0;
}

.minimal-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    color: white;
    position: relative;
    overflow: hidden;
}

.minimal-btn-primary {
    background: #fd7e14;
}

.minimal-btn-primary:hover {
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.3);
}

.minimal-btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(249, 115, 22, 0.3);
}

.minimal-btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.minimal-btn-primary:hover::before {
    left: 100%;
}

.minimal-btn-secondary {
    background: #6c757d;
    color: white;
}

.minimal-btn-secondary:hover {
    background: #5a6268;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(108, 117, 125, 0.3);
}

.minimal-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

/* Progress */
.minimal-progress {
    padding: 24px;
    text-align: center;
}

.minimal-progress-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.minimal-spinner {
    width: 32px;
    height: 32px;
    border: 3px solid #e5e7eb;
    border-top-color: #111827;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.minimal-spinner-inline {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid #e5e7eb;
    border-top-color: white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 8px;
}

.minimal-progress-bar {
    width: 100%;
    height: 4px;
    background: #e5e7eb;
    border-radius: 2px;
    overflow: hidden;
}

.minimal-progress-fill {
    height: 100%;
    background: #111827;
    transition: width 0.3s ease;
}

/* Toast Notifications */
.minimal-toast {
    background: white;
    border-radius: 8px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-width: 300px;
    margin-bottom: 12px;
    animation: slideInRight 0.3s ease;
}

.minimal-toast-success {
    border-left: 4px solid #10b981;
}

.minimal-toast-error {
    border-left: 4px solid #ef4444;
}

.minimal-toast-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.minimal-toast-content strong {
    font-size: 14px;
    color: #111827;
}

.minimal-toast-content span {
    font-size: 13px;
    color: #6b7280;
}

.minimal-toast-close {
    background: none;
    border: none;
    font-size: 20px;
    color: #9ca3af;
    cursor: pointer;
    padding: 0 0 0 12px;
}

/* Notifications Container */
.notifications-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    pointer-events: none;
}

.notifications-container .notification {
    pointer-events: auto;
    margin-bottom: 12px;
}

.notification {
    background: white;
    border-radius: 8px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-width: 300px;
    animation: slideInRight 0.3s ease;
}

.notification-success {
    border-left: 4px solid #10b981;
}

.notification-error {
    border-left: 4px solid #ef4444;
}

.notification-warning {
    border-left: 4px solid #f59e0b;
}

.notification-info {
    border-left: 4px solid #3b82f6;
}

.notification-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex-grow: 1;
}

.notification-message {
    font-size: 14px;
    color: #111827;
    white-space: pre-line;
}

.notification-close {
    background: none;
    border: none;
    font-size: 20px;
    color: #9ca3af;
    cursor: pointer;
    padding: 0 0 0 12px;
}

.notification-close:hover {
    color: #374151;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============ Campaign Preview Modal (Modern) ============ */
.preview-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.preview-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #f3f4f6;
    color: #374151;
    border: 1px solid #e5e7eb;
    border-radius: 999px;
    padding: 6px 10px;
    font-size: 12px;
    font-weight: 500;
}

.preview-chip-accent {
    background: #e3f2fd;
    color: #1976d2;
    border-color: #cfe8ff;
}

.preview-chip-warn {
    background: #fff7ed;
    color: #9a3412;
    border-color: #fde68a;
}

.preview-section-title {
    font-size: 13px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 6px;
}

.preview-info {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 10px;
    color: #374151;
    font-size: 13px;
}

.preview-code {
    white-space: pre-wrap;
    background: #fafafa;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 10px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-size: 12px;
    max-height: 240px;
    overflow: auto;
}

.preview-audio-card {
    background: #fafafa;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 10px;
}

.preview-download a {
    font-size: 12px;
    color: #2563eb;
    text-decoration: none;
}

.preview-download a:hover {
    text-decoration: underline;
}

.preview-missing {
    font-size: 12px;
    color: #b91c1c;
}

.preview-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 4px;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Scrollbar Styling */
.minimal-export-modal::-webkit-scrollbar,
.minimal-campaign-list::-webkit-scrollbar {
    width: 6px;
}

.minimal-export-modal::-webkit-scrollbar-track,
.minimal-campaign-list::-webkit-scrollbar-track {
    background: #f3f4f6;
}

.minimal-export-modal::-webkit-scrollbar-thumb,
.minimal-campaign-list::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 3px;
}

.minimal-export-modal::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

.minimal-campaign-list::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* Responsive */
@media (max-width: 768px) {
    .minimal-export-modal {
        width: 95%;
        max-height: 95vh;
        max-width: 95%;
    }
    
    .minimal-two-column {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .minimal-column-left {
        border-right: none;
        padding-right: 0;
        border-bottom: 1px solid #e5e7eb;
        padding-bottom: 16px;
    }
    
    .minimal-column-right {
        padding-left: 0;
    }
    
    .minimal-date-range {
        flex-direction: column;
        gap: 12px;
    }
    
    .minimal-date-separator {
        display: none;
    }
    
    .minimal-stats {
        grid-template-columns: repeat(3, 1fr);
        margin-top: 16px;
    }
    
    .minimal-radio-group {
        flex-direction: column;
        gap: 12px;
    }

    .campaign-form-grid {
        grid-template-columns: 1fr;
    }

    .grid-two-col,
    .grid-two-col-20 {
        grid-template-columns: 1fr;
    }

    .stack-sm {
        display: flex;
        flex-direction: column;
        align-items: stretch;
    }
}

/* Field Selector Button */
.minimal-field-selector-btn {
    width: 100%;
    padding: 10px 12px;
    background: white;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    color: #374151;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.minimal-field-selector-btn:hover {
    border-color: #9ca3af;
    background: #f9fafb;
}

/* Popup Overlay */
.minimal-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    animation: fadeIn 0.2s ease;
}

/* Popup Container */
.minimal-popup {
    background: white;
    border-radius: 12px;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    animation: slideUp 0.3s ease;
}

.minimal-popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #e5e7eb;
}

.minimal-popup-title {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.minimal-popup-search {
    padding: 16px 20px;
    border-bottom: 1px solid #e5e7eb;
}

.minimal-popup-actions {
    display: flex;
    gap: 8px;
    padding: 12px 20px;
    border-bottom: 1px solid #e5e7eb;
}

.minimal-popup-content {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

/* Fields Grid */
.minimal-fields-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.minimal-field-item {
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    transition: all 0.2s;
}

.minimal-field-item:hover {
    border-color: #9ca3af;
    background: #f9fafb;
}

.minimal-field-label {
    display: flex;
    align-items: center;
    padding: 12px;
    cursor: pointer;
}

.minimal-field-label input[type="checkbox"] {
    margin-right: 12px;
    cursor: pointer;
}

.minimal-field-info {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
}

.minimal-field-badge {
    font-size: 11px;
    padding: 2px 6px;
    background: #dbeafe;
    color: #1e40af;
    border-radius: 4px;
    font-weight: 500;
}

/* Popup Footer */
.minimal-popup-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-top: 1px solid #e5e7eb;
}

.minimal-field-count {
    font-size: 14px;
    color: #6b7280;
}

.minimal-popup-buttons {
    display: flex;
    gap: 12px;
}

/* Responsive for popup */
@media (max-width: 640px) {
    .minimal-fields-grid {
        grid-template-columns: 1fr;
    }
    
    .minimal-popup {
        width: 95%;
        max-height: 90vh;
    }
}

/* Preview Modal Styles */
.minimal-preview-modal {
    background: white;
    border-radius: 12px;
    width: 90%;
    max-width: 900px;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    animation: slideUp 0.3s ease;
}

.minimal-preview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #e5e7eb;
}

.minimal-preview-subtitle {
    font-size: 14px;
    color: #6b7280;
    margin: 4px 0 0 0;
}

.minimal-preview-content {
    flex: 1;
    overflow: auto;
    padding: 20px;
}

.minimal-preview-table-wrapper {
    overflow-x: auto;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
}

.minimal-preview-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.minimal-preview-table thead {
    background: #f9fafb;
    border-bottom: 2px solid #e5e7eb;
}

.minimal-preview-table th {
    padding: 12px;
    text-align: left;
    font-weight: 600;
    color: #374151;
    white-space: nowrap;
}

.minimal-preview-table tbody tr {
    border-bottom: 1px solid #e5e7eb;
}

.minimal-preview-table tbody tr:hover {
    background: #f9fafb;
}

.minimal-preview-table td {
    padding: 12px;
    color: #4b5563;
    max-width: 300px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.minimal-preview-empty {
    padding: 40px;
    text-align: center;
    color: #9ca3af;
    font-size: 16px;
}

.minimal-preview-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-top: 1px solid #e5e7eb;
    background: #f9fafb;
}

.minimal-preview-info {
    display: flex;
    gap: 24px;
}

.minimal-preview-stat {
    font-size: 14px;
    color: #6b7280;
}

.minimal-preview-stat strong {
    color: #111827;
    font-weight: 600;
}

/* Special cell value styles */
.minimal-null {
    color: #d1d5db;
    font-style: italic;
}

.minimal-empty {
    color: #9ca3af;
    font-style: italic;
    font-size: 12px;
}

.minimal-json {
    font-family: 'Courier New', monospace;
    font-size: 12px;
    color: #6366f1;
    background: #eef2ff;
    padding: 2px 4px;
    border-radius: 3px;
}

/* Responsive preview modal */
@media (max-width: 768px) {
    .minimal-preview-modal {
        width: 95%;
        max-width: 95%;
    }
    
    .minimal-preview-info {
        flex-direction: column;
        gap: 8px;
    }
    
    .minimal-preview-footer {
        flex-direction: column;
        gap: 16px;
    }
}

/* Keep original modern-modal class for backwards compatibility */
.modern-modal {
    backdrop-filter: blur(8px);
    background: rgba(15, 23, 42, 0.7);
    animation: fadeIn 0.2s ease-out;
}

/* Legacy export modal content - kept for compatibility */
.export-modal-content {
    max-width: 720px;
    width: 95%;
    max-height: 90vh;
    background: white;
    border-radius: 16px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    overflow-y: auto;
    animation: slideIn 0.3s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from { 
        opacity: 0; 
        transform: translate(-50%, -48%) scale(0.95); 
    }
    to { 
        opacity: 1; 
        transform: translate(-50%, -50%) scale(1); 
    }
}

/* Modal Header */
.export-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 24px 0 24px;
    margin-bottom: 24px;
}

.export-header-content {
    display: flex;
    align-items: center;
    gap: 16px;
}

.export-icon {
    font-size: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    filter: drop-shadow(0 4px 8px rgba(102, 126, 234, 0.3));
}

.export-title {
    font-size: 24px;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
    line-height: 1.2;
}

.export-subtitle {
    font-size: 14px;
    color: #64748b;
    margin: 4px 0 0 0;
    line-height: 1.4;
}

.btn-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: none;
    background: #f1f5f9;
    border-radius: 10px;
    cursor: pointer;
    color: #64748b;
    transition: all 0.2s ease;
}

.btn-close:hover {
    background: #e2e8f0;
    color: #334155;
    transform: scale(1.05);
}

/* Form Styles */
.export-form {
    padding: 0 24px 24px 24px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    transition: all 0.3s ease;
}

.form-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.section-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 600;
    color: #334155;
    margin: 0;
}

.section-label svg {
    color: #3b82f6;
}

/* Radio Group Styles */
.radio-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.radio-option {
    position: relative;
    cursor: pointer;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 16px;
    transition: all 0.2s ease;
    background: #fefefe;
}

.radio-option:hover {
    border-color: #3b82f6;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.1);
    transform: translateY(-1px);
}

.radio-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.radio-option input[type="radio"]:checked + .radio-content {
    color: #f7fafc;
}

.radio-option input[type="radio"]:checked + .radio-content .radio-icon {
    transform: scale(1.1);
}

.radio-option:has(input:checked) {
    border-color: #4299e1;
    background: rgba(66, 153, 225, 0.15);
    box-shadow: 0 4px 12px rgba(66, 153, 225, 0.2);
}

.radio-content {
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.2s ease;
}

.radio-icon {
    font-size: 20px;
    transition: transform 0.2s ease;
}

.radio-title {
    font-weight: 600;
    font-size: 15px;
    color: #f7fafc;
    margin-bottom: 2px;
}

.radio-description {
    font-size: 13px;
    color: #a0aec0;
    line-height: 1.3;
}

/* Date Range Styles */
.date-range-container {
    display: flex;
    align-items: flex-end;
    gap: 16px;
    padding: 12px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.date-input-group {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.date-label {
    font-size: 13px;
    font-weight: 500;
    color: #a0aec0;
    margin: 0;
}

.date-input-wrapper {
    position: relative;
}

.date-input {
    width: 100%;
    padding: 10px 14px;
    padding-right: 40px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    font-size: 14px;
    background: rgba(0, 0, 0, 0.3);
    color: #f7fafc;
    transition: all 0.2s ease;
    font-family: inherit;
}

.date-input:focus {
    outline: none;
    border-color: #4299e1;
    box-shadow: 0 0 0 2px rgba(66, 153, 225, 0.2);
}

.date-icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #718096;
    pointer-events: none;
}

.date-separator {
    font-size: 14px;
    font-weight: 500;
    color: #718096;
    margin: 0 4px;
    margin-bottom: 4px;
    white-space: nowrap;
}

/* Campaign Stat Badges */
.campaign-stat-completed,
.campaign-stat-failed,
.campaign-stat-in-progress,
.campaign-stat-pending {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    margin-left: 4px;
    display: inline-block;
    text-align: center;
    line-height: 1;
    vertical-align: middle;
}

.campaign-stat-completed {
    background: #dcfce7;
    color: #166534;
}

.campaign-stat-failed {
    background: #fee2e2;
    color: #991b1b;
}

.campaign-stat-in-progress {
    background: #dbeafe;
    color: #1e40af;
}

.campaign-stat-pending {
    background: #fed7aa;
    color: #9a3412;
}

/* Campaign Filter Styles */
.campaign-filter-container {
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
}

.campaign-actions {
    display: flex;
    gap: 8px;
    padding: 12px 16px;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}

.btn-filter-action {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    background: white;
    color: #374151;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-filter-action:hover {
    background: #f3f4f6;
    border-color: #9ca3af;
    transform: translateY(-1px);
}

.campaign-list {
    max-height: 240px;
    overflow-y: auto;
    padding: 8px;
}

.campaign-list::-webkit-scrollbar {
    width: 6px;
}

.campaign-list::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 3px;
}

.campaign-list::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

.campaign-list::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Empty Campaigns State */
.empty-campaigns {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    text-align: center;
}

.empty-icon {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.7;
}

.empty-text {
    font-size: 16px;
    font-weight: 600;
    color: #64748b;
    margin-bottom: 8px;
}

.empty-description {
    font-size: 13px;
    color: #94a3b8;
    line-height: 1.4;
    max-width: 280px;
}

.campaign-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.campaign-item:hover {
    background: #f8fafc;
    border-color: #e2e8f0;
}

.campaign-item input[type="checkbox"] {
    margin-top: 2px;
    width: 16px;
    height: 16px;
    accent-color: #3b82f6;
}

.campaign-content {
    flex: 1;
    min-width: 0;
}

.campaign-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 6px;
}

.campaign-name {
    font-weight: 600;
    font-size: 14px;
    color: #1e293b;
    line-height: 1.3;
}

.campaign-status {
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    white-space: nowrap;
}

.status-draft {
    background: #f1f5f9;
    color: #64748b;
}

.status-active {
    background: #dcfce7;
    color: #166534;
}

.status-paused {
    background: #fef3c7;
    color: #92400e;
}

.status-completed {
    background: #e0e7ff;
    color: #3730a3;
}

.campaign-details {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.campaign-detail {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: #64748b;
}

.campaign-detail svg {
    color: #94a3b8;
}

/* Checkbox Group Styles */
.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.checkbox-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #fefefe;
}

.checkbox-option:hover {
    border-color: #3b82f6;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.1);
}

.checkbox-option input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #3b82f6;
}

.checkbox-option:has(input:checked) {
    border-color: #3b82f6;
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
}

.checkbox-content {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.checkbox-icon {
    font-size: 18px;
}

.checkbox-title {
    font-weight: 600;
    font-size: 14px;
    color: #1e293b;
    margin-bottom: 2px;
}

.checkbox-description {
    font-size: 13px;
    color: #64748b;
    line-height: 1.3;
}

/* Export Summary Styles */
.export-summary {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border: 2px solid #bae6fd;
    border-radius: 16px;
    padding: 20px;
}

.summary-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.summary-header svg {
    color: #0369a1;
}

.summary-title {
    font-size: 18px;
    font-weight: 700;
    color: #0c4a6e;
    margin: 0;
}

.summary-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 16px;
    margin-bottom: 16px;
}

.summary-stat {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 12px;
    border: 1px solid rgba(3, 105, 161, 0.1);
}

.stat-icon {
    font-size: 20px;
}

.stat-value {
    font-size: 20px;
    font-weight: 700;
    color: #0c4a6e;
    line-height: 1;
}

.stat-label {
    font-size: 12px;
    color: #0369a1;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.summary-note {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 10px;
    font-size: 13px;
    color: #0369a1;
    line-height: 1.4;
}

.summary-note svg {
    margin-top: 1px;
    flex-shrink: 0;
}

/* Form Hints */
.form-hint {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 8px 12px;
    background: #f8fafc;
    border-radius: 8px;
    font-size: 13px;
    color: #64748b;
    line-height: 1.4;
}

.form-hint svg {
    margin-top: 1px;
    flex-shrink: 0;
    color: #10b981;
}

/* Progress Section */
.export-progress-section {
    padding: 20px;
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border: 2px solid #f59e0b;
    border-radius: 16px;
    margin-bottom: 20px;
    transform: translateY(-10px);
    opacity: 0;
    transition: all 0.3s ease;
}

.export-progress-section:not(.hidden) {
    transform: translateY(0);
    opacity: 1;
}

.progress-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.progress-spinner {
    width: 32px;
    height: 32px;
    border: 3px solid #fed7aa;
    border-top: 3px solid #f59e0b;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.progress-title {
    font-size: 16px;
    font-weight: 700;
    color: #92400e;
    margin-bottom: 4px;
}

.progress-details {
    font-size: 13px;
    color: #b45309;
}

.progress-bar-container {
    background: #fed7aa;
    border-radius: 10px;
    overflow: hidden;
    height: 8px;
    margin-bottom: 16px;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #f59e0b 0%, #d97706 100%);
    width: 0%;
    transition: width 0.3s ease;
    border-radius: 10px;
}

.btn-cancel {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid #ef4444;
    border-radius: 8px;
    color: #dc2626;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-cancel:hover {
    background: rgba(239, 68, 68, 0.2);
    transform: translateY(-1px);
}

/* Action Buttons */
.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding-top: 20px;
    border-top: 2px solid #f1f5f9;
}

.btn-secondary {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    color: #64748b;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-secondary:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
    color: #475569;
    transform: translateY(-1px);
}

.btn-primary {
    display: flex;
    align-items: center;
    padding: 12px 24px;
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    border: none;
    border-radius: 10px;
    color: white;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
    position: relative;
    overflow: hidden;
}

.btn-primary:hover:not(:disabled) {
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

.btn-primary:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.btn-text {
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-spinner {
    display: flex;
    align-items: center;
    gap: 8px;
}

.spinner-icon {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* ==================================================
   Enhanced Toast Notification Styles
   ================================================== */

.export-toast {
    font-family: system-ui;
    max-width: 420px;
    min-width: 320px;
}

.toast-content {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px 20px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15), 0 4px 10px rgba(0, 0, 0, 0.1);
    border: 1px solid;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.toast-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: currentColor;
    opacity: 0.8;
}

.toast-success {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.95) 0%, rgba(5, 150, 105, 0.95) 100%);
    color: white;
    border-color: rgba(255, 255, 255, 0.2);
}

.toast-error {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.95) 0%, rgba(220, 38, 38, 0.95) 100%);
    color: white;
    border-color: rgba(255, 255, 255, 0.2);
}

.toast-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    flex-shrink: 0;
    margin-top: 2px;
}

.toast-content-text {
    flex: 1;
    min-width: 0;
}

.toast-title {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 4px;
    line-height: 1.3;
}

.toast-message {
    font-size: 13px;
    line-height: 1.4;
    opacity: 0.95;
    word-wrap: break-word;
}

.toast-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border: none;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 6px;
    cursor: pointer;
    color: currentColor;
    transition: all 0.2s ease;
    flex-shrink: 0;
    margin-top: 2px;
}

.toast-close:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: scale(1.05);
}

.toast-close:active {
    transform: scale(0.95);
}

/* Toast Animations */
@keyframes toastSlideIn {
    from {
        transform: translateX(100%) scale(0.8);
        opacity: 0;
    }
    50% {
        transform: translateX(-5%) scale(1.02);
        opacity: 1;
    }
    to {
        transform: translateX(0) scale(1);
        opacity: 1;
    }
}

@keyframes toastSlideOut {
    from {
        transform: translateX(0) scale(1);
        opacity: 1;
    }
    to {
        transform: translateX(100%) scale(0.8);
        opacity: 0;
    }
}

/* Enhanced toast container */
#exportToastContainer {
    z-index: 10000;
}

/* Toast interaction states */
.toast-content {
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.toast-content:hover {
    transform: scale(1.02) translateY(-1px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

@keyframes toastShake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-4px); }
    75% { transform: translateX(4px); }
}

/* Export Modal Campaign Checkbox Styling */
.minimal-checkbox-item {
    padding: 8px 12px;
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.2s;
}

.minimal-checkbox-item:hover {
    background-color: #f9fafb;
}

.minimal-checkbox-item:last-child {
    border-bottom: none;
}

.minimal-checkbox-item label {
    display: flex;
    align-items: center;
    cursor: pointer;
    gap: 10px;
    width: 100%;
}

.minimal-checkbox-item input[type="checkbox"] {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    margin: 0;
    cursor: pointer;
}

.minimal-checkbox-item span:first-of-type {
    flex-grow: 1;
    font-size: 14px;
    color: #374151;
}

.minimal-checkbox-item .minimal-badge {
    flex-shrink: 0;
    font-size: 12px;
    padding: 2px 8px;
    background-color: #e5e7eb;
    color: #6b7280;
    border-radius: 12px;
    font-weight: 500;
}

.toast-content.shake {
    animation: toastShake 0.4s ease-in-out;
}

/* Toast Stack Management */
.export-toast:not(:first-of-type) {
    margin-top: 12px;
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.3s ease-out;
}

.slide-up {
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.shake {
    animation: shake 0.5s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

/* Dark Theme Scrollbar Styles */
.export-modal-content::-webkit-scrollbar,
.campaign-list::-webkit-scrollbar {
    width: 8px;
}

.export-modal-content::-webkit-scrollbar-track,
.campaign-list::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
}

.export-modal-content::-webkit-scrollbar-thumb,
.campaign-list::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}

.export-modal-content::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

.campaign-list::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Enhanced micro-interactions */
.radio-option {
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.radio-option:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 25px rgba(66, 153, 225, 0.15);
}

.checkbox-option {
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.checkbox-option:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(66, 153, 225, 0.1);
}

.btn-filter-action {
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-filter-action:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(66, 153, 225, 0.1);
}

.campaign-item {
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.campaign-item:hover {
    transform: translateX(4px);
}

.date-input {
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.date-input:hover {
    border-color: #94a3b8;
    box-shadow: 0 2px 8px rgba(148, 163, 184, 0.1);
}

/* Success celebration animation */
@keyframes celebrate {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.celebrate {
    animation: celebrate 0.6s ease-in-out;
}

/* Button press feedback */
.btn-primary:active {
    transform: translateY(1px) !important;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.2) !important;
}

.btn-secondary:active {
    transform: translateY(1px) !important;
}

/* Progress bar smooth animation */
.progress-bar {
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Loading state enhancements */
.export-form.loading {
    opacity: 0.6;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

/* Focus improvements */
.radio-option:focus-within {
    transform: scale(1.01);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1), 0 4px 12px rgba(59, 130, 246, 0.2);
}

.checkbox-option:focus-within {
    transform: scale(1.01);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1), 0 4px 12px rgba(59, 130, 246, 0.2);
}

/* Campaign item selection feedback */
.campaign-item:has(input:checked) {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    border-color: #3b82f6;
    transform: translateX(2px);
    box-shadow: 0 2px 12px rgba(59, 130, 246, 0.2);
}

/* Export button states */
.btn-primary .btn-text {
    transition: all 0.2s ease;
}

.btn-primary .btn-spinner {
    transition: all 0.2s ease;
}

/* Modal entrance animation enhancement */
.export-modal-content {
    animation: modalBounceIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes modalBounceIn {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.3);
    }
    50% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.05);
    }
    100% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

/* Heartbeat animation for important elements */
@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.03); }
}

.heartbeat {
    animation: heartbeat 1.5s ease-in-out infinite;
}

/* Gentle glow for active elements */
.gentle-glow {
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.3);
    transition: box-shadow 0.3s ease;
}

/* Focus States and Validation */
.date-input:invalid,
.date-input.invalid {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
    background-color: rgba(239, 68, 68, 0.05);
}

.validation-error {
    color: #dc2626;
    font-size: 12px;
    margin-top: 4px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.validation-error::before {
    content: '⚠️';
    font-size: 14px;
}

/* Screen Reader Only Content */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.campaign-item:focus-within {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

.radio-option:focus-within,
.checkbox-option:focus-within {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .export-modal-content {
        border: 2px solid #000;
    }
    
    .radio-option,
    .checkbox-option {
        border-width: 3px;
    }
    
    .btn-primary {
        background: #000;
        border: 2px solid #000;
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    .export-modal-content,
    .export-progress-section,
    .export-form,
    .progress-spinner,
    .spinner-icon {
        animation: none;
        transition: none;
    }
    
    .btn-primary:hover,
    .btn-secondary:hover,
    .radio-option:hover,
    .checkbox-option:hover {
        transform: none;
    }
}

/* Print Styles */
@media print {
    .modern-modal {
        display: none;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .export-modal-content {
        width: 95%;
        max-height: 95vh;
        border-radius: 12px;
    }
    
    .export-modal-header {
        padding: 20px 20px 0 20px;
    }
    
    .export-form {
        padding: 0 20px 20px 20px;
        gap: 20px;
    }
    
    .radio-group {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    
    .date-range-container {
        flex-direction: column;
        gap: 12px;
    }
    
    .date-separator {
        display: none;
    }
    
    .summary-stats {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .form-actions {
        flex-direction: column-reverse;
        gap: 8px;
    }
    
    .btn-primary,
    .btn-secondary {
        width: 100%;
        justify-content: center;
    }
    
    .export-icon {
        width: 40px;
        height: 40px;
        font-size: 24px;
    }
    
    .export-title {
        font-size: 20px;
    }
    
    .campaign-actions {
        flex-direction: column;
        gap: 8px;
    }
    
    .btn-filter-action {
        width: 100%;
        justify-content: center;
    }
    
    .export-toast {
        right: 10px;
        left: 10px;
        max-width: none;
        min-width: auto;
    }
    
    .toast-content {
        padding: 14px 16px;
        gap: 10px;
    }
    
    .toast-icon {
        width: 28px;
        height: 28px;
    }
    
    .toast-title {
        font-size: 14px;
    }
    
    .toast-message {
        font-size: 12px;
    }
}

/* Dark Mode Support (if implemented) */
@media (prefers-color-scheme: dark) {
    .export-modal-content {
        background: #1e293b;
        color: #f1f5f9;
    }
    
    .export-title {
        color: #f1f5f9;
    }
    
    .export-subtitle {
        color: #94a3b8;
    }
    
    .section-label {
        color: #f1f5f9;
    }
    
    .radio-option,
    .checkbox-option {
        background: #334155;
        border-color: #475569;
    }
    
    .radio-option:hover,
    .checkbox-option:hover {
        background: #475569;
        border-color: #64748b;
    }
    
    .date-input {
        background: #334155;
        border-color: #475569;
        color: #f1f5f9;
    }
    
    .campaign-filter-container {
        border-color: #475569;
    }
    
    .campaign-actions {
        background: #334155;
        border-color: #475569;
    }
    
    .btn-filter-action {
        background: #475569;
        border-color: #64748b;
        color: #f1f5f9;
    }
    
    .toast-success,
    .toast-error {
        background: rgba(30, 41, 59, 0.95);
        border-color: rgba(255, 255, 255, 0.1);
    }
    
    .toast-success .toast-icon {
        background: rgba(16, 185, 129, 0.3);
    }
    
    .toast-error .toast-icon {
        background: rgba(239, 68, 68, 0.3);
    }
}

/* Legacy Loading states - kept for compatibility */
.spinner {
    display: inline-block;
    width: 12px;
    height: 12px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #007bff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Enhanced export button hover state */
.btn-orange:hover {
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.3);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Add subtle animation to main export buttons */
.btn-orange {
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.btn-orange::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn-orange:hover::before {
    left: 100%;
}

/* Buttons */
.btn {
    padding: 8px 16px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    background: #007bff;
    color: white;
    font-size: 14px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.btn:hover {
    background: #0056b3;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.3);
}

.btn:active {
    transform: translateY(0);
    box-shadow: 0 1px 4px rgba(0, 123, 255, 0.3);
}

.btn-gray {
    background: #6c757d;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-gray:hover {
    background: #545b62;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(108, 117, 125, 0.3);
}

.btn-gray:active {
    transform: translateY(0);
    box-shadow: 0 1px 4px rgba(108, 117, 125, 0.3);
}

.btn-green {
    background: #28a745;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-green:hover {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

.btn-green:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(40, 167, 69, 0.3);
}

.btn-red {
    background: #dc3545;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-red:hover {
    background: linear-gradient(135deg, #dc3545 0%, #e74c3c 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
}

.btn-red:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(220, 53, 69, 0.3);
}

.btn-orange {
    background: #fd7e14;
}

.btn-orange:hover {
    background: #e8670e;
}

/* Stats Grid */
.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.stat {
    text-align: center;
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.stat-num {
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 14px;
    color: #666;
}

/* Colors */
.green {
    color: #28a745;
}

.red {
    color: #dc3545;
}

.blue {
    color: #007bff;
}

.orange {
    color: #fd7e14;
}

.purple {
    color: #6f42c1;
}

/* Call List */
.call {
    padding: 15px;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.2s;
}

.call:hover {
    background: #f8f9fa;
}

.call:last-child {
    border-bottom: none;
}

.call-completed {
    background: #d4edda;
    border-left: 4px solid #28a745;
}

.call-failed {
    background: #f8d7da;
    border-left: 4px solid #dc3545;
}

.call-progress {
    background: #d1ecf1;
    border-left: 4px solid #17a2b8;
}

.call-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.call-main {
    font-weight: 500;
    font-size: 16px;
    color: #333;
}

.call-sub {
    font-size: 13px;
    color: #666;
}

.call-meta {
    text-align: right;
    font-size: 13px;
    color: #666;
}

/* Modals */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

.modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 25px;
    border-radius: 12px;
    max-width: 95%;
    width: 95%;
    max-height: 95vh;
    overflow-y: auto;
}

/* Detail Views */
.detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-top: 15px;
}

.detail-column {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.detail {
    margin: 10px 0;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
}

.detail:last-child {
    border-bottom: none;
}

.detail-label {
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
}

.detail-value {
    color: #666;
}

/* Status Badges */
.status-badge {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.status-completed {
    background: #d4edda;
    color: #155724;
}

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

.status-progress {
    background: #d1ecf1;
    color: #0c5460;
}

.status-draft {
    background: #f8f9fa;
    color: #6c757d;
}

.status-validated {
    background: #d4edda;
    color: #155724;
}

.status-in-progress {
    background: #d1ecf1;
    color: #0c5460;
}

.status-paused {
    background: #fff3cd;
    color: #856404;
}

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

.verification-pending {
    background: #fff3cd;
    color: #856404;
}

.verification-verified {
    background: #d4edda;
    color: #155724;
}

.verification-failed {
    background: #f8d7da;
    color: #721c24;
}

/* Search Bar */
.search-bar {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

/* Form Elements */
input, select {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
}

/* Dynamic Fields Support */
.field-group {
    margin: 20px 0;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

.field-group-title {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 16px;
    font-weight: 600;
    border-bottom: 2px solid #007bff;
    padding-bottom: 8px;
}

.detail-header {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    align-items: center;
}

.detail-content {
    max-height: 60vh;
    overflow-y: auto;
}

.detail-actions {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #ddd;
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.btn-secondary {
    background: #6c757d;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

.btn-secondary:hover {
    background: #5a6268;
}

.evaluation-section {
    background: #e8f4f8;
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 20px;
    border: 1px solid #b8e0ea;
}

.evaluation-section h4 {
    margin: 0 0 10px 0;
    color: #0066cc;
}

.evaluation-content {
    color: #333;
    line-height: 1.6;
}

/* JSON Data Display */
.json-data {
    background: #f8f9fa;
    padding: 10px;
    border-radius: 4px;
    font-family: monospace;
    font-size: 12px;
    max-height: 200px;
    overflow-y: auto;
    white-space: pre-wrap;
}

/* Role Badges */
.role-badge {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.role-admin {
    background: #e3f2fd;
    color: #1565c0;
}

.role-client {
    background: #f3e5f5;
    color: #7b1fa2;
}

/* Navigation Tabs */
.nav-tabs {
    display: flex;
    gap: 5px;
    margin-bottom: 20px;
    background: white;
    padding: 5px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.nav-tab {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    background: transparent;
    color: #666;
    font-size: 14px;
    transition: all 0.2s;
}

.nav-tab.active {
    background: #007bff;
    color: white;
}

.nav-tab:hover:not(.active) {
    background: #f8f9fa;
}

/* User Management Forms */
.user-form {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #555;
}

.form-row {
    display: flex;
    gap: 15px;
}

.form-row .form-group {
    flex: 1;
}

/* User Table */
.user-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

.user-table th, .user-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.user-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #555;
}

.user-row:hover {
    background: #f8f9fa;
}

/* Textarea Maximize Feature */
.textarea-container {
    position: relative;
}

.maximize-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid #ddd;
    border-radius: 4px;
    width: 24px;
    height: 24px;
    cursor: pointer;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    z-index: 2;
}

.maximize-btn:hover {
    background: white;
    color: #007bff;
    border-color: #007bff;
}

.textarea-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

.textarea-modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 20px;
    border-radius: 8px;
    width: 90%;
    max-width: 800px;
    height: 80vh;
    display: flex;
    flex-direction: column;
}

.textarea-modal textarea {
    flex: 1;
    width: 100%;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 15px;
    font-size: 14px;
    font-family: system-ui;
    resize: none;
}

.textarea-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.textarea-modal-buttons {
    margin-top: 15px;
    text-align: right;
}

/* Responsive Design */
@media (max-width: 768px) {
    .search-bar {
        flex-direction: column;
        align-items: stretch;
    }
    
    .search-bar input {
        width: 100%;
    }
    
    .form-row {
        flex-direction: column;
    }
    
    .nav-tabs {
        flex-wrap: wrap;
    }
}

/* Event Tooltip Styles */
.event-tooltip {
    position: fixed;
    background: #1f2937;
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    pointer-events: none;
    transform: translateX(-50%);
}

.tooltip-event-name {
    font-weight: 600;
    margin-bottom: 2px;
}

.tooltip-timestamp {
    font-size: 11px;
    opacity: 0.8;
}


.btn-blue {
    background: #007bff;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.btn-blue:hover {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}
.btn-blue:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(0, 123, 255, 0.3);
}

.btn-purple {
    background: #6f42c1;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.btn-purple:hover {
    background: #5a32a3;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(111, 66, 193, 0.3);
}
.btn-purple:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(111, 66, 193, 0.3);
}

/* Campaign Action Buttons - Consistent Sizing */
.campaign-actions {
    display: flex;
    gap: 8px;
    align-items: center;
    background: none !important;
    padding: 0;
    border-radius: 0;
}

.campaign-actions .btn {
    padding: 6px 12px;
    font-size: 13px;
    min-width: 70px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    border: none;
    outline: none;
}

/* Campaign Dropdown Styles */
.campaign-dropdown {
    position: relative;
    display: inline-block;
}

.campaign-dropdown .btn {
    padding: 6px 12px;
    font-size: 13px;
    min-width: 70px;
    height: 32px;
}

.campaign-dropdown-content {
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    margin-top: 4px;
    background: white;
    min-width: 200px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    z-index: 1000;
    overflow: hidden;
}

.campaign-dropdown-content.show {
    display: block;
}

.campaign-dropdown-content button {
    display: block;
    width: 100%;
    padding: 10px 16px;
    text-align: left;
    background: none;
    border: none;
    color: #374151;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s;
}

.campaign-dropdown-content button:hover {
    background: #f9fafb;
}

.campaign-dropdown-content button:first-child {
    border-top: none;
}

.campaign-dropdown-content hr {
    margin: 0;
    border: none;
    border-top: 1px solid #e5e7eb;
}

/* Field Selection Modal Styles */
.field-selection-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.field-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
}

.field-modal-content {
    position: relative;
    background: white;
    border-radius: 8px;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    margin: auto;
}

.field-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    border-bottom: 1px solid #e0e0e0;
}

.field-modal-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.field-modal-close {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    color: #666;
    transition: color 0.2s;
}

.field-modal-close:hover {
    color: #333;
}

.field-modal-search {
    padding: 16px 20px 0;
}

.field-search-input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.2s;
}

.field-search-input:focus {
    outline: none;
    border-color: #4a90e2;
}

.field-modal-actions {
    display: flex;
    gap: 12px;
    padding: 16px 20px;
}

.field-btn {
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
}

.field-btn-outline {
    background: white;
    border: 1px solid #ddd;
    color: #333;
}

.field-btn-outline:hover {
    background: #f5f5f5;
    border-color: #ccc;
}

.field-modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 0 20px;
}

.field-checkbox-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    padding: 16px 0;
}

.field-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.field-item label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    flex: 1;
    font-size: 14px;
    color: #333;
}

.field-item input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.field-item .essential-tag {
    background: #e3f2fd;
    color: #1976d2;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 500;
    margin-left: auto;
}

.field-modal-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-top: 1px solid #e0e0e0;
}

.field-count {
    font-size: 14px;
    color: #666;
}

.field-modal-buttons {
    display: flex;
    gap: 12px;
}

.field-btn-secondary {
    background: white;
    border: 1px solid #ddd;
    color: #333;
}

.field-btn-secondary:hover {
    background: #f5f5f5;
}

.field-btn-primary {
    background: #ff6b35;
    color: white;
    border: none;
}

.field-btn-primary:hover {
    background: #e55a2b;
}
