/* =============
   CORE STYLES
   ============= */
:root {
    --primary: #4361ee;
    --primary-dark: #3a56e0;
    --secondary: #3f37c9;
    --success: #06d6a0;
    --danger: #ef476f;
    --warning: #ffd166;
    --info: #118ab2;
    --dark: #1a1a1a;
    --light: #f8f9fa;
    --gray: #6c757d;
    --border-radius: 12px;
    --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    color: var(--dark);
    line-height: 1.6;
}

.container {
    width: 100%;
    max-width: 1337px;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 40px;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* =============
   HEADER
   ============= */
.header {
    text-align: center;
    margin-bottom: 30px;
}

.header h1 {
    font-size: 32px;
    color: var(--primary);
    margin-bottom: 10px;
    font-weight: 700;
}

.subtitle {
    color: var(--gray);
    font-size: 16px;
}

/* =============
   ALERTS
   ============= */
.alert {
    padding: 20px;
    border-radius: var(--border-radius);
    margin-bottom: 25px;
    border-left: 4px solid;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.alert-error {
    background: #ffebee;
    color: var(--danger);
    border-left-color: var(--danger);
}

.alert-success {
    background: #e6fffa;
    color: var(--success);
    border-left-color: var(--success);
}

.alert strong {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
}

.alert ul {
    margin-left: 20px;
    margin-top: 10px;
}

.alert li {
    margin-bottom: 5px;
}

.import-stats {
    background: rgba(6, 214, 160, 0.1);
    padding: 15px;
    border-radius: 8px;
    margin-top: 15px;
}

.error-list {
    background: rgba(239, 71, 111, 0.1);
    padding: 10px;
    border-radius: 6px;
    margin-top: 10px;
    max-height: 200px;
    overflow-y: auto;
}

details summary {
    cursor: pointer;
    padding: 10px;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 6px;
    margin-top: 10px;
}

/* =============
   CARD
   ============= */
.card {
    background: #f8f9ff;
    border-radius: var(--border-radius);
    padding: 30px;
    margin: 25px 0;
    border: 1px solid #e0e0ff;
    box-shadow: 0 2px 8px rgba(67, 97, 238, 0.1);
}

.card-header h2 {
    color: var(--primary);
    font-size: 24px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--primary);
}

/* =============
   FORMAT TABLE
   ============= */
.format-table {
    width: 100%;
    margin-bottom: 25px;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.format-table th,
.format-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
}

.format-table th {
    background: var(--primary);
    color: white;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 14px;
}

.format-table tr:last-child td {
    border-bottom: none;
}

.format-table tr:hover {
    background: rgba(67, 97, 238, 0.05);
}

.format-table td:nth-child(4) {
    font-weight: 600;
}

.format-table td:nth-child(4):contains('Sim') {
    color: var(--success);
}

/* =============
   FORMAT NOTES
   ============= */
.format-notes {
    background: white;
    padding: 20px;
    border-radius: 8px;
    margin-top: 20px;
    border-left: 4px solid var(--warning);
}

.format-notes p {
    margin-bottom: 10px;
    font-weight: 600;
    color: var(--dark);
}

.format-notes ul {
    margin-left: 20px;
    margin-top: 10px;
}

.format-notes li {
    margin-bottom: 8px;
    color: var(--gray);
}

/* =============
   FILE UPLOAD
   ============= */
.file-upload-wrapper {
    margin-bottom: 25px;
}

.file-upload-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    background: white;
    border: 3px dashed #cbd5e1;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}

.file-upload-label:hover {
    border-color: var(--primary);
    background: rgba(67, 97, 238, 0.05);
}

.file-upload-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.file-upload-text {
    font-size: 18px;
    color: var(--gray);
    font-weight: 500;
}

.file-input {
    display: none;
}

.file-input:focus + .file-upload-label {
    outline: 2px solid var(--primary);
}

/* =============
   FORM
   ============= */
.import-form {
    text-align: center;
}

/* =============
   BUTTONS
   ============= */
.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    text-align: center;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.btn:active {
    transform: translateY(0);
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
}

.btn-secondary {
    background: white;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-secondary:hover {
    background: var(--primary);
    color: white;
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: white;
}

.btn-lg {
    padding: 16px 40px;
    font-size: 18px;
}

.btn-icon {
    font-size: 20px;
    margin-right: 8px;
}

/* =============
   ACTIONS
   ============= */
.actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 30px;
    flex-wrap: wrap;
}

/* =============
   FOOTER
   ============= */
.footer {
    text-align: center;
    margin-top: 30px;
    color: var(--gray);
    font-size: 14px;
}

/* =============
   UTILITIES
   ============= */
.text-center {
    text-align: center;
}

.mt-20 {
    margin-top: 20px;
}

.mb-20 {
    margin-bottom: 20px;
}