
@import url(/assets/css/light.css) (prefers-color-scheme: light);
@import url(/assets/css/dark.css) (prefers-color-scheme: dark);

html,
body {
    padding: 0;
    margin: 0;
}

:root {
    --md-ref-typeface-brand: 'Roboto Flex', sans-serif;
    --md-ref-typeface-plain: 'Roboto Flex', sans-serif;

    font-family: var(--md-ref-typeface-plain);
    font-size: 14px;

    background: var(--md-sys-color-background);
    color: var(--md-sys-color-on-background);
    /* https://developer.mozilla.org/en-US/docs/Web/CSS/color-scheme#examples */
    color-scheme: light dark; 
}

* {
    box-sizing: border-box;
  }
  

.page-container {
    margin: 0 auto;
    width: 100%;
    min-width: 320px;
    /* min-height: 100vh; */
    /* background-color: #ebeef2; */
}
.mainNav {
    background-color:var(--md-sys-color-manNav)
}

#sidebar {
    color: var(--md-sys-color-on-surface); /* #e9ecef !important; */
    background-color: var(--md-sys-color-surface);  /* #1f2937; */
    transform: translateX(0) translateY(0) translateZ(0);
    transition: transform .28s ease-out;

    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 1032;
    height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
    will-change: transform;

    border-right: 1px solid var(--md-sys-color-outline-variant);
}

#sidebar.active{
    display: block;
}

#sidebar a {
    /* color: #e9ecef !important; */
    color: color: var(--md-sys-color-on-surface);
    text-decoration: none;
}

#sidebar .sidebar-header {
    background-color: var(--md-sys-color-surface-variant); /* #232e3e; */
    color: var(--md-sys-color-on-surface-variant);
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0 auto;
    height: 4rem;
    padding-left: 1.25rem;
    padding-right: 1.25rem;
}

.sidebar-content {
    width: 100%;
    margin: 0 auto;
    padding: 1.25rem 0;
    overflow-x: hidden;
}

.nav-main-link.active {
    color: #fff;
}

.nav-main-link {
    position: relative;
    display: flex;
    align-items: center;
    padding: .5rem 1.25rem;
    min-height: 2.5rem;
    font-weight: 500;
    line-height: 1.25rem;
    color: #212529;
}

.nav-main-link:hover {
    background-color: rgba(0, 0, 0, .2);
}

.nav-main-heading {
    padding: 1.375rem 1.25rem .375rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .0625rem;
    color: #7186a3;
}

.nav-main-link-icon {
    flex: 0 0 auto;
    display: inline-block;
    margin-right: .625rem;
    min-width: 1rem;
    text-align: center;
}

.nav-main-link-name {
    font-weight: 500;
    line-height: 1.25rem;
}
.hamburger{
    display: none;
}

.logo {
    transition: opacity .28s ease-out;
    font-size: 1.125rem !important;
    letter-spacing: .05em !important;
    font-weight: 700;
}

#page-header {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 1030;
    min-width: 320px;
    max-width: 100%;
    width: auto;
    box-shadow: 0 0.125rem 0.375rem rgba(0, 0, 0, .02);
    background-color: var(--md-sys-color-surface-variant); /* #232e3e; */
    color: var(--md-sys-color-on-surface-variant);
}

.content-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0 auto;
    height: 4rem;
    padding-left: 16px;
    padding-right: 16px;
    padding-bottom: 4px;
}
.shadow-popup{
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    left: 0;
    background-color: #000;
    opacity: 0.5;
    width: 100%;
    height: 100%;
}
.shadow-popup.active{
    display: block;
}

#main-container {
    display: flex;
    flex-direction: column;
    flex: 1 0 auto;
    padding-top: 4rem;
}

.content {
    padding: 16px 16px 1px;
}


@media (min-width: 992px) {
    .page-container {
        padding-left: 250px;
    }
    .page-container.login {
        padding-left: 0;
    }

    #sidebar {
        width: 250px
    }

    #page-header {
        padding-left: 250px;
    }
}

@media screen and (max-width: 839px) {
    /* Mobile */
    #sidebar {
        display: none;
        width: 60%;
        transition: max-height 0.3s ease-out;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    }
    .nav-search{
        display: none !important;
    }
    .hamburger{
        display: block;
    }
}

.fabBottom {
    position: fixed;
    right: 16px;
    bottom: 16px;    /* bottom nav bar is 80px */
}



/* responsive flex */
.flexr {
    display: flex;
}
.flexw {
    display: flex;
    flex-wrap: wrap;
}

@media (width < 600px) {
    .flexr {
        flex-wrap: wrap;
    }
    :is(.medium, .expanded):not(.compact) {
        display: none;
    }
    .gte-medium {
        display: none;
    }
    .fabBottom {
        bottom: 96px;    /* bottom nav bar is 80px */
    }
}

@media (width >= 600px) and (width < 840px) {
    :is(.compact, .expanded):not(.medium) {
        display: none;
    }
}

@media (width >= 840px) {
    :is(.compact, .medium):not(.expanded) {
        display: none;
    }
    .gte-expanded {
        display: block;
    }
}

@media(width < 840px){
    .gte-expanded {
        display: none;
    }
}

@media (width >=600px) {
    .gte-medium {
        display: block;
    }
}

.content1 {
    margin-bottom: 48px;
}

.warning {
    color: orange;
}
.error {
    color: red;
}
.success {
    color: green;
}

