/* Animation keyframes */
@keyframes fadeInSlideLeft {
  from {
    opacity: 0;
    transform: translateX(20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeOut {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}

@keyframes fadeInSlideDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Animation classes */
.fadeInSlideLeft {
  animation: fadeInSlideLeft 0.3s ease-in-out forwards;
}

.fadeOut {
  animation: fadeOut 0.3s ease-in-out forwards;
}

.fadeInSlideDown {
  animation: fadeInSlideDown 0.3s ease-in-out forwards;
}


#openCategories {
  display: none;
  flex-direction: row;
  align-items: center;
  min-width: 800px;
  width: 100%;
  background-color: #f2f2f0;
  border-radius: 27px;
  animation: fadeInUpCustom 1.2s ease-out forwards;
  transition: 0.4s ease;
  border: 1px solid rgba(0, 0, 0, 0.4);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
}

#openCategories:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 8px 10px rgba(0, 0, 0, 0.6);
}

.categoriesContainer1{
  background-color: transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
  border-radius: 23px;
  width: 71%;
  height: 100%;
  position: relative;
}

.categoriesHeader{                                            
  display: flex;
  flex-direction: column;
  align-items: left;
  justify-content: row;
  background-color: #292929;
  border-radius: 20px 0px 0px 8px;
  width: 100%;
  height: 10.5%;
  margin: 0px;
  gap: 0px;
  border-bottom: 4px solid #e3dfdc;
  
  transition: border-bottom-color 0.4s ease-out;
  cursor: default;
}

.categoriesHeader:hover {
  border-bottom-color: #A2B59F;
}

#categoriesAbout{
  display: flex;
  flex-direction: row;
  align-items: center;
  padding: 2px;
  width: 100%;
}
#todayDateC{
  justify-content: right;
  font-size: 18px;
  font-family: var(--font5);
  font-weight: 600;
  color: white;
  margin: 2px 0px 0px 5px;
}

.categoriesCal{
  justify-content: right;
  height: 24px;
  letter-spacing: 0;
  margin-top: 1px;
  margin-left: 10px;
}
#categoriesCentertab {
  background-color: transparent;
  display: flex;
  border-radius:7px;
  width: 100%;
  height: 47px;
  margin-top: 0px;
  margin-bottom: 2px;
  cursor: default;
}
.categoriesTxt1{
  font-family: var(--font13);
  font-size: 19px;
  color: rgba(0, 0, 0, 0.8);
  margin-top: 18px;
  margin-left: 16px;
  width: 38%;
}

/*==============================================================================================
                                       TransactionContainer*/
#categoriesTransactionContainer{
  background-color: #fcfcfc;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: flex-start;
  align-items: flex-start;
  align-content: flex-start;
  width: 96%;
  height: 75%;
  margin-top: 3px;
  border-radius: 9px;
  border: 1px solid rgba(0, 0, 0, 0.2);
  overflow-y: scroll;
  scrollbar-width: none;
  padding-left: 5px;
  cursor: default;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  will-change: scroll-position;
  transition: all 0.3s ease;
  animation: flowDown 1s ease;
}
#categoriesTransactionContainer:hover {
  transform: translateY(-4px);
  box-shadow: 2px 4px 4px rgba(0, 0, 0, 0.4);
}
/*==============================================================================================
                              Transaction Container Elements*/
                              
.transactionDescriptionC{
  display: flex;
  position: relative;
  flex-direction: column;
  background-color: #faf9f7;
  margin: 2% 0.8%;
  width: 31%;
  height: 28%;
  border-radius: 6px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  transition: 0.2s ease;
  cursor: default;
  animation: fadeInUpCustom 0.7s ease;
}

.transactionDescriptionC:hover {
  background-color: #f8f9fa;
  border: 1px solid rgba(0, 0, 0, 0.3);
  box-shadow: 0 4px 4px rgba(0, 0, 0, 0.3);
  transform: translateY(-2px);
}
.transactionIconC{
  width: 36px;
  border-radius: 2px;
  padding: 3px;
}
.transactionCategoryC{
  font-size: 20px;
  line-height: 30px;
  font-weight: 530;
  letter-spacing: 0.4px;
  margin-left: 2%;
  width: 72%;
  color: rgba(0, 0, 0, 0.8);
}
.transactionAmountC{
  font-size: 17px;
  line-height: 24px;
  font-weight: 530;
  font-family: var(--font6);
  letter-spacing: 0.4px;
  margin-left: 10px;
  width: 83%;
  color: rgba(0, 0, 0, 0.8);
  overflow-x: scroll;
  overflow-y: hidden;
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 0, 0, 0.1) transparent;
}
.transactionTypeC, .transactionCountC{
  font-size: 17px;
  line-height: 24px;
  font-weight: 530;
  letter-spacing: 0.4px;
  font-family: var(--font6);
  margin-left: 10px;
  width: 83%;
  color: rgba(0, 0, 0, 0.6);
}
.transactionPercentageC{
  position: absolute;
  text-align: right;
  font-size: 18px;
  font-family: var(--font6);
  line-height: 24px;
  font-weight: 530;
  letter-spacing: 0.4px;
  width: 83%;
  color: rgba(0, 0, 0, 0.6);
  bottom: 7%;
  right: 3%;
}

