* {
    transition: all 0.3s ease-in-out;
    animation-duration: 0.3s !important;
    box-sizing: border-box;
}

:root {
    --primary-color: #034959;
    --dark-primary-color: hsl(from var(--primary-color) h s calc(15));
    --negative-color-text: #f71f18;
    --negative-color: #590603;
    --dark-shader-color: hsl(from var(--negative-color) h s calc(15));
    --positive-color: #035910;
    --dark-shader-color: hsl(from var(--positive-color) h s calc(15));
    --positive-color-text: #09f62c;
    --bg: hsl(0, 0%, 5%);
    --bg-light: hsl(0, 0%, 10%);
    --bg-lighter: hsl(0, 0%, 15%);
    --graph-background: #034959;
    --hover-bg: hsl(0, 0%, 20%);
    --text: hsl(0, 0%, 95%);
    --button-text: hsl(0, 0%, 95%);
    --text-muted: hsl(0, 0%, 85%);
    --stroke: hsl(0, 0%, 85%);
    --border: hsl(0, 0%, 25%);
    --text-xs: .75rem;
    --text-xs--line-height: calc(1 / .75);
    --text-sm: .875rem;
    --text-sm--line-height: calc(1.25 / .875);
    --text-base: 1rem;
    --text-base--line-height: calc(1.5 / 1);
    --text-lg: 1.125rem;
    --text-lg--line-height: calc(1.75 / 1.125);
    --text-xl: 1.25rem;
    --text-xl--line-height: calc(1.75 / 1.25);
    --text-2xl: 1.5rem;
    --text-2xl--line-height: calc(2 / 1.5);
    --text-3xl: 1.875rem;
    --text-3xl--line-height: calc(2.25 / 1.875);
    --text-4xl: 2.25rem;
    --text-4xl--line-height: calc(2.5 / 2.25);
    --text-5xl: 3rem;
    --text-5xl--line-height: 1;
    --text-6xl: 3.75rem;
    --text-6xl--line-height: 1;
    --text-7xl: 4.5rem;
    --text-7xl--line-height: 1;
    --font-weight-light: 300;
    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
    --font-weight-black: 900;
}

.darkTheme {
    display: none;
}

body {
    background: var(--bg) !important;
    display: flex;
    flex-direction: column;

    &.light {
        --bg-lighter: hsl(0, 0%, 95%);
        --bg-light: hsl(0, 0%, 90%);
        --bg: hsl(0, 0%, 85%);
        --hover-bg: hsl(0, 0%, 70%);
        --text: hsl(0, 0%, 5%);
        --text-muted: hsl(0, 0%, 15%);
        --border: hsl(0, 0%, 75%);
        --text: hsl(0, 0%, 5%);
        --text-muted: hsl(0, 0%, 15%);
        --border: hsl(0, 0%, 75%);
        --stroke: hsl(0, 0%, 15%);
        --positive-color-text: hsl(129, 93%, 18%);
        --negative-color-text: #590603;

        .lightTheme {
            display: none;
        }

        .darkTheme {
            display: block;
        }
    }
}

a {
    font-family: var(--Inconsolata);
    color: var(--text-muted);
    font-weight: var(--font-weight-bold);
}

.header {
    padding: 4px 8px;
    position: relative;
}



.headerLogo {
    width: 40px;
    border-radius: 50%;
    display: flex;
}

img {
    width: 100%;
}

.headerTextHolder {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.headerText {
    font-family: var(--Jost);
    font-weight: 600;
    font-size: 24px;
    color: var(--text)
}

.headerContent {
    display: flex;
    justify-content: center;
}

main {
    flex: 1;
    display: flex;
}

.mainHolder {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 12px;
    overflow: hidden;
    width: 100%;
}


#sidebar {
    height: 100%;
    grid-column: span 2;
    background: white;
    box-shadow: 0px 0px 3px #0000003b;
    user-select: none;
    display: none;
}

.sidebarsElement {
    padding: 12px;
}

.sidebar {
    display: flex;
    border-radius: 40px;
}

.sidebarIconHolder {
    display: flex;
    border-radius: 50%;
    padding: 8px;

}

.sidebarTextHolder {
    display: flex;
    align-items: center;
    padding: 0px 12px;
    font-family: var(--Figtree);
    font-weight: 600;
    font-size: 18px;
}

.searchInputHolder {
    display: flex;
    align-items: center;
}

.searchIconHolder {
    display: flex;
    padding: 8px;
    position: absolute;
}

.searchInput {
    display: flex;
}


