* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: #f8f9fa;
    color: #333;
    line-height: 1.6;
    scroll-behavior: smooth;
}

.container {
    width: 95%;
    max-width: 1200px;
    min-height: 600px;
    background: white;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin: 0 auto;
}

header {
    background: transparent;
    color: white;
    padding: 30px 0;
    text-align: center;
    margin: 0 0 30px 0;
    /* Add text shadow for better readability */
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
}

.header-text {
    flex: 1;
    text-align: left;
}

header h1 {
    font-size: 1.5rem;
    margin-bottom: 8px;
    font-weight: 600;
    /* Enhanced text shadow for better readability */
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

header p {
    font-size: 0.9rem;
    opacity: 0.9;
    margin: 0;
    /* Enhanced text shadow for better readability */
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

.header-buttons {
    display: flex;
    gap: 12px;
    align-items: center;
}

header .btn-icon {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.5);
    color: white;
    flex-shrink: 0;
    /* Add shadow for better visibility */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
    /* Add text shadow for icon visibility */
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
    /* Add backdrop filter for better contrast */
    backdrop-filter: blur(4px);
}

header .btn-icon:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.7);
    /* Enhanced hover effects */
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

section {
    padding: 20px;
    border-bottom: 1px solid #e9ecef;
}

section:last-child {
    border-bottom: none;
}

section h2 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: #495057;
    font-weight: 600;
}

.section-instructions {
    margin: -8px 0 16px 0;
    color: #6c757d;
    font-size: 0.95rem;
}

section h3 {
    font-size: 1rem;
    margin: 15px 0 10px 0;
    color: #6c757d;
    font-weight: 600;
}

/* File Upload */
.welcome-message {
    background: linear-gradient(135deg, #e3f2fd 0%, #f3e5f5 100%);
    border: 1px solid #bbdefb;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
}

.welcome-content {
    display: flex;
    align-items: flex-start;
    gap: 5px;
}

.welcome-icon {
    font-size: 32px;
    flex-shrink: 0;
    margin: 0 auto;
}

.welcome-text h3 {
    color: #1976d2;
    margin: 0 0 12px 0;
    font-size: 18px;
}

.welcome-text p {
    margin: 0 0 8px 0;
    color: #37474f;
    line-height: 1.5;
}

.welcome-text p:last-of-type {
    margin-bottom: 16px;
}

.welcome-text strong {
    color: #1565c0;
}

.value-proposition {
    margin: 20px 0;
    padding: 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    border-left: 4px solid #007bff;
}

.value-proposition p {
    margin: 0 0 15px 0;
    color: #495057;
    font-size: 16px;
}

.value-proposition ul {
    margin: 0;
    padding-left: 20px;
}

.value-proposition li {
    margin: 12px 0;
    line-height: 1.6;
    color: #495057;
}

.value-proposition strong {
    color: #212529;
}

/* Donation Link */
.donation-link {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
}

.coffee-cup {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: #ff6b6b;
    color: white;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.3);
}

.coffee-cup:hover {
    background: #ff5252;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(255, 107, 107, 0.4);
}

.coffee-cup svg {
    width: 24px;
    height: 24px;
}

/* Donation Button in Instructions */
.donation-btn {
    display: inline-flex;
    align-items: center;
    background: #ff6b6b;
    border: none;
    color: white;
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.donation-btn:hover {
    background: #ff5252;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.3);
}

/* No File State Styles */
.no-file-state {
  text-align: center;
  padding: 40px 20px;
  background: #f8f9fa;
  border-radius: 8px;
  margin: 20px 0;
}

.no-file-message {
  max-width: 400px;
  margin: 0 auto;
}

.no-file-message svg {
  color: #6c757d;
  margin-bottom: 16px;
}

.no-file-message h3 {
  color: #495057;
  margin-bottom: 12px;
  font-size: 18px;
}

.no-file-message p {
  color: #6c757d;
  margin-bottom: 8px;
  line-height: 1.5;
}

.no-file-message p:last-child {
  margin-bottom: 0;
  font-size: 14px;
}

/* File Uploaded State Styles */
.file-uploaded-state {
  margin-top: 20px;
}

/* Configuration Management */
.config-management {
    margin-bottom: 30px;
    border-top: 1px solid #e9ecef;
    padding-top: 20px;
}

.config-management h3 {
    margin-bottom: 15px;
    color: #333;
    font-size: 18px;
}

.config-list {
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    background: #f8f9fa;
}

.config-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px;
    border-bottom: 1px solid #e9ecef;
    background: white;
    transition: background-color 0.2s ease;
}

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

