/* HPM Material Renamer - XOVR CNC Style */

.file-input-wrapper {
    position: relative;
}

.file-input {
    position: absolute;
    width: 0.1px;
    height: 0.1px;
    opacity: 0;
    overflow: hidden;
    z-index: -1;
}

.file-label {
    display: flex;
    align-items: center;
    gap: 15px;
    cursor: pointer;
}

.file-name {
    flex: 1;
    padding: 12px 15px;
    background-color: #3a3a3a;
    border-radius: 4px;
    color: #ffffff;
    font-size: 0.95rem;
}

.browse-btn {
    padding: 12px 25px;
    white-space: nowrap;
}

/* Radio Options */
.option-row {
    display: flex;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
}

.radio-option {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    color: #ffffff;
    font-size: 0.95rem;
}

.radio-option input[type="radio"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.radio-text {
    user-select: none;
}

/* Inline Field (Customer Name) */
.inline-field {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
}

.field-label {
    color: #ffffff;
    font-size: 0.95rem;
    white-space: nowrap;
}

.text-input {
    flex: 1;
}

/* Custom Fields */
.custom-fields {
    margin-left: 30px;
    margin-top: 10px;
}

.field-row {
    display: flex;
    align-items: center;
    gap: 15px;
}

.field-row .field-label {
    min-width: 200px;
}

.field-row .text-input {
    flex: 1;
}

/* Progress Log */
.progress-log {
    background-color: #1a1a1a;
    padding: 20px;
    border-radius: 4px;
    border: 2px solid #ff4500;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    max-height: 400px;
    overflow-y: auto;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.log-line {
    margin-bottom: 5px;
    color: #ffffff;
}

.log-success {
    color: #4CAF50;
}

.log-error {
    color: #ff4500;
}

.log-info {
    color: #2196F3;
}

/* Download Section */
.download-section {
    margin-top: 20px;
}

/* Loading Spinner */
.spinner {
    border: 3px solid #3a3a3a;
    border-top: 3px solid #ff4500;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto;
    display: inline-block;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .option-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .inline-field {
        width: 100%;
    }

    .field-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .field-row .field-label {
        min-width: auto;
    }

    .field-row .text-input {
        width: 100%;
    }
}