#searchInput {
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 100%;
    font-family: var(--Figtree);
    outline: none;
    border: 1px solid hsl(0, 0%, 90%);
    background: var(--bg-light);
    color: var(--text-muted)
}

#mainContent {
    grid-column: span 12;
}

#introDisplay {
    position: relative;
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 12px;
}

.introDisplayLogoHolder {
    width: 50px;
    border-radius: 50%;
    display: flex;
    padding: 8px;
    background: var(--bg);
}

.introTextHolder {
    font-family: var(--Figtree);
    font-size: 16px;
    text-align: center;
    color: var(--text-muted);
}

.introButtons {
    display: flex;
    gap: 8px;
    justify-content: space-between;
    padding: 8px;
}


.introButton {
    font-family: var(--Jost);
    background: var(--primary-color);
    color: var(--button-text);
    font-weight: 500;
    border-radius: 4px;
    cursor: pointer;
    box-shadow: 0px 4px var(--dark-primary-color);

    &:hover &::before {
        background: var(--hover-bg)
    }

    &:active {
        box-shadow: 0px 2px var(--dark-primary-color);
    }
}



.introDisplayHolder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 12px 24px;
    background: var(--bg-light);
    border-radius: 12px;
    border: 1px solid hsl(0, 0%, 25%);
}

.contentHolder,
.content,
#contentShip,
.cHolder {
    height: 100%;
}

.cHolder {
    display: flex;
}

.content {
    display: flex;
    flex-direction: column;
}

#content {
    flex: 1;
}


#createProjectForm {
    flex: 1;
    padding: 20px;
    display: flex;
}

.form {
    padding: 16px;
    background: var(--bg-light);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    width: 30rem;
}

.formTitleText {
    font-size: var(--text-xl);
    font-family: var(--Jost);
    font-weight: var(--font-weight-semibold);
    color: var(--text);
}

.formHolder {
    display: flex;
    justify-content: center;
    flex: 1;
    margin: auto;
}



.formContent {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 4px 8px;
}

.fcTitle {
    font-family: var(--Figtree);
    font-size: var(--text-sm);
    color: var(--text);
    opacity: 0.6;
}

.inputHolder {
    display: flex;
    position: relative;
}

.inputHolderRight {
    justify-content: end;
}

.formInput,
#project_searcher {
    background: transparent;
    padding: 12px 8px;
    border-radius: 8px;
    outline: none;
    font-family: var(--Figtree);
    color: var(--text);
    font-weight: var(--font-weight-normal);
    width: 100%;
    word-wrap: break-word;
    word-break: break-word;
    font-size: var(--text-base);
    border: 1px solid var(--border);
}

#project_searcher {
    padding-left: 40px;
}

.projectHeader {
    display: flex;
    align-items: center;
    padding: 12px;
    gap: 12px;
}

.formInput:focus {
    background: var(--bg-lighter);
}

label {
    position: absolute;
    left: 10px;
    display: flex;
    align-items: center;
    pointer-events: none;
    color: var(--text-muted);
    height: 100%;
    font-family: var(--Figtree);
    font-size: var(--text-base)
}


.inputHolder :is(.formInput:focus, .formInput:valid)~label {
    transform: translateY(-50%) scale(.9);
    margin: 0em;
    /*! margin-left: 1.3em; */
    padding: 0.4em;
    background-color: var(--bg-light);
    height: max-content !important;
    border-radius: 8px;
    font-size: var(--text-xs);
    opacity: 0.8;
}

.decimalInput {
    font-family: var(--Inconsolata);
    text-align: right;
    font-weight: var(--font-weight-bold);
    width: 50%;
}

.decimalInput~label {
    left: auto;
    right: 10px;
}

.formContentHolder {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

#projectsShip {
    height: 100%;
    width: 100%;

    padding: 20px;
    box-sizing: border-box;
}

.projects {
    height: 100%;
    position: relative;
    display: flex;
    flex-direction: column;
}

.project_menu {
    display: flex;
    justify-content: end;
    align-items: center;
}

#requestHolder {
    display: none;
}

.projectHolder {
    width: 100%;
    padding: 8px;
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 12px;
}

.project {
    background: var(--bg-light);
    padding: 8px;
    border: 1px solid var(--border);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    animation-delay: calc(var(--i) * 0.3s);
    grid-column: span 3;
    gap: 8px;
}

.p_holder {
    display: flex;
    flex: 1;
    flex-direction: column;
    position: relative;
    cursor: pointer;
    padding: 6px 12px;
    border-radius: 8px;
}

.p_holder:hover {
    background: var(--bg-lighter);
}

