/* =========================================================
   STUDIOFLOW DESKTOP APP
   DESKTOP ONLY
   Black / Gray / Gold
========================================================= */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html,
body {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: #090909;
    color: #f5f5f5;
}


/* =========================================================
   APP SHELL
========================================================= */

#app {
    width: 100vw;
    height: 100vh;
    min-width: 1100px;
    display: flex;
    flex-direction: column;
    background: #090909;
}


/* =========================================================
   TOP APP BAR
========================================================= */

.topBar {
    height: 62px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 0 22px;

    background: #0d0d0d;
    border-bottom: 1px solid #292929;

    flex-shrink: 0;
}


/* Brand */

.brand {
    display: flex;
    align-items: center;
    gap: 10px;

    min-width: 190px;
}

.brandLogo {
    width: 30px;
    height: 30px;

    display: flex;
    align-items: center;
    justify-content: center;

    color: #d4af37;
    font-size: 21px;
}

.brandName {
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 1px;
}

.brandName span {
    color: #d4af37;
}


/* Current Project */

.currentProject {
    height: 38px;
    min-width: 260px;

    display: flex;
    align-items: center;
    gap: 12px;

    padding: 0 14px;

    background: #151515;
    border: 1px solid #292929;
    border-radius: 7px;

    color: #ddd;
}

.currentProject small {
    color: #777;
    font-size: 10px;
}

.currentProject strong {
    color: #f2f2f2;
    font-size: 12px;
}

.projectStatus {
    margin-left: auto;

    padding: 4px 8px;

    border-radius: 4px;

    background: #332b0b;
    color: #d4af37;

    font-size: 9px;
}


/* Top right */

.topActions {
    display: flex;
    align-items: center;
    gap: 18px;
}

.topIcon {
    width: 32px;
    height: 32px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 6px;

    color: #aaa;
    background: transparent;

    cursor: pointer;
}

.topIcon:hover {
    color: #d4af37;
    background: #171717;
}

.userBox {
    display: flex;
    align-items: center;
    gap: 9px;
}

.userAvatar {
    width: 32px;
    height: 32px;

    border-radius: 50%;

    background: #292929;
    border: 1px solid #444;
}

.userText strong {
    display: block;
    font-size: 11px;
}

.userText small {
    color: #777;
    font-size: 9px;
}


/* =========================================================
   APP BODY
========================================================= */

.appBody {
    flex: 1;

    display: flex;
    min-height: 0;

    overflow: hidden;
}


/* =========================================================
   LEFT SIDEBAR
========================================================= */

.sidebar {
    width: 190px;
    min-width: 190px;

    height: 100%;

    display: flex;
    flex-direction: column;

    background: #0b0b0b;
    border-right: 1px solid #252525;

    padding: 14px 10px;
}


/* Navigation */