a {
    color: var(--md-sys-color-primary);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.max-width {
    max-width: 1240px;
    margin: 0 auto;
}

.grid {
    display: grid;
}

.flex {
    display: flex;
}
.flex-fow {
    display-direction: row;
}
.flex-col {
    flex-direction: column;
}

.flexw {
    display: flex;
    flex-wrap: wrap;
}


.f1 {
    flex: 1;
}

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

.w100 {
    width: 100%;
}

.jc {
    /* deprecated */ 
    justify-content: center;
}
.jcc {
    justify-content: center;
}
.jsb {
    /* deprecated */
    justify-content: space-between;
}
.je {
    /* deprecated */
    justify-content: end;
}
.jce {
    justify-content: end;
}
.jcr {
    justify-content: right;
}
.jcsb {
    justify-content: space-between;
}
.ac, .aic {
    align-items: center;
}
.ae, .aie {
    align-items: end;
}

img.center {
    margin: 0 auto;
    display: block;
}

.col {
    flex-direction: column;
}

.g4 {
    gap: 4px;
}
.g8 {
    gap: 8px;
}
.g12 {
    gap: 12px;
}
.g16 {
    gap: 16px;
}
.g20 {
    gap: 20px;
}
.g24 {
    gap: 24px;
}
.g32 {
    gap: 32px;
}
.g48 {
    gap: 48px;
}

.mt8 {
    margin-top: 8px;
}
.mt12 {
    margin-top: 12px;
}
.mt16 {
    margin-top: 16px;
}
.mt20 {
    margin-top: 20px;
}
.mt24 {
    margin-top: 24px;
}

.mt32 {
    margin-top: 32px;
}
.mb8{
    margin-bottom: 8px;
}
.mb12 {
    margin-bottom: 12px;
}
.mb16 {
    margin-bottom: 16px;
}
.mb20 {
    margin-bottom: 20px;
}
.mb24 {
    margin-bottom: 24px;
}
.mb48 {
    margin-bottom: 24px;
}

.m0{
    margin: 0;
}
.p4 {
    padding: 4px;
}
.p8 {
    padding: 8px;
}
.p12 {
    padding: 12px;
}
.p16 {
    padding: 16px;
}
.p20 {
    padding: 20px;
}
.p24 {
    padding: 24px;
}

.pt12 {
    padding-top: 12px;
}
.pt16 {
    padding-top: 16px;
}
.pt20{
    padding-top: 20px;
}
.pt24 {
    padding-top: 24px;
}
.pt28 {
    padding-top: 28px;
}
.pt32 {
    padding-top: 32px;
}

.pr8 {
    padding-right: 8px;
}
.pr12 {
    padding-right: 12px;
}
.pr16 {
    padding-right: 16px;
}
.pr20 {
    padding-right: 20px;
}
.pr24 {
    padding-right: 24px;
}

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

.card{
    border: 1px solid silver;
    border-radius: 8px;
}

md-outlined-card img {
    width: 100%;
    height: 160px;
    object-fit: cover;
}
md-outlined-card .title {
    font-size: 1.2rem;
    font-weight: 500;
}

.footer {
    background-color: #f8f9fa;
    color: #6c757d;
    padding: 20px;
    text-align: center;
    margin-top: 24px;
}

.w-100{
    width: 100% !important;
}

.cursor {
    cursor: pointer;
  }
.list-count {
    margin-left: 8px;
    font-size: 1.5rem; /* Slightly smaller than the main title */
    color: var(--md-sys-color-secondary); /* Secondary color for emphasis */
}
.delete-button {
    --md-sys-color-primary: #d32f2f; /* Red color */
    --md-sys-color-on-primary: white; /* Text color for contrast */
}

    .cardLabel {
        font-size: 90%; 
        color: var(--md-sys-color-on-surface-variant);
    }
    md-outlined-card.secondary {
        background-color: var(--md-sys-color-secondary);
        color: var(--md-sys-color-on-secondary);
        --md-outlined-card-container-color: var(--md-sys-color-secondary);
        --md-outlined-card-outline-color: var(--md-sys-color-outline-variant);
    }
    md-outlined-card.success {
        background-color: green;
        color: white;
        --md-outlined-card-container-color: green;
        --md-outlined-card-outline-color: var(--md-sys-color-outline-variant);
    }
    md-outlined-card.error {
        background-color: var(--md-sys-color-error);
        color: var(--md-sys-color-on-error);
        --md-outlined-card-container-color: var(--md-sys-color-error);
        --md-outlined-card-outline-color: var(--md-sys-color-outline-variant);
    }
    


    
    .headline-large {
        font-weight: 400;
        font-size: 32px;
        line-height: 40px;
        letter-spacing: 0;
    }
    .headline-medium {
        font-weight: 400;
        font-size: 28px;
        line-height: 36px;
        letter-spacing: 0;
    }
    .headline-small {
        font-weight: 400;
        font-size: 24px;
        line-height: 32px;
        letter-spacing: 0;
    }

    .title-large {
        font-weight: 400;
        font-size: 22px;
        line-height: 28px;
    }
    .title-medium {
        font-weight: 500;
        font-size: 16px;
        line-height: 24px;
        letter-spacing: 0.15px;
    }
    .title-small {
        font-weight: 500;
        font-size: 14px;
        line-height: 20px;
        letter-spacing: 0.1px;
    }

    .body-large {
        font-size: 16px;
        line-height: 24px;
        letter-spacing: 0.5px;
    }
    

