/* Style dla portalu muzycznego */

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    padding-top: 56px;
}

section {
    min-height: 100vh;
    padding: 2rem 0;
}

.navbar-brand {
    font-weight: bold;
    font-size: 1.5rem;
}

.card {
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.2s;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* Style dla odtwarzaczy MIDI */
midi-player {
    display: block;
    width: 100%;
    margin: 10px 0;
}

midi-visualizer {
    display: block;
    width: 100%;
    margin: 10px 0;
    border: 1px solid #ddd;
    border-radius: 4px;
}

/* Style dla miksera */
.mixer-container {
    background: #2c3e50;
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
}

.mixer-channel {
    background: #34495e;
    padding: 15px;
    margin: 10px 0;
    border-radius: 5px;
    border-left: 4px solid #3498db;
}

.mixer-channel h5 {
    color: #ecf0f1;
    margin-bottom: 15px;
}

.mixer-controls {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.mixer-slider {
    flex: 1;
    min-width: 200px;
}

.mixer-slider input[type="range"] {
    width: 100%;
    height: 8px;
    border-radius: 5px;
    background: #7f8c8d;
    outline: none;
}

.mixer-slider input[type="range"]::-webkit-slider-thumb {
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #3498db;
    cursor: pointer;
}

.mixer-slider input[type="range"]::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #3498db;
    cursor: pointer;
    border: none;
}

.mixer-volume-display {
    color: #ecf0f1;
    font-weight: bold;
    min-width: 50px;
    text-align: center;
}

.mixer-play-btn {
    padding: 8px 20px;
    background: #27ae60;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
}

.mixer-play-btn:hover {
    background: #229954;
}

.mixer-play-btn.playing {
    background: #e74c3c;
}

.mixer-play-btn.playing:hover {
    background: #c0392b;
}

/* Style dla pianina */
.piano-container {
    background: #ecf0f1;
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
}

.piano-keyboard {
    display: flex;
    justify-content: center;
    margin: 20px 0;
    position: relative;
}

.piano-key {
    cursor: pointer;
    user-select: none;
    transition: all 0.1s;
    border: 1px solid #34495e;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 10px;
    font-weight: bold;
    color: #2c3e50;
}

.piano-key.white {
    width: 60px;
    height: 200px;
    background: #ffffff;
    border-radius: 0 0 5px 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.piano-key.white:hover {
    background: #f0f0f0;
}

.piano-key.white.active {
    background: #bdc3c7;
    transform: translateY(2px);
}

.piano-key.black {
    width: 40px;
    height: 120px;
    background: #2c3e50;
    color: white;
    border-radius: 0 0 3px 3px;
    position: absolute;
    z-index: 1;
    box-shadow: 0 2px 5px rgba(0,0,0,0.5);
}

.piano-key.black:hover {
    background: #34495e;
}

.piano-key.black.active {
    background: #1a252f;
    transform: translateY(2px);
}

.piano-sequences {
    margin: 20px 0;
}

.sequence-btn {
    margin: 5px;
    padding: 10px 20px;
    background: #3498db;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
}

.sequence-btn:hover {
    background: #2980b9;
}

.sequence-btn.active {
    background: #e74c3c;
}

.piano-loop-control {
    margin: 10px 0;
}

.piano-notation {
    margin: 20px 0;
    padding: 15px;
    background: white;
    border-radius: 5px;
    border: 1px solid #ddd;
    min-height: 100px;
}

/* Responsywność */
@media (max-width: 768px) {
    .piano-key.white {
        width: 40px;
        height: 150px;
    }
    
    .piano-key.black {
        width: 30px;
        height: 90px;
    }
    
    .mixer-controls {
        flex-direction: column;
    }
    
    .mixer-slider {
        width: 100%;
    }
}

/* Smooth scroll */
html {
    scroll-behavior: smooth;
}

/* Style dla sekcji */
section h2 {
    border-bottom: 3px solid #3498db;
    padding-bottom: 10px;
    margin-bottom: 30px;
}

.bg-light section h2 {
    border-bottom-color: #2980b9;
}