.p_holder:active {
    background: none;
}

.projectDetails {
    display: flex;
    flex-direction: column;
    gap: 12px;
    justify-content: space-between;
}

.project_details,
.project_timeline_icon,
.project_setting_icon,
.headerIcon,
.jectHeaderHolder,
.ject_identifier {
    display: flex;
    align-items: center;
}

.ject_identifier {
    flex-direction: column;
    align-items: start;
}

.project_name {
    font-size: var(--text-lg);
    font-family: var(--Figtree);
    font-weight: var(--font-weight-bold);
    color: var(--text);
}

.project_ref_no {
    font-family: var(--Figtree);
    font-size: var(--text-sm);
    font-weight: var(--font-weight-light);
    color: var(--text-muted);
}

.project_client {
    background: var(--bg-lighter);
    font-family: var(--Jost);
    color: var(--text-muted);
    padding: 4px 8px;
    font-size: var(--text-xs);
    margin: 0px 4px;
    border-radius: 20px;
}

.projectTechnicalDetails {
    margin-left: auto;
    display: flex;
    justify-content: space-between;
    position: absolute;
    bottom: 0px;
    right: 0px;
    align-items: center;
}

.project_quotation_price {
    font-family: var(--Inconsolata);
    color: var(--text);
    font-size: var(--text-xl);
    padding: 4px 8px;
    font-weight: var(--font-weight-bold);
}

.project_starting_amount {
    font-family: var(--Inconsolata);
    color: var(--text-muted);
    font-size: var(--text-sm);
    padding: 4px 8px;
    font-weight: var(--font-weight-medium);
    opacity: 0.7;
}

.projectHeader .introButton {
    box-shadow: none;
}

.projectHeader .introButtonTextHolder {
    padding: 4px 8px;

}

.introButtonTextHolder {
    padding: 8px 16px;
    text-wrap-mode: nowrap;
}

.headerActionButtonHolder {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: end;
}

.themeActionButton {
    display: flex;
    padding: 12px;
}

.project_timeline {
    display: flex;
    font-family: var(--Inconsolata);
    font-size: var(--text-xs);
    align-items: center;
    letter-spacing: -0.5px;
    color: var(--text-muted);
    background: var(--bg-lighter);
    padding: 4px 16px;
    border-radius: 4pc;
    gap: 8px;
}

.project_detail {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.project_active {
    font-family: var(--Figtree);
    font-weight: var(--font-weight-bold);
    font-size: .6rem;
    color: var(--button-text);
}

.active_project {
    padding: 4px 8px;
    border-radius: 4pc;
    background: var(--positive-color);
}

.project_setting_holder {
    position: relative;
    z-index: 999;
}

.project_setting_container {
    position: absolute;
    overflow: hidden;
    width: 100%;
    display: flex;
    justify-content: end;
}

.project_settings {
    display: flex;
    align-items: center;
    position: absolute;
}

.project_setting {
    display: flex;
    background: var(--bg-lighter);
    border-radius: 4px;
    padding: 8px 16px;
    font-size: var(--text-sm);
    font-family: var(--Figtree);
    color: var(--text);
    align-items: center;
    gap: 8px;
    cursor: pointer;
    border: 1px solid var(--border);
}

.delete_project {
    background: var(--negative-color);
}

.project_icon {
    display: flex;
    padding: 4px;
    background: var(--bg-lighter);
    border-radius: 50%;
    margin: 2px 4px;
}

.signification {
    animation-duration: 1s !important;
    animation: errorInput 1s linear;
}

@keyframes errorInput {
    0% {
        border: 1px solid var(--border);
        background: transparent;
    }

    50% {
        border: 1px solid var(--negative-color);
        background: hsl(from var(--negative-color) h s calc(80))
    }
}

.headerElement {
    display: flex;
    align-items: center;
    padding: 4px 8px;
    background: var(--bg-light);
    border-radius: 4pc;
    gap: 4px;
    user-select: none;
}

.elementText {
    font-family: var(--Figtree);
    color: var(--text);
}

.containerHeader {
    padding: 8px;
}

.projectContainer {
    padding: 0px 16px;
}

.rate {
    display: flex;
    gap: 8px;
    align-items: center;
    padding: 4px 12px;
    background: var(--bg-lighter);
    border-radius: 4pc;
    overflow: hidden;
}

.rateTextHolder {
    font-family: var(--Inconsolata);
    color: var(--positive-color-text);
    font-weight: var(--font-weight-bold);
}

.rateConstantText {
    font-family: var(--Figtree);
    font-size: var(--text-xs);
    color: var(--text-muted);
}

.rate_holder {
    display: flex;
    gap: 12px;
    padding: 0px 8px;
    flex-wrap: wrap;
}

.ject {
    padding: 8px;
    box-sizing: border-box;

}

.ject,
.ject_details,
.ject_details_holder {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.ject_name {
    font-family: var(--Jost);
    font-size: var(--text-xl);
    font-weight: var(--font-weight-medium);
    color: var(--text);
}

.ject_ref_no {
    font-size: var(--text-xs);
    font-family: var(--Jost);
    font-weight: var(--font-weight-semibold);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    opacity: 0.7;
}

.ject_button {
    color: var(--button-text);
    font-family: var(--Figtree);
    font-weight: var(--font-weight-bold);
    font-size: var(--text-lg);
    background: var(--primary-color);
    text-align: center;
    padding: 8px;
    border-radius: 4px;
    user-select: none;
    cursor: pointer;
}

.finished_project {
    padding: 4px 8px;
    border-radius: 4pc;
    background: var(--negative-color);
}

.projectShip {
    width: 100%;
}

.projectContainer {
    height: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
}

.ject_holder {
    flex: 1;
}

.ject_transactions,
.ject_details_holder {
    height: 100%;
}

.ject_transaction_holder {
    height: 100%;
    position: relative;
}

#ject_transaction {
    position: absolute;
    height: 100%;
    width: 100%;
}

.expenseIntroHolder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    flex-direction: column;
}

