﻿:root {
    --colset-1-main: #6e1587;
    --colset-1-dark: #413445;
    --colset-1-light: #ce93de;
    --colset-2-main: #00b4d4;
    --colset-2-dark: #314B50;
    --colset-2-light: #2Beff1;
    --colset-3-main: #c76d02;
    --colset-3-dark: #4e4131;
    --colset-3-light: #eda148;
    --colset-4-main: #96c046;
    --colset-4-dark: #474d3b;
    --colset-4-light: #bef15d;
    --colset-5-main: #5bd89f;
    --colset-5-dark: #3e5148;
    --colset-5-light: #2ff79c;
    --colset-6-main: #EC7E65;
    --colset-6-dark: #A55845;
    --colset-6-light: #F3AE99;
    --colset-7-main: #E24426;
    --colset-7-dark: #93331D;
    --colset-7-light: #EE9572;
    --colset-8-main: #77BD9C;
    --colset-8-dark: #5C8A74;
    --colset-8-light: #A5D4BC;
    --colset-9-main: #9CC45E;
    --colset-9-dark: #6B8D41;
    --colset-9-light: #C4E0A5;
    --colset-10-main: #97B2C4;
    --colset-10-dark: #728694;
    --colset-10-light: #C2D2DE;
    --colset-11-main: #3A6B7E;
    --colset-11-dark: #295162;
    --colset-11-light: #92A5B7;
    --colset-12-main: #2F3436;
    --colset-12-dark: #212527;
    --colset-12-light: #6C6D70;
    --colset-13-main: #773A27;
    --colset-13-dark: #54291B;
    --colset-13-light: #A7816E;
    --colset-14-main: #535362;
    --colset-14-dark: #3C3C48;
    --colset-14-light: #928E9C;
    --colset-15-main: #678096;
    --colset-15-dark: #4A5E71;
    --colset-15-light: #9DA7B7;
    --colset-16-main: #B0C138;
    --colset-16-dark: #7B8827;
    --colset-16-light: #CFD791;
    --colset-17-main: #5E8939;
    --colset-17-dark: #416127;
    --colset-17-light: #A4B58C;
    --colset-18-main: #063C44;
    --colset-18-dark: #042A30;
    --colset-18-light: #61717A;
    --colset-19-main: #0C565B;
    --colset-19-dark: #083D40;
    --colset-19-light: #6E888F;
    --colset-20-main: #5FA1A9;
    --colset-20-dark: #5D7C83;
    --colset-20-light: #94B1B7;
    --colset-21-main: #C2DEE6;
    --colset-21-dark: #899CA3;
    --colset-21-light: #DCEEF1;
    --colset-22-main: #365891;
    --colset-22-dark: #26406C;
    --colset-22-light: #929AC4;
    --colset-23-main: #F16543;
    --colset-23-dark: #A54730;
    --colset-23-light: #F8AF95;
    --colset-24-main: #FCBA11;
    --colset-24-dark: #AD830A;
    --colset-24-light: #FCD982;
    --colset-25-main: #3A632A;
    --colset-25-dark: #28461C;
    --colset-25-light: #8D9E70;
    --colset-26-main: #A3A6B0;
    --colset-26-dark: #73767D;
    --colset-26-light: #C5C7D0;
    --colset-27-main: #615D67;
    --colset-27-dark: #454249;
    --colset-27-light: #9A959F;
    --colset-28-main: #EFA1AD;
    --colset-28-dark: #A56F78;
    --colset-28-light: #F5C1C7;
    --colset-29-main: #E2E675;
    --colset-29-dark: #9DA151;
    --colset-29-light: #EFF0B5;
    --colset-30-main: #AE4527;
    --colset-30-dark: #79301B;
    --colset-30-light: #D0977C;
    --colset-31-main: #602C1B;
    --colset-31-dark: #441F12;
    --colset-31-light: #A27F6B;
    --colset-32-main: #ECE0B9;
    --colset-32-dark: #A59D82;
    --colset-32-light: #F2EACC;
    --colset-33-main: #CEA875;
    --colset-33-dark: #8F7551;
    --colset-33-light: #DFCAA7;
    --sidebar-background: #494949;
    --sidebar-mutedtext: #959595;
    --sidebar-iconhighlight: white;
    --sidebar-iconhover: white;
    --sidebar-iconcolor: #959595;
    --default-userlogo: #AF4ACC;
    --default-projectbg: #9D8F75;
    --main-lightbg: #1c1c1c;
    --main-darkbg: #2d2d2d;
    --plancontainer-bg: rgba(255,255,255,0.2);
    --plancontainer-border: #f3f3f3;
    --bs-border-radius: 32px;
    --bs-body-color: #282e43;
    --bs-body-bg: #e8eaec;
    --form-element-bg: white;
    --form-element-placeholder: #d0d0d0;
    --bs-link-color-rgb: var(--bs-body-color);
    --scrollbar-thumb: rgba(0, 0, 0, 0.3);
    --scrollbar-thumb-hover: rgba(0, 0, 0, 0.5);
    --bs-modal-border-radius: 32px;
    --bs-box-shadow: 10px rgba(0,0,0,0.04);
    --plandurion-highlight: #dc4d28;
    --plandurion-highlight-hover: #ff8c6e;
    --plandurion-btncircle-bg: #e9ebed;
    --pd-tablebt-fg: white;
    --pd-tablebt-bg: #282e43;
    /* --pd-tablebt-bghover: #343c57; */
    --pd-tablebt-bghover: #465075;
    --pd-tablebt-primary: #6f9cd9;
    --pd-tablebt-danger: #e65c5c;
    --pd-tablebt-warning: rgb(var(--bs-warning-rgb));
    --pd-tablebt-success: rgb(var(--bs-success-rgb));
    --bs-modal-color: var(--bs-body-color);
    --bs-modal-bg: #fafafa;
    --bs-modal-border-radius: 32px;
    --bs-modal-border-color: #f3f3f3;
    --bs-modal-padding: 38px;
    --bs-modal-header-padding: 38px;
    --plandurion-lightbg: #f5f6f6;
}

