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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: #f7f5f2;
    color: #1e1919;
    min-height: 100vh;
}

#top_bar {
    background: #ffffff;
    border-bottom: 1px solid #e5e1dc;
    padding: 0 24px;
    height: 56px;
    display: flex;
    align-items: center;
}

#top_bar_inner {
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: 800px;
    width: 100%;
    margin: 0 auto;
}

#logo_text {
    font-size: 17px;
    font-weight: 700;
    color: #1e1919;
    letter-spacing: -0.3px;
}

#container {
    max-width: 800px;
    width: 100%;
    margin: 0 auto;
    padding: 40px 24px;
}

#drop_zone {
    background: #ffffff;
    border: 2px dashed #d1cdc7;
    border-radius: 16px;
    padding: 56px 24px 40px;
    text-align: center;
    transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
    cursor: pointer;
}

#drop_zone:hover {
    border-color: #0061fe;
    background: #f0f6ff;
}

#drop_zone.drag_over {
    border-color: #0061fe;
    background: #e8f0fe;
    box-shadow: 0 0 0 4px rgba(0, 97, 254, 0.1);
}

#upload_icon {
    margin-bottom: 20px;
    opacity: 0.85;
}

#drop_zone.drag_over #upload_icon {
    opacity: 1;
    transform: translateY(-2px);
    transition: transform 0.2s;
}

#drop_title {
    font-size: 18px;
    font-weight: 600;
    color: #1e1919;
    margin-bottom: 4px;
}

#drop_sub {
    font-size: 14px;
    color: #736c64;
    margin-bottom: 16px;
}

#browse_btn {
    background: #0061fe;
    color: #ffffff;
    border: none;
    padding: 10px 28px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s;
}

#browse_btn:hover {
    background: #0050d4;
}

#browse_btn:active {
    background: #003faa;
}

#size_options {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

.size_option {
    font-size: 13px;
    color: #736c64;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
}

.size_option input[type="radio"] {
    accent-color: #0061fe;
    cursor: pointer;
}

#drop_hint {
    font-size: 12px;
    color: #9b9490;
    margin-top: 16px;
}

#job_list {
    margin-top: 24px;
}

.job_card {
    background: #ffffff;
    border: 1px solid #e5e1dc;
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 10px;
    transition: box-shadow 0.15s;
}

.job_card:hover {
    box-shadow: 0 2px 8px rgba(30, 25, 25, 0.06);
}

.job_header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.job_name {
    font-size: 14px;
    font-weight: 600;
    color: #1e1919;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 70%;
}

.job_status {
    font-size: 11px;
    padding: 3px 10px;
    border-radius: 10px;
    font-weight: 600;
    letter-spacing: 0.2px;
}

.status_uploading {
    background: #e3f2fd;
    color: #1565c0;
}

.status_pending {
    background: #f0eeeb;
    color: #736c64;
}

.status_probing {
    background: #e8f0fe;
    color: #0061fe;
}

.status_resizing {
    background: #fff3e0;
    color: #e65100;
}

.status_completed {
    background: #e8f5e9;
    color: #2e7d32;
}

.status_skipped {
    background: #f3e5f5;
    color: #7b1fa2;
}

.status_error {
    background: #fbe9e7;
    color: #c62828;
}

.status_cancelled {
    background: #f0eeeb;
    color: #736c64;
}

.progress_bar_bg {
    background: #f0eeeb;
    border-radius: 4px;
    height: 6px;
    overflow: hidden;
    margin-bottom: 8px;
}

.progress_bar_fill {
    background: #0061fe;
    height: 100%;
    width: 0%;
    transition: width 0.3s;
    border-radius: 4px;
}

.status_completed + .progress_bar_bg .progress_bar_fill,
.job_card.is_completed .progress_bar_fill {
    background: #2e7d32;
}

.job_info {
    font-size: 12px;
    color: #9b9490;
}

.job_info a {
    color: #0061fe;
    text-decoration: none;
    font-weight: 600;
}

.job_info a:hover {
    text-decoration: underline;
}

.job_header_right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.cancel_btn {
    background: none;
    border: 1px solid #d1cdc7;
    color: #736c64;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.cancel_btn:hover {
    background: #fbe9e7;
    color: #c62828;
    border-color: #c62828;
}
