* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #b8b5ff 0%, #a0e7e5 100%);
    min-height: 100vh;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.container {
    background: white;
    border-radius: 20px;
    padding: 40px;
    max-width: 700px;
    width: 100%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

h1 {
    color: #000000;
    text-align: center;
    margin-bottom: 10px;
    font-size: 2em;
}

.subtitle {
    color: #3d3d3d;
    text-align: center;
    margin-bottom: 30px;
    font-size: 0.95em;
}

.upload-section {
    background: #ffc8dd;
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 25px;
    border: 3px dashed #ff69b4;
    text-align: center;
    transition: all 0.3s;
}

.upload-section:hover {
    border-color: #3d0066;
    background: #ffafcc;
}

.upload-label {
    display: block;
    cursor: pointer;
    color: #3d0066;
    font-weight: bold;
    font-size: 1.1em;
    margin-bottom: 15px;
}

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

.file-info {
    background: white;
    padding: 15px;
    border-radius: 10px;
    margin-top: 15px;
    color: #3d0066;
    font-size: 0.9em;
}

.format-selection {
    margin-bottom: 25px;
}

.format-row {
    display: flex;
    align-items: center;
    gap: 20px;
    justify-content: space-between;
}

.format-left {
    flex: 1;
}

.format-left label {
    display: block;
    color: #000000;
    font-weight: bold;
    margin-bottom: 10px;
    font-size: 1em;
}

.format-select {
    width: 100%;
    padding: 15px;
    border: 2px solid #3d0066;
    border-radius: 12px;
    font-size: 1em;
    background: white;
    color: #3d0066;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
}

.format-select:hover {
    border-color: #ff69b4;
    background: #ffc8dd;
}

.format-select:focus {
    outline: none;
    border-color: #ff69b4;
    box-shadow: 0 0 0 3px rgba(255, 105, 180, 0.2);
}

.arrow {
    font-size: 2em;
    color: #3d0066;
    flex-shrink: 0;
}

.format-right {
    flex: 1;
}

.format-display {
    background: linear-gradient(135deg, #3d0066 0%, #5d1a86 100%);
    color: white;
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    font-size: 1.2em;
    font-weight: bold;
    min-height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(61, 0, 102, 0.3);
}

.format-display.empty {
    background: #e0e0e0;
    color: #999;
    font-size: 0.9em;
}

.convert-btn {
    background: linear-gradient(135deg, #ff6b35 0%, #ffb347 100%);
    color: white;
    border: none;
    padding: 18px 40px;
    border-radius: 12px;
    cursor: pointer;
    font-size: 1.2em;
    font-weight: bold;
    width: 100%;
    transition: all 0.3s;
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.3);
}

.convert-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.4);
}

.convert-btn:disabled {
    background: #cccccc;
    cursor: not-allowed;
    opacity: 0.7;
    transform: none;
    box-shadow: none;
}

.status {
    margin-top: 20px;
    padding: 15px;
    border-radius: 10px;
    text-align: center;
    font-weight: bold;
    display: none;
}

.status.success {
    background: #a0e7e5;
    color: #004d40;
    display: block;
}

.status.error {
    background: #ff6b35;
    color: white;
    display: block;
}

.status.processing {
    background: #d4f1f4;
    color: #3d0066;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.icon {
    font-size: 3em;
    margin-bottom: 15px;
}

/* Progress bar removed - using spinner instead */

.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(61, 0, 102, 0.3);
    border-radius: 50%;
    border-top-color: #3d0066;
    animation: spin 1s ease-in-out infinite;
    margin-right: 10px;
    vertical-align: middle;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}


@media (max-width: 600px) {
    .format-row {
        flex-direction: column;
    }
    
    .arrow {
        transform: rotate(90deg);
    }
}