.transactionCategoryC::-webkit-scrollbar, .transactionAmountC::-webkit-scrollbar{
  height: 6px; 
}

.transactionCategoryC::-webkit-scrollbar-track, .transactionAmountC::-webkit-scrollbar-track{
  background: transparent;
}

.transactionCategoryC::-webkit-scrollbar-thumb, .transactionAmountC::-webkit-scrollbar-thumb{
  background: rgba(0, 0, 0, 0.1);
  border-radius: 3px;
}

.transactionCategoryC::-webkit-scrollbar-thumb:hover, .transactionAmountC::-webkit-scrollbar-thumb:hover{
  background: rgba(0, 0, 0, 0.2);
}

#categoriesCont2{
  display: flex;
  flex-direction: column;
  background-color: transaparent;
  width: 38%;
  margin-left: 12px;
  height: 100%;
  border-radius: 10px;
}
.categoriesSection {
  display: flex;
  align-items: center;
  width: 29%;
  height: 100%;
  background: linear-gradient(to bottom, #292929 0%, #292929 10.5%,
      #f2f2f0 10.5%, #f2f2f0 100%);
  border-radius: 0px 20px 20px 0px;
}
#categoriesContainer2{
  display: flex;
  flex-direction: column;
  border-radius: 23px;
  width: 95.5%;
  height: 94%;
  background-color: white;
  box-shadow: 1px 4px 5px rgba(0, 0, 0, 0.6);
  transform: perspective(800px) translateZ(0); 
  transition: all 0.3s ease; 
  border: 1px solid rgba(0, 0, 0, 0.3);
  animation: flowLeft 1s ease;
}

#categoriesContainer2:hover {
  transform: translateY(-4px); 
  box-shadow: 2px 4px 4px rgba(0, 0, 0, 0.4); 
}
.donutChartC{
  width: 94.5%;
  height: 75%;
  max-height: 75%;
  min-height: 75%;
  margin-top: 7px;
  margin-bottom: 7px;
  border-radius: 18px;
}
#altSaveIcon-c {
  display: none;
  position: absolute;
  bottom: 35%;
  right: 92%;
  color: white;
  border: none;
  font-family: var(--font4);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 1px;
  background-color: #302f2f;
  padding: 0px 20px 2px 10px;
  border-radius: 8px;
  transition: all 0.3s ease-in-out; /* Smooth transition for hover effect */
  cursor: pointer;
  z-index: -1;
}
#altSaveIcon-c:hover {
  box-shadow: 0px 8px 12px rgba(0, 0, 0, 0.2); /* Enhance shadow on hover */
  transform: translateY(-3px); /* Slight lift effect */
}
#CategoriesAnim-c{
  display: flex;
  flex-direction:row;
  width: 100%;
  height: 100%;
  border-radius: 18px;
  cursor: pointer;
}
#anim-c{
 width: 100%;
 height: 100%;
 object-fit: cover;
 border-radius: 18px;
}

#addImg-c {
  position: absolute;
  display: none;
  margin-left: 10px;
  bottom: 150%;
  font-family: var(--font16);
}
#custom-file-button-c {
  display: none;
  padding: 2px;
  background-color: #363636;
  color: white;
  border: none;
  width: 35%;
  border-radius: 15px;
  cursor: pointer;
  font-family: var(--font6);
  font-weight: 650;
  margin-left: 10px;
  margin-top: 7px;
  font-size: 15px;
  text-align: center;
}
.categoriesTopCont2{
  display: flex;
  position: relative;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background-color: white;
  width: 100%;
  height: 50%;
  min-height: 50%;
  max-height: 50%;
  border-radius: 23px;
  border-bottom-right-radius: 0px;
  border-bottom-left-radius: 0px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.3);
  animation: appearCont 1s ease forwards;
}
#iconMenu{
  position: absolute;
  display: none;
  width: 92%;
  max-height: 75%;
  min-height: 75%;
  border-radius: 18px;
  border: 1px solid transparent;
  top: 3%;
  align-items: center;
  align-self: center;
  background-color: #f7f0d7;
  padding: 4px;
  overflow-y: scroll; 
  scrollbar-width: none; 
  cursor: pointer;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch; 
  will-change: scroll-position; 
  transform: translateZ(0); 
}
/* Hide scrollbar in WebKit browsers (Chrome, Edge, Safari) */
#iconMenu::-webkit-scrollbar {
  display: none;
}

