/* Studio Specific Styles */

body {
    background-color: #0d0d12;
    color: #e0e0e0;
    overflow: hidden; /* App-like feel */
    height: 100vh;
    display: flex;
    flex-direction: column;
}

/* --- Top Bar --- */
.studio-topbar {
    height: 60px;
    background: #050505;
    border-bottom: 1px solid #333;
    display: flex;
    align-items: center;
    padding: 0 1rem;
    justify-content: space-between;
    z-index: 100;
}

.studio-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text-primary);
}

.studio-logo img {
    height: 30px;
}

.studio-logo span {
    opacity: 0.7;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-left: 1px solid #444;
    padding-left: 0.5rem;
    margin-left: 0.5rem;
}

.transport-controls {
    display: flex;
    gap: 0.5rem;
}

.transport-btn {
    background: #1a1a20;
    border: 1px solid #333;
    color: #aaa;
    width: 36px;
    height: 36px;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.transport-btn:hover {
    color: #fff;
    border-color: #555;
    background: #252530;
}

.transport-btn.main-play {
    color: var(--accent-primary);
    border-color: rgba(0, 240, 255, 0.3);
}

.transport-info {
    display: flex;
    gap: 1.5rem;
    background: #0f111a;
    padding: 0.3rem 1rem;
    border-radius: 4px;
    border: 1px solid #222;
}

.info-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1;
}

.info-block .label {
    font-size: 0.6rem;
    color: #555;
    margin-bottom: 2px;
}

.info-block .value {
    font-family: 'Outfit', sans-serif; /* Monospace-ish if avail */
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--accent-primary);
}

.time-display .value {
    font-size: 1.1rem;
    color: #fff;
    letter-spacing: 0.05em;
}

.studio-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.btn-action {
    background: transparent;
    border: 1px solid #444;
    color: #ccc;
    padding: 0.4rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.85rem;
}

.btn-action:hover {
    border-color: #777;
    color: #fff;
}

.btn-action.primary {
    background: rgba(0, 240, 255, 0.1);
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

.btn-action.primary:hover {
    background: var(--accent-primary);
    color: #000;
}

.close-studio {
    color: #555;
    font-size: 1.2rem;
    margin-left: 1rem;
}

.close-studio:hover {
    color: #fff;
}


/* --- Workspace --- */
.studio-workspace {
    flex: 1;
    display: flex;
    background: #08080a;
    position: relative;
    overflow: hidden;
}

/* Track List Sidebar */
.track-list {
    width: 250px;
    background: #0f111a;
    border-right: 1px solid #222;
    display: flex;
    flex-direction: column;
    z-index: 10;
}

.track-header {
    height: 30px;
    background: #151722;
    border-bottom: 1px solid #222;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 0.5rem;
    font-size: 0.75rem;
    color: #888;
    text-transform: uppercase;
}

.add-track-btn {
    border: none;
    background: transparent;
    color: #888;
    cursor: pointer;
}

.add-track-btn:hover { color: #fff; }

.track-item {
    height: 80px;
    border-bottom: 1px solid #222;
    display: flex;
    align-items: center;
    padding: 0.5rem;
    gap: 0.5rem;
    transition: background 0.2s;
    position: relative;
}

.track-item.active {
    background: rgba(255, 255, 255, 0.03);
}

.track-item.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--accent-primary);
}

.track-icon {
    width: 40px;
    height: 40px;
    background: #1a1a20;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #555;
    font-size: 1.2rem;
}

.track-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.track-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: #ddd;
}

.track-singer {
    font-size: 0.75rem;
    color: #666;
}

.track-controls {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.mute-btn, .solo-btn {
    width: 20px;
    height: 20px;
    background: #15151a;
    border: 1px solid #333;
    font-size: 0.6rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    cursor: pointer;
    border-radius: 2px;
}

.mute-btn:hover { background: #301010; color: #f55; border-color: #f55; }
.solo-btn:hover { background: #303010; color: #ff5; border-color: #ff5; }


/* Main View (Piano Roll) */
.studio-main-view {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: #0a0a0c;
    position: relative;
    overflow: hidden;
}

.timeline-ruler {
    height: 30px;
    background: #0f111a;
    border-bottom: 1px solid #333;
    display: flex;
    align-items: center;
    padding-left: 60px; /* Offset for piano keys width approx */
    color: #555;
    font-size: 0.75rem;
    overflow: hidden;
}

.timeline-ruler span {
    width: 100px; /* Zoom level */
    border-left: 1px solid #222;
    padding-left: 5px;
}

.piano-roll-container {
    flex: 1;
    display: flex;
    position: relative;
    overflow: auto; /* Allow scrolling */
    background-image: 
        linear-gradient(to right, #15151a 1px, transparent 1px),
        linear-gradient(to bottom, #15151a 1px, transparent 1px);
    background-size: 25px 20px; /* 16th note, semitone */
}

.piano-keys {
    width: 60px;
    position: sticky;
    left: 0;
    background: #050505;
    z-index: 5;
    border-right: 1px solid #222;
}

.key {
    height: 20px; /* Should match grid height */
    border-bottom: 1px solid #222;
    font-size: 0.65rem;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 5px;
    color: #555;
}

.key.white {
    background: #111;
}

.key.black {
    background: #000;
    color: #888;
}

.note-grid {
    position: relative;
    flex: 1;
    min-width: 1000px; 
}

.note-block {
    position: absolute;
    height: 18px; /* Slightly smaller than grid */
    background: rgba(0, 240, 255, 0.2);
    border: 1px solid var(--accent-primary);
    border-radius: 2px;
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.1);
    color: #fff;
    font-size: 0.7rem;
    display: flex;
    align-items: center;
    padding-left: 5px;
    overflow: hidden;
    cursor: grab;
}

.note-block:hover {
    background: rgba(0, 240, 255, 0.4);
}

.parameter-panel {
    height: 150px;
    background: #0f111a;
    border-top: 1px solid #333;
    display: flex;
    flex-direction: column;
}

.parameter-tabs {
    display: flex;
    padding: 0.5rem 1rem;
    gap: 1rem;
    border-bottom: 1px solid #222;
}

.parameter-tabs span {
    font-size: 0.8rem;
    color: #666;
    cursor: pointer;
    font-weight: 600;
}

.parameter-tabs span.active {
    color: var(--accent-primary);
}

.parameter-graph {
    flex: 1;
    padding: 0.5rem;
    position: relative;
}
