/* BeatMaker Pro - DAW-Level UI */
:root {
    --bm-red: #ff3e3e;
    --bm-bg: #0b0b0e;
    --bm-panel: #151518;
    --bm-step: #232329;
    --bm-step-alt: #2d2d35;
    --nav-height: 80px;
}

/* Base resets for the tool only */
.beatmaker-page {
    background-color: var(--bm-bg) !important;
    margin: 0 !important;
    padding: 0 !important;
    font-family: 'Inter', system-ui, -apple-system, sans-serif !important;
}

.beatmaker-wrapper {
    display: flex;
    flex-direction: column;
    width: 100%;
    margin-top: var(--nav-height);
    min-height: calc(100vh - var(--nav-height));
    background: var(--bm-bg);
    position: relative;
    z-index: 10;
}

/* Full Screen Loading */
#loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: var(--bm-bg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 99999; /* Supreme priority */
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.8s;
}

/* Transport Bar Styling */
.transport-bar {
    background: var(--bm-panel);
    padding: 15px 30px;
    display: flex;
    align-items: center;
    gap: 25px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    flex-wrap: nowrap;
    overflow-x: auto;
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
}

.transport-group {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

/* DAW Grid Area */
.sequencer-area {
    padding: 50px 30px;
    flex-grow: 1;
    overflow-y: auto;
    background-image: 
        radial-gradient(circle at 2px 2px, rgba(255,255,255,0.03) 1px, transparent 0);
    background-size: 40px 40px;
}

.track-row {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 15px;
    min-width: max-content;
}

.track-info {
    width: 160px;
    background: linear-gradient(90deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.01) 100%);
    padding: 15px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
    color: #888;
    border: 1px solid rgba(255,255,255,0.05);
    letter-spacing: 2px;
    transition: all 0.3s ease;
}

.track-row:hover .track-info {
    color: var(--bm-red);
    border-color: rgba(255, 62, 62, 0.2);
    background: rgba(255, 62, 62, 0.05);
}

.steps-grid {
    display: flex;
    gap: 6px;
}

.step-btn {
    width: 45px;
    height: 60px;
    background: var(--bm-step);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.1s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0,0,0,0.3);
    position: relative;
}

.step-btn:hover {
    background: #2d2d35;
    transform: translateY(-2px);
}

.step-btn.step-alt {
    background: var(--bm-step-alt);
}

.step-btn.active {
    background: var(--bm-red);
    box-shadow: 0 0 20px rgba(255, 62, 62, 0.5), inset 0 0 10px rgba(255,255,255,0.2);
    border-color: rgba(255,255,255,0.1);
}

.step-btn.current {
    border-color: rgba(255,255,255,0.5);
}

.step-btn.current::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: white;
    opacity: 0.15;
    border-radius: 5px;
    animation: pulse-step 0.5s infinite;
}

@keyframes pulse-step {
    0% { opacity: 0.1; }
    50% { opacity: 0.3; }
    100% { opacity: 0.1; }
}

/* Hide scrollbars but keep functionality */
.transport-bar::-webkit-scrollbar { display: none; }
.transport-bar { -ms-overflow-style: none; scrollbar-width: none; }

/* Tooltip or Label simulation */
.bm-label {
    font-size: 8px !important;
    text-transform: uppercase !important;
    color: var(--bm-red) !important;
    font-weight: 900 !important;
    letter-spacing: 1.5px !important;
    margin-bottom: 4px !important;
    display: block !important;
}

/* Input Overrides */
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
