/* Dash */

#dash_wrap .data {
    position: fixed;
    z-index: 33;
    color: rgba(0, 0, 0, 0.54);
    font-size: 25px;
    font-weight: 300;
    width: 90px;
    overflow: hidden;
    height: 25px;
    top: 440px;
    left: 30px;
    text-align: center;
}

#dash_wrap .balance,
#dash_wrap .log {
    left: 190px;
    border-radius: 4px;
    line-height: 30px;
    font-size: 18px;
    overflow: hidden;
    width: 80px;
    height: 30px;
    text-align: left;
    top: unset;
    bottom: 50px;
}

#dash_wrap .log {
    left: 104px;
}

#dash_wrap .statuses {
    width: 100%;
    height: 70px;
    top: 400px;
    text-align: left;
    margin: 0;
    padding: 0;
    left: 0px;
    overflow: hidden;
}

#dash_wrap .status {
    height: 50px;
    display: table-cell;
    width: 1%;
    text-align: center;
    margin: 0px 0px 0px 0;
    position: relative;
    line-height: 50px;
    font-size: 26px;
    overflow: hidden;
    background: rgb(255, 255, 255);
    font-weight: 400;
}

#dash_wrap .status span {
    display: block;
    text-align: center;
    position: absolute;
    top: 10px;
    font-size: 7px;
    text-transform: uppercase;
    opacity: 1;
    font-weight: 400;
    line-height: normal;
    left: 0;
    width: auto;
    padding: 6px 0px 0px;
    display: none;
}
#dash_wrap h1 {
    margin: 0;
}
#dash_wrap #attachments_wrap {
    width: 735px;
    height: 90vh;
    left: 20px;
    top: 60px;
}

#dash_wrap #attachments_wrap .task_attachment {
    width: 338px;
    height: 180px;
    box-shadow: 0 2px 6px -3px rgba(0, 0, 0, 0.41);
    border: 1px solid #ccc;
}

#dash_wrap #attachments_wrap .task_attachment h4 {
    font-size: 16px;
    padding: 9px;
    width: calc;
}

@media screen and (min-width: 768px) {

    #dash_wrap {
        top: 0px;
        position: relative;
        width: 100%;
        height: 100%;
        /* background: #383636; */
        /* background: url(../images/covers/cover.jpg); */
        background-size: cover;
        background-position-x: right;
    }

    #dash_wrap.compact {
        background: url(../images/logo.png) #f4f4f4 no-repeat;
        background-size: 40px;
        background-position: 60px calc(100vh - 160px);
        /* overflow: hidden; */
        transition: 0.5s all easy-in-out;
    }

    #dash_wrap .header {
        background: rgb(255, 255, 255);
        width: 100%;
        height: 60px;
        top: 0px;
        position: absolute;
        background: url(../images/logo@2x.png) rgb(249, 249, 249) no-repeat;
        background-size: 28px;
        background-position: calc(100% - 40px) 15px;
    }

    #dash_wrap .data {
        color: rgb(0, 0, 0);
        font-size: 15px;
        font-weight: 400;
        top: -200px;
        left: 270px;
        background: none;
        position: absolute;
    }

    #dash_wrap.compact .data {
        top: -200px;
        -webkit-animation-name: dash_data_out;
        -webkit-animation-duration: 200ms;
        -webkit-transform-origin: 0% 0%;
        -webkit-animation-iteration-count: 1;
        /* The magic keyword for infinite*/
        -webkit-animation-timing-function: linear;
    }

    @keyframes dash_data_out {
        from {
            top: 0px;
            opacity: 1;
        }

        to {
            top: -200px;
            opacity: 0;
        }
    }

    @keyframes dash_data_in {
        from {
            top: -200px;
            opacity: 0;
        }

        to {
            top: 0px;
            opacity: 1;
        }
    }

    #dash_wrap .balance {
        left: 20px;
    }

    #dash_wrap .log {
        left: 100px;
    }

    #dash_wrap .statuses {
        left: 0px;
        height: 116px;
        bottom: 0;
        text-align: right;
        margin: 0;
        padding: 0;
        width: 100%;
        display: table;
        top: unset;
    }

    /* Container */
.status-bar {
    background-color: #383636;
    border: 1px solid #2e2e36;
    /* border-radius: 6px; */
    padding: 10px 16px;
    display: inline-flex;
    align-items: center;
    gap: 16px;
    color: #9ca3af;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 13px;
    /* box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3); */
    white-space: nowrap;
    width: 100%;
}


    
/* Dash: Now Status bar */
.metric {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Label (e.g. "Mode:") */
.label {
    color: #8b8b95;
    font-weight: 500;
}

/* Value (e.g. "Execution") */
.value {
    color: #eeeeee;
    font-weight: 600;
}

/* Color Modifier */
.text-yellow {
    color: #fbbf24;
}

/* Vertical Separator */
.separator {
    width: 1px;
    height: 14px;
    background-color: #737376;
}

/* Icon Styling */
.icon-warning {
    width: 16px;
    height: 16px;
    fill: #fbbf24; /* Defaults to yellow */
    display: block;
}


/* --- Global Dashboard Layout --- */
body {
    /* Ensuring background matches image */
    background-color: #0d0d0d; 
    color: #a1a1aa;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 14px;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr; /* Mobile first: 1 column */
    gap: 2px;
    padding: 2px;
    max-width: 100%;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .dashboard-grid {
        grid-template-columns: 6fr 5fr; /* 2 columns on larger screens, left slightly wider */
    }
}

.grid-column {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

/* --- Widget Container --- */
.widget {
    background-color: #383636;
    /* border: 1px solid #2e2e36; */
    /* border-radius: 12px; */
    padding: 20px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.2);
}

/* --- Widget Headers --- */
.widget-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
}

