:root {
  --primary-color: #fff;
  --secondary-color: #202124;
  --tertiary-color: #f1f3f4;
  --hover-color: rgb(60, 64, 67, .12);
  --background-color: #feefc3;
  --active-color: #fcefc2
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Sofia Sans", sans-serif;
}

body {
  width: 100%;
  height: 100vh;
  background-color: var(--primary-color);
  color: var(--secondary-color);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
}

::-webkit-scrollbar {
  display: none;
}


nav {
  background: var(--primary-color);
  padding: 15px 25px 15px 10px;
  border-bottom: 2px solid var(--hover-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-height: 10vh;
  position: sticky;
  top: 0;
  z-index: 10;
}

.shadow {
  box-shadow: 0px 5px 10px var(--hover-color);

}


.first {
  justify-content: space-between;
  width: 10%;
  display: flex;
  align-items: center;
}

.third {
  justify-content: space-around;
  width: 15%;
  display: flex;
  align-items: center;
}


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

#user {
  padding: 4px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--hover-color);
  display: flex;
  align-items: center;
  justify-content: center;
}

nav i {
  font-size: 1.5rem;
  cursor: pointer;
}

.logo h1 {
  cursor: pointer;
}

.logo h1:hover {
  text-decoration: underline;
}

.search-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 550px;
  background-color: var(--tertiary-color);
  border-radius: 50px;
  padding: 5px 10px;
  transition: all 100ms ease;
}

nav i {
  padding: 10px;
}

nav i:hover {
  background-color: var(--hover-color);
  padding: 10px;
  border-radius: 50%;
}

#mobsearch {
  display: none;
}

.search-bar input {
  background-color: transparent;
  font-size: 1.2rem;
  width: 100%;
  border: none;
  outline: none;
  color: var(--secondary-color);
  margin-left: 10px;
}


.searching {
  background-color: var(--primary-color);
  scale: 1;
  border: 2px solid var(--hover-color);
  box-shadow: 2px 2px 10px var(--hover-color), -2px -2px 10px var(--hover-color);
  transition: all 300ms ease;
}


.mob-searchbar {
  display: none;
}

#cut {
  display: none;
}

#view {
  max-width: 10%;
  min-width: 10%;
  margin-right: 20px;
}

.main {
  width: 100%;
  flex: 1;
  display: flex;
}

.notes-container {
  width: 80%;
}

.sidebar {
  background-color: var(--primary-color);
  width: auto;
  max-width: 20%;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 10px 0 0 0;
  border-right: 2px solid var(--hover-color);
}

.sidebar-item {
  width: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  cursor: pointer;
  margin: 0 10px;


}

.note-item .title{
  font-size: 1.4rem;
}


.sidebar-item i {
  width: 20%;
  font-size: 1.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
}


.sidebar-item h3 {
  font-weight: 600;
  width: 70%;

}

.sidebar-item:hover {
  background: var(--background-color);
  border-radius: 50%;
}

.sidebar-item.active {
  background: var(--background-color);
  border-radius: 50%;

}


.align-bottom {
  flex: 2;
  display: flex;
  align-items: flex-end;
  width: 100%;
  margin-bottom: 10px;
}

.align-bottom div {
  width: 100%;
}

.itenName {
  display: none;
}

.main {
  position: relative;
}

.expandedSidebar {
  background-color: var(--primary-color);
  z-index: 9;


  width: 20%;
  padding: 10px 10px 0 0;
}

.expandedSidebarItem h3 {
  display: block;


}

.expandedSidebarItem {

  width: 100%;
  justify-content: space-between;
  padding: 10px;
  margin: 0 10px 0 0px;



}

.expandedSidebarItem.active {
  border-radius: 0;
  border-top-right-radius: 20px;
  border-bottom-right-radius: 20px;
}

.expandedSidebarItem:hover {
  border-radius: 0;
  border-top-right-radius: 20px;
  border-bottom-right-radius: 20px;
}


.hoverExpandedNav {
  position: absolute;
  left: 0;
  top: 0;
}

.main {
  overflow-y: scroll;
}

.notes-container {
  padding: 20px;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow-y: scroll;
}


.empty {
  width: 100%;
  height: 200%;
  display: flex;
  flex-direction: column;
  gap: 50px;
  align-items: center;
  
  justify-content: center;
}

.empty i {
  font-size: 12rem;
  opacity: 0.3;
  font-weight: lighter;
}

.empty p {
  font-size: 1.5rem;
  font-weight: bold;
}

.add-note {
  width: 100%;
  margin: 10px 0;

  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
  justify-content: center;
}

.add-note-small {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 10px 0;
  align-self: center;
  width: 100%;
  height: 100%;
  border-radius: 8px;
  padding: 5px 10px;
  max-width: 550px;
  border: 1px solid var(--hover-color);
  box-shadow: 5px 5px 20px var(--hover-color),  -5px -5px 20px var(--hover-color);
}

.add-note-small input {
  border: none;
  height: 100%;
  width: 70%;
  padding: 5px;
  font-size: 1.2rem;
  background-color: var(--primary-color);
  color: var(--secondary-color);
}

#textInput, #pintextInput{
  background-color: var(--primary-color);
  color: var(--secondary-color);
}

#closenote, #closepinnote{
  background-color: var(--primary-color);
  color: var(--secondary-color);
}

.add-note-small input:focus {
  outline: none;
}

.add-note i {
  font-size: 1.5rem;
  opacity: 0.8;
  padding: 10px;

}

