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

body {
    font-family: 'Ubuntu', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.app-header {
    text-align: center;
    margin-bottom: 40px;
    color: white;
}

.app-header h1 {
    font-size: 3em;
    margin-bottom: 15px;
    text-shadow: 0 3px 6px rgba(0,0,0,0.3);
    font-weight: 700;
}

.app-header p {
    font-size: 1.1em;
    opacity: 0.95;
    margin: 5px 0;
}

.app-main {
    flex: 1;
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 25px 50px rgba(0,0,0,0.15);
    backdrop-filter: blur(10px);
}

.folder-btn {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    background: linear-gradient(45deg, #4CAF50, #45a049);
    color: white;
    padding: 20px 40px;
    border-radius: 50px;
    cursor: pointer;
    font-size: 1.2em;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(76, 175, 80, 0.3);
}

.folder-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(76, 175, 80, 0.4);
}

#folderInput {
    display: none;
}

.selected-folder {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border: 2px solid #dee2e6;
    border-radius: 15px;
    padding: 30px;
    margin: 30px 0;
}

.start-btn {
    background: linear-gradient(45deg, #FF6B6B, #ff5252);
    color: white;
    border: none;
    padding: 15px 35px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 1.1em;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-top: 15px;
}

.progress-bar {
    background: #e9ecef;
    height: 40px;
    border-radius: 20px;
    overflow: hidden;
    margin: 20px 0;
    position: relative;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(45deg, #4CAF50, #45a049);
    width: 0%;
    transition: width 0.5s ease;
}

.progress-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-weight: 700;
    font-size: 1.1em;
    color: #333;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.stat-card {
    background: white;
    padding: 20px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.stat-value {
    font-size: 1.8em;
    font-weight: 700;
    color: #495057;
}

.hidden {
    display: none;
}

.current-file {
    background: #e3f2fd;
    padding: 15px;
    border-radius: 10px;
    margin: 20px 0;
    border-left: 4px solid #2196F3;
}

.success-card {
    background: linear-gradient(135deg, #d4edda, #c3e6cb);
    border: 2px solid #c3e6cb;
    border-radius: 20px;
    padding: 50px;
    text-align: center;
}

.completion-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 20px;
}

.restart-btn, .view-files-btn, .health-btn {
    background: linear-gradient(45deg, #28a745, #20c997);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.view-files-btn {
    background: linear-gradient(45deg, #007bff, #0056b3);
}

.health-btn {
    background: linear-gradient(45deg, #6f42c1, #5a32a3);
}

.app-footer {
    text-align: center;
    margin-top: 30px;
    color: rgba(255,255,255,0.8);
    font-style: italic;
}

.speed-info {
    background: #f8f9fa;
    padding: 10px;
    border-radius: 8px;
    margin: 15px 0;
    text-align: center;
    font-weight: 600;
}