#expense {
    flex: 1;
    height: 100%;
    width: 100%;
}

.expenseHolder {
    height: 100%;
}

.expenses {
    background: var(--bg-light);
    position: absolute;
    width: 100%;
}

.expenseHolder {
    position: relative;
    overflow-y: scroll;
    scrollbar-width: thin;
}

.expense {
    padding: 8px;
    display: flex;
    justify-content: space-between;
}

.expenseNameHolder {
    display: flex;
    align-items: center;
}

.expenseName {
    font-family: var(--Figtree);
    font-size: var(--text-base);
    color: var(--text);
}

.expenseTime {
    font-family: var(--Inconsolata);
    font-size: var(--text-xs);
    color: var(--text-muted);

}

.expenseValue {
    text-align: right;
    font-family: var(--Inconsolata);
    font-weight: var(--font-weight-bold);
}

.negative_value {
    color: var(--negative-color-text);
}

.positive_value {
    color: var(--positive-color-text);

}

#expenseHeader {
    width: 100%;
    display: flex;
    justify-content: end;
}

.headerHolder {
    margin: 4px;
}

.expenseHeaderHolder {
    display: flex;
    gap: 4px;
    padding: 12px;
}

.expenseHeaderHolder .introButton {
    box-shadow: none;
}

.expenseHeaderHolder .introButtonTextHolder {
    padding: 4px 8px;
}

.backButton {
    font-family: var(--Jost);
    background: var(--negative-color);
    color: var(--button-text);
    font-weight: 500;
    border-radius: 4px;
    cursor: pointer;
    box-shadow: 0px 4px hsl(from var(--negative-color) h s calc(10));
    display: flex;
    align-items: center;
    padding: 8px;
}

#time_delta {
    font-family: var(--Figtree);
    font-weight: var(--font-weight-semibold);
    font-size: var(--text-sm);
    opacity: 0.7;
    color: var(--text)
}

.profileIcon {
    display: flex;
    background: var(--primary-color);
    border-radius: 50%;
    padding: 2px;
}

.profileHolder {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px;
    background: var(--bg-light);
    border-radius: 4pc;
    border: 1px solid var(--border);
}

.profileText {
    font-family: var(--Figtree);
    font-weight: var(--font-weight-medium);
    color: var(--text-muted);
    padding-right: 4px;
}

.feedBackHolder {
    position: relative;
}

.feedBack {
    position: absolute;
    width: 100%;
    background: var(--bg-light);
    padding: 8px;
    box-sizing: border-box;
    z-index: 1;
    margin-top: 2px;
    border: 1px solid var(--border);
    opacity: 0;
    display: flex;
    gap: 4px;
}

.feedback {
    font-family: var(--Figtree);
    color: var(--text-muted);
    opacity: 0.75;
    background: var(--bg-lighter);
    border-radius: 4px;
    padding: 4px;
}

.formOption {
    display: flex;
    flex: 1;
    justify-content: center;
    background: var(--bg-lighter);
    padding: 12px;
    font-family: var(--Figtree);
    gap: 4px;
    flex-direction: column;
    border: var(--border);
}