.tooltip {
    --bs-tooltip-border-radius: 8px;
}

.modal {
    --bs-modal-color: var(--bs-body-color);
    --bs-modal-bg: #fafafa;
    --bs-modal-border-radius: 32px;
    --bs-modal-border-color: #f3f3f3;
    --bs-modal-padding: 38px;
    --bs-modal-header-padding: 38px;
}

.toast {
    --bs-toast-border-radius: 0px;
    --bs-toast-border-color: #f3f3f3;
    --bs-toast-bg: var(--bs-modal-bg);
    --bs-toast-header-bg: var(--bs-modal-bg);
}

.btn-close {
    font-family: "Font Awesome 6 Pro";
    background: transparent;
    font-size: 20px;
    line-height: 1;
    margin-top: -1px;
    margin-bottom: -3px;
    color: #dadada;
}

    .btn-close:hover {
        color: #282e43;
    }

.btn-close:before {
    content: "\f057";
}

.toast-header {
    border-radius: 0;
    border-bottom-width: 0;
}

.modal-contenti {
    box-shadow: none;
}

.modal-dialog .modal-body {
    overflow: auto;
    max-height: 70vh;
    margin-right: 18px;
}

.modal-header  {
    border-bottom: 0;
}

.modal-header i.bi {
    margin-top: -80px;
}

.modal-backdrop {
    z-index: 1051;
}

.modal-footer {
    border-top: 0;
}

.modal-title {
    font-size: 64px;
    letter-spacing: -3px;
}

.form-row {
    display: flex;
    border-top: 1px solid #dadada;
    align-items: center;
    padding-top: 6px;
    padding-bottom: 6px;
}

.form-row:last-child {
    border-bottom: 1px solid #dadada;
}

.form-row .form-label, .form-row .form-check-label {
    flex: 0 0 220px;
    margin-bottom: 0;
}

.form-row .form-check-label {
    margin-left: -2.5rem;
}

