@import url("https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;1,100;1,300;1,400;1,500;1,700&display=swap");

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

/* Accessibility: Screen reader only */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* Hover and Focus Effects */
.material-symbols-outlined {
  padding: 10px;
}

.hover:hover,
.hover:focus {
  background: #f1f3f4;
  color: black;
  border-radius: 50%;
  cursor: pointer;
  outline: none;
}

.tooltip {
  position: relative;
  display: inline-block;
}

.tooltip-text {
  position: absolute;
  left: 50%;
  top: 100%;
  transform: translateX(-50%);
  font-size: 0.78rem;
  background-color: #323232;
  color: white;
  opacity: 0.8;
  padding: 5px;
  white-space: nowrap;
  border-radius: 5px;
  visibility: hidden;
  z-index: 1;
}

.tooltip:hover .tooltip-text,
.tooltip:focus-within .tooltip-text {
  visibility: visible;
}

/* Navbar Styles */
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 64px;
  border-bottom: 1px solid #dadce0;
  padding: 8px;
  margin: 0 10px;
  color: #5f6368;
}

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

.logo-text {
  font-size: 1.2rem;
}

.search-area {
  background: #f1f3f4;
  width: 692px;
  height: 48px;
  border-radius: 8px;
  display: flex;
  align-items: center;
}

.search-area input {
  border: none;
  background: #f1f3f4;
  width: 100%;
  height: 95%;
  font-size: 1rem;
  margin-left: 10px;
}

.search-area input:focus {
  outline: none;
}

.search-area span {
  margin-left: 10px;
}

/* Sidebar Styles */
.sidebar {
  position: fixed;
  left: 0;
  top: 64px;
  display: flex;
  flex-direction: column;
  margin-left: 18px;
  margin-top: 5px;
  color: #5f6368;
  width: 60px;
  overflow-x: hidden;
  transition: width 0.3s ease;
  height: calc(100vh - 64px);
}

.sidebar-hover {
  width: 250px;
  box-shadow: 0 1px 2px 0 rgba(60, 64, 67, 0.302), 0 2px 6px 2px rgba(60, 64, 67, 0.149);
  background: white;
}

.active {
  background-color: #fef0c3;
  border-radius: 50%;
  color: black;
}

.active:hover,
.active:focus {
  background-color: #fef0c3;
}

.sidebar .sidebar-item {
  padding: 16px;
  display: flex;
  align-items: center;
}

.sidebar-item .sidebar-text {
  color: black;
  font-size: 0.9rem;
  margin-left: 20px;
  width: 250px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.sidebar-hover .sidebar-text {
  opacity: 1;
}

.sidebar-item:nth-child(1) {
  margin-top: 5px;
}

/* Form Styles */
.form-container {
  background: #fff;
  max-width: 598px;
  margin: 32px auto;
  border: 1px solid #e0e1e0;
  box-shadow: 0 1px 2px 0 rgba(60, 64, 67, 0.302), 0 2px 6px 2px rgba(60, 64, 67, 0.149);
  border-radius: 8px;
}

.form-container form {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
  color: #5f6368;
}

.note-text,
.note-title {
  border: none;
  font-size: 1rem;
  padding: 10px;
  margin-left: 10px;
  width: 100%;
  margin-right: 10px;
  resize: none;
}

.note-text {
  min-height: 50px;
}

.note-title:focus,
.note-text:focus {
  outline: none;
}

.form-actions {
  display: flex;
}

.active-form {
  display: none;
}

.form {
  display: flex;
  flex-direction: column;
  width: 100%;
  padding: 10px;
}

.form .form-actions .icons {
  display: flex;
}

.form .form-actions {
  display: flex;
  justify-content: space-between;
  width: 100%;
  margin-top: 5px;
}

.close-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  padding: 10px;
}

.close-btn:hover,
.close-btn:focus {
  background: #f1f3f4;
  border-radius: 4px;
}

.small-icon {
  color: black;
  font-size: 1.1rem;
}

/* Notes Styles */
.notes {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  padding: 0 50px;
}

.note {
  background-color: white;
  margin: 10px;
  width: 280px;
  border: 1px solid #e0e1e0;
  border-radius: 8px;
  position: relative;
  cursor: pointer;
  transition: box-shadow 0.2s ease;
}

.note:hover {
  box-shadow: 0 1px 2px 0 rgba(60, 64, 67, 0.302), 0 2px 6px 2px rgba(60, 64, 67, 0.149);
}

.note .title {
  width: 100%;
  margin: 15px 0 0 15px;
  font-weight: 500;
}

.note .text {
  width: 100%;
  margin: 10px 0 0 15px;
  white-space: pre-wrap;
}

.note .note-footer {
  margin-top: 15px;
  display: flex;
  padding: 0;
  justify-content: center;
  visibility: hidden;
}

.note-footer .material-symbols-outlined {
  color: #5f6368;
  font-size: 0.9rem;
}

.note .check-circle {
  position: absolute;
  top: -20px;
  left: -20px;
  visibility: hidden;
}

/* Modal Styles */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  background-color: rgba(0, 0, 0, 0.5);
  width: 100%;
  height: 100%;
  visibility: hidden;
  z-index: 1000;
}

.modal .modal-content {
  width: 589px;
  position: relative;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.open-modal {
  visibility: visible;
}

/* Responsive Design */
@media (max-width: 768px) {
  .search-area {
    width: 100%;
  }
  .notes {
    padding: 0 10px;
  }
  .note {
    width: 100%;
    max-width: 300px;
  }
  .form-container {
    max-width: 90%;
  }
  .modal .modal-content {
    width: 90%;
  }
  .sidebar {
    width: 50px;
  }
  .sidebar-hover {
    width: 200px;
  }
}

@media (max-width: 480px) {
  nav {
    flex-wrap: wrap;
    height: auto;
    padding: 8px 4px;
  }
  .logo-area,
  .settings-area,
  .profile-actions-area {
    margin: 4px;
  }
}