:root {
    --primary-blue: #003366;
    --secondary-blue: #0066cc;
    --accent-orange: #ff6600;
    --light-gray: #f5f5f5;
    --medium-gray: #e0e0e0;
    --dark-gray: #666666;
    --success-green: #28a745;
    --border-radius: 8px;
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--light-gray);
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.header {
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    color: white;
    padding: 20px;
    border-radius: var(--border-radius);
    margin-bottom: 30px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    text-align: center;
}

.bank-name {
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--accent-orange);
}

.controls {
    background: white;
    padding: 25px;
    border-radius: var(--border-radius);
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.controls h2 {
    color: var(--primary-blue);
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.filter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.filter-section {
    padding: 15px;
    background: var(--light-gray);
    border-radius: var(--border-radius);
    border-left: 4px solid var(--secondary-blue);
}

.filter-section h3 {
    color: var(--primary-blue);
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.checkbox-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--secondary-blue);
}

.checkbox-item label {
    cursor: pointer;
    font-size: 0.95rem;
}

.input-section {
    background: white;
    padding: 25px;
    border-radius: var(--border-radius);
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.input-section h2 {
    color: var(--primary-blue);
    margin-bottom: 20px;
}

.file-input-area {
    border: 3px dashed var(--medium-gray);
    border-radius: var(--border-radius);
    padding: 40px;
    text-align: center;
    margin-bottom: 20px;
    transition: all 0.3s ease;
    background: var(--light-gray);
}

.file-input-area.dragover {
    border-color: var(--secondary-blue);
    background: #e6f3ff;
}

.file-input {
    margin-bottom: 15px;
}

.file-input input[type="file"] {
    display: none;
}

.file-input label {
    display: inline-block;
    background: var(--secondary-blue);
    color: white;
    padding: 12px 24px;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: background 0.3s ease;
    font-weight: 500;
}

.file-input label:hover {
    background: var(--primary-blue);
}

.html-textarea {
    width: 100%;
    min-height: 200px;
    padding: 15px;
    border: 2px solid var(--medium-gray);
    border-radius: var(--border-radius);
    font-family: 'Courier New', monospace;
    font-size: 14px;
    resize: vertical;
    transition: border-color 0.3s ease;
}

.html-textarea:focus {
    outline: none;
    border-color: var(--secondary-blue);
}

.output-section {
    background: white;
    padding: 25px;
    border-radius: var(--border-radius);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.output-section h2 {
    color: var(--primary-blue);
    margin-bottom: 20px;
}

.output-controls {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    font-size: 14px;
}

.btn-primary {
    background: var(--secondary-blue);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-blue);
}

.btn-success {
    background: var(--success-green);
    color: white;
}

.btn-success:hover {
    background: #218838;
}

.output-textarea {
    width: 100%;
    min-height: 400px;
    padding: 15px;
    border: 2px solid var(--medium-gray);
    border-radius: var(--border-radius);
    font-family: 'Courier New', monospace;
    font-size: 14px;
    background: #f8f9fa;
    resize: vertical;
}

.status-message {
    padding: 10px 15px;
    border-radius: var(--border-radius);
    margin: 10px 0;
    font-weight: 500;
}

.status-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.status-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    .header h1 {
        font-size: 2rem;
    }
    
    .filter-grid {
        grid-template-columns: 1fr;
    }
    
    .output-controls {
        flex-direction: column;
    }
}