.add-note i:hover {
  opacity: 1;
  padding: 10px;
  border-radius: 50%;
  background-color: var(--hover-color);  
  
}

.add-note-big {
  display: flex;
  flex-direction: column;

  justify-content: space-between;
  margin: 10px 0;
  width: 100%;
  gap: 10px;
  border-radius: 8px;
  padding: 5px 10px;
  max-width: 550px;
  border: 1px solid var(--hover-color);
  box-shadow: 5px 5px 10px var(--hover-color), -5px -5px 10px var(--hover-color);
}

.add-note-big input {
  width: 100%;
  height: 100%;
  border: none;
  outline: none;
  font-size: 1.2rem;
  background-color: var(--primary-color);
  color: var(--secondary-color);
  padding: 5px;
}



.note-menu {
  display: flex;
  align-items: center;
  width: 100%;
  height: 100%;
  padding: 5px 10px 5px 0px;
  justify-content: space-between;
}

.note-menu-items {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 50%;
  height: 100%;

}

.note-menu-items i {
  font-size: 1rem;
  opacity: 0.8;
}

#close, #pin-close {
  border-radius: 5px;
  font-weight: bolder;
  opacity: 1;
  cursor: pointer;
}

#close:hover {
  background: var(--hover-color);
}

#pin-close:hover {
  background: var(--hover-color);
}

#close button {
  border: none;
  background-color: transparent;
  font-weight: bold;
  padding: 5px 10px;
  cursor: pointer;
}

#pin-close button {
  border: none;
  background-color: transparent;
  font-weight: bold;
  padding: 5px 10px;
  cursor: pointer;
}


#textInput, #pintextInput {
  resize: none;
  /* Prevent resizing by user */
  /* Hide overflow content */
  /* Set minimum height */
  width: 100%;
  height: 100%;
  padding: 5px;
  outline: none;
  border: none;
}

.add-note-big {
  display: none;
}


.setting-container {
  min-width: 60px;
  background: var(--primary-color);
  color: var(--secondary-color);
  position: absolute;
  top: 80%;
  right: 10px;
  display: flex;
  border-radius: 8px;
  flex-direction: column;
  align-items: flex-start;
  ;
  gap: 2px;
  z-index: 999;
  border: 2px solid var(--hover-color);
  box-shadow: 5px 5px 20px var(--hover-color);
}

.setting-container button {
  border: none;
  background: transparent;
  color: var(--secondary-color);

  font-size: 1.1rem;
  padding: 5px 10px;
  font-weight: 500;
  width: 100%;
  text-align: start;
}

.setting-container button:hover {
  background-color: var(--hover-color);

}

.hide {
  display: none;
}



.note, .pinned-notes {
  padding: 12px;
  margin-top: 4vh;
  display: flex;
  
  flex-wrap: wrap;
  gap: 10px;
}

.listView{
    flex-direction: column;
    align-items: center;
}

.listView .note-item{
  min-width: 70% !important;
}

.listView .task-options{
  justify-content: flex-start !important;
  gap: 5vw !important;
}

.note-item {
  border: 2px solid var(--hover-color);
  transition: all 300ms ease;
  min-width: 250px;
  max-width: 500px;
  height: auto;
  word-wrap: break-word;
  padding: 10px;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-right: 20px;
}

.task-options{
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
}

.note-item:hover{
  transition: all 300ms ease;
  box-shadow: 5px 5px 10px var(--hover-color), -5px -5px 10px var(--hover-color);
  border: 2px solid #a1a1a1;
}


.task-options button{
  border: none;
  background: transparent;
}

.task-options i{
  padding: 10px;

}


.task-options i:hover{
  background: var(--hover-color);
  padding: 10px;
  border-radius: 50%;
}


.notification {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 10px;
    background-color: #333;
    color: var(--secondary-color);
    text-align: center;
    z-index: 9999;
    transition: top 0.5s ease;
}

.notification-success {
    background-color: #4CAF50;
  color: #fff;

}

.notification-warn {
    background-color: #ff5252;
  color: #fff;
}

.notification-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: #4CAF50;
    transform-origin: left;
    animation: progress-bar 3s linear forwards;
}

/* Adjusted CSS using ::after pseudo-element */
.notification-progress::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--secondary-color);
}

@keyframes progress-bar {
    0% { width: 0; }
    100% { width: 100%; }
}

.edit-note-container{
  width: 100%;
  height: 100%;
  
  display: flex;
  position: absolute;
  top: 0;
  flex-direction: column;
 
}

.pinned-notes-cont{
  display: none;
  flex-direction: column;
}

.listView.pinned-notes{
  justify-content: center;
}

.pinned-notes{
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
}

.pinned-notes-cont{
  border-bottom: 1px solid var(--hover-color);
}

.alert-box{
  display: none;
  width: 100vw;
  height: 100vh;
  position: absolute;
  z-index: 999;
   
  justify-content: center;
  align-items: center;
  background: rgba(0, 0, 0, 0.5);
}


.alert{
  background-color: var(--secondary-color);
  padding: 30px 15px 10px 15px;
  color: var(--primary-color);
  border-radius: 10px;
  display: flex;
  flex-direction: column;
 
  gap: 20px;
}

.alert p{
  font-weight: 700;
  font-size: 1.2rem;

}

.alert button{
  background: none;
  outline: none;
  font-weight: bold;
  border: none;
  justify-self: flex-end;
  font-size: 1.3rem;
  opacity: 0.7;
   cursor: pointer;
  color: var(--primary-color);
}

.alert button:hover{
  opacity: 1;
  background-color: var(--hover-color);
}
