* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Courier New', 'Monaco', 'Menlo', monospace;
    background: #f8f9fa;
    min-height: 100vh;
    color: #2c3e50;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

header {
    text-align: center;
    margin-bottom: 40px;
    color: #2c3e50;
    border-bottom: 2px solid #dee2e6;
    padding-bottom: 20px;
}

header h1 {
    font-size: 2.5rem;
    font-weight: 400;
    margin-bottom: 10px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

header p {
    font-size: 1rem;
    color: #6c757d;
    font-weight: 300;
}

main {
    background: white;
    border: 1px solid #dee2e6;
    padding: 40px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.upload-section,
.time-range-section,
.results-section {
    margin-bottom: 40px;
}

h2 {
    font-size: 1.4rem;
    margin-bottom: 20px;
    color: #2c3e50;
    border-bottom: 1px solid #2c3e50;
    padding-bottom: 8px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.file-upload-area {
    border: 2px dashed #6c757d;
    padding: 40px 20px;
    text-align: center;
    transition: all 0.2s ease;
    cursor: pointer;
    background: #f8f9fa;
}

.file-upload-area:hover,
.file-upload-area.dragover {
    border-color: #2c3e50;
    background: #e9ecef;
}

.upload-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.upload-icon {
    width: 40px;
    height: 40px;
    color: #6c757d;
    transition: color 0.2s ease;
}

.file-upload-area:hover .upload-icon {
    color: #2c3e50;
}

.upload-content p {
    font-size: 1rem;
    color: #6c757d;
    font-weight: 400;
}

.file-list {
    margin-top: 20px;
}

.file-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    margin-bottom: 8px;
    border-left: 3px solid #2c3e50;
}

.file-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.file-icon {
    width: 20px;
    height: 20px;
    color: #2c3e50;
}

.file-details h4 {
    font-size: 0.9rem;
    color: #2c3e50;
    margin-bottom: 3px;
    font-weight: 400;
}

.file-details p {
    font-size: 0.8rem;
    color: #6c757d;
}

.remove-file {
    background: #dc3545;
    color: white;
    border: none;
    padding: 6px 10px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: background 0.2s ease;
    font-family: inherit;
}

.remove-file:hover {
    background: #c82333;
}

.time-inputs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.input-group label {
    font-weight: 400;
    color: #2c3e50;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.input-group input {
    padding: 10px 12px;
    border: 1px solid #dee2e6;
    font-size: 0.9rem;
    transition: border-color 0.2s ease;
    background: white;
    font-family: inherit;
}

.input-group input:focus {
    outline: none;
    border-color: #2c3e50;
}

.actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin: 40px 0;
}

.btn {
    padding: 12px 24px;
    border: 1px solid #2c3e50;
    font-size: 0.9rem;
    font-weight: 400;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: inherit;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-primary {
    background: #2c3e50;
    color: white;
}

.btn-primary:hover:not(:disabled) {
    background: #34495e;
}

.btn-secondary {
    background: white;
    color: #2c3e50;
}

.btn-secondary:hover {
    background: #f8f9fa;
}

.btn-success {
    background: #28a745;
    color: white;
    border-color: #28a745;
}

.btn-success:hover {
    background: #218838;
}

.results-info {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    padding: 16px;
    margin-bottom: 16px;
}

.results-info h3 {
    color: #2c3e50;
    margin-bottom: 8px;
    font-weight: 400;
    font-size: 1rem;
}

.results-info p {
    color: #6c757d;
    margin-bottom: 4px;
    font-size: 0.9rem;
}

.results-content {
    background: #2c3e50;
    color: #f8f9fa;
    border: 1px solid #dee2e6;
    padding: 16px;
    max-height: 400px;
    overflow-y: auto;
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    line-height: 1.4;
    white-space: pre-wrap;
    margin-bottom: 16px;
}

.log-separator {
    background: #6c757d;
    color: white;
    padding: 8px;
    margin: 8px 0;
    font-weight: 400;
    text-align: center;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.processing {
    text-align: center;
    padding: 32px;
    color: #6c757d;
}

.spinner {
    display: inline-block;
    width: 32px;
    height: 32px;
    border: 2px solid #dee2e6;
    border-top: 2px solid #2c3e50;
    animation: spin 1s linear infinite;
    margin-bottom: 16px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    main {
        padding: 20px;
    }
    
    header h1 {
        font-size: 2rem;
    }
    
    .time-inputs {
        grid-template-columns: 1fr;
    }
    
    .actions {
        flex-direction: column;
    }
    
    .file-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}

