/* Algemene stijlen */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    color: #333;
}

.container {
    width: 100%;
    max-width: 1200px;
    background-color: white;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

/* Header */
header {
    background: linear-gradient(90deg, #4b6cb7 0%, #182848 100%);
    color: white;
    padding: 30px;
    text-align: center;
}

header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

header .subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Hoofdinhoud */
main {
    padding: 30px;
}

.app-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* Kaart stijlen */
.card {
    background-color: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #eaeaea;
}

.card h2 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 1.8rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Upload sectie */
.file-input-container {
    margin-bottom: 25px;
}

.file-label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 25px;
    background-color: #f0f4f8;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px dashed #b8c4d4;
    margin-bottom: 15px;
}

.file-label:hover {
    background-color: #e1e8f0;
    border-color: #4b6cb7;
}

.file-label i {
    font-size: 1.5rem;
    color: #4b6cb7;
}

.file-label span {
    font-weight: 600;
    color: #2c3e50;
}

.file-label input[type="file"] {
    display: none;
}

.file-info {
    padding: 10px 15px;
    background-color: #f8f9fa;
    border-radius: 8px;
    font-size: 0.9rem;
    color: #6c757d;
    border-left: 4px solid #4b6cb7;
}

/* Formaten weergave */
.formats {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.format {
    flex: 1;
    min-width: 300px;
}

.format h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: #4b6cb7;
}

.format-example {
    background-color: #2c3e50;
    color: #ecf0f1;
    padding: 15px;
    border-radius: 8px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.9rem;
    overflow-x: auto;
    white-space: nowrap;
}

/* Knoppen */
.btn {
    padding: 15px 30px;
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-upload {
    background: linear-gradient(90deg, #4b6cb7 0%, #182848 100%);
    color: white;
    width: 100%;
}

.btn-upload:hover {
    transform: translateY(-3px);
    box-shadow: 0 7px 15px rgba(75, 108, 183, 0.3);
}

.btn-download {
    background: linear-gradient(90deg, #2ecc71 0%, #27ae60 100%);
    color: white;
}

.btn-download:hover {
    background: linear-gradient(90deg, #27ae60 0%, #219653 100%);
    transform: translateY(-3px);
    box-shadow: 0 7px 15px rgba(46, 204, 113, 0.3);
}

.btn-secondary {
    background-color: #e74c3c;
    color: white;
}

.btn-secondary:hover {
    background-color: #c0392b;
    transform: translateY(-3px);
    box-shadow: 0 7px 15px rgba(231, 76, 60, 0.3);
}

.actions {
    display: flex;
    gap: 15px;
    margin-top: 20px;
    flex-wrap: wrap;
}

/* Preview sectie */
.preview-container {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.preview-column {
    flex: 1;
    min-width: 300px;
}

.preview-column h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: #4b6cb7;
}

.preview-content {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    height: 250px;
    overflow-y: auto;
    border: 1px solid #eaeaea;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.9rem;
    line-height: 1.6;
    white-space: pre-wrap;
}

/* Download klaar melding */
.download-ready {
    display: flex;
    align-items: center;
    gap: 15px;
    background-color: #d4edda;
    color: #155724;
    padding: 20px;
    border-radius: 10px;
    margin-top: 20px;
    border-left: 5px solid #28a745;
}

.download-ready i {
    font-size: 2rem;
}

.download-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background-color: #28a745;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    margin-top: 10px;
    transition: all 0.3s ease;
}

.download-link:hover {
    background-color: #218838;
    transform: translateY(-2px);
    box-shadow: 0 5px 10px rgba(40, 167, 69, 0.3);
}

/* Instructies */
.instructions ol {
    margin-left: 20px;
}

.instructions li {
    margin-bottom: 10px;
    line-height: 1.6;
}

.instructions ul {
    margin-left: 20px;
    margin-top: 5px;
    margin-bottom: 10px;
}

.instructions code {
    background-color: #f1f3f4;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.9rem;
}

/* Meldingen */
.alert {
    padding: 15px;
    border-radius: 8px;
    margin-top: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border-left: 5px solid #28a745;
}

.alert-error {
    background-color: #f8d7da;
    color: #721c24;
    border-left: 5px solid #dc3545;
}

/* Footer */
footer {
    background-color: #2c3e50;
    color: #ecf0f1;
    text-align: center;
    padding: 20px;
    font-size: 0.9rem;
}

/* Responsive design */
@media (max-width: 768px) {
    .container {
        border-radius: 15px;
    }
    
    header h1 {
        font-size: 2rem;
        flex-direction: column;
        gap: 10px;
    }
    
    .card h2 {
        font-size: 1.5rem;
    }
    
    .btn {
        width: 100%;
    }
    
    .actions {
        flex-direction: column;
    }
    
    .preview-container, .formats {
        flex-direction: column;
    }
}