body {
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow: hidden;
}

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  font-family: "Inter", sans-serif;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

.chart-nav-links{
    display: none;
    flex: 1;
    text-align: center;
    z-index: 21;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    flex: none;
    text-align: center;
    width: max-content;
}
.navLinkText.active::after {
    width: 110px;
}
body.logged-in .chart-nav-links {
    display: block;
}
.chart-nav-links ul li{
    list-style: none;
    display: inline-block;
    padding: 6px 30px;
    position: relative;
}
.chart-nav-links ul li a{
    color: rgb(0, 0, 0);
    text-decoration: none;
    font-size: 18px;
    font-weight: bold;
    font-family: "Inter", sans-serif;
}
.navRight{
    margin-left:auto;
}
#proButton {
    background-color: hsl(224, 89%, 48%);
    border-radius: 50px;
    color: white;
    font-weight: 600;
    padding: 6px 20px;
    white-space: nowrap;
    line-height: normal;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
#proButton:hover {
    background-color: hsl(224, 89%, 58%);
}

.signoutBtn2 { /* Sign in Button */
    display: none;
    background-color: hsl(0, 0%, 100%);
    font-size: 16px;
    color: hsl(0, 0%, 0%);
    text-decoration: none;
    border: 2px solid hsl(0, 0%, 70%);
    border-radius: 100px;
    padding: 10px 20px;
    margin-left: 30px;
    transition: 0.5s ease;
    cursor: pointer;
}
body.logged-in .signoutBtn2 {
    display: block;
}




.toolbar{
    width: 100%;
    height: 10vh;
    flex-shrink: 0;
}
.toolBarBox{
    display: flex;
    flex-direction: row;
    align-items: center;
    margin: auto;
    margin-top: 0.7%;
    margin-bottom: 0.7%;
    background-color: hsl(0, 0%, 100%);
    width: 98%;
    height: 8vh;
    border: 2.5px solid hsl(0, 0%, 86%);
    border-radius: 20px;
    position: relative;
    z-index: 899;
    padding: 42px 10px;

}
.toolbar h2{
    font-size: 16px;
    padding-left: 30px;
}

.paintTools{
    display: flex;
    flex-direction: row;
    justify-content: left;
    align-items: center;
}
#categoryHeading{
    margin-right: 20px;
}
.categoryTools{
    display: flex;
    flex-direction: row;
    align-items: center;
}
.categoryContainer {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, 1fr);
    max-width: 30%;
}

#categoryDropdownButton{
    display: none;
}
/* Mobile dropdown layout */
#dropdownContent .categoryContainer {
    display: flex;
    flex-direction: column;
    max-width: 100%;
    width: 90%;
    padding-left: 0;
    gap: 0;
    z-index: 1;
}

#dropdownContent .categories {
    width: 100%;
    height: 60px;
    margin: 0;
    border-radius: 10px;
    margin: 5px 0px;
    box-sizing: border-box;
}
.categories {
    width: 130px;
    height: 31px;
    background-color: #658bfb;
    border: none;
    border-radius: 5px;
    color: rgb(0, 0, 0);
    text-align: center;
    justify-content: center;
    text-decoration: none;
    display: inline-block;
    font-size: clamp(90%, 80%, 110%);
    font-weight: 600;
    margin: 2px 2px;
    cursor: pointer;
    min-width: 0;
    overflow: hidden;
}
#eraserButton{
    display: block;
    position: relative;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 10px;
    background-color: white;
    font-size: 25px;
    margin-left: 16px;
    margin-right: 30px;
}
#eraserButton.active {
  outline: 3px solid #333;
  outline-offset: 2px;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.3);
}


#sleepBtn{
    background-color: hsl(197, 68%, 71%);
}

#workBtn{
    background-color: hsl(135, 81%, 46%);
}

#wastedTimeBtn{
    background-color: hsl(2, 76%, 49%);
}

#socialEventBtn{
    background-color: hsl(48, 88%, 48%);
}

#exerciseBtn{
    background-color: hsl(0, 0%, 36%);
}

#jobSchoolBtn{
    background-color: hsl(133, 53%, 32%);
}

#transportBtn{
    background-color: hsl(30, 82%, 50%);
}