.config-item:hover {
    background: #f8f9fa;
}

.config-info {
    flex: 1;
}

.config-name {
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
}

.config-details {
    font-size: 12px;
    color: #6c757d;
}

.config-actions-buttons {
    display: flex;
    gap: 8px;
}

.config-actions-buttons button {
    padding: 6px 12px;
    border: none;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.config-actions-buttons .btn-edit {
    background: #007bff;
    color: white;
}

.config-actions-buttons .btn-edit:hover {
    background: #0056b3;
}

.config-actions-buttons .btn-delete {
    background: #dc3545;
    color: white;
}

.config-actions-buttons .btn-delete:hover {
    background: #c82333;
}

/* Danger Zone */
.config-danger-zone {
    border-top: 1px solid #e9ecef;
    padding-top: 20px;
}

.config-danger-zone h3 {
    margin-bottom: 15px;
    color: #dc3545;
    font-size: 18px;
}

.danger-actions {
    margin-bottom: 10px;
}

.danger-actions button {
    background: #dc3545;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.danger-actions button:hover {
    background: #c82333;
}

.config-danger-zone small {
    color: #dc3545;
    font-size: 12px;
    line-height: 1.4;
}

/* Center the donation button in instructions */
.instruction-section:last-child {
    text-align: center;
}

/* Enhanced tooltip for coffee cup */
.coffee-cup {
    position: relative;
}

.coffee-cup::after {
    content: attr(title);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 6px 10px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
    z-index: 1001;
    margin-bottom: 8px;
}

.coffee-cup::before {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: rgba(0, 0, 0, 0.8);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
    z-index: 1001;
    margin-bottom: 3px;
}

.coffee-cup:hover::after,
.coffee-cup:hover::before {
    opacity: 1;
    visibility: visible;
}

/* Date Format Typeahead */
.date-format-typeahead {
    position: relative;
}

.date-format-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #ddd;
    border-top: none;
    border-radius: 0 0 4px 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    z-index: 1000;
    max-height: 200px;
    overflow-y: auto;
}

.date-format-item {
    padding: 8px 12px;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.2s;
}

.date-format-item:hover {
    background-color: #f8f9fa;
}

.date-format-item.selected {
    background-color: #e3f2fd;
}

.date-format-item:last-child {
    border-bottom: none;
}

/* File Preview Section */
.file-preview-section {
    margin-top: 20px;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    background: #fff;
}

.file-preview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid #e9ecef;
    background: #f8f9fa;
    border-radius: 8px 8px 0 0;
}

.file-preview-header h3 {
    margin: 0;
    font-size: 16px;
    color: #495057;
}

.file-preview-content {
    padding: 20px;
}

.file-preview-table-container {
    overflow-x: auto;
    max-width: 100%;
    border: 1px solid #dee2e6;
    border-radius: 6px;
}

.file-preview-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
    min-width: 600px;
}

.file-preview-table th,
.file-preview-table td {
    padding: 8px 12px;
    text-align: left;
    border: 1px solid #dee2e6;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 150px;
}

.file-preview-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #495057;
    position: sticky;
    top: 0;
    z-index: 10;
}

.file-preview-table .row-header {
    background: #e9ecef;
    font-weight: 700;
    color: #495057;
    text-align: center;
    min-width: 50px;
}

.file-preview-table .column-header {
    background: #f8f9fa;
    font-weight: 600;
    color: #495057;
    text-align: center;
    min-width: 100px;
}

.file-preview-table tbody tr:nth-child(even) {
    background: #f8f9fa;
}

.file-preview-table tbody tr:hover {
    background: #e3f2fd;
}

.file-preview-info {
    margin-top: 16px;
    text-align: center;
    color: #6c757d;
}

.file-preview-info p {
    margin: 0;
}

/* Toggle button styles */
#togglePreviewBtn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    font-size: 12px;
    transition: all 0.2s ease;
}

#togglePreviewBtn svg {
    transition: transform 0.2s ease;
}

#togglePreviewBtn.expanded svg {
    transform: rotate(180deg);
}

