* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: #333;
}

.container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 20px;
}

header {
    text-align: center;
    margin-bottom: 30px;
}

h1 {
    color: white;
    font-size: 2.5rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.btn {
    background: linear-gradient(45deg, #ff6b6b, #ee5a24);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

.btn:active {
    transform: translateY(0);
}

.btn-small {
    background: linear-gradient(45deg, #74b9ff, #0984e3);
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.btn-small:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.status {
    color: white;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 20px;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
}

.main-content {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.left-panel {
    flex: 1;
    min-width: 0;
}

.right-panel {
    width: 350px;
    flex-shrink: 0;
}

.info-panel {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.info-item {
    background: rgba(255,255,255,0.9);
    padding: 15px 25px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    backdrop-filter: blur(10px);
}

.label {
    font-weight: 600;
    color: #666;
    margin-right: 8px;
}

.visualizer {
    background: rgba(255,255,255,0.1);
    border-radius: 20px;
    padding: 20px;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
}

.note-grid {
    display: grid;
    grid-template-columns: repeat(16, 1fr);
    gap: 2px;
    max-width: 1200px;
    margin: 0 auto;
}

.note-rectangle {
    aspect-ratio: 1;
    border-radius: 4px;
    transition: all 0.05s ease;
    cursor: pointer;
    position: relative;
    border: 1px solid rgba(255,255,255,0.1);
    min-width: 8px;
    min-height: 8px;
}

.note-rectangle:hover {
    transform: scale(1.05);
    z-index: 10;
}

.note-rectangle.active {
    box-shadow: 0 0 20px rgba(255,255,255,0.5);
    transform: scale(1.1);
    z-index: 5;
}

.note-label {
    position: absolute;
    bottom: 2px;
    right: 2px;
    font-size: 0.6rem;
    font-weight: bold;
    color: rgba(255,255,255,0.8);
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

/* Logger Styles */
.logger-container {
    background: rgba(255,255,255,0.1);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
    height: 600px;
    display: flex;
    flex-direction: column;
}

.logger-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.2);
}

.logger-header h3 {
    color: white;
    font-size: 1.2rem;
    margin: 0;
}

.logger-content {
    flex: 1;
    overflow-y: auto;
    padding: 15px;
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    line-height: 1.4;
}

.log-entry {
    color: #e8f4fd;
    margin-bottom: 8px;
    padding: 8px;
    background: rgba(0,0,0,0.2);
    border-radius: 6px;
    border-left: 3px solid #74b9ff;
    word-wrap: break-word;
}

.log-entry.timestamp {
    color: #a8e6cf;
    font-weight: bold;
    border-left-color: #a8e6cf;
}

.log-entry.note-on {
    border-left-color: #55a3ff;
    background: rgba(85, 163, 255, 0.1);
}

.log-entry.note-off {
    border-left-color: #ff7675;
    background: rgba(255, 118, 117, 0.1);
}

.log-entry.control {
    border-left-color: #fdcb6e;
    background: rgba(253, 203, 110, 0.1);
}

.log-entry.other {
    border-left-color: #a29bfe;
    background: rgba(162, 155, 254, 0.1);
}

/* Scrollbar styling for logger */
.logger-content::-webkit-scrollbar {
    width: 8px;
}

.logger-content::-webkit-scrollbar-track {
    background: rgba(255,255,255,0.1);
    border-radius: 4px;
}

.logger-content::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.3);
    border-radius: 4px;
}

.logger-content::-webkit-scrollbar-thumb:hover {
    background: rgba(255,255,255,0.5);
}

/* Responsive design */
@media (max-width: 1200px) {
    .main-content {
        flex-direction: column;
    }
    
    .right-panel {
        width: 100%;
        order: -1;
    }
    
    .logger-container {
        height: 300px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    .info-panel {
        gap: 20px;
    }
    
    .note-grid {
        grid-template-columns: repeat(8, 1fr);
        gap: 1px;
    }
    
    .note-label {
        font-size: 0.5rem;
    }
    
    .logger-container {
        height: 250px;
    }
    
    .logger-content {
        font-size: 0.75rem;
    }
}

@media (max-width: 480px) {
    .note-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .logger-container {
        height: 200px;
    }
} 