#otherBtn{
    background-color: hsl(0, 0%, 92%);
    border: 2px solid hsl(0, 0%, 82%);
}


#sleepBtn:hover{
    background-color: hsl(197, 68%, 81%);
}

#workBtn:hover{
    background-color: hsl(135, 81%, 56%);
}

#wastedTimeBtn:hover{
    background-color: hsl(2, 76%, 59%);
}

#socialEventBtn:hover{
    background-color: hsl(48, 85%, 50%);
}

#exerciseBtn:hover{
    background-color: hsl(0, 0%, 46%);
}

#jobSchoolBtn:hover{
    background-color: hsl(133, 53%, 42%);
}

#transportBtn:hover{
    background-color: hsl(30, 78%, 56%);
}

#otherBtn:hover{
    background-color: hsl(0, 0%, 96%);
}


.toolBarButtons{
    position: absolute;
    display: flex;
    margin-left: 20px;
    right: 0;
    padding-right: 30px;
    gap: 15%;
}
#toggleSidebarButton {
    white-space: nowrap;
    padding-right: 30px;
    height: 40px;
    background-color: hsla(0, 0%, 100%, 0.42);
    border: none;
    border-radius: 100px;
    color: black;
    padding: 10px 20px;
    text-align: center;
    text-decoration: none;
    font-size: 16px;
    font-weight: bold;
    margin: 4px 0px;
    cursor: pointer;
    min-width: 0;
    overflow: hidden;
}
.toolButton .fas{
    font-size: 25px;
}
#toggleSidebarButton i{
    font-size: 15px;
}
.toolBarButtons i{
    font-size: 16px;
}
.zoomButton{
    width: 4vh;
    height: 4vh;
    background-color: hsla(0, 0%, 100%, 0.42);
    border: none;
    border-radius: 50px;
    color: black;
    text-align: center;
    text-decoration: none;
    font-size: 20px;
    font-family: monospace;
    font-weight: 300;
    text-align: center;
    cursor: pointer;
    min-width: 0;
    overflow: hidden;
}

.zoomBarContainer{
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    padding-left: 1.5%;
}
.zoomBar{
    display: flex;
    align-items: center;
    height: 4vh;
    width: 13vh;
    border: 2px solid hsl(0, 0%, 80%);
    border-radius: 50px;
    background-color: hsla(0, 0%, 100%, 0.42);
    gap: 17px;
}
#zoomLevel{
    font-size: 20px;
    width: 40px;
    padding-right: 5px;
}




/* Table ---------------------------------------------------------------------------------------------------*/

.mainChartBody {
    flex: 1;
    min-height: 0;
    display: flex;
}
.entireChartBody {
    flex: 1;
    min-height: 0;
    display: flex;
}

.timeChart {
    display: flex;
    flex-direction: row;
    flex: 1;
    min-height: 0;
    padding-top: 10px;
}

.timeChart.sidebar-hidden {
    padding-left: 22px;
    padding-right: 22px;
}

.timeChartWrapper {
    display: flex;
    flex: 1;
    min-height: 0;
    min-width: 0;
    position: relative;
    width: 95%;
    margin: 0 auto;
  border: 1px solid #ccc;
  border-radius: 5px;
}
/* Fixed corner cell */
.fixedCorner {
  position: absolute;
  top: 0;
  left: 0;
  width: 150px;
  height: 50px;
  background-color: white;
  border-right: 1px solid #d0d0d0;
  border-bottom: 1px solid #d0d0d0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: Arial, sans-serif;
  font-size: 16px;
  font-weight: bold;
}
/* Fixed header row */
.fixedHeader {
  position: absolute;
  top: 0;
  left: 150px;
  right: 0;
  height: 50px;
  overflow: hidden;
  background-color: white;
  border-bottom: 1px solid #d0d0d0;
  z-index: 20;
}
.fixedHeaderContent {
  display: flex;
  transform-origin: left center;
  text-align: center;
}
.fixedHeaderContent .timeBlock {
  min-width: 85px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-right: 1px solid #d0d0d0;
  font-family: "Inter";
  font-size: clamp(13px, 1.4vh, 20px);
  box-sizing: border-box;
}
/* Fixed date column */
.fixedDateColumn {
  position: absolute;
  top: 50px;
  left: 0;
  width: 150px;
  bottom: 0;
  overflow: hidden;
  background-color: white;
  border-right: 1px solid #d0d0d0;
  z-index: 20;
}
.fixedDateContent {
  display: flex;
  flex-direction: column;
  transform-origin: top center;
}
.fixedDateContent .dateBlock {
  min-height: 0px;
  height: 29px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  padding-left: 8px;
  border-bottom: 1px solid #d0d0d0;
  font-family: "Inter";
  font-size: clamp(13px, 1.2vh, 20px);
  box-sizing: border-box;
}
.dayName {
    text-align: left;
}
.fullDate {
    text-align: right;
    padding-right: 50px;
}