.file-upload-area {
    border: 2px dashed #dee2e6;
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

.file-upload-area:hover {
    border-color: #667eea;
    background: #f0f2ff;
}

.file-upload-area.dragover {
    border-color: #667eea;
    background: #e8f0ff;
}

.upload-icon {
    width: 48px;
    height: 48px;
    color: #6c757d;
    margin-bottom: 15px;
}

.upload-content p {
    margin-bottom: 8px;
    color: #6c757d;
}

.file-types {
    font-size: 0.8rem;
    color: #adb5bd;
}

.file-info {
    margin-top: 15px;
    padding: 15px;
    background: #e8f5e8;
    border-radius: 6px;
    border-left: 4px solid #28a745;
}

.file-info p {
    margin-bottom: 5px;
    font-size: 0.9rem;
}

.header-info {
    margin: 8px 0 0 0;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
}

.header-info.has-headers {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.header-info.no-headers {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

/* Configuration */
.config-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.config-header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.config-header h2 {
    margin: 0;
}

.btn-icon {
    background: none;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    padding: 8px;
    cursor: pointer;
    color: #6c757d;
    transition: all 0.2s ease;
}

.btn-icon:hover {
    background-color: #f8f9fa;
    border-color: #adb5bd;
    color: #495057;
}

.config-selector {
    margin-bottom: 20px;
}

.config-help-text {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 16px;
    font-size: 14px;
    line-height: 1.5;
}

.config-help-text p {
    margin: 0 0 12px 0;
    color: #495057;
}

.config-help-text p:last-child {
    margin-bottom: 0;
    color: #6c757d;
    font-style: italic;
}

.config-help-text ul {
    margin: 8px 0 12px 20px;
    padding: 0;
}

.config-help-text li {
    margin-bottom: 4px;
    color: #495057;
}

.config-selector-controls {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.config-selector-controls label {
    flex-shrink: 0;
    min-width: 120px;
}

.config-selector-controls .typeahead-container {
    flex: 1;
    min-width: 200px;
}

.config-selector-controls button {
    flex-shrink: 0;
}

.process-file-section {
    margin-top: 20px;
    text-align: center;
}

.btn-large {
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 600;
}

/* Modal Styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
}

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

.modal-header h3 {
    margin: 0;
    color: #495057;
}

.modal-body {
    padding: 20px 24px 24px;
}

/* Confirmation Modal Styles */
.confirmation-modal .modal-content {
    max-width: 400px;
}

.confirmation-modal .modal-body {
    text-align: center;
}

.confirmation-modal p {
    margin-bottom: 24px;
    font-size: 16px;
    color: #495057;
    line-height: 1.5;
}

.confirmation-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.confirmation-actions .btn {
    min-width: 100px;
    padding: 10px 20px;
    font-size: 14px;
}

/* Instructions Modal Styles */
.instructions-modal {
    max-width: 700px !important;
    max-height: 85vh;
}

.instructions-content {
    line-height: 1.6;
}

.instruction-section {
    margin-bottom: 24px;
}

.instruction-section:last-child {
    margin-bottom: 0;
}

.instruction-section h4 {
    color: #495057;
    margin-bottom: 12px;
    font-size: 18px;
    border-bottom: 2px solid #e9ecef;
    padding-bottom: 8px;
}

.instruction-section h5 {
    color: #6c757d;
    margin-bottom: 8px;
    font-size: 16px;
}

.instruction-section p {
    margin-bottom: 12px;
    color: #495057;
}

.instruction-section ul {
    margin-bottom: 12px;
    padding-left: 20px;
}

.instruction-section li {
    margin-bottom: 6px;
    color: #495057;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.benefit-item {
    display: flex;
    align-items: flex-start;
    padding: 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    border-left: 4px solid #007bff;
    transition: all 0.3s ease;
}

.benefit-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 123, 255, 0.15);
    border-left-color: #0056b3;
}

.benefit-icon {
    font-size: 2rem;
    margin-right: 16px;
    flex-shrink: 0;
    margin-top: 4px;
}

.benefit-content h5 {
    margin: 0 0 8px 0;
    color: #212529;
    font-size: 1.1rem;
    font-weight: 600;
}

.benefit-content p {
    margin: 0;
    color: #495057;
    line-height: 1.5;
    font-size: 0.95rem;
}

/* Responsive design for benefits grid */
@media (max-width: 768px) {
    .benefits-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .benefit-item {
        padding: 16px;
    }
    
    .benefit-icon {
        font-size: 1.5rem;
        margin-right: 12px;
    }
    
    .benefit-content h5 {
        font-size: 1rem;
    }
    
    .benefit-content p {
        font-size: 0.9rem;
    }
}

.about-links {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 12px;
    text-align: center;
}

.about-link {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.about-link:hover {
    color: #5a6fd8;
    text-decoration: underline;
}

.separator {
    color: #6c757d;
    font-weight: 300;
}

.step {
    display: flex;
    margin-bottom: 20px;
    align-items: flex-start;
}

.step-number {
    background: #667eea;
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
    margin-right: 16px;
    flex-shrink: 0;
    margin-top: 2px;
}

.step-content {
    flex: 1;
}

.step-content h5 {
    margin-top: 0;
    margin-bottom: 8px;
}

.step-tip {
    background: #e3f2fd;
    border: 1px solid #bbdefb;
    border-radius: 6px;
    padding: 12px;
    margin-top: 12px;
    font-size: 14px;
}

.step-tip strong {
    color: #1976d2;
}

.config-type {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 16px;
}

.config-type h5 {
    color: #495057;
    margin-bottom: 8px;
    font-size: 16px;
}

.config-type ul {
    margin-bottom: 0;
}

/* Configuration Import/Export */
.config-import-export {
    margin: 20px 0;
    padding: 16px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background-color: #f9f9f9;
}

/* Configuration Suggestions - Removed in favor of clear help text above selector */

.config-import-export h3 {
    margin: 0 0 12px 0;
    color: #333;
    font-size: 16px;
}

.config-import-export .config-actions {
    display: flex;
    gap: 12px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.config-import-export .config-actions button {
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.config-import-export .config-actions button svg {
    flex-shrink: 0;
}

.config-import-export small {
    color: #666;
    line-height: 1.4;
}

.config-selector select {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 0.9rem;
}

/* Typeahead Styles */
.typeahead-container {
    position: relative;
    flex: 1;
}

.typeahead-container input {
    width: 100%;
    min-width: 200px;
    padding: 8px 12px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 0.9rem;
    background: white;
}

.typeahead-container input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.2);
}

.typeahead-container input {
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.typeahead-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #ced4da;
    border-top: none;
    border-radius: 0 0 4px 4px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.typeahead-dropdown[style*="display: block"] {
    opacity: 1;
    transform: translateY(0);
}

.typeahead-item {
    padding: 8px 12px;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.2s ease;
}

.typeahead-item:hover {
    background-color: #f8f9fa;
}

.typeahead-item.selected {
    background-color: #667eea;
    color: white;
}

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

.typeahead-header {
    padding: 8px 12px;
    background-color: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
    font-weight: 600;
    color: #495057;
    font-size: 0.85rem;
    text-align: center;
}

.typeahead-no-results {
    padding: 8px 12px;
    color: #6c757d;
    font-style: italic;
    text-align: center;
}

.typeahead-item mark {
    background-color: #fff3cd;
    color: #856404;
    padding: 1px 2px;
    border-radius: 2px;
    font-weight: 600;
}

.typeahead-item.browse-all {
    background-color: #e3f2fd;
    border-bottom: 2px solid #2196f3;
    font-weight: 600;
    color: #1976d2;
}

.typeahead-item.browse-all:hover {
    background-color: #bbdefb;
}

.browse-all-icon {
    margin-right: 8px;
    font-size: 14px;
}

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

.toast {
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    margin-bottom: 12px;
    padding: 16px 20px;
    min-width: 300px;
    max-width: 400px;
    pointer-events: auto;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    border-left: 4px solid #28a745;
}

.toast.show {
    transform: translateX(0);
}

.toast.success {
    border-left-color: #28a745;
}

.toast.error {
    border-left-color: #dc3545;
}

.toast.info {
    border-left-color: #17a2b8;
}

.toast-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.toast-title {
    font-weight: 600;
    font-size: 14px;
}

.toast-close {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: #6c757d;
    padding: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.toast-close:hover {
    color: #495057;
}

.toast-message {
    font-size: 13px;
    color: #495057;
    line-height: 1.4;
}

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

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

.form-group .required {
    margin-right: 5px;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 0.9rem;
}

.form-group small {
    display: block;
    margin-top: 5px;
    font-size: 0.8rem;
    color: #6c757d;
}

/* Column Mapping Warning */
.column-mapping-warning {
    background-color: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 6px;
    padding: 12px;
    margin-bottom: 15px;
}

.warning-message {
    display: flex;
    align-items: center;
    color: #856404;
    font-size: 0.9rem;
}

.warning-message svg {
    flex-shrink: 0;
    margin-right: 8px;
    color: #f39c12;
}

.warning-message span {
    line-height: 1.4;
}

.checkbox-group {
    margin-top: 8px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-weight: normal;
    margin: 0;
}

.checkbox-label input[type="checkbox"] {
    margin-right: 8px;
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.checkbox-label .checkmark {
    display: none;
}

.column-mapping {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 20px;
}

.mapping-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    padding: 8px 0;
}

.label-container {
    display: flex;
    align-items: center;
    min-width: 140px;
    flex-shrink: 0;
}

.mapping-row label {
    font-weight: 500;
    color: #495057;
    margin: 0;
}

.mapping-row small {
    display: block;
    margin-top: 4px;
    color: #6c757d;
    font-size: 12px;
    line-height: 1.3;
    width: 100%;
    margin-left: 0; /* Remove the left margin since we're using full width */
}

.column-select {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 0.9rem;
}

/* Ensure all select fields in mapping rows have consistent sizing */
.mapping-row select {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 0.9rem;
}

/* Ensure all input fields in mapping rows have consistent sizing */
.mapping-row input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 0.9rem;
}

.required {
    color: #dc3545;
    font-weight: bold;
    margin-right: 5px;
    flex-shrink: 0;
}

.form-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

/* Buttons */
.btn {
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-primary {
    background: #007bff;
    color: white;
}

.btn-primary:hover {
    background: #0056b3;
}

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

.btn-secondary:hover {
    background: #545b62;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Processing */
.progress-container {
    text-align: center;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 15px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea, #764ba2);
    width: 0%;
    transition: width 0.3s ease;
}

#progressText {
    color: #6c757d;
    font-size: 0.9rem;
}

/* Progress section containers */
.progress-section-container {
    margin: 20px 0;
    min-height: 0; /* Collapse when empty */
}

/* Results */
.results-summary {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 20px;
}

.results-summary p {
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.error-details {
    background: #fff5f5;
    border: 1px solid #fed7d7;
    border-radius: 6px;
    padding: 15px;
    margin-bottom: 20px;
}

.error-details h3 {
    color: #c53030;
    margin-bottom: 10px;
}

.error-item {
    background: white;
    border: 1px solid #fed7d7;
    border-radius: 4px;
    padding: 10px;
    margin-bottom: 8px;
    font-size: 0.85rem;
}

.error-item .error-row {
    font-weight: 600;
    color: #c53030;
}

.error-item .error-message {
    color: #2d3748;
    margin-top: 5px;
}

.data-preview {
    margin-bottom: 20px;
}

.table-container {
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid #dee2e6;
    border-radius: 6px;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.8rem;
}

th, td {
    padding: 8px 12px;
    text-align: left;
    border-bottom: 1px solid #dee2e6;
}

th {
    background: #f8f9fa;
    font-weight: 600;
    color: #495057;
    position: sticky;
    top: 0;
}

tr:hover {
    background: #f8f9fa;
}

/* Legacy export-actions styles - replaced by action-cards in main-app.css */
.export-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
}

/* Configuration Management */
.config-list {
    max-height: 300px;
    overflow-y: auto;
}

.config-item {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    padding: 15px;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.config-info h4 {
    margin-bottom: 5px;
    color: #495057;
}

.config-info p {
    font-size: 0.8rem;
    color: #6c757d;
    margin-bottom: 3px;
}

.config-actions {
    display: flex;
    gap: 5px;
}

.btn-small {
    padding: 4px 8px;
    font-size: 0.8rem;
}

.btn-danger {
    background: #dc3545;
    color: white;
}

.btn-danger:hover {
    background: #c82333;
}

/* Responsive */
@media (max-width: 1200px) {
    .container {
        max-width: 95%;
        padding: 25px;
    }
}

@media (max-width: 768px) {
    .container {
        margin: 10px;
        padding: 20px;
        width: calc(100% - 20px);
    }
}

@media (max-width: 520px) {
    .container {
        width: 100%;
        min-height: 100vh;
    }
    
    .mapping-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .mapping-row label {
        min-width: auto;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    /* Legacy export-actions mobile styles - action-cards have their own responsive design */
    .export-actions {
        flex-direction: column;
    }
    
    .config-selector {
        flex-direction: column;
        align-items: stretch;
    }
}
