/* Minimalist Wow Styles for MT5 Multitrack Player */

* {
    box-sizing: border-box;
    transition: all 0.3s ease;
}

body {
    margin: 0;
    padding: 0;
    background: linear-gradient(135deg, #0d0d0d 0%, #1a1a1a 100%);
    color: #ffffff;
    font-family: 'Roboto', 'Segoe UI', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

#app {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    min-height: 100vh;
}

#console {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    margin-bottom: 25px;
    padding: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-tabs {
    border-bottom: 2px solid rgba(138, 43, 226, 0.3);
    margin-bottom: 15px;
}

.nav-tabs > li > a {
    color: #ccc;
    background: transparent;
    border: none;
    border-radius: 10px 10px 0 0;
    padding: 12px 20px;
    margin-right: 5px;
    transition: all 0.3s ease;
}

.nav-tabs > li.active > a,
.nav-tabs > li.active > a:hover,
.nav-tabs > li.active > a:focus {
    color: #8a2be2;
    background: rgba(138, 43, 226, 0.1);
    border: 2px solid #8a2be2;
    border-bottom-color: rgba(138, 43, 226, 0.1);
    box-shadow: 0 0 15px rgba(138, 43, 226, 0.3);
}

.tab-content {
    padding: 20px 0;
}

#messages, #waveCanvas {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    padding: 15px;
    height: 180px;
    overflow-y: auto;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

#masterTools {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

h2 {
    color: #8a2be2;
    margin-bottom: 25px;
    font-weight: 300;
    text-align: center;
    font-size: 1.8em;
    text-shadow: 0 0 10px rgba(138, 43, 226, 0.5);
}

#volume {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.btn {
    background: linear-gradient(135deg, #8a2be2 0%, #00e676 100%);
    border: none;
    color: #fff;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    font-size: 20px;
    margin: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(138, 43, 226, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(138, 43, 226, 0.5);
    background: linear-gradient(135deg, #00e676 0%, #8a2be2 100%);
}

.btn:active {
    transform: translateY(0);
}

.control-buttons, .loop-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.loop-buttons .btn {
    width: 50px;
    height: 50px;
    font-size: 16px;
}

#songs {
    text-align: center;
    margin-bottom: 25px;
}

.styled-select {
    position: relative;
    display: inline-block;
    width: 100%;
    max-width: 350px;
}

.styled-select select {
    width: 100%;
    padding: 15px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 2px solid rgba(138, 43, 226, 0.3);
    border-radius: 10px;
    font-size: 16px;
    appearance: none;
    transition: all 0.3s ease;
}

.styled-select select:focus {
    border-color: #8a2be2;
    box-shadow: 0 0 15px rgba(138, 43, 226, 0.3);
}

.styled-select::after {
    content: '▼';
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #8a2be2;
    pointer-events: none;
    font-size: 18px;
}

#scroll {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

#trackControl {
    margin-bottom: 25px;
}

#tracks {
    width: 100%;
    border-collapse: collapse;
}

.trackBox {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    min-height: 120px;
}

.trackBox:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.track-name {
    font-size: 1.1em;
    font-weight: 500;
    color: #8a2be2;
    margin-bottom: 15px;
    text-align: center;
}

.track-controls {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.track-buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 15px;
}

.mute-btn, .solo-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 16px;
    background: linear-gradient(135deg, #8a2be2 0%, #00e676 100%);
    border: none;
    color: #fff;
    box-shadow: 0 2px 10px rgba(138, 43, 226, 0.3);
    transition: all 0.3s ease;
}

.mute-btn:hover, .solo-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(138, 43, 226, 0.5);
}

#canvass {
    position: relative;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

#myCanvas, #frontCanvas {
    display: block;
    max-width: 100%;
    height: auto;
    border-radius: 12px;
}

/* Volume Slider Styling */
.volumeSlider {
    width: 250px;
    height: 12px;
    border-radius: 6px;
    background: linear-gradient(90deg, #8a2be2 0%, #00e676 100%);
    outline: none;
    transition: all 0.3s ease;
    margin: 0;
}

.volumeSlider::-webkit-slider-thumb {
    appearance: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #fff;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(138, 43, 226, 0.5);
    transition: all 0.3s ease;
}

.volumeSlider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 0 15px rgba(138, 43, 226, 0.8);
}

.volumeSlider::-moz-range-thumb {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #fff;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(138, 43, 226, 0.5);
    border: none;
}

/* Knob styling */
.knob {
    /* Existing knob styles */
}

