* {
    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;
    padding: 20px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

header {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: white;
    text-align: center;
    padding: 30px;
}

header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

header p {
    font-size: 1.1rem;
    opacity: 0.9;
}

.upload-section {
    padding: 40px;
    text-align: center;
    border-bottom: 1px solid #eee;
}

#fileInput {
    display: none;
}

.upload-btn {
    display: inline-block;
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    color: white;
    padding: 15px 30px;
    border-radius: 50px;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
}

.upload-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 107, 107, 0.4);
}

.controls {
    padding: 30px;
    background: #f8f9fa;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    align-items: end;
}

.control-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.control-group label {
    font-weight: 600;
    color: #2c3e50;
    font-size: 0.9rem;
}

.control-group input,
.control-group select {
    padding: 12px;
    border: 2px solid #e1e8ed;
    border-radius: 10px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.control-group input:focus,
.control-group select:focus {
    outline: none;
    border-color: #4facfe;
    box-shadow: 0 0 0 3px rgba(79, 172, 254, 0.1);
}

.filter-btn, .clear-btn, .export-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 10px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.filter-btn {
    background: linear-gradient(135deg, #4facfe, #00f2fe);
    color: white;
}

.clear-btn {
    background: linear-gradient(135deg, #fd79a8, #e84393);
    color: white;
}

.export-btn {
    background: linear-gradient(135deg, #00b894, #00cec9);
    color: white;
}

.filter-btn:hover, .clear-btn:hover, .export-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.stats {
    padding: 20px 30px;
    background: #2c3e50;
    color: white;
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 20px;
}

.stat-item {
    text-align: center;
    padding: 15px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    flex: 1;
    min-width: 120px;
}

.stat-label {
    display: block;
    font-size: 0.9rem;
    opacity: 0.8;
    margin-bottom: 5px;
}

.stat-item span:last-child {
    font-size: 1.5rem;
    font-weight: bold;
}

.results {
    padding: 30px;
}

.results h3 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.log-container {
    max-height: 600px;
    overflow-y: auto;
    border: 1px solid #ddd;
    border-radius: 10px;
    background: #f8f9fa;
}

.log-entry {
    padding: 15px;
    border-bottom: 1px solid #eee;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    line-height: 1.4;
    transition: background-color 0.2s ease;
}

.log-entry:hover {
    background-color: #e9ecef;
}

.log-entry:last-child {
    border-bottom: none;
}

.log-error {
    border-left: 4px solid #e74c3c;
    background-color: #fdf2f2;
}

.log-warn {
    border-left: 4px solid #f39c12;
    background-color: #fef9e7;
}

.log-info {
    border-left: 4px solid #3498db;
    background-color: #f0f8ff;
}

.log-debug {
    border-left: 4px solid #95a5a6;
    background-color: #f8f9fa;
}

.highlight {
    background-color: #ffeb3b;
    padding: 2px 4px;
    border-radius: 3px;
    font-weight: bold;
}

@media (max-width: 768px) {
    .container {
        margin: 10px;
        border-radius: 15px;
    }
    
    header h1 {
        font-size: 2rem;
    }
    
    .upload-section {
        padding: 20px;
    }
    
    .controls {
        grid-template-columns: 1fr;
        padding: 20px;
    }
    
    .stats {
        flex-direction: column;
        align-items: center;
    }
    
    .stat-item {
        min-width: 200px;
    }
}

/* 스크롤바 스타일링 */
.log-container::-webkit-scrollbar {
    width: 8px;
}

.log-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.log-container::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 10px;
}

.log-container::-webkit-scrollbar-thumb:hover {
    background: #555;
}