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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: #fff;
    height: 100vh;
    width: 100vw;
    overflow: hidden;
}

.app-container {
    width: 100vw;
    height: 100vh;
    display: flex;
    flex-direction: column;
}

.header {
    background: rgba(255,255,255,0.05);
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding: 20px 40px;
    flex-shrink: 0;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 16px;
}

.logo-icon {
    font-size: 42px;
}

.logo h1 {
    font-size: 28px;
    font-weight: 700;
    background: linear-gradient(90deg, #00d4ff, #7b2cbf);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.logo p {
    font-size: 14px;
    color: #888;
    margin-top: -4px;
}

.status-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 212, 255, 0.1);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
}

.status-dot {
    width: 8px;
    height: 8px;
    background: #00d4ff;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 40px;
    overflow: hidden;
}

.drop-zone {
    flex: 1;
    border: 3px dashed rgba(255,255,255,0.2);
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: rgba(255,255,255,0.02);
}

.drop-zone.dragover {
    border-color: #00d4ff;
    background: rgba(0, 212, 255, 0.05);
    transform: scale(1.01);
}

.drop-zone-content {
    text-align: center;
}

.upload-icon {
    color: #00d4ff;
    margin-bottom: 24px;
}

.drop-zone h2 {
    font-size: 28px;
    margin-bottom: 8px;
}

.drop-zone p {
    color: #888;
    margin-bottom: 24px;
}

.browse-btn {
    background: linear-gradient(90deg, #00d4ff, #7b2cbf);
    color: white;
    border: none;
    padding: 14px 36px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 12px;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.browse-btn:hover {
    transform: translateY(-2px);
}

.supported-formats {
    margin-top: 20px;
    font-size: 13px;
    color: #666;
}

.conversion-area {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.conversion-area.hidden {
    display: none;
}

.conversion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.conversion-header h3 {
    font-size: 22px;
}

.queue-actions {
    display: flex;
    gap: 12px;
}

.btn {
    padding: 12px 24px;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    font-size: 14px;
    transition: all 0.2s ease;
}

.btn-primary {
    background: #00d4ff;
    color: #1a1a2e;
}

.btn-primary:hover {
    background: #00b8e6;
}

.btn-secondary {
    background: rgba(255,255,255,0.1);
    color: white;
}

.btn-secondary:hover {
    background: rgba(255,255,255,0.2);
}

.files-list {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-right: 8px;
}

.file-item {
    background: rgba(255,255,255,0.05);
    border-radius: 16px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 20px;
    border: 1px solid rgba(255,255,255,0.08);
}

.file-preview {
    width: 80px;
    height: 80px;
    border-radius: 12px;
    overflow: hidden;
    background: #222;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.file-preview img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.file-info {
    flex: 1;
    min-width: 0;
}

.file-name {
    font-weight: 600;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.file-meta {
    font-size: 13px;
    color: #888;
}

.file-status {
    flex-shrink: 0;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
}

.file-status.pending { background: rgba(255,193,7,0.2); color: #ffc107; }
.file-status.converting { background: rgba(0,212,255,0.2); color: #00d4ff; }
.file-status.done { background: rgba(0,255,136,0.2); color: #00ff88; }
.file-status.error { background: rgba(255,82,82,0.2); color: #ff5252; }

.file-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.file-actions button {
    padding: 10px 20px;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    font-size: 13px;
}

.download-btn {
    background: #00ff88;
    color: #1a1a2e;
}

.download-btn:disabled {
    background: #444;
    color: #888;
    cursor: not-allowed;
}

.remove-btn {
    background: rgba(255,255,255,0.1);
    color: #fff;
}

.footer {
    padding: 16px 40px;
    background: rgba(0,0,0,0.2);
    flex-shrink: 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #666;
}