.matchering form {
    max-width: 600px;
    margin: 0 auto;
    background-color: #f9f9f9;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.matchering .form-step {
    display: none;
    margin-top: 20px;
}

.matchering .form-step.active {
    display: block;
}

.matchering .file-input-container {
    margin-bottom: 20px;
}

.matchering .file-input-container label {
    display: block;
    margin-bottom: 10px;
    font-weight: bold;
    color: #333;
}

.matchering input[type="file"] {
    width: 100%;
    height: 100%;
    opacity: 0;
    position: absolute;
    top: 0;
    left: 0;
    cursor: pointer;
}

.matchering .button-group {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
}

.matchering button {
    min-width: 120px;
    background-color: #1E73BD;
    color: #fff;
    border: none;
    padding: 12px 25px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.matchering button:hover {
    background-color: #155a8a;
}

.matchering button.prev {
    background-color: #6c757d;
}

.matchering button.prev:hover {
    background-color: #5a6268;
}

.matchering input[type="file"]:focus {
    outline: none;
    border-color: #1E73BD;
}

/* Add some responsive styles */
@media (max-width: 480px) {
    .matchering form {
        padding: 20px;
    }
    
    .matchering .step {
        width: 35px;
        height: 35px;
        margin: 0 10px;
    }
    
    .matchering .step-line {
        width: 40px;
        left: 40px;
    }
    
    .matchering button {
        min-width: 100px;
        padding: 10px 20px;
    }
} 

.matchering .drop-zone {
    border: 2px dashed #ddd;
    border-radius: 5px;
    padding: 25px;
    text-align: center;
    background: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.matchering .drop-zone:hover {
    border-color: #1E73BD;
    background-color: #f8f9fa;
}

.matchering .drop-zone.drag-over {
    border-color: #1E73BD;
    background-color: #e9ecef;
}

.matchering .drop-zone .file-input {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    opacity: 0;
    cursor: pointer;
}

.matchering .drop-zone-text {
    pointer-events: none;
}

.matchering .drop-zone-text i {
    font-size: 2em;
    color: #1E73BD;
    margin-bottom: 10px;
}

.matchering .drop-zone-text p {
    margin: 0;
    color: #666;
    font-size: 1em;
}

.matchering .selected-file {
    margin-top: 10px;
}

.matchering .file-info {
    display: flex;
    align-items: center;
    background: #e9ecef;
    padding: 8px 12px;
    border-radius: 4px;
    gap: 8px;
}

.matchering .file-info i {
    color: #1E73BD;
}

.matchering .file-info small {
    color: #666;
    margin-left: auto;
}

.matchering .remove-file {
    background: none;
    border: none;
    color: #dc3545;
    cursor: pointer;
    padding: 0 5px;
    min-width: auto;
}

.matchering .remove-file:hover {
    color: #bd2130;
    background: none;
}

/* Keep the processing overlay styles but remove the spinner */
.matchering form.processing {
    position: relative;
    pointer-events: none;
}

.matchering form.processing::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.7);
    z-index: 10;
    border-radius: 8px;
}

/* Hide the processing overlay on mobile */
@media (max-width: 768px) {
    .matchering form.processing {
        display: none;
    }
}

/* Style for disabled inputs */
.matchering form.processing input,
.matchering form.processing button {
    opacity: 0.6;
}

/* Ensure the form container maintains its height when processing */
.matchering {
    min-height: 400px; /* Adjust this value based on your form's height */
}

.matchering .browse-btn {
    margin-top: 20px;
    background-color: transparent;
    border: 1px solid #a9a9a9;
    color: #a9a9a9;
    padding: 8px 20px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.matchering .browse-btn:hover {
    background-color: #1E73BD;
    color: white;
}

.matchering .browse-btn:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(30, 115, 189, 0.3);
}

/* Modern Button Styling for Matchering */
.download-btn, .save-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    margin: 8px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    min-width: 140px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Download Button - Blue Theme */
.download-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
}

.download-btn:hover {
    background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
    color: #ffffff;
}

/* Save Button - Green Theme */
.save-btn {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: #ffffff;
}

.save-btn:hover {
    background: linear-gradient(135deg, #3d8bfe 0%, #00d4fe 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(79, 172, 254, 0.4);
    color: #ffffff;
}

/* Button Icons */
.download-btn::before {
    content: "⬇";
    margin-right: 8px;
    font-size: 16px;
}

.save-btn::before {
    content: "💾";
    margin-right: 8px;
    font-size: 16px;
}

/* Disabled State */
.download-btn:disabled, .save-btn:disabled {
    background: linear-gradient(135deg, #cccccc 0%, #999999 100%);
    color: #666666;
    cursor: not-allowed;
    transform: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    opacity: 0.6;
}

.download-btn:disabled:hover, .save-btn:disabled:hover {
    transform: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}