:root {
    --glass-bg: rgba(255, 255, 255, 0.65);
    --glass-border: rgba(255, 255, 255, 0.5);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
    --primary-color: #007AFF;
    /* macOS Blue */
    --text-color: #1d1d1f;
    --secondary-text: #86868b;
    --success-color: #34C759;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

body {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #f0f0f0;
    /* Fallback */
    overflow-x: hidden;
}

/* Background gradient mesh */
.background-mesh {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: radial-gradient(circle at 10% 20%, rgb(255, 226, 235) 0%, rgb(255, 255, 235) 45.6%, rgb(226, 243, 255) 86.8%);
    filter: blur(40px);
}

.main-container {
    width: 90%;
    max-width: 800px;
    padding: 40px;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 24px;
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    display: flex;
    flex-direction: column;
    gap: 30px;
}

header {
    text-align: center;
}

header h1 {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

header p {
    color: var(--secondary-text);
    font-size: 16px;
}

.drop-zone {
    border: 2px dashed rgba(0, 122, 255, 0.3);
    border-radius: 16px;
    padding: 60px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.3);
}

.drop-zone:hover,
.drop-zone.drag-over {
    border-color: var(--primary-color);
    background: rgba(255, 255, 255, 0.6);
    transform: scale(1.01);
}

.drop-zone .icon {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.8;
}

.drop-zone h2 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-color);
}

.drop-zone p {
    color: var(--secondary-text);
}

/* File List Styles */
.file-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.file-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 12px;
    transition: all 0.2s ease;
}

.file-item:hover {
    background: rgba(255, 255, 255, 0.7);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.file-info {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 0;
    /* Handle overflow */
}

.file-icon {
    font-size: 24px;
}

.file-name {
    font-weight: 500;
    color: var(--text-color);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.file-status {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 140px;
    /* Ensure space for status/button */
    justify-content: flex-end;
}

.status-text {
    font-size: 14px;
    color: var(--secondary-text);
}

.status-text.processing {
    color: var(--primary-color);
}

.status-text.done {
    color: var(--success-color);
}

/* Download Button */
.download-btn {
    padding: 8px 16px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    opacity: 0;
    pointer-events: none;
    transform: translateX(10px);
}

.download-btn.visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(0);
}

.download-btn:hover {
    background: #0062cc;
    box-shadow: 0 2px 8px rgba(0, 122, 255, 0.3);
}

/* Progress bar inside file item if needed, 
   but simplistic text status is cleaner for glassmorphism */

/* Options Bar */
.options-bar {
    display: flex;
    justify-content: flex-start;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.4);
}

.checkbox-option {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    user-select: none;
}

.checkbox-option input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 20px;
    height: 20px;
    border-radius: 6px;
    border: 2px solid rgba(0, 122, 255, 0.4);
    background: rgba(255, 255, 255, 0.5);
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.checkbox-option input[type="checkbox"]:checked+.checkmark {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.checkbox-option input[type="checkbox"]:checked+.checkmark::after {
    content: '✓';
    color: white;
    font-size: 12px;
    font-weight: 700;
}

.option-text {
    font-size: 14px;
    color: var(--text-color);
    font-weight: 500;
}