body {
        font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
        max-width: 1200px;
        margin: 0 auto;
        padding: 20px;
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        min-height: 100vh;
}

.container {
        background: white;
        border-radius: 15px;
        padding: 30px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.2);
        margin-top: 20px;
}

h1 {
        color: white;
        text-align: center;
        margin-bottom: 10px;
}

.subtitle {
        color: rgba(255,255,255,0.9);
        text-align: center;
        margin-bottom: 30px;
}

.midi-section {
        background: #f8f9fa;
        border-radius: 10px;
        padding: 20px;
        margin-bottom: 30px;
}

.btn {
        display: inline-block;
        padding: 12px 24px;
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        color: white;
        border: none;
        border-radius: 25px;
        font-size: 16px;
        font-weight: 600;
        cursor: pointer;
        transition: transform 0.2s, box-shadow 0.2s;
        text-decoration: none;
}

.btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.btn:disabled {
        background: #6c757d;
        cursor: not-allowed;
        transform: none;
        box-shadow: none;
}

.btn-secondary {
        background: #28a745;
        margin-left: 10px;
}

.status-box {
        margin-top: 15px;
        padding: 15px;
        border-radius: 8px;
        font-family: monospace;
        font-size: 14px;
        line-height: 1.5;
}

.status-success {
        background: #d4edda;
        color: #155724;
        border: 1px solid #c3e6cb;
}

.status-error {
        background: #f8d7da;
        color: #721c24;
        border: 1px solid #f5c6cb;
}

.status-info {
        background: #d1ecf1;
        color: #0c5460;
        border: 1px solid #bee5eb;
}

.scale-section {
        background: #2e656f;
        color: #0c5460;
        border: 1px solid #dc0303;
}

.scale-slot {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 20px;
        margin: 30px 0;
}

.scale-slot {
        background: white;
        border: 2px solid #e0e0e0;
        border-radius: 10px;
        padding: 20px;
        transition: border-color 0.3s, transform 0.2s;
}

.scale-slot.active {
        border-color: #667eea;
        transform: translateY(-5px);
        box-shadow: 0 5px 15px rgba(102, 126, 234, 0.1);
}

.scale-selector {
    height: 200px;
    padding: 20px;
}

.category-dropdown0, 
.category-dropdown1, 
.category-dropdown2, 
.scale-dropdown0,
.scale-dropdown1,
.scale-dropdown2 {
    padding: 8px 12px;
    font-size: 16px;
    min-width: 300px;
    max-width: 500px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.category-dropdown0:focus,
.category-dropdown1:focus,
.category-dropdown2:focus,
.scale-dropdown0:focus,
.scale-dropdown1:focus,
.scale-dropdown2:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

.scale-info {
    margin-top: 20px;
    padding: 15px;
    /* flex-wrap: wrap; */
    /* border: 1px solid #ddd; */
    /* border-radius: 4px; */
    /* background-color: #f9f9f9; */
}

.scale-selector:focus {
        outline: none;
        border-color: #667eea;
}

.device-list {
        margin-top: 15px;
}

.device-item {
        padding: 10px;
        margin: 5px 0;
        background: white;
        border: 1px solid #dee2e6;
        border-radius: 5px;
}

.controls {
        display: flex;
        justify-content: center;
        gap: 15px;
        margin-top: 30px;
        flex-wrap: wrap;
}

.hex-display {
        font-family: monospace;
        background: #f8f9fa;
        padding: 10px;
        border-radius: 5px;
        margin-top: 10px;
        font-size: 12px;
        word-break: break-all;
}

.log {
        margin-top: 30px;
        background: #1a1a1a;
        color: #00ff00;
        padding: 15px;
        border-radius: 5px;
        font-family: monospace;
        font-size: 12px;
        max-height: 200px;
        overflow-y: auto;
}

.log-entry {
        margin: 5px 0;
}

.log-time {
        color: #888;
}

.log-info {
        color: #00ff00;
}

.log-warn {
        color: #ffff00;
}

.log-error {
        color: #ff5555;
}

.scale-notes {
        margin-top: 10px;
        font-size: 12px;
        color: #666;
}