/* styles/base.css - Base Styles */

body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    background: #f0f0f0;
}

.container {
    display: flex;
    height: 100vh;
}

.controls {
    width: 300px;
    padding: 20px;
    background: white;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
    overflow-y: auto;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    box-sizing: border-box; /* FIX: Includes padding in height calculation */
    transition: left 0.3s ease;
    z-index: 1000;
    /* Additional scrolling improvements */
    -webkit-overflow-scrolling: touch; /* Smooth scrolling on mobile */
    scrollbar-width: thin; /* Firefox */
    scrollbar-color: #4CAF50 #f0f0f0; /* Firefox */
}

/* Custom scrollbar for webkit browsers */
.controls::-webkit-scrollbar {
    width: 8px;
}

.controls::-webkit-scrollbar-track {
    background: #f0f0f0;
    border-radius: 4px;
}

.controls::-webkit-scrollbar-thumb {
    background: #4CAF50;
    border-radius: 4px;
}

.controls::-webkit-scrollbar-thumb:hover {
    background: #45a049;
}

.control-group {
    margin-bottom: 20px;
}

.control-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #333;
}

.help-text {
    font-size: 12px;
    color: #666;
    margin-top: 5px;
}

.loading {
    text-align: center;
    padding: 20px;
    color: #666;
}

.file-input {
    margin: 10px 0;
}

.file-input input[type="file"] {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.stats {
    background: #f9f9f9;
    padding: 15px;
    border-radius: 5px;
    margin-top: 20px;
}

.stats h3 {
    margin: 0 0 10px 0;
    color: #333;
}

.source {
    margin-top: 1em;
    margin-bottom: 1em; /* FIX: Add margin bottom for better spacing */
    font-size: 0.9em;
    color: #666;
    padding-bottom: 20px; /* FIX: Extra padding at bottom for easier scrolling */
}

.warning {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeeba;
    border-radius: 4px;
    padding: 10px 12px;
    margin: 18px 0 12px 0;
    font-size: 0.97em;
    display: flex;
    align-items: center;
    gap: 8px;
}