.dateBlock.is-today {
  background-color: hsl(224, 89%, 95%);
}
.today-badge {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  background-color: hsl(224, 89%, 48%);
  color: white;
  font-size: 8px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 3px;
  line-height: 1;
}

/* Scrollable content area */
.timeChartContainer {
  position: absolute;
  top: 50px;
  left: 150px;
  right: 0;
  bottom: 0;
  overflow: auto;
}
.timeChartContent {
  transform-origin: top left;
  display: inline-block;
}
.tg {
  border-collapse: collapse;
  border-spacing: 0;
  table-layout: fixed;
  width: max-content;
}

.tg td {
  border: 1px solid #d0d0d0;
  font-family: Arial, sans-serif;
  font-size: 10px;

  width: 85px;
  min-width: 85px;
  max-width: 85px;

  height: 29px;
  min-height: 29px;
  max-height: 29px;

  padding: 2px 4px;
  box-sizing: border-box;

  vertical-align: middle;
  overflow: hidden;

  cursor: pointer;
  background-color: hsl(0, 0%, 96%);

    user-select: none;
    -webkit-user-select: none;

}

.tg td[contenteditable="true"] {
    user-select: text;
    -webkit-user-select: text;
}

.tg td .cellText {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;

  overflow: hidden;
  text-overflow: ellipsis;

  line-height: 1.1;
  max-height: calc(1.1em * 2);

  word-break: break-word;
}
.categories.active,
#eraserButton.active {
  outline: 3px solid #333;
  outline-offset: 2px;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.3);
}

.tg td.has-placeholder {
  color: black;
}
.tg td.painted-cell {
  position: relative;
  max-height: 29px;
  height: 29px;
  overflow: hidden;
  line-height: 1.2;
  word-wrap: break-word;
  white-space: normal;
  border: none;
}
.tg td.painted-cell::after {
    content: "";
    position: absolute;
    inset: -1.5px;
    background: inherit;
    z-index: -1;
}
.tg td[contenteditable="true"] {
  outline: none;
  cursor: text;
}
.tg td[contenteditable="true"]:focus {
  outline: 2px solid #333;
  outline-offset: -2px;
}
.tg tr {
  height: 29px;
  max-height: 29px;
  min-height: 29px;
}
.selected-cell {
    position: relative;
    z-index: 20;
}

.selected-cell::after {
    content: "";
    position: absolute;
    inset: -1px;
    box-shadow: inset 0 0 0 3px rgb(13,0,153);
    pointer-events: none;
    z-index: 1000;
}

.multi-editing {
  box-shadow: inset 0 0 0 50px rgba(128, 0, 255, 0.08);
}
.multi-editing:first-of-type {
  cursor: text;
}


.cell-copy-arrow{
    font-size: 20px;
    color: hsl(0, 0%, 0%);
    z-index: 500;
}
.cell-copy-arrow:hover{
    font-size: 20px;
    color: hsl(0, 0%, 20%);
}

.timeHighlight {
    outline: 2px solid rgba(0, 0, 0, 0.1);
    z-index: 20;
    position: relative;
}

.sideBarContainer{
    display: flex;
    justify-content: center;
    width: 300px;
    height: 100%;
    margin: 0 20px;
    padding: 0;
    background-color: rgb(255, 255, 255);
    border: 2.5px solid hsl(0, 0%, 86%);
    border-radius: 20px;
    transform: translateX(0);
    overflow: hidden;
    box-sizing: border-box;
}
.sideBarContainer.animate {
    transition: transform 0.3s ease;
}

