body {
    font-family:
        -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Helvetica Neue',
        Arial, sans-serif;
    background-color: #0d0d0d;
    margin: 0;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    color: #ffffff;
}

.container {
    background-color: #1c1c1e;
    border-radius: 18px;
    padding: 24px;
    max-width: 500px;
    width: 100%;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    border: 1px solid #2c2c2e;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

h1 {
    font-size: 24px;
    font-weight: 600;
    color: #ffffff;
    margin: 0 0 8px;
    text-align: center;
}

.drop-zone {
    border: 2px dashed #48484a;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    background-color: #2c2c2e;
    color: #ffffff;
    font-size: 16px;
    transition:
        border-color 0.2s,
        background-color 0.2s;
    cursor: pointer;
}

.drop-zone.dragover {
    border-color: #007aff;
    background-color: #1a2a3a;
}

.drop-zone:hover {
    border-color: #007aff;
    background-color: #363638;
}

select {
    padding: 12px;
    font-size: 16px;
    border: 1px solid #48484a;
    border-radius: 10px;
    background-color: #2c2c2e;
    width: 100%;
    box-sizing: border-box;
    appearance: none;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" viewBox="0 0 12 12"><path fill="%23FFFFFF" d="M6 9L2 5h8L6 9z"/></svg>');
    background-repeat: no-repeat;
    background-position: right 12px center;
    color: #ffffff;
}

select:focus {
    outline: none;
    border-color: #007aff;
    box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.2);
}

select option {
    background-color: #2c2c2e;
    color: #ffffff;
}

button {
    background: linear-gradient(135deg, #007aff 0%, #0051c7 100%);
    color: #ffffff;
    font-size: 16px;
    font-weight: 500;
    padding: 12px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(0, 122, 255, 0.3);
}

button:hover {
    background: linear-gradient(135deg, #0051c7 0%, #003087 100%);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(0, 122, 255, 0.4);
}

button:active {
    background: linear-gradient(135deg, #003087 0%, #001f5c 100%);
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(0, 122, 255, 0.2);
}

button:disabled {
    background: #48484a;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

#status {
    color: #e5e5e7;
    font-size: 14px;
    text-align: center;
    margin: 8px 0;
    min-height: 20px;
}

#timer {
    color: #32d74b;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    margin: 4px 0;
    min-height: 20px;
    text-shadow: 0 0 8px rgba(50, 215, 75, 0.3);
}

progress {
    width: 100%;
    height: 8px;
    border-radius: 4px;
    background-color: #48484a;
    overflow: hidden;
    border: none;
}

progress::-webkit-progress-bar {
    background-color: #48484a;
    border-radius: 4px;
}

progress::-webkit-progress-value {
    background: linear-gradient(90deg, #007aff 0%, #32d74b 100%);
    border-radius: 4px;
    transition: width 0.3s ease;
    box-shadow: 0 0 8px rgba(0, 122, 255, 0.3);
}

progress::-moz-progress-bar {
    background: linear-gradient(90deg, #007aff 0%, #32d74b 100%);
    border-radius: 4px;
}

input[type='file'] {
    display: none;
}

.browse-button {
    color: #007aff;
    font-size: 16px;
    cursor: pointer;
    text-align: center;
    margin-top: 8px;
    font-weight: 500;
}

.browse-button:hover {
    text-decoration: underline;
    color: #32d74b;
}

/* Scrollbar styling for dark mode */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #1c1c1e;
}

::-webkit-scrollbar-thumb {
    background: #48484a;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #5e5e60;
}

/* Responsive design */
@media (max-width: 600px) {
    body {
        padding: 10px;
    }

    .container {
        padding: 20px;
        max-width: 100%;
    }

    h1 {
        font-size: 20px;
    }

    .drop-zone {
        padding: 16px;
        font-size: 14px;
    }

    button,
    select {
        padding: 14px;
        font-size: 16px;
    }
}

/* Glow effects for interactive elements */
.drop-zone:hover,
select:focus,
button:hover {
    animation: subtle-glow 2s ease-in-out infinite alternate;
}

@keyframes subtle-glow {
    from {
        box-shadow: 0 0 5px rgba(0, 122, 255, 0.2);
    }
    to {
        box-shadow: 0 0 15px rgba(0, 122, 255, 0.4);
    }
}
