/* Main styling */
body {
    background-color: #f5f5f5;
    color: #333;
}

/* File drop area styling */
.file-drop-area {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    border: 2px dashed #ccc;
    border-radius: 5px;
    background-color: #f8f9fa;
    text-align: center;
    transition: all 0.3s;
}

.file-drop-area:hover, .file-drop-area.is-active {
    background-color: #e9ecef;
    border-color: #adb5bd;
}

.file-msg {
    margin-right: 1rem;
    color: #6c757d;
}

/* Table styling for MIDI channels */
#mappingsTable select.channel-select {
    width: 100%;
}

/* Status indicators */
.status-success {
    color: green;
}

.status-error {
    color: red;
}

/* Loading spinner */
.spinner {
    display: inline-block;
    width: 1rem;
    height: 1rem;
    border: 0.2rem solid #f3f3f3;
    border-top: 0.2rem solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .file-drop-area {
        flex-direction: column;
    }
    .file-msg {
        margin-right: 0;
        margin-bottom: 1rem;
    }
}

.template-upload-section {
    margin: 20px 0;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background-color: #f9f9f9;
}

.template-upload-section p {
    margin-bottom: 10px;
    font-style: italic;
    color: #666;
}

.routing-options {
    margin-top: 15px;
}

.routing-options select {
    margin-right: 10px;
    padding: 5px;
    width: 300px;
}

.routing-options button {
    background-color: #f44336;
    color: white;
    border: none;
    padding: 5px 10px;
    cursor: pointer;
    border-radius: 3px;
}

.routing-options button:hover {
    background-color: #d32f2f;
}