    :root {
        --primary-color: #4361ee;
        --accent-color: #4cc9f0;
        --dark-color: #1a1a2e;
        --light-color: #f8f9fa;
        --success-color: #2ecc71;
        --warning-color: #f39c12;
        --danger-color: #e74c3c;
    }
    
    .container {
        max-width: 1200px;
        margin: 0 auto;
        padding: 30px;
        border-radius: 12px;
        background: white;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
        border: 1px solid rgba(0, 0, 0, 0.05);
    }
    
    .upload-area {
        border: 2px dashed #d1d5db;
        border-radius: 10px;
        padding: 40px 20px;
        text-align: center;
        background: #f8fafc;
        transition: all 0.3s ease;
        margin-bottom: 30px;
        cursor: pointer;
        position: relative;
    }
    
    .upload-area:hover {
        border-color: var(--primary-color);
        background: rgba(67, 97, 238, 0.03);
    }
    
    .upload-area i {
        font-size: 48px;
        color: var(--primary-color);
        margin-bottom: 15px;
    }
    
    .upload-area h4 {
        color: var(--dark-color);
        margin-bottom: 10px;
    }
    
    .upload-area p {
        color: #6b7280;
        margin-bottom: 0;
    }
    
    .controls-card {
        background: white;
        border-radius: 10px;
        padding: 25px;
        margin-bottom: 30px;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
        border: 1px solid rgba(0, 0, 0, 0.05);
    }
    
    .controls-title {
        font-weight: 600;
        color: var(--dark-color);
        margin-bottom: 20px;
        display: flex;
        align-items: center;
        gap: 10px;
    }
    
    .controls-title i {
        color: var(--primary-color);
    }
    
    .format-selector {
        width: 100%;
        padding: 12px;
        border-radius: 8px;
        border: 1px solid #e2e8f0;
        background: white;
        font-size: 16px;
        margin-bottom: 20px;
    }
    
    .action-buttons {
        display: flex;
        gap: 15px;
        margin-top: 20px;
    }
    
    .action-btn {
        flex: 1;
        padding: 12px;
        border: none;
        border-radius: 8px;
        font-weight: 500;
        transition: all 0.3s ease;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
    }
    
    .primary-btn {
        background: var(--primary-color);
        color: white;
    }
    
    .primary-btn:hover {
        background: #3a56d4;
        transform: translateY(-2px);
    }
    
    .secondary-btn {
        background: white;
        color: var(--dark-color);
        border: 1px solid #e2e8f0;
    }
    
    .secondary-btn:hover {
        background: #f8fafc;
        transform: translateY(-2px);
    }
    
    .danger-btn {
        background: white;
        color: var(--danger-color);
        border: 1px solid #e2e8f0;
    }
    
    .danger-btn:hover {
        background: #fef2f2;
        transform: translateY(-2px);
    }
    
    .warning-message {
        display: none;
        color: var(--warning-color);
        background: #fff9e6;
        padding: 10px;
        border-radius: 6px;
        margin-bottom: 15px;
        border-left: 4px solid var(--warning-color);
    }
    
    .results-container {
        background: white;
        border-radius: 10px;
        padding: 25px;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
        border: 1px solid rgba(0, 0, 0, 0.05);
    }
    
    .results-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 20px;
    }
    
    .results-title {
        font-weight: 600;
        color: var(--dark-color);
        margin: 0;
        display: flex;
        align-items: center;
        gap: 10px;
    }
    
    .result-textarea {
    width: 100%;
    height: 200px;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    font-family: monospace;
    resize: vertical;
    margin-bottom: 15px;
    box-sizing: border-box;
    font-size: 1rem;
    }
    
    .result-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 20px;
    justify-content: center;
}

.result-action-btn {
    flex: 1 1 auto;
    padding: 12px 20px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    min-width: 120px;
    text-align: center;
}

/* Individual button styles */
.copy-btn {
    background: var(--primary-color);
    color: white;
}

.copy-btn:hover {
    background: #3249be;
    transform: translateY(-2px);
}

.clear-btn {
    background: #f1f5f9;
    color: var(--dark-color);
}

.clear-btn:hover {
    background: #e2e8f0;
    transform: translateY(-2px);
}

.download-btn {
    background: var(--primary-color);
    color: white;
}

.download-btn:hover {
    background: #3249be;
    transform: translateY(-2px);
}
    
    .loading-container {
        display: none;
        text-align: center;
        padding: 30px;
    }
    
    .spinner {
        width: 50px;
        height: 50px;
        border: 4px solid rgba(67, 97, 238, 0.2);
        border-top: 4px solid var(--primary-color);
        border-radius: 50%;
        animation: spin 1s linear infinite;
        margin: 0 auto 15px;
    }
    
    @keyframes spin {
        0% { transform: rotate(0deg); }
        100% { transform: rotate(360deg); }
    }
    
    .progress-container {
        height: 10px;
        background: #e2e8f0;
        border-radius: 10px;
        overflow: hidden;
        margin: 20px 0;
        display: none;
    }
    
    .progress-bar {
        height: 100%;
        background: var(--primary-color);
        border-radius: 10px;
        transition: width 0.3s ease;
        width: 0%;
    }
    
    .success-message {
        display: none;
        color: var(--success-color);
        font-weight: bold;
        margin: 10px 0;
        text-align: center;
    }
    
    .hidden {
        display: none;
    }
    
    .file-info {
        background: #f8fafc;
        padding: 15px;
        border-radius: 8px;
        margin-bottom: 20px;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    
    .file-info-name {
        font-weight: 500;
        color: var(--dark-color);
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        max-width: 70%;
    }
    
    .file-info-size {
        color: #6b7280;
        font-size: 14px;
    }
    
    .cancel-btn {
        background: var(--danger-color);
        color: white;
    }
    
    .cancel-btn:hover {
        background: #c0392b;
    }
    
    @media (max-width: 768px) {
        .action-buttons {
            flex-direction: column;
        }
        .result-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .result-action-btn {
        width: 100%;
        font-size: 16px;
        padding: 14px;
    }
    }
     .format-btn {
        flex: 1;
        min-width: 120px;
        padding: 12px;
        border: none;
        border-radius: 8px;
        background: white;
        color: var(--dark-color);
        font-weight: 500;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
        border: 1px solid #e2e8f0;
        transition: all 0.3s ease;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
    }
    
    .format-btn:hover {
        background: #f8fafc;
        transform: translateY(-2px);
    }
    
    .format-btn.active {
        background: var(--primary-color);
        color: white;
        border-color: var(--primary-color);
        box-shadow: 0 4px 10px rgba(67, 97, 238, 0.3);
    }
    .format-buttons {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
        margin-bottom: 20px;
    }