/* credits: anugya mehrotra @ https://github.com/anugyamehrotra | inspired by https://app.todoist.com/ */ 

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  background-color: #fafafa;
  color: #202020;
  line-height: 1.5;
  overflow-x: hidden;
  min-height: 100vh;
}

.css-mainNavBar-pos\:fixed {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: 60px;
  background-color: #db4c3f;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.navBarTop {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.navBarTop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

h1 {
  margin-top: 80px;
  text-align: center;
  font-size: 28px;
  font-weight: 700;
  color: #202020;
  margin-bottom: 40px;
  padding: 0 20px;
}

.postCreateForm {
  max-width: 600px;
  margin: 0 auto;
  padding: 0 20px 40px;
}

#postCreateForm {
  background-color: #ffffff;
  border-radius: 12px;
  padding: 32px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  border: 1px solid #e8e8e8;
}

.addTitle,
.addNoteDesc,
.addDate,
.addTime,
.addTags,
.submitNote {
  margin-bottom: 24px;
}

#postTitle {
  width: 100%;
  padding: 16px;
  border: 2px solid #e8e8e8;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 500;
  color: #202020;
  background-color: #ffffff;
  transition: all 0.2s ease;
  font-family: inherit;
}

#postTitle:focus {
  outline: none;
  border-color: #db4c3f;
  box-shadow: 0 0 0 3px rgba(219, 76, 63, 0.1);
}

#postTitle::placeholder {
  color: #9aa0a6;
  font-weight: 400;
}

#postContent {
  width: 100%;
  min-height: 120px;
  padding: 16px;
  border: 2px solid #e8e8e8;
  border-radius: 8px;
  font-size: 14px;
  color: #202020;
  background-color: #ffffff;
  transition: all 0.2s ease;
  font-family: inherit;
  resize: vertical;
  line-height: 1.5;
}

#postContent:focus {
  outline: none;
  border-color: #db4c3f;
  box-shadow: 0 0 0 3px rgba(219, 76, 63, 0.1);
}

#postContent::placeholder {
  color: #9aa0a6;
}

#postDate,
#postTime {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #e8e8e8;
  border-radius: 8px;
  font-size: 14px;
  color: #202020;
  background-color: #ffffff;
  transition: all 0.2s ease;
  font-family: inherit;
}

#postDate:focus,
#postTime:focus {
  outline: none;
  border-color: #db4c3f;
  box-shadow: 0 0 0 3px rgba(219, 76, 63, 0.1);
}

.addTags {
  border-top: 1px solid #e8e8e8;
  padding-top: 24px;
}

.addTags label {
  display: flex;
  align-items: center;
  margin-bottom: 12px;
  cursor: pointer;
  font-size: 14px;
  color: #202020;
  transition: color 0.2s ease;
  padding: 8px 12px;
  border-radius: 6px;
  transition: background-color 0.2s ease;
}

.addTags label:hover {
  background-color: #f5f5f5;
}

.addTags input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-right: 12px;
  accent-color: #db4c3f;
  cursor: pointer;
}

.addTags label img {
  width: 20px;
  height: 20px;
  margin-right: 8px;
  margin-left: 4px;
  flex-shrink: 0;
  object-fit: contain;
}

#customTagInput {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #e8e8e8;
  border-radius: 8px;
  font-size: 14px;
  color: #202020;
  background-color: #ffffff;
  transition: all 0.2s ease;
  font-family: inherit;
  margin-top: 8px;
}

/* credits: anugya mehrotra 
@ https://github.com/anugyamehrotra 
| inspired by https://app.todoist.com/ */ 

#customTagInput:focus {
  outline: none;
  border-color: #db4c3f;
  box-shadow: 0 0 0 3px rgba(219, 76, 63, 0.1);
}

#customTagInput::placeholder {
  color: #9aa0a6;
}

.submitNote {
  text-align: center;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid #e8e8e8;
}

.submitNote button {
  background-color: #db4c3f;
  color: #ffffff;
  border: none;
  padding: 16px 32px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
  min-width: 140px;
  box-shadow: 0 2px 4px rgba(219, 76, 63, 0.2);
}

/* credits: anugya mehrotra 
@ https://github.com/anugyamehrotra 
| inspired by https://app.todoist.com/ */ 

.submitNote button:hover {
  background-color: #c23d2f;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(219, 76, 63, 0.3);
}

.submitNote button:active {
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(219, 76, 63, 0.2);
}

.addTags label:nth-child(1) {
  position: relative;
}

.addTags label:nth-child(1)::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #4285f4;
  margin-right: 8px;
  display: inline-block;
}

.addTags label:nth-child(2)::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #ea4335;
  margin-right: 8px;
  display: inline-block;
}

.addTags label:nth-child(3)::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #34a853;
  margin-right: 8px;
  display: inline-block;
}

.addTags label:nth-child(4)::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #fbbc04;
  margin-right: 8px;
  display: inline-block;
}

.addTags label:nth-child(5)::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #9aa0a6;
  margin-right: 8px;
  display: inline-block;
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

#postCreateForm {
  animation: slideInUp 0.4s ease forwards;
}

.addTitle,
.addNoteDesc,
.addDate,
.addTime,
.addTags,
.submitNote {
  animation: slideInUp 0.3s ease forwards;
}

/* credits: anugya mehrotra 
@ https://github.com/anugyamehrotra 
| inspired by https://app.todoist.com/ */ 


.addTitle {
  animation-delay: 0.1s;
}
.addNoteDesc {
  animation-delay: 0.2s;
}
.addDate {
  animation-delay: 0.3s;
}
.addTime {
  animation-delay: 0.4s;
}
.addTags {
  animation-delay: 0.5s;
}
.submitNote {
  animation-delay: 0.6s;
}

@media (max-width: 768px) {
  h1 {
    font-size: 24px;
    margin-bottom: 30px;
  }

  .postCreateForm {
    padding: 0 16px 40px;
  }

  #postCreateForm {
    padding: 24px;
  }

  .addTitle,
  .addNoteDesc,
  .addDate,
  .addTime,
  .addTags,
  .submitNote {
    margin-bottom: 20px;
  }

  #postTitle,
  #postContent {
    padding: 14px;
    font-size: 16px;
  }

  #postDate,
  #postTime,
  #customTagInput {
    padding: 12px 14px;
  }

  .submitNote button {
    width: 100%;
    padding: 16px;
  }
}

@media (max-width: 480px) {
  .postCreateForm {
    padding: 0 12px 40px;
  }

  #postCreateForm {
    padding: 20px;
    border-radius: 8px;
  }

  h1 {
    font-size: 22px;
    margin-bottom: 24px;
  }
}

.addTags input[type="checkbox"]:focus {
  outline: 2px solid #db4c3f;
  outline-offset: 2px;
}

.submitNote button:focus {
  outline: 2px solid #db4c3f;
  outline-offset: 2px;
}

.submitNote button:disabled {
  background-color: #d0d0d0;
  color: #808080;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.submitNote button:disabled:hover {
  background-color: #d0d0d0;
  transform: none;
  box-shadow: none;
}

/* credits: anugya mehrotra @ https://github.com/anugyamehrotra | inspired by https://app.todoist.com/ */ 