.widget-title {
    color: #eeeeee;
    font-weight: 600;
    font-size: 16px;
    margin: 0 0 4px 0;
}

.widget-subtitle {
    color: #71717a;
    font-size: 13px;
    margin: 0;
    font-style: italic;
}

.menu-dots {
    width: 24px;
    height: 24px;
    fill: #71717a;
    cursor: pointer;
}

/* --- Generic Widget Content Styles --- */
.widget-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.item-title {
    color: #e4e4e7;
    font-weight: 300;
    font-size: 16px;
}

.item-subtitle {
    color: #71717a;
    font-size: 13px;
    margin-top: 4px;
}

.separator-thin {
    height: 1px;
    background-color: #2e2e36;
    margin: 4px 0;
}

/* Icons */
.w-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0; /* prevent squishing */
}

.text-red { fill: #ef4444; color: #ef4444; }
.text-yellow { fill: #fbbf24; color: #fbbf24; }
.text-green { fill: #22c55e; color: #22c55e;}
.text-orange { fill: #f97316; color: #f97316;}
.text-grey { fill: #71717a; color: #71717a;}


/* --- Specific Widget Types --- */

/* Type: Row with Button (Attention Queue) */
.list-item-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
}

.item-details {
    flex-grow: 1;
}

.action-btn {
    padding: 6px 16px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 13px;
    border: none;
    cursor: pointer;
    margin-left: auto; /* Push to right */
}
.btn-green { background-color: #2f5d39; color: #86efac; }
.btn-yellow { background-color: #5f4d1a; color: #fcd34d; }
.btn-orange { background-color: #633312; color: #fdba74; }


/* Type: Simple List (Signals, Meta, Focus) */
.simple-list {
    gap: 12px;
}
.list-item-simple {
    display: flex;
    align-items: center;
    gap: 12px;
}
.simple-text {
    color: #d1d5db;
}
.focus-subtext {
    color: #71717a;
    font-size: 13px;
    margin-left: 32px; /* indent past icon */
    margin-top: -8px;
    font-style: italic;
}


/* Type: Goals Snapshot */
.goal-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 4px 0;
}
.goal-status {
    font-size: 12px;
    font-weight: 600;
    color: #d1d5db;
    text-align: right;
}

/* Type: Tracker */
.row-between {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.tracker-remaining {
    font-size: 13px;
    margin-left: auto;
    margin-right: 12px;
}
.progress-circle-placeholder {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 3px solid #2e2e36;
    border-top-color: #d1d5db; /* Fake progress */
}
.tracker-signal {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #d1d5db;
}






    


    
.structural-errors.wrap {
    position: absolute;
    top: 510px;
    line-height: 1.7em;
    left: 40px;
}
    #dash_wrap h1 {
        margin: 0;
        position: absolute;
        top: 20px;
        left: 20px;
    }

    #dash_wrap .badges li {
        margin: 0;
        box-shadow: 0px 1px 2px rgba(0, 0, 0, 0.2);
        width: -webkit-fill-available;
    }

    #dash_wrap .badge.wrap {
        -webkit-animation-name: dash_badges_in;
        -webkit-animation-duration: 500ms;
        -webkit-transform-origin: 0% 0%;
        -webkit-animation-iteration-count: 1;
        -webkit-animation-timing-function: ease-in-out;
        /* display: none; */
    }

    #dash_wrap.compact .badge {
        right: -150px;
        -webkit-animation-name: dash_badges_out;
        -webkit-animation-duration: 600ms;
        -webkit-transform-origin: 0% 0%;
        -webkit-animation-iteration-count: 1;
        -webkit-animation-timing-function: ease-in-out;
        left: unset;
    }

    @keyframes dash_badges_out {
        from {
            right: 40px;
            opacity: 1;
        }

        to {
            right: -250px;
            opacity: 0;
        }
    }

    @keyframes dash_badges_in {
        from {
            right: -450px;
            opacity: 0;
        }

        to {
            right: 40px;
            opacity: 1;
        }
    }

    #dash_wrap .badges.wrap {
        position: fixed;
        width: 1000px;
        left: 0px;
        top: 768px;
        z-index: 99;
        display: grid;
        grid-gap: 8px;
        grid-template-columns: auto auto auto auto auto;
    }

    /* .ne #main {
        margin: 0px 0;
        width: 100%;
        position: fixed;
        overflow: auto;
        -webkit-overflow-scrolling: touch;
        z-index: 9;
        height: 100%;
    } */

    #dash_wrap #attachments_wrap {
        width: 735px;
        height: 90vh;
        left: 20px;
        top: 60px;
    }

    #dash_wrap #attachments_wrap .task_attachment {
        width: 338px;
        height: 180px;
        box-shadow: 0 2px 6px -3px rgba(0, 0, 0, 0.41);
        border: 1px solid #ccc;
    }

    #dash_wrap #attachments_wrap .task_attachment h4 {
        font-size: 16px;
        padding: 9px;
        width: calc;
    }
}

@media screen and (min-width: 1024px) {

    #dash_wrap .status span {
        font-size: 8px;
        text-align: left;
        left: 13px;
        top: 5px;
        font-weight: 900;
        display: block;
    }

    #dash_wrap .status {
        height: 20px;
        line-height: 39px;
        font-size: 31px;
        padding-top: 4px;
        text-align: right;
        padding-right: 13px;
    }

}