.sidebarNav {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.sidebarItem {
    width: 100%;
    height: 40px;

    display: flex;
    align-items: center;
    gap: 12px;

    padding: 0 12px;

    border-radius: 6px;

    color: #999;

    font-size: 12px;

    cursor: pointer;
}

.sidebarItem:hover {
    background: #171717;
    color: #fff;
}

.sidebarItem.active {
    background: #2c2509;
    color: #d4af37;

    border-left: 3px solid #d4af37;
}

.sidebarItem i {
    width: 17px;
    text-align: center;
}


/* Sidebar bottom */

.sidebarBottom {
    margin-top: auto;
}

.premiumBox {
    padding: 14px 10px;

    border: 1px solid #3a3215;
    border-radius: 8px;

    background: #11100b;

    text-align: center;
}

.premiumBox h4 {
    color: #d4af37;
    font-size: 12px;
    margin-bottom: 7px;
}

.premiumBox p {
    color: #777;
    font-size: 9px;
    line-height: 1.5;
}

.premiumButton {
    margin-top: 10px;

    width: 100%;
    height: 30px;

    border: none;
    border-radius: 5px;

    background: #d4af37;
    color: #111;

    font-size: 10px;
    font-weight: bold;

    cursor: pointer;
}


/* =========================================================
   MAIN CONTENT
========================================================= */

.mainArea {
    flex: 1;
    min-width: 0;
    min-height: 0;

    display: flex;
    flex-direction: column;

    padding: 10px;

    overflow-y: auto;
    overflow-x: hidden;

    background: #090909;
}


/* =========================================================
   WORKSPACE
========================================================= */

.workspace {
    width: 100%;

    display: grid;

    grid-template-columns:
        minmax(650px, 1fr)
        220px;

    gap: 10px;

    align-items: start;
}


/* =========================================================
   MAIN WORK AREA
========================================================= */

.workArea {
    min-width: 0;

    display: flex;
    flex-direction: column;

    gap: 10px;
}


/* =========================================================
   APP CARD
========================================================= */

.appCard {
    background: #101010;

    border: 1px solid #292929;
    border-radius: 7px;

    overflow: hidden;
}

.cardHeader {
    height: 44px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 0 14px;

    border-bottom: 1px solid #252525;

    background: #121212;
}

.cardHeader h2 {
    font-size: 13px;
    font-weight: 600;
}

.cardHeader h2 span {
    color: #d4af37;
}


/* =========================================================
   MINI DAW
========================================================= */

.miniDaw {
    min-height: 370px;
}


/* DAW top controls */

.dawControls {
    height: 52px;

    display: flex;
    align-items: center;
    gap: 9px;

    padding: 8px 12px;

    border-bottom: 1px solid #252525;
}

.dawControl {
    height: 34px;

    display: flex;
    align-items: center;
    gap: 7px;

    padding: 0 9px;

    background: #191919;
    border: 1px solid #2b2b2b;
    border-radius: 5px;

    color: #aaa;

    font-size: 10px;
}

.dawControl strong {
    color: #fff;
}

.dawButton {
    width: 34px;
    height: 34px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 1px solid #2b2b2b;
    border-radius: 5px;

    background: #191919;
    color: #ddd;

    cursor: pointer;
}

.dawButton:hover {
    color: #d4af37;
    border-color: #d4af37;
}

.dawButton.record {
    color: #ff4444;
}


/* =========================================================
   DAW TIMELINE
========================================================= */

.dawTimeline {
    display: grid;

    grid-template-columns: 150px 1fr;

    min-height: 245px;
}


/* Track names */

.trackList {
    background: #0e0e0e;
    border-right: 1px solid #252525;
}

.track {
    height: 58px;

    display: flex;
    align-items: center;

    padding: 0 12px;

    border-bottom: 1px solid #222;
}

.trackNumber {
    width: 20px;

    color: #666;

    font-size: 9px;
}

.trackName {
    color: #ddd;

    font-size: 10px;
}


/* Timeline */

.timeline {
    position: relative;

    overflow: hidden;

    background:
        repeating-linear-gradient(
            to right,
            #151515 0,
            #151515 1px,
            transparent 1px,
            transparent 52px
        );
}

.timelineRow {
    height: 58px;

    position: relative;

    border-bottom: 1px solid #222;
}


/* Audio blocks */

.audioBlock {
    position: absolute;

    top: 10px;
    height: 38px;

    display: flex;
    align-items: center;

    padding: 0 10px;

    border-radius: 4px;

    color: #fff;

    font-size: 9px;
    font-weight: 600;

    overflow: hidden;
}

.audioBlock.beat {
    left: 18px;
    width: 75%;

    background: #8060d4;
}

.audioBlock.vocal {
    left: 50px;
    width: 48%;

    background: #168b48;
}

.audioBlock.double {
    left: 90px;
    width: 30%;

    background: #1675c4;
}


/* =========================================================
   DAW FOOTER
========================================================= */

.dawFooter {
    height: 48px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 0 12px;

    border-top: 1px solid #252525;
}

.dawFooterButtons {
    display: flex;
    gap: 8px;
}

.dawFooter button {
    height: 29px;

    padding: 0 13px;

    border-radius: 4px;

    border: 1px solid #333;

    background: #171717;
    color: #aaa;

    font-size: 9px;
}

.dawFooter button.gold {
    background: #d4af37;
    border-color: #d4af37;

    color: #111;
    font-weight: bold;
}


/* =========================================================
   PAYMENT & APPROVAL
========================================================= */

.paymentCard {
    min-height: 245px;
}

.paymentContent {
    padding: 14px;
}


/* Price */

.paymentTop {
    display: flex;
    align-items: stretch;
    gap: 12px;
}

.priceBox {
    width: 150px;

    padding: 15px;

    background: #151515;

    border: 1px solid #292929;
    border-radius: 6px;
}

.priceBox span {
    display: block;

    color: #888;
    font-size: 10px;

    margin-bottom: 8px;
}

.priceBox strong {
    display: block;

    color: #d4af37;

    font-size: 22px;
}


/* Payment steps */

.paymentSteps {
    flex: 1;

    display: grid;

    grid-template-columns:
        repeat(4, 1fr);

    gap: 8px;
}

.paymentStep {
    min-width: 0;

    padding: 12px 8px;

    background: #131313;

    border: 1px solid #292929;
    border-radius: 6px;

    text-align: center;
}

.stepCircle {
    width: 22px;
    height: 22px;

    margin: 0 auto 8px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: #292929;
    color: #777;

    font-size: 9px;
}

.paymentStep.done .stepCircle {
    background: #1d9b4b;
    color: #fff;
}

.paymentStep.active .stepCircle {
    background: #d4af37;
    color: #111;
}

.paymentStep h4 {
    font-size: 10px;
    margin-bottom: 5px;
}

.paymentStep p {
    color: #777;

    font-size: 8px;

    line-height: 1.4;
}


/* Approval footer */

.approvalBar {
    margin-top: 12px;

    height: 45px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 0 12px;

    border: 1px solid #23442e;
    border-radius: 5px;

    background: #0d1811;
}

.approvalBar span {
    color: #777;
    font-size: 9px;
}

.releaseButton {
    height: 30px;

    padding: 0 16px;

    border: none;
    border-radius: 5px;

    background: #1fa34a;
    color: #fff;

    font-size: 9px;
    font-weight: bold;

    cursor: pointer;
}


/* =========================================================
   RIGHT PANEL
========================================================= */

.rightPanel {
    min-width: 0;

    background: #11100a;

    border: 1px solid #3a3215;
    border-radius: 7px;

    overflow: hidden;
}

.rightPanelHeader {
    padding: 14px;

    text-align: center;

    border-bottom: 1px solid #302914;
}

.rightPanelHeader span {
    display: inline-block;

    padding: 4px 8px;

    background: #d4af37;
    color: #111;

    border-radius: 3px;

    font-size: 8px;
    font-weight: bold;
}

.rightPanelHeader h2 {
    margin-top: 14px;

    font-size: 17px;
}

.rightPanelHeader h2 span {
    padding: 0;

    background: none;

    color: #d4af37;

    font-size: inherit;
}

.rightPanelHeader p {
    margin-top: 8px;

    color: #777;

    font-size: 9px;
    line-height: 1.5;
}


/* Premium illustration */

.premiumIcon {
    height: 110px;

    display: flex;
    align-items: center;
    justify-content: center;

    color: #d4af37;

    font-size: 58px;
}


/* Features */

.premiumFeatures {
    padding: 0 14px 14px;
}

.premiumFeature {
    display: flex;
    align-items: center;
    gap: 9px;

    padding: 8px 0;

    color: #aaa;

    font-size: 9px;

    border-bottom: 1px solid #211f17;
}

.premiumFeature i {
    color: #d4af37;
    width: 14px;
}


/* Upgrade */

.upgradeButton {
    width: calc(100% - 28px);

    margin: 0 14px 14px;

    height: 35px;

    border: none;
    border-radius: 5px;

    background: #d4af37;
    color: #111;

    font-size: 10px;
    font-weight: bold;

    cursor: pointer;
}


/* =========================================================
   PROJECT / APP STATES
========================================================= */

.projectPanel {
    background: #101010;

    border: 1px solid #292929;
    border-radius: 7px;
}

.projectRow {
    height: 48px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 0 14px;

    border-bottom: 1px solid #222;
}

.projectRow:last-child {
    border-bottom: none;
}

.projectInfo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.projectIcon {
    width: 28px;
    height: 28px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 5px;

    background: #29220b;
    color: #d4af37;
}

.projectInfo strong {
    font-size: 10px;
}

.projectInfo small {
    display: block;

    color: #666;

    margin-top: 3px;

    font-size: 8px;
}

.projectOpen {
    height: 27px;

    padding: 0 10px;

    border: 1px solid #333;
    border-radius: 4px;

    background: #171717;
    color: #aaa;

    font-size: 8px;
}

.projectOpen:hover {
    border-color: #d4af37;
    color: #d4af37;
}


/* =========================================================
   SCROLLBAR
========================================================= */

::-webkit-scrollbar {
    width: 7px;
    height: 7px;
}

::-webkit-scrollbar-track {
    background: #0b0b0b;
}

::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: #d4af37;
}


/* =========================================================
   IMPORTANT DESKTOP APP RULE
========================================================= */

@media (min-width: 1100px) {

    #app {
        min-width: 1100px;
    }

    .mainArea {
        min-width: 0;
    }

    .workspace {
        grid-template-columns:
            minmax(650px, 1fr)
            220px;
    }

}