/* ============================================
   IMPORT DATA PAGE STYLES
   ============================================ */

/* Access Denied */
.access-denied {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    text-align: center;
    color: #64748b;
}

.access-denied i {
    font-size: 64px;
    color: #e2e8f0;
    margin-bottom: 24px;
}

.access-denied h2 {
    color: #1e293b;
    margin-bottom: 12px;
}

/* Config Card */
.import-config-card {
    margin-bottom: 24px;
}

.import-config-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px 24px;
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
    border-radius: 12px 12px 0 0;
}

.import-config-header i {
    font-size: 20px;
    opacity: 0.9;
}

.import-config-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
}

.import-config-body {
    padding: 24px;
}

.import-config-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

/* Schema Info */
.table-schema-info {
    margin-top: 20px;
    padding: 20px;
    background: #f8fafc;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
}

.schema-description {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
    color: #3b82f6;
}

.schema-description i {
    font-size: 18px;
    margin-top: 2px;
}

.schema-description p {
    margin: 0;
    color: #475569;
    line-height: 1.5;
}

.schema-columns {
    display: flex;
    gap: 24px;
    margin-bottom: 16px;
}

.schema-columns code {
    display: inline-block;
    padding: 2px 8px;
    background: #e0e7ff;
    color: #3730a3;
    border-radius: 4px;
    font-size: 13px;
    font-family: monospace;
}

.schema-example {
    padding-top: 16px;
    border-top: 1px solid #e2e8f0;
}

.schema-example pre {
    margin: 8px 0 0;
    padding: 12px;
    background: #1e293b;
    color: #e2e8f0;
    border-radius: 8px;
    font-size: 13px;
    overflow-x: auto;
}

.schema-download {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #e2e8f0;
}

.schema-download .btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.schema-download .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.schema-download .btn i {
    font-size: 14px;
}

/* Upload Zone */
.import-upload-card {
    margin-bottom: 24px;
}

.import-upload-zone {
    padding: 60px 40px;
    text-align: center;
    border: 2px dashed #cbd5e1;
    border-radius: 12px;
    background: #fafbfc;
    cursor: pointer;
    transition: all 0.3s ease;
}

.import-upload-zone:hover,
.import-upload-zone.drag-over {
    border-color: #3b82f6;
    background: #eff6ff;
}

.upload-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    border-radius: 20px;
    color: white;
    font-size: 32px;
}

.import-upload-zone h3 {
    margin: 0 0 8px;
    color: #1e293b;
    font-size: 18px;
}

.import-upload-zone p {
    margin: 0;
    color: #64748b;
}

.import-upload-zone a {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 500;
}

.import-upload-zone a:hover {
    text-decoration: underline;
}

.upload-formats {
    margin-top: 16px !important;
    font-size: 13px;
    color: #94a3b8 !important;
}

.upload-loading,
.upload-success {
    padding: 40px;
}

.upload-loading i,
.upload-success i {
    font-size: 48px;
    margin-bottom: 16px;
}

.upload-loading i {
    color: #3b82f6;
}

.upload-success i {
    color: #10b981;
}

.upload-info {
    color: #10b981 !important;
    font-weight: 500;
}

/* Preview Card */
.import-preview-card {
    margin-bottom: 24px;
}

.import-preview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    border-radius: 12px 12px 0 0;
}

.preview-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.preview-title i {
    color: #3b82f6;
    font-size: 18px;
}

.preview-title h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #1e293b;
}

.preview-count {
    padding: 4px 12px;
    background: #dbeafe;
    color: #1d4ed8;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
}

.preview-actions {
    display: flex;
    gap: 12px;
}

/* Column Mapping */
.column-mapping {
    padding: 24px;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}

.column-mapping h4 {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 16px;
    font-size: 14px;
    color: #475569;
}

.mapping-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 12px;
}

.mapping-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: white;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.mapping-source,
.mapping-target {
    flex: 1;
}

.mapping-label {
    display: block;
    font-size: 11px;
    color: #94a3b8;
    margin-bottom: 4px;
    text-transform: uppercase;
}

.mapping-source strong {
    color: #1e293b;
    font-size: 13px;
}

.mapping-arrow {
    color: #cbd5e1;
}

.mapping-target select {
    width: 100%;
    padding: 6px 10px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 13px;
    background: white;
}

.mapping-target select:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.1);
}

/* Preview Table */
.import-preview-table {
    padding: 0;
    overflow-x: auto;
}

.import-preview-table .data-table {
    margin: 0;
    font-size: 13px;
}

.import-preview-table .data-table th {
    background: #f1f5f9;
    position: sticky;
    top: 0;
}

.preview-more {
    padding: 16px;
    text-align: center;
    color: #64748b;
    font-size: 14px;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
}

/* Results Card */
.import-results-card {
    margin-bottom: 24px;
}

.import-results-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px 24px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border-radius: 12px 12px 0 0;
}

.import-results-header i {
    font-size: 24px;
}

.import-results-header h3 {
    margin: 0;
    font-size: 16px;
}

.import-results-body {
    padding: 24px;
}

/* Progress */
.import-progress {
    text-align: center;
    padding: 20px;
}

.progress-bar {
    width: 100%;
    height: 12px;
    background: #e2e8f0;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 16px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #3b82f6, #1d4ed8);
    border-radius: 6px;
    transition: width 0.3s ease;
}

#progressText {
    color: #64748b;
    font-size: 14px;
}

/* Summary */
.import-summary {
    display: flex;
    justify-content: center;
    gap: 40px;
    padding: 20px;
}

.summary-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.summary-item i {
    font-size: 40px;
}

.summary-item.success i {
    color: #10b981;
}

.summary-item.error i {
    color: #ef4444;
}

.summary-item.neutral i {
    color: #94a3b8;
}

.summary-count {
    font-size: 32px;
    font-weight: 700;
    color: #1e293b;
}

.summary-label {
    color: #64748b;
    font-size: 14px;
}

/* Errors */
.import-errors {
    margin-top: 24px;
    padding: 16px;
    background: #fef2f2;
    border-radius: 8px;
    border-left: 4px solid #ef4444;
}

.import-errors h4 {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 12px;
    color: #dc2626;
    font-size: 14px;
}

.import-errors ul {
    margin: 0;
    padding-left: 20px;
    color: #7f1d1d;
    font-size: 13px;
}

.import-errors li {
    margin-bottom: 4px;
}

.import-actions {
    margin-top: 24px;
    text-align: center;
}

.import-error-full {
    text-align: center;
    padding: 40px;
}

.import-error-full i {
    font-size: 48px;
    color: #ef4444;
    margin-bottom: 16px;
}

.import-error-full h4 {
    color: #1e293b;
    margin: 0 0 8px;
}

.import-error-full p {
    color: #64748b;
    margin: 0 0 24px;
}

/* Responsive */
@media (max-width: 768px) {
    .import-config-row {
        grid-template-columns: 1fr;
    }
    
    .schema-columns {
        flex-direction: column;
        gap: 12px;
    }
    
    .mapping-grid {
        grid-template-columns: 1fr;
    }
    
    .import-summary {
        flex-direction: column;
        gap: 24px;
    }
}