.sideBarContents{
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    height: 100%;
    padding: 20px 20px;
    gap: 30px;
    box-sizing: border-box;
    overflow-y: auto;
}

.sideBarContents h2{
    width: 100%;
    font-size: 24px;
    margin: 0 0 15px;
    margin-left: 10px;
    margin-bottom: 20px;
}

.dateForm{
    display:flex;
    align-items:center;
    gap:4px;
    width:100%;
    margin-top:10px;
}

.form-control{
    width: 80%;
    flex:1;
    font-size:20px;
    font-weight: 600;
    color:black;
    background-color: rgb(255, 255, 255);
    border: 1px solid hsl(0, 0%, 70%);
    border-radius:10px;
    padding:9px;
    box-sizing:border-box;
}
.form-control.today-selected {
    background-color: hsl(224, 100%, 98%) !important;
}

.dateArrow{
    width:46px;
    height:46px;
    border: 1px solid hsl(0, 0%, 70%);
    border-radius:10px;
    background:white;
    cursor:pointer;
    font-size:16px;
    transition:0.15s;
}

.dateArrow:hover{
    background:#f5f5f5;
}

.form-control::placeholder {
    color: #000 !important;
    opacity: 1 !important;
}

/* Flatpickr input states */
.flatpickr-input {
    color: #000 !important;
    -webkit-text-fill-color: #000 !important;
}

#dateLine{
    width: 100%;
    height: 1px;
    border: 0;
    margin: 0;
    border-top: 3px solid #e2e2e2;
}

.accomplishment{
    width: 100%;
}

.accomplishmentBox{
    width: 100%;
    height: 84px;
    font-size: 15px;
    border: 2px solid;
    border-radius: 10px;
    padding: 10px 20px;
    resize: none;
    font-family: "Inter", sans-serif;
    box-sizing: border-box;
}

.accomplishmentBadge{
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    background-color: hsl(50, 100%, 55%);
    border-radius: 7.5px;
    border: 1px solid rgba(98,61,0,0.437);
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 10;
}

.accomplishmentBadge i{
    font-size: 12px;
    color: white;
}

.accomplishmentTooltip{
    position: fixed;
    width: 220px;
    padding: 10px;
    background-color: white;
    border: 1px solid hsl(0,0%,80%);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
    font-size: 13px;
    color: black;
    display: none;
    z-index: 99999;
    pointer-events: none;
}

.accomplishmentBadge:hover .accomplishmentTooltip{
    display: block;
}

.summary{
    width: 100%;
    padding: 10px 10px;
}

.summaryContents{
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    width: 100%;
}

.summary ul{
    list-style: none;
    margin: 0;
    padding: 0;
}

.summary li{
    margin: 12px 0;
    font-size: 16px;
}

.summaryHours{
    font-family: monospace;
    font-size: 14px;
    text-align: right;
}

#noHoursMessage{
    font-weight: 300;
    border: 1px solid #e2e2e2;
    border-radius: 20px;
    padding: 15px 20px;
    margin-right: 5px;
    color: rgb(153, 153, 153);
}

.chartFooterContainer {
    width: 100%;
    flex-shrink: 0;
}
.chartFooter {
    display: flex;
    align-items: center;
    width: 100%;
    background-color: rgb(242, 242, 242);
    height: 7vh;
    padding-left: 25px;
    z-index: 1000;
}
.chartViewButton {
    white-space: nowrap;
    padding-right: 30px;
    height: 170px;
    background-color: hsla(0, 0%, 100%, 0.42);
    border: 2px solid hsl(0, 0%, 70%);
    border-radius: 100px;
    color: black;
    padding: 10px 20px;
    text-align: center;
    text-decoration: none;
    font-size: 15px;
    cursor: pointer;
    min-width: 100;
    overflow: hidden;
}
.chartViewButton i {
    font-size: 20px;
    align-items: center;
}

.chartViewOverlay {

    position: fixed;
    inset: 0;

    background: rgba(0,0,0,0.35);

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

    z-index: 9999;

}


.chartViewOverlay.active {

    display: flex;

}