.icons{
  width: 38px;
  height: 38px;
  padding: 3px;
  cursor: pointer;
}
#catInput-c{
  display: flex;
  flex-direction: row;
  align-items: center;
  width: 95%;
  height: 37px;
  border: 1px solid rgba(0, 0, 0, 0.3);
  border-radius: 7px;
  animation: appearCont 1s ease forwards;
}
#changeIcon-c{
  width: 36px;
  height: 36px;
  margin-left: 2px;
  cursor: pointer;
}
#getCatInput-c{
  font-family: var(--font12);
  font-size: 18px;
  font-weight: 600;
  color: rgba(0, 0, 0, 0.8);
  height: 30px;
  width: 78%;
  margin-left: 4px;
  padding-left: 7px;
  border: 1px solid transparent;
  border-radius: 7px;
  background-color: transparent;
  text-align: left;
}

.categoriesBottomCont2{
  display: flex;
  flex-direction: column;
  background: transparent;
  width: 100%;
  height: 50%;
  min-height: 50%;
  max-height: 50%;
  border-radius: 7px;
  border-bottom-right-radius: 0px;
  border-bottom-left-radius: 0px;
  cursor: pointer;
  animation: appearCont 1s ease forwards;
}
.categoriesTxt1{
 font-family: var(--font13);
 font-size: 19px;
 color: rgba(0, 0, 0, 0.8);
 margin-top: 18px;
 margin-left: 16px;
}
#customDateBtnC {
  background-color: white;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 5px;
  font-family: var(--font4);
  font-weight: 700;
  font-size: 16px;
  height: 62%;
  margin-top: 5px;
  padding-top: 0px;
  padding-left: 7px;
  padding-right: 7px;
  cursor: pointer;
  transition: all 0.3s ease;
  animation: wakeUp 1s ease forwards;
}

#customDateBtnC:hover, #customDateBtnC.active {
  background-color: white;
  box-shadow: 0 4px 4px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(0, 0, 0, 0.3);
  transform: translateY(-2px);
}

.categoriesTxt2{
  font-family: var(--font13);
  font-size: 18px;
  color: rgba(0, 0, 0, 0.8);
  margin-top: 1px;
  margin-left: 7px;
  margin-bottom: 0px;
}

#getCatInput-c:focus,
#getCatInput-c.active,
#changeCategoryC:focus,
#changeCategoryC.active{
  outline: none;
  border-color: #49a8e3;
  box-shadow: 0 0 5px rgba(40, 100, 138, 0.4);
  background-color: white;
}
#swapC{
  display: none;
  width: 20px;
  height: 20px;
  align-self: center;
  margin-top: 2px;
  margin-left: auto;
  margin-right: auto;
}
#swapCategoryC{
  background-color: #424744;
  border: none;
  width: 26px;
  height: 26px;
  align-items: center;
  justify-content: center;
  padding: 3px;
  border-radius: 28px;
  margin-top: 4px;
  margin-left: 5px;
  cursor: pointer;
  transition: 0.3s ease;
} 
#swapCategoryC:hover, #saveSwapC:hover{
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
}
#saveSwapC{
 display: none;
 margin-top: 4px;
 margin-left: auto;
 margin-right: auto;
 width: 35%;
 align-self: center;
 padding-bottom: 2px;
 border: 1px solid rgba(0, 0, 0, 0.1);
 border-radius: 5px;
 font-weight: 600;
 background-color:#53a8e6;
 color: white;
 font-family: var(--font4);
 cursor: pointer;
 transition: 0.3s ease;
}

#changeCategoryC {
  display: none;
  margin-top: 4px;
  font-family: var(--font12);
  font-size: 18px;
  font-weight: 600;
  color: rgba(0, 0, 0, 0.8);
  height: 30px;
  width: 85%;
  padding: 5px 10px;
  border-radius: 8px;
  border: 1.5px solid rgba(0, 0, 0, 0.2);
  background-color: whitesmoke;
  box-shadow: inset 1px 1px 3px rgba(0, 0, 0, 0.05);
  text-align: right;
  transition: all 0.2s ease;
  border-top-left-radius: 0px;
  border-bottom-left-radius: 0px;
}