.form-check-group .form-switch {
    padding-left: 0;
}
.form-row .form-check-input {
    margin-left: 0;
}

    .form-control, .form-select {
        border-radius: 0;
        background-color: var(--form-element-bg);
        color: var(--bs-body-color);
    }

    .form-control-inner {
        border: 0;
        padding: 0;
        margin: 0;
        width: 100%;
    }

.form-control:focus, form-control-inner:focus, .form-select:focus {
    box-shadow: none;
    border-color: black;
    background-color: white;
}

input.form-control::placeholder, input.form-control-inner::placeholder, textarea.form-control::placeholder {
    color: var(--form-element-placeholder);
}

.form-control-inner:focus {
    outline-width: 0;
}
/* Webkit browsers (Chrome, Safari, Edge) */
*::-webkit-scrollbar {
    width: 4px; /* Vertical scrollbar width */
    height: 4px; /* Horizontal scrollbar height */
}

*::-webkit-scrollbar-track {
    background: transparent; /* No background */
}

*::-webkit-scrollbar-track-piece {
    background: transparent; /* No background for track pieces */
}

*::-webkit-scrollbar-thumb {
    background-color: var(--scrollbar-thumb);
    border-radius: 4px; /* Rounded edges */
}

*::-webkit-scrollbar-thumb:hover {
    background-color: var(--scrollbar-thumb-hover);
}

/* Hide scrollbar arrows/buttons */
*::-webkit-scrollbar-button {
    display: none;
}

*::-webkit-scrollbar-corner {
    background: transparent; /* No background for corner */
}


/* inter-200 - latin */
@font-face {
    font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: 'Inter';
    font-style: normal;
    font-weight: 200;
    src: url('/fonts/inter-v18-latin-200.woff2') format('woff2');
}
/* inter-regular - latin */
@font-face {
    font-display: swap;
    font-family: 'Inter';
    font-style: normal;
    font-weight: 400;
    src: url('/fonts/inter-v18-latin-regular.woff2') format('woff2');
}
/* inter-700 - latin */
@font-face {
    font-display: swap;
    font-family: 'Inter';
    font-style: normal;
    font-weight: 700;
    src: url('/fonts/inter-v18-latin-700.woff2') format('woff2');
}
/* inter-900 - latin */
@font-face {
    font-display: swap;
    font-family: 'Inter';
    font-style: normal;
    font-weight: 900;
    src: url('/fonts/inter-v18-latin-900.woff2') format('woff2');
}

html, body {
    font-family: Inter, 'Helvetica Neue', Helvetica, Arial, sans-serif;
    box-sizing: border-box;
    background-image: url(img/logobigbg.svg);
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-position: -0% -90px;
    background-size: 1200px;
    overflow:hidden;
    height: 100vh;
    margin: 0;
    padding: 0;
}

.plancontainer {
    border-radius: 32px;
    background-color: var(--plancontainer-bg);
    padding: 16px 32px;
    border: 1px solid var(--plancontainer-border);
}

.topmostcontent {
    height: 99vh;
    display: flex;
    overflow: hidden;
    flex-direction: column;
    flex-wrap: nowrap;
}

.mainpagecontent {
    margin-left: 40px;
    margin-right: 32px;
    margin-top: 60px;
    flex: 1; /* Take remaining space */
    min-height: 0; /* Critical: allows flex child to shrink below content size */
    display: flex;
}