.chartViewBox {

    background:white;

    width: 90vw;
    max-width: 800px;

    max-height: 90vh;

    padding: 0px 20px;
    padding-top: 40px;
    padding-bottom: 40px;

    border-radius: 20px;

    border: 2px solid hsl(0,0%,92%);

    box-shadow: 0 10px 40px rgba(0,0,0,0.2);

    overflow: auto;

    position: relative;

}



.chartViewBox h2 {

    margin-top:0;
    margin-bottom: 30px;
    text-align:center;
    font-size: 32px;

}



.closeChartView {

    position:absolute;

    right:20px;
    top:20px;

    width:35px;
    height:35px;

    border-radius:50%;

    border:none;

    background:#eee;

    cursor:pointer;

}



.fullChartPreview {

    display:flex;

    flex-direction:column;

    gap:0;

    width:100%;

}


.previewRow {

    display:flex;

    width:100%;

    gap:0;

}


.previewCell {

    flex:1;

    background:#eee;

    aspect-ratio:1 / 1;

}

@media (max-width: 1350px){
    .chart-nav-links ul li{
        display: block;
        padding: 40px 0px;
    }
    nav{
        z-index: 2001;
    }
    .chart-nav-links{
        position: absolute;
        display: flex;
        justify-content: center;
        background: hsla(0, 0%, 25%, 0.566);
        width: 100%;
        height: 90vh;
        backdrop-filter: blur(20px);
        transition: .3s;
        text-align: center;
        top: -1500px;
        left: 0;
        padding-top: 60px;
        z-index: 2000;
        transform: translateX(0);
    }
    .chart-nav-links ul li a{
        color: rgb(255, 255, 255);
        width: 500px;
    }
    .chart-nav-links.responsive{
        top: 70px;
        z-index: 2001;
    }
    nav .fa{
        position: absolute;
        right: 0;

        display: block;
        color: black;
        margin: 40px;
        font-size: 40px;
        cursor: pointer;
    }
    .nav-links ul{
        padding: 10px;  
    }
        .navRight{
        display:block;
    }

    .navRight .signoutBtn2{
        color:white;
        border-color:white;
        background:transparent;
        margin: 40px 0;
    }

    .wrapper{
        flex-direction: column;
    }
    .wrapper img{
        width: 30vh;
    }


    #categoryHeading{
        display: none
    }
    #categoryDropdownButton{
        white-space: nowrap;
        display: block;
        font-size: 20px;
        margin-left: 5px;
        padding: 10px 10px;
        padding-right: 45px;
        width: 80%;
        height:50px;
        background-color: hsl(224, 89%, 48%);
        color: white;
        border-radius: 20px
    }
    .categoryDropdown{
        display: flex;
        align-items: center;
    }
    #dropdownContent{
        display: none;
        position: absolute;
        top: 85%;
        margin-top: 10px;
        margin-left: -7px;
        width: 220px; /* or whatever width you want */
        z-index: 1000;
        background-color: white;
        padding: 16px 4px;
        border: 2px solid hsl(0, 0%, 72%);
        border-radius: 20px;
        box-shadow: 2px 2px 10px hsla(0, 0%, 0%, 0.543);
    }

    #dropdownContent.open {
        display: block;
        display: flex;
        justify-content: center;
        align-items: center;
    }
    #eraserButton{
        margin-left: -20px;
        margin-right: 15px;
        height: 35px;
        width: 35px;
        font-size: 30px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    #eraserButton i{
        margin-right: 33px;
    }
    .zoomBarContainer h2{
        display: none;
    }
    .zoomBar{
        margin-left: 0px;
    }
    #eraserButton .fas{
        margin-right: 0px;
    }
    .toolBarButtons{
        gap: 5%;
    }
    #toggleSidebarButton {
        margin-right: 0px;
    }
    .toolBarButtons{
        padding-right: 15px;
    }
    .timeChart.sidebar-hidden {
    padding-left: 5px;
    padding-right: 5px;
}
};

@media (max-width: 650px) {
    #toggleSidebarButton {
        padding: 0px 0px;
    }

    #toggleSidebarButton i {
        margin: 0;
    }
}

/* */ /* */ /* */