.categoriesCate {
  margin-top: 2px;
  width: 100%;
  height: 67%;
  max-height: 67%;
}
.categoriesCate1{
  display: flex;
  flex-direction: row;
  width: 100%;
  height: 29px;
  border-bottom: 1.5px solid rgba(0, 0, 0, 0.1);
}
hr{
border: 1.5px solid rgba(0, 0, 0, 0.2);
margin-bottom: 4px;
margin-top: 4px;
}

.categoriesTxt3 {
  color: rgba(0, 0, 0, 0.7);
  font-family: var(--font13);
  font-size: 18px;
  width: 85%;
  margin-left: 7px;
}

#chartContainerC{
  display: flex;
  align-self: center;
  justify-content: center;
  align-self: center;
  width: 80%;
  height: 40%;
  border-radius: 10px;
  cursor: default;
}

#chartCategoryContainerC{
    display: flex;
    flex-direction: column;
    align-items: center; 
    height: 60%;
    width: 100%;
    overflow-y: scroll;
    scrollbar-width: none; 
    -ms-overflow-style: none;
    cursor: pointer;
}
#chartCategoryContainerC::-webkit-scrollbar {
    display: none;
}
.chart-category-itemC{
  display: flex;
  flex-direction: row;
  align-self: center;
  align-items: center;
  border-left-width: 3px;
  border-left-style: solid;
  position: relative;
  cursor: pointer;
  font-family: var(--font13);
  font-weight: 600;
  width: 98%;
  min-height: 35px;
  max-height: 35px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 5px;
  background-color: white;
  margin-top: 5px;
  transition:  0.3s ease;
}
.chart-category-itemC:hover {
  transform: translateY(-3px);
  box-shadow: 0 3px 4px rgba(0, 0, 0, 0.3);
  background-color: #f8f9fa;
  border-color: rgba(0, 0, 0, 0.3);
}
.category-iconC {
 width: 30px;
 margin-left: 1%;
 margin-right: 2%;
}
.category-nameC{
  width: 45%;
  color: rgba(0, 0, 0, 0.8);
  font-size: 17px;
  line-height: 17px;
  
}
.category-amountC {
  font-family: var(--font16);
  width: 33%;
  margin-left: 5%;
  color: rgba(0, 0, 0, 0.8);
  text-align: right;
  font-size: 17px;
  line-height: 17px;
}

.category-nameC, .category-amountC{
  overflow-y: hidden;
  overflow-x: scroll;
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 0, 0, 0.1) transparent;
}

.category-nameC::-webkit-scrollbar, .category-amountC::-webkit-scrollbar{
  height: 6px; 
}

.category-nameC::-webkit-scrollbar-track, .category-amountC::-webkit-scrollbar-track{
  background: transparent;
}

.category-nameC::-webkit-scrollbar-thumb, .category-amountC::-webkit-scrollbar-thumb{
  background: rgba(0, 0, 0, 0.1);
  border-radius: 3px;
}

.category-nameC::-webkit-scrollbar-thumb:hover, .category-amountC::-webkit-scrollbar-thumb:hover{
  background: rgba(0, 0, 0, 0.2);
}

@media screen and (max-width: 1200px){
  
    .categoriesTxt3, .categoriesTxt2, .categoriesTxt1{
    font-size: 17px;
  }
  .categoriesTxt2{
    width: 70%;
  }
  #categoriesCont1{
    width: 56%;
  }
  #categoriesCont2{
    width: 42%;
  }
}

@media screen and (max-width: 1255px){
  .categoriesContainer1{
    width: 70%;
  }
  .categoriesSection{
    width: 30%;
  }
}
@media screen and (max-width: 1200px){
  .categoriesContainer1{
    width: 69%;
  }
  .categoriesSection{
    width: 31%;
  }
}
@media screen and (max-width: 1170px){
  .categoriesContainer1{
    width: 68%;
  }
  .categoriesSection{
    width: 32%;
  }
}
@media screen and (max-width: 1150px){
  .categoriesContainer1{
    width: 71%;
  }
  .categoriesSection{
    width: 29%;
  }
}
@media screen and (max-width: 1080px){
  .categoriesContainer1{
    width: 70%;
  }
  .categoriesSection{
    width: 30%;
  }
}
@media screen and (max-width: 1030px){
  .categoriesContainer1{
    width: 69%;
  }
  .categoriesSection{
    width: 31%;
  }
}