main {
    flex: 1;
    min-height: 0; /* Critical for flex children to scroll */
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.projecticon {
    width: 48px;
    height: 48px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 48px;
    background-color: white;
}

.scrollcontainer {
    overflow: auto;
    flex: 1; /* Take available space */
    min-height: 0; /* Critical for nested scrolling */
}

.projecticon i {
    font-size: 24px;
}

.colset-1 .projecticon {
    color: var(--colset-1-light);
}

.colset-2 .projecticon {
    color: var(--colset-2-main);
}

.colset-3 .projecticon {
    color: var(--colset-3-main);
}

.colset-4 .projecticon {
    color: var(--colset-4-main);
}

.colset-5 .projecticon {
    color: var(--colset-5-main);
}
.colset-6 .projecticon {
    color: var(--colset-6-main);
}

.colset-7 .projecticon {
    color: var(--colset-7-main);
}

.colset-8 .projecticon {
    color: var(--colset-8-main);
}

.colset-9 .projecticon {
    color: var(--colset-9-main);
}

.colset-10 .projecticon {
    color: var(--colset-10-main);
}

.colset-11 .projecticon {
    color: var(--colset-11-main);
}

.colset-12 .projecticon {
    color: var(--colset-12-main);
}

.colset-13 .projecticon {
    color: var(--colset-13-main);
}

.colset-14 .projecticon {
    color: var(--colset-14-main);
}

.colset-15 .projecticon {
    color: var(--colset-15-main);
}

.colset-16 .projecticon {
    color: var(--colset-16-main);
}

.colset-17 .projecticon {
    color: var(--colset-17-main);
}

.colset-18 .projecticon {
    color: var(--colset-18-main);
}

.colset-19 .projecticon {
    color: var(--colset-19-main);
}

.colset-20 .projecticon {
    color: var(--colset-20-main);
}

.colset-21 .projecticon {
    color: var(--colset-21-main);
}

.colset-22 .projecticon {
    color: var(--colset-22-main);
}

.colset-23 .projecticon {
    color: var(--colset-23-main);
}

.colset-24 .projecticon {
    color: var(--colset-24-main);
}

.colset-25 .projecticon {
    color: var(--colset-25-main);
}

.colset-26 .projecticon {
    color: var(--colset-26-main);
}

.colset-27 .projecticon {
    color: var(--colset-27-main);
}

.colset-28 .projecticon {
    color: var(--colset-28-main);
}

.colset-29 .projecticon {
    color: var(--colset-29-main);
}

.colset-30 .projecticon {
    color: var(--colset-30-main);
}

.colset-31 .projecticon {
    color: var(--colset-31-main);
}

.colset-32 .projecticon {
    color: var(--colset-32-main);
}

.colset-33 .projecticon {
    color: var(--colset-33-main);
}

.projectinfo h1 {
    font-weight: 900;
    font-size: 1.5rem;
    padding: 0 0 1rem 0;
    margin: 0;
    letter-spacing: -0.05rem;
}

h1 {
    font-size: 64px;
    letter-spacing: -3px
}

.project-modal-container .projectinfo h1 {
    font-weight: 500;
    font-size: 3rem;
    letter-spacing: -0.15rem;
    padding: 0;
    margin: 0;
    line-height: 100%;
}

.projectinfo h2 {
    font-weight: normal;
    font-size: 1.5rem;
    padding: 0;
    margin: 0;
    letter-spacing: -0.1rem;
}

.projectinfo h3 {
    font-weight: normal;
    font-size: 1rem;
    padding: 0;
    margin: 0;
    letter-spacing: -0.03rem;
}

nav.mainnavigation > a {
    text-decoration: none;
    text-underline-offset: 12px;
    letter-spacing: -0.35px;
}

nav.mainnavigation > a:hover, nav.mainnavigation > a.active {
    text-decoration: underline;
}

nav.dialog {
    display: flex;
    gap: 35px;
    margin-top: 20px;
}

nav.dialog > span {
    font-size: 24px;
    cursor: pointer;
    text-decoration: none;
    text-underline-offset: 12px;
}
nav.dialog > span:hover, nav.dialog > span.active {
    text-decoration: underline;
}

nav.sub > a {
    text-decoration: none;
    text-underline-offset: 12px;
    letter-spacing: -0.35px;
    font-size: 18px;
}
nav.sub > a:hover, nav.sub > a.active {
    text-decoration: underline;
}

.modal-dialog .dlgsection {
    display: none;
}

.modal-dialog .dlgsection.active {
    display: block;
}

.modal-header.modal-section-header {
    padding-bottom: 0;
}

.btn-link {
    color: var(--plandurion-highlight);
}

.btn-link:hover {
    color: var(--plandurion-highlight-hover);
}

.user .userlogo {
    font-weight: bold;
    background-color: var(--default-userlogo);
    color: white;
    border-radius: 22px;
    height: 44px;
    flex: 0 0 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn.btn-circled {
    width: 48px;
    height: 48px;
    border-radius: 48px;
    margin-right: 8px;
    font-size: 28px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    background-color: var(--plandurion-btncircle-bg);
}

.btn.btn-circled:hover {
    color: var(--plandurion-highlight-hover);
}

.table > :not(caption) > * > * {
    background-color: transparent;
}

.table thead th {
    font-weight: 100;
    color: var(--bs-body-color);
}

.table tbody tr {
    transition: all 0.5s ease;
}

.table tbody td {
    padding: 3px 12px;
    vertical-align: middle;
}

.table-container {
    flex: 1;
    min-height: 0;
    overflow: auto;
}

.table thead {
    position: sticky;
    top: 0;
    z-index: 10;
    background-color: var(--bs-body-bg);
}

.table .right {
    text-align: right;
}

.table td.actions, div.actions {
    display: flex;
    gap: 8px;
}

.tablebutton {
    border: 0;
    padding: 4px 16px 4px 8px;
    border-radius: 24px;
    background-color: var(--pd-tablebt-bg);
    display: flex;
    gap: 6px;
    transition: background-color ease 0.3s;
}

    .tablebutton:hover {
        background-color: var(--pd-tablebt-bghover);
    }

.tablebutton .caption {
    flex: 1 1 auto;
    font-size: 14px;
    color: var(--pd-tablebt-fg);
}

.tablebutton i {
    color: var(--pd-tablebt-primary);
    flex: 0 0 26px;
    align-content: flex-start;
    font-size: 20px;
}

.tablebutton.danger i {
    color: var(--pd-tablebt-danger);
}

.tablebutton.warning i {
    color: var(--pd-tablebt-warning);
}

.tablebutton.success i {
    color: var(--pd-tablebt-success);
}

.contactstable .actions {
    width: 260px;
}

@media(min-width: 1600px) {
    .projecttablesmallstat {
        display: none !important;
    }
}

@media(max-width: 1650px) {
    .table-container.table-narrower .tablebutton .caption {
        display: none;
    }

    .table-container.table-narrower .tablebutton {
        padding: 4px 8px;
    }

}

@media (max-width: 1400px) {
    .activity-display {
        display: none;
    }

    .tablebutton .caption {
        display: none;
    }
}

@media (max-width: 1350px) {
    .today-hours {
        display: none;
    }
}

@media (max-width: 1100px) {
    .projectstat {
        display: none;
    }

    .contactstable .actions {
        width: 100px;
    }

    button.tablebutton {
        padding: 4px 8px;
    }

        button.tablebutton i {
            flex: 0 0 26px;
            align-self: center;
        }


    .form-row .form-label, .form-row .form-check-label {
        flex: 0 0 130px;
        margin-bottom: 0;
    }

    .typelabel, .timer-display {
        display: none;
    }

    .modal-title {
        font-size: 24px;
        letter-spacing: -1px;
    }

    .modal-header, .modal-body {
        padding: 18px 18px;
    }

    .modal-header i.bi {
        margin-top: 0px;
    }

    .projects header.d-flex .right, .currentstuff header.d-flex .right {
        display: none;
    }
}

@media(max-width: 950px) {
    nav.dialog {
        display: flex;
        gap: 15px;
        margin-top: 15px;
        margin-bottom: 20px;
    }

    nav.dialog > span {
        font-size: 16px;
        cursor: pointer;
        text-decoration: none;
        text-underline-offset: 12px;
    }

    .modal-dialog .modal-body {
        margin-right: 8px;
    }

    .contactstable .name {
        width: 95%;
    }

    header .rightbar a.settingsbutton {
        display: none;
    }

    .desktop-only {
        display: none !important;
    }

    .hide-mobile {
        display: none !important;
    }

    .rightnow h2 {
        margin-bottom: 0;
    }
}

@media(max-width: 600px) {
    .timer-break {
        display: none;
    }

    .topmostcontent > header {
        margin-top: 20px;
        margin-left: 20px;
        gap: 10px;
    }

    .topmostcontent > header .rightbar {
        gap: 10px;
    }

    .topmostcontent > header .time-tracking-bar {
        padding: 5px 10px;
        gap: 5px;
    }

    .topmostcontent > main {
        padding: 0;
    }

    .mainpagecontent {
        margin-left: 10px;
        margin-right: 10px;
        margin-top: 10px;
    }
}

.filterbar {
    display: flex;
    margin-bottom: 2rem;
    align-items: center;
    gap: 10px;
}

.helpicon {
    margin-left: 10px;
    font-size: 24px;
}

.admineditor {
    padding-left: 64px;
    padding-right: 32px;
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.wizard-field.form-row label {
    flex: 0 0 330px;
}

.dropdown-menu {
    --bs-dropdown-border-radius: 3px;
    --bs-dropdown-bg: white;
    position: fixed;
    z-index: 2050;
    margin-top: 2px;
    overflow-y: auto;
    max-height: 300px;
}

.flex-1 {
    flex: 1 1 auto;
}


span.timeinfo, span.navinfo {
    white-space: nowrap;
    color: white;
    display: inline-block;
    border-radius: 18px;
    padding: 2px 10px;
}

span.timeinfo {
    background-color: black;
}

span.navinfo {
    background-color: var(--project-main);
    min-width: 30px;
}

.modal-section-header nav.dialog > span {
    position: relative;
}

.modal-section-header span.navinfo {
    position: absolute;
    right: 40%;
    top: -16px;
    font-size: 12px;
    min-width: 10px;
    padding: 3px 8px;
    border-radius: 100px;
}

.clickable {
    cursor: pointer;
}

/* Common Popup Styles */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    background: transparent;
}

.popup-container {
    position: fixed;
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 10000;
    padding: 8px;
    min-width: 180px;
}

.popup-option {
    display: flex;
    align-items: center;
    gap: 12px;
 padding: 8px 12px;
    cursor: pointer;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.popup-option:hover {
  background-color: #f8f9fa;
}

.popup-option i {
    font-size: 18px;
    width: 20px;
    text-align: center;
}

.text-center {
    text-align: center;
}

.popup-option span {
    font-size: 14px;
}

.popup-option i.fa-check {
    color: var(--plandurion-highlight);
}

.popup-search {
    padding: 8px 12px;
    border-bottom: 1px solid #dee2e6;
    margin-bottom: 4px;
}

.popup-search input {
    width: 100%;
    padding: 6px 10px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 14px;
}

.popup-search input:focus {
    outline: none;
    border-color: var(--plandurion-highlight);
}

.autocomplete-dropdown {
    max-height: 300px;
    overflow-y: auto;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.autocomplete-dropdown .dropdown-item {
    cursor: pointer;
    padding: 0.5rem 1rem;
    white-space: normal;
    word-wrap: break-word;
}

.autocomplete-dropdown .dropdown-item:hover,
.autocomplete-dropdown .dropdown-item.active {
    background-color: var(--bs-primary);
    color: white;
}


.splashoverlay {
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    z-index: 10;
    background-color: rgb(0,0,0,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
}

.splashoverlay.hidden {
    display: none;
}

.splashscreen {
    padding: 20px 40px;
    width: 500px;
    max-width: 80%;
    max-height: 80%;
    background-color: var(--bs-modal-bg);
    color: var(--bs-body-color);
    font-size: 12px;
    border-radius: 32px;
}

.splashscreen .logo img {
    margin-top: 10px;
    margin-bottom: 10px;
    height: 100px;
}

.splashscreen .headline {
    font-family: 'Inter', 'Arial Extrabold', Arial;
    font-weight: 900;
    font-size: 40px;
    line-height: 50%;
    letter-spacing: -1px;
}

.splashscreen .headline small {
    font-weight: normal;
    font-size: 20px;
    letter-spacing: 0px;
}

.splashscreen .version {
    font-size: 12px;
    line-height: 100%;
    color: var(--plandurion-highlight);
}

.splashscreen .creators {
    text-align: center;
    padding-top: 15px;
}
