/* style.css - Complete CSS for CSV Importer */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #333;
    line-height: 1.6;
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

.header {
    background: linear-gradient(45deg, #2c3e50, #4a6491);
    color: white;
    padding: 30px;
    text-align: center;
}

.header h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
}

.header p {
    font-size: 1.1em;
    opacity: 0.9;
}

.card {
    padding: 25px;
    border-bottom: 1px solid #eaeaea;
}

.card h2 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 1.8em;
    border-left: 4px solid #3498db;
    padding-left: 15px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2c3e50;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
    transition: all 0.3s;
}

.form-control:focus {
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
    outline: none;
}

small {
    display: block;
    margin-top: 5px;
    color: #7f8c8d;
    font-size: 0.9em;
}

.checkbox-group {
    margin: 15px 0;
}

.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 6px;
    transition: background 0.3s;
}

.checkbox-label:hover {
    background: #e9ecef;
}

.checkbox-label input[type="checkbox"] {
    margin-right: 10px;
    width: 18px;
    height: 18px;
}

.btn {
    display: inline-block;
    padding: 12px 25px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s;
    margin: 5px;
}

.btn-primary {
    background: #3498db;
    color: white;
}

.btn-primary:hover {
    background: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.4);
}

.btn-success {
    background: #27ae60;
    color: white;
}

.btn-success:hover {
    background: #219653;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(39, 174, 96, 0.4);
}

.btn-danger {
    background: #e74c3c;
    color: white;
}

.btn-danger:hover {
    background: #c0392b;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(231, 76, 60, 0.4);
}

.btn-warning {
    background: #f39c12;
    color: white;
}

.btn-warning:hover {
    background: #d68910;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(243, 156, 18, 0.4);
}

.btn-secondary {
    background: #95a5a6;
    color: white;
}

.btn-secondary:hover {
    background: #7f8c8d;
    transform: translateY(-2px);
}

.button-group {
    margin-top: 20px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.button-group.center {
    justify-content: center;
}

.status-box {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 6px;
    margin-top: 20px;
    border-left: 4px solid #3498db;
}

.badge {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.9em;
    font-weight: 600;
}

.badge.success {
    background: #27ae60;
    color: white;
}

.badge.danger {
    background: #e74c3c;
    color: white;
}

.actions {
    padding: 20px 25px;
}

.warning-box {
    background: #fff3cd;
    border: 2px solid #ffc107;
    border-radius: 8px;
    padding: 20px;
    margin: 15px 0;
}

.warning-box h3 {
    color: #856404;
    margin-bottom: 10px;
}

.success-box {
    background: #d4edda;
    border: 2px solid #28a745;
    border-radius: 8px;
    padding: 20px;
    margin: 15px 0;
}

.success-box h3 {
    color: #155724;
    margin-bottom: 10px;
}

.error-box {
    background: #f8d7da;
    border: 2px solid #dc3545;
    border-radius: 8px;
    padding: 20px;
    margin: 15px 0;
}

.error-box h3 {
    color: #721c24;
    margin-bottom: 10px;
}

.info-box {
    background: #d1ecf1;
    border: 2px solid #17a2b8;
    border-radius: 8px;
    padding: 20px;
    margin: 15px 0;
}

.info-box h3 {
    color: #0c5460;
    margin-bottom: 10px;
}

.confirmation-box {
    background: #fff8e1;
    padding: 15px;
    border-radius: 6px;
    margin: 20px 0;
    border: 2px solid #ffd54f;
}

.warning-message {
    background: #ffeaa7;
    padding: 15px;
    border-radius: 6px;
    margin: 15px 0;
}

.database-name {
    font-size: 1.2em;
    font-weight: bold;
    color: #2c3e50;
    background: #ecf0f1;
    padding: 10px;
    border-radius: 4px;
    text-align: center;
    margin: 10px 0;
}

.table-container {
    overflow-x: auto;
    margin: 15px 0;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    margin: 10px 0;
}

.data-table th {
    background: #2c3e50;
    color: white;
    padding: 12px;
    text-align: left;
    font-weight: 600;
}

.data-table td {
    padding: 10px 12px;
    border-bottom: 1px solid #ddd;
}

.data-table tr:hover {
    background: #f5f5f5;
}

.data-table tr:nth-child(even) {
    background: #f9f9f9;
}

.requirements {
    list-style: none;
    padding: 0;
}

.requirements li {
    padding: 8px 0;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
}

.requirements li:before {
    content: "✓";
    color: #27ae60;
    font-weight: bold;
    margin-right: 10px;
}

.instructions {
    padding-left: 20px;
    margin: 15px 0;
}

.instructions li {
    margin-bottom: 10px;
    padding-left: 5px;
}

.note {
    background: #e3f2fd;
    padding: 15px;
    border-radius: 6px;
    margin-top: 20px;
    border-left: 4px solid #2196f3;
}

.note h3 {
    color: #0d47a1;
    margin-bottom: 10px;
}

.summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin: 20px 0;
}

.summary-item {
    background: white;
    padding: 15px;
    border-radius: 6px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.summary-item .label {
    display: block;
    color: #7f8c8d;
    font-size: 0.9em;
    margin-bottom: 5px;
}

.summary-item .value {
    font-size: 1.5em;
    font-weight: bold;
    color: #2c3e50;
}

.summary-item .value.success {
    color: #27ae60;
}

.summary-item .value.danger {
    color: #e74c3c;
}

.error-list {
    max-height: 200px;
    overflow-y: auto;
    margin-top: 10px;
}

.error-item {
    background: white;
    padding: 10px;
    margin-bottom: 5px;
    border-radius: 4px;
    border-left: 4px solid #e74c3c;
    font-family: monospace;
    font-size: 0.9em;
}

.loading-spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto 15px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@media (max-width: 768px) {
    .container {
        margin: 10px;
        padding: 0;
    }
    
    .header {
        padding: 20px;
    }
    
    .header h1 {
        font-size: 1.8em;
    }
    
    .card {
        padding: 15px;
    }
    
    .button-group {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
        text-align: center;
        margin: 5px 0;
    }
    
    .summary-grid {
        grid-template-columns: 1fr;
    }
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}