:root {
    --bg-color: #0d1117;
    --glass-bg: rgba(22, 27, 34, 0.7);
    --glass-border: rgba(255, 255, 255, 0.08);
    --primary-color: #58a6ff;
    --primary-hover: #3182ce;
    --text-main: #c9d1d9;
    --text-muted: #8b949e;
    --success: #2ea043;
    --error: #f85149;
    --drive-color: #34a853;
}

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

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #0d1117 0%, #161b22 100%);
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.glass-container {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 40px;
    width: 100%;
    max-width: 600px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
    transition: all 0.3s ease;
}

header {
    text-align: center;
    margin-bottom: 30px;
}

header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.highlight {
    color: var(--primary-color);
    background: linear-gradient(90deg, #58a6ff, #a371f7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

header p {
    color: var(--text-muted);
    font-size: 1rem;
}

section {
    display: none;
    animation: fadeIn 0.5s ease;
}

section.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.file-drop-area {
    border: 2px dashed var(--glass-border);
    border-radius: 12px;
    padding: 40px 20px;
    text-align: center;
    cursor: pointer;
    background: rgba(255,255,255,0.02);
    transition: all 0.3s ease;
    position: relative;
    margin-bottom: 25px;
}

.file-drop-area:hover, .file-drop-area.dragover {
    border-color: var(--primary-color);
    background: rgba(88, 166, 255, 0.05);
}

.file-msg {
    display: block;
    color: var(--text-muted);
    font-size: 1.1rem;
    pointer-events: none;
}

.file-drop-area input {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 100%;
    cursor: pointer;
    opacity: 0;
}

.options-group {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
}

.option {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.option label {
    font-size: 0.9rem;
    margin-bottom: 8px;
    color: var(--text-muted);
}

.option select {
    background: rgba(0,0,0,0.2);
    border: 1px solid var(--glass-border);
    color: var(--text-main);
    padding: 10px;
    border-radius: 8px;
    font-family: inherit;
    outline: none;
    cursor: pointer;
}

.option select:focus {
    border-color: var(--primary-color);
}

.primary-btn {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary-color), #3b82f6);
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 14px rgba(88, 166, 255, 0.3);
}

.primary-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(88, 166, 255, 0.4);
}

.primary-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* Progress Area */
#progress-section h2 {
    text-align: center;
    margin-bottom: 20px;
}

.progress-container {
    width: 100%;
    height: 8px;
    background: rgba(255,255,255,0.1);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 15px;
}

.progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--primary-color), #a371f7);
    transition: width 0.4s ease;
}

.status-text {
    text-align: center;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.log-container {
    background: rgba(0,0,0,0.3);
    border-radius: 8px;
    padding: 15px;
    height: 150px;
    overflow-y: auto;
    font-family: monospace;
    font-size: 0.85rem;
    color: var(--text-muted);
    border: 1px solid var(--glass-border);
}

.log-entry {
    margin-bottom: 5px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    padding-bottom: 5px;
}

.log-entry.error { color: var(--error); }
.log-entry.completed { color: var(--success); }

/* Result Area */
#result-section { text-align: center; }

#result-section h2 { margin-bottom: 10px; color: var(--success); }
#result-section p { margin-bottom: 30px; color: var(--text-muted); }

.actions {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 30px;
}

.action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px;
    border-radius: 12px;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--glass-border);
    color: var(--text-main);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s;
    font-size: 1rem;
    cursor: pointer;
}

.action-btn:hover {
    background: rgba(255,255,255,0.1);
    border-color: var(--primary-color);
}

.action-btn .icon { margin-right: 10px; font-size: 1.2rem; }

.drive-btn {
    border-color: var(--drive-color);
    background: rgba(52, 168, 83, 0.1);
}

.drive-btn:hover {
    background: rgba(52, 168, 83, 0.2);
}

.secondary-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    text-decoration: underline;
    font-size: 0.9rem;
}

.secondary-btn:hover { color: var(--text-main); }

.error-msg {
    color: var(--error);
    text-align: center;
    margin-top: 15px;
    font-size: 0.9rem;
}