.chosenOption {
    background: var(--bg-light);
}

.optionHolder {
    display: flex;
    background: var(--bg);
    padding: 2px;
    color: var(--text);
}

.formOptionIconHolder {
    display: flex;
    width: max-content;
    background: var(--bg);
    padding: 8px;
    border-radius: 50%;
}

.formOptionText {
    font-size: var(--text-sm);
    font-weight: var(--font-weight-medium);
    text-wrap-mode: nowrap;
}

.smstAccountHolder {
    height: 100%;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.smstAccount {
    padding: 16px;
    background: var(--bg-light);
    border-radius: 4px;
    border: 1px solid var(--border);
    color: var(--text);
}

.smstDetailsHolder {
    display: flex;
    padding: 12px;
}

.smstLogoHolder {
    width: 50px;
}

.smstDetailsHolder {
    max-width: 20rem;
    padding: 4px;
    font-family: var(--Jost);
    text-align: justify;
}

.smstButtonHolder {
    display: flex;
    font-family: var(--Figtree);
    padding: 12px;
    align-items: center;
}

.smstButton {
    padding: 8px 16px;
    background: var(--bg-lighter);
    border-radius: 4px;
}

.smstActivator {
    padding: 8px 16px;
}

#nprogress .bar {
    height: 4px !important;
    background: var(--primary-color) !important;
}

.peg {
    box-shadow: none !important;
}

.spinner {
    display: none !important;
}

#expenseAnalysis {
    margin: auto;
    height: 70%;
    background: var(--bg-light);
    border-radius: 8px;
}

.analysis_holder,
.analysis {
    height: 100%;
}

.analysis,
.expense_finance {
    padding: 12px;
}

.analysis {
    display: flex;
    flex-direction: column;
}

.expense_name {
    font-size: var(--text-xl);
    font-family: var(--Figtree);
    font-weight: var(--font-weight-medium);
}

.expense_finances,
.expense_graph,
.expense_finances_holder {
    display: flex;
}

.expense_finance_type {
    font-family: var(--Jost);
}

.expense_finance_amount {
    font-family: var(--Inconsolata);
    font-weight: var(--font-weight-medium);
    color: var(--negative-color);
    font-size: var(--text-xl);
}

.expense_transactions {
    position: relative;
    height: 100%;
}

.expense_details {
    padding: 4px 12px;
}

.expense_graph {
    height: 150px;
}

.expenseDetails{
    display: flex;
  align-items: center;
  gap: 12px;
}


@media (max-width: 1300px) {
    .project {
        grid-column: span 4;
    }
}

@media (max-width: 1000px) {
    .project {
        grid-column: span 6;
    }
}

@media (max-width: 768px) {
    .expenseDetails{
        flex-direction: column;
        align-items: end;
    }
    .mainHolder {
        gap: 4px;
        display: flex;
    }

    .sidebarsElement {
        padding: 4px;
        display: flex;
    }

    .sidebarTextHolder {
        display: none;
    }

    .cHolder {
        display: flex;
        justify-content: center;
    }

    #introDisplay {
        width: 50%;
    }

    #mainContent {
        width: 100%;
    }

    .form {
        width: 80vw;
    }

    .projectHeader .introButtonTextHolder {
        font-size: var(--text-sm);
    }

    .project_client {
        font-size: .6rem;
    }

    .p_holder,
    .projectHolder {
        flex-direction: column;
    }

    .jectHeaderHolder {
        flex-direction: column;
        align-items: start;
        gap: 12px;
    }

    .rate_holder {
        gap: 8px;
        padding: 0px;
    }

    .rate {
        padding: 4px 8px;
        gap: 4px;
    }

    .rateTextHolder {
        font-size: var(--text-sm);
    }

    .ject_identifier {
        justify-content: space-between;
    }

    .project {
        grid-column: span 12;
    }

    .profileText {
        display: none;
    }

    .expense_finances_holder {
        flex-direction: column;
    }

    #expenseAnalysis {
        margin: 0;
        height: 100%;
        width: 100%;
        padding: 12px;
    }

    .formOption {
        padding: 4px;
        align-items: center;
    }

    .formOptionText {
        display: none;
    }

    label {
        font-size: var(--text-xs);
    }

    .introButtonTextHolder {
        padding: 4px 8px;
    }

    .ject_analysis{
    }
    
    .ject_analysis_holder{
        position: relative;
        height: 100px;
    }

    .formOptionIconHolder {
        padding: 4px;

        & svg {
            height: 16px;
            width: 16px;
        }
    }
}