/* Responsive Design */
@media (max-width: 768px) {
    #app {
        padding: 15px;
        border-radius: 15px;
    }

    #console, #masterTools, #scroll {
        margin-bottom: 20px;
        padding: 20px;
    }

    .control-buttons, .loop-buttons {
        justify-content: space-around;
    }

    .btn {
        width: 55px;
        height: 55px;
        font-size: 18px;
        margin: 6px;
    }

    .loop-buttons .btn {
        width: 45px;
        height: 45px;
        font-size: 14px;
    }

    #tracks {
        font-size: 14px;
    }

    #canvass {
        height: 350px;
    }

    .trackBox {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }

    .volumeSlider {
        width: 100%;
        height: 12px;
        margin: 15px 0;
    }

    .volumeSlider::-webkit-slider-thumb {
        width: 32px;
        height: 32px;
    }

    .volumeSlider::-moz-range-thumb {
        width: 32px;
        height: 32px;
    }
}

@media (max-width: 480px) {
    h2 {
        font-size: 1.5em;
        margin-bottom: 20px;
    }

    .btn {
        width: 50px;
        height: 50px;
        font-size: 16px;
        margin: 5px;
    }

    .loop-buttons .btn {
        width: 40px;
        height: 40px;
        font-size: 12px;
    }

    #volume {
        flex-direction: column;
    }

    #masterVolume {
        margin-top: 15px;
    }

    .trackBox {
        padding: 15px;
    }

    .volumeSlider {
        height: 15px;
    }

    .volumeSlider::-webkit-slider-thumb {
        width: 36px;
        height: 36px;
    }

    .volumeSlider::-moz-range-thumb {
        width: 36px;
        height: 36px;
    }
}

/* Additional Wow Effects */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

#app {
    animation: fadeIn 0.8s ease-out;
}

.trackBox {
    animation: fadeIn 0.6s ease-out;
    animation-fill-mode: both;
}

.trackBox:nth-child(1) { animation-delay: 0.1s; }
.trackBox:nth-child(2) { animation-delay: 0.2s; }
.trackBox:nth-child(3) { animation-delay: 0.3s; }
.trackBox:nth-child(4) { animation-delay: 0.4s; }
.trackBox:nth-child(5) { animation-delay: 0.5s; }

/* Subtle background pattern */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(circle at 25% 25%, rgba(138, 43, 226, 0.1) 0%, transparent 50%),
                      radial-gradient(circle at 75% 75%, rgba(0, 230, 118, 0.1) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

/* Login Page Styles */
#login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

#login-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    max-width: 400px;
    width: 100%;
    text-align: center;
    animation: fadeIn 0.8s ease-out;
}

#login-card h1 {
    color: #8a2be2;
    margin-bottom: 10px;
    font-size: 2.5em;
    text-shadow: 0 0 10px rgba(138, 43, 226, 0.5);
}

#login-card p {
    color: #ccc;
    margin-bottom: 30px;
    font-size: 1.1em;
}

.form-group {
    margin-bottom: 20px;
    text-align: left;
}

.form-group label {
    display: block;
    color: #fff;
    margin-bottom: 5px;
    font-weight: 500;
}

.form-group input {
    width: 100%;
    padding: 15px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(138, 43, 226, 0.3);
    border-radius: 10px;
    color: #fff;
    font-size: 16px;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.form-group input:focus {
    border-color: #8a2be2;
    box-shadow: 0 0 15px rgba(138, 43, 226, 0.3);
    outline: none;
}

.form-group input::placeholder {
    color: #bbb;
}

.login-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #8a2be2 0%, #00e676 100%);
    border: none;
    border-radius: 10px;
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(138, 43, 226, 0.5);
}
}

/* Change the Slider Button Color Here */

.custom::-webkit-slider-thumb {
    -webkit-appearance: none !important;
    background: #AAA;
    background-image: linear-gradient(to bottom, #EEE, #AAA);
    border: 1px solid #999;
    height: 30px;
    width: 30px;
    border-radius: 15px;
}

.custom::-moz-range-thumb {
    background: #AAA;
    background-image: linear-gradient(to bottom, #EEE, #AAA);
    border: 1px solid #999;
    height: 30px;
    width: 30px;
    border-radius: 15px;
}

.custom::-webkit-slider-thumb:before {
    background: yellow;
}

/* ONLY applicable if you want the bubble above the slider */

output {
    width: 100px;
    height: 40px;
    font-size: 2em;
}
