body {
  font-family: "Inter", sans-serif;
  margin: 0;
  padding: 0;
  background-color: #282424;
  color: #ffffff;
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: #ffffff;
}

.navbar {
  padding: 20px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.navbar h1 {
  color: #ff3b2f;
  margin: 0;
  font-size: 24px;
}

.logo {
  height: 28px;
  width: 28px;
  object-fit: contain;
}

.container {
  padding: 40px 20px;
  max-width: 900px;
  margin: 0 auto;
}

.search-box {
  display: flex;
  justify-content: center;
  margin-bottom: 40px;
}

.search-box input[type="text"] {
  width: 60%;
  padding: 12px 16px;
  font-size: 16px;
  border-radius: 8px;
  border: none;
  background-color: #141414;
  color: #ffffff;
}

.cards {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.card {
  background-color: #141414;
  border-radius: 10px;
  padding: 16px;
  cursor: pointer;
}

.card h3 {
  color: #ff675e;
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 8px;
}

.card p {
  font-size: 13px;
  line-height: 1.6;
  color: #cccccc;
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.card-header h3 {
  margin: 0;
  font-size: 16px;
  color: #ff675e;
}

.fav-icon {
  width: 20px;
  height: 20px;
  cursor: pointer;
  margin-left: 12px;
  filter: brightness(1.2);
}

.action-items {
  display: flex;
  gap: 10px;
}

.action-item-icon {
  width: 20px;
  height: 20px;
  cursor: pointer;
  filter: brightness(1.2);
  align-items: center;
}

.trash-icon {
  width: 20px;
  height: 20px;
}

.dashboard-icon {
  margin-left: auto;
  margin-right: 12px;
  width: 22px;
  height: 22px;
  cursor: pointer;
}

.edit-textarea {
  background: transparent;
  border: none;
  resize: none;
  width: 100%;
  font-size: 1rem;
  font-family: inherit;
  color: inherit;
  outline: none;
  padding: 0;
  margin: 0;
  caret-color: white;
}

.notes-card {
  position: absolute;
  top: 55%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #ffffff;
  height: 80vh;
  overflow-y: auto;
  border-radius: 12px;
  padding: 24px;
  width: 70vw;
}

.note-content .video-title {
  color: #ff675e;
  font-size: 20px;
  margin-bottom: 16px;
}

.note-list {
  margin-top: 24px;
}

.note-entry {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  padding: 10px;
  background: #1c1c1c;
  border-radius: 6px;
  font-size: 14px;
  color: #ffffff;
}

.note-text {
  text-align: left;
  flex: 1;
  padding-right: 10px;
  word-break: break-word;
}

.label {
  border-radius: 10px;
  background: #282424;
  color: #ccc;
  padding: 4px 10px;
  font-size: 13px;
  border: 2px solid #ff3b2f;
}

.label.active {
  background-color: #ff3b2f;
  color: white;
  border-color: #ff3b2f;
}

.main-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}

.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  padding: 100px 0;
  min-height: 70vh;
}

.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  padding: 100px 0;
  min-height: 70vh;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 24px;
  color: #ffffff;
}

.hero-title .highlight {
  color: #ff3b2f;
  position: relative;
}

.hero-description {
  font-size: 1.25rem;
  color: #cccccc;
  margin-bottom: 40px;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn {
  padding: 14px 28px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  display: inline-block;
}

.btn-primary {
  background-color: #ff3b2f;
  color: white;
}

.btn-primary:hover {
  background-color: #e5342a;
  transform: translateY(-1px);
}

.btn-secondary {
  background-color: transparent;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.5);
}

/* Demo Card */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.demo-card {
  background-color: #141414;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  overflow: hidden;
  width: 100%;
  max-width: 400px;
}

.demo-header {
  padding: 16px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  gap: 12px;
}

.demo-dots {
  display: flex;
  gap: 6px;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.dot.red {
  background-color: #ff5f57;
}
.dot.yellow {
  background-color: #ffbd2e;
}
.dot.green {
  background-color: #28ca42;
}

.demo-title {
  color: #cccccc;
  font-size: 14px;
  font-weight: 500;
}

.demo-content {
  padding: 20px;
}

.note-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
  padding: 12px;
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
}

.note-item:last-child {
  margin-bottom: 0;
}

.ai-note {
  border-left: 2px solid #ff7f50;
  padding-left: 12px;
  background-color: rgba(255, 127, 80, 0.06);
}

.user-note {
  border-left: 2px solid #ffb347;
  padding-left: 12px;
}

.timestamp {
  background-color: #ff3b2f;
  color: white;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
}

.note-item p {
  margin: 0;
  font-size: 14px;
  color: #ffffff;
  line-height: 1.4;
}

/* Features Section */
.features {
  padding: 100px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
}

.feature-card {
  text-align: center;
  padding: 40px 20px;
}

.feature-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 24px;
  padding: 16px;
  background-color: rgba(255, 59, 47, 0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-icon svg {
  width: 32px;
  height: 32px;
}

.feature-card h3 {
  color: #ff3b2f;
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 16px;
}

.feature-card p {
  color: #cccccc;
  font-size: 16px;
  line-height: 1.6;
}

/* CTA Section */
.cta {
  padding: 80px 0;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.cta-content h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 16px;
}

.cta-content p {
  font-size: 1.25rem;
  color: #cccccc;
  margin-bottom: 32px;
}

/* Footer */
.footer {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 40px 0;
  text-align: center;
}

.footer-content p {
  color: #888;
  font-size: 14px;
  margin: 0;
}

.login-container {
  align-self: flex-start;
  background-color: #141414;
  color: #ffffff;
  max-width: 400px;
  margin: 200px auto;
  padding: 30px 30px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.05);
  text-align: center;
}

.login-container h2 {
  margin-bottom: 24px;
  font-size: 28px;
  color: #ff3b2f;
}

.login-container input {
  width: 100%;
  padding: 12px 16px;
  margin-bottom: 20px;
  border: none;
  border-radius: 8px;
  background-color: #1f1f1f;
  color: #ffffff;
  font-size: 14px;
}

.login-container input:focus {
  outline: 2px solid #ff3b2f;
}

.login-container button {
  background-color: #ff3b2f;
  color: white;
  padding: 12px;
  width: 100%;
  font-size: 16px;
  font-weight: 500;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.login-container button:hover {
  background-color: #e5342a;
}

.error-message {
  color: #ff3b2f;
  font-size: 14px;
  margin-bottom: 16px;
  display: none;
}

#login-form {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.login-container input,
.login-container input:focus,
.login-container input:valid {
  background-color: #1f1f1f;
  color: #ffffff;
}

.modal {
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background: rgba(0, 0, 0, 0.7);
}

.modal-content {
  background: #1e1e1e;
  margin: 15% auto;
  padding: 20px;
  border-radius: 8px;
  width: 300px;
  position: relative;
  color: #f1f1f1;
}

.modal-content h3 {
  margin-top: 0;
  color: #ff3b2f;
}

.modal-content input {
  width: 100%;
  padding: 8px;
  margin-top: 2px;
  border: 1px solid #444;
  color: #f1f1f1;
  background: #2a2a2a;
}

.modal-content button {
  margin-top: 10px;
  padding: 8px 16px;
  background-color: #ff3b2f;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.close-button {
  position: absolute;
  right: 10px;
  top: 6px;
  font-size: 20px;
  cursor: pointer;
  color: #f1f1f1;
}

.video-tag {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
}

.tag-icon {
  width: 18px;
  height: 18px;
}

.add-tag-button {
  margin-left: 3px;
  padding: 4px 10px;
  border-radius: 6px;
  background-color: #ff3b2f;
  color: white;
  border: none;
  font-size: 0.75rem;
  cursor: pointer;
}

.add-tag-button:hover {
  background-color: #ff5e56;
}

.label-wrapper {
  position: relative;
  display: inline-block;
}

.remove-label-btn {
  position: absolute;
  top: -5px;
  right: -5px;
  background-color: #ff3b2f;
  color: #282424;
  border-radius: 50%;
  width: 15px;
  height: 15px;
  font-size: 12px;
  font-weight: bold;
  cursor: pointer;
  line-height: 15px;
  text-align: center;
}

.label-dropdown {
  padding: 6px 12px;
  border: 2px solid #ff3b2f;
  border-radius: 8px;
  background-color: transparent;
  color: #ff3b2f;
  font-size: 14px;
  cursor: pointer;
  outline: none;
  appearance: none;
  transition: all 0.3s ease;
  background-image: url('data:image/svg+xml;utf8,<svg fill="%23ff5c5c" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/></svg>');
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 16px 16px;
  min-width: 160px;
}

.label-dropdown option {
  color: #333;
  background-color: #d4c8b4;
  font-size: 14px;
  padding: 8px;
}

.label-dropdown:hover,
.label-dropdown:focus {
  border-color: #ff3b2f;
  box-shadow: 0 0 0 2px rgba(255, 92, 92, 0.2);
}

/* Light Mode */
.light-mode {
  background-color: #d4c8b4;
  color: #1a1a1a;
}

.light-mode a {
  color: #1a1a1a;
}

.light-mode .navbar {
  border-bottom-color: rgba(26, 26, 26, 0.1);
}

.light-mode .navbar h1 {
  color: #d63031;
}

.light-mode .search-box input[type="text"] {
  background-color: #ebe9e1;
  color: #1a1a1a;
  border: 1px solid #ccc;
}

.light-mode .card {
  background-color: #ebe9e1;
}

.light-mode .card h3,
.light-mode .card-header h3,
.light-mode .note-content .video-title {
  color: #d63031;
}

.light-mode .card p {
  color: #333333;
}

.light-mode .fav-icon {
  filter: brightness(0.8);
}

.light-mode .notes-card {
  background-color: #d4c8b4;
  color: #1a1a1a;
}

.light-mode .note-entry {
  background: #ebe9e1;
  color: #1a1a1a;
}

.light-mode .label {
  background: #d4c8b4;
  color: #d63031;
  border-color: #d63031;
}

.light-mode .label.active {
  background-color: #d63031;
  color: white;
  border-color: #d63031;
}

.light-mode .hero-title {
  color: #1a1a1a;
}

.light-mode .hero-title .highlight {
  color: #d63031;
}

.light-mode .hero-description {
  color: #666;
}

.light-mode .btn-primary {
  background-color: #d63031;
}

.light-mode .btn-primary:hover {
  background-color: #b8292a;
}

.light-mode .btn-secondary {
  color: #1a1a1a;
  border-color: rgba(26, 26, 26, 0.3);
}

.light-mode .btn-secondary:hover {
  background-color: rgba(26, 26, 26, 0.1);
  border-color: rgba(26, 26, 26, 0.5);
}

.light-mode .demo-card {
  background-color: #ebe9e1;
  border-color: rgba(26, 26, 26, 0.1);
}

.light-mode .demo-header {
  border-bottom-color: rgba(26, 26, 26, 0.1);
}

.light-mode .demo-title {
  color: #666;
}

.light-mode .note-item {
  background-color: rgba(26, 26, 26, 0.05);
}

.light-mode .note-item p {
  color: #1a1a1a;
}

.light-mode .timestamp {
  background-color: #d63031;
}

.light-mode .features {
  border-top-color: rgba(26, 26, 26, 0.1);
}

.light-mode .feature-icon {
  background-color: rgba(214, 48, 49, 0.1);
}

.light-mode .feature-card h3 {
  color: #d63031;
}

.light-mode .feature-card p {
  color: #666;
}

.light-mode .cta {
  border-top-color: rgba(26, 26, 26, 0.1);
}

.light-mode .cta-content h2 {
  color: #1a1a1a;
}

.light-mode .cta-content p {
  color: #666;
}

.light-mode .footer {
  border-top-color: rgba(26, 26, 26, 0.1);
}

.light-mode .footer-content p {
  color: #888;
}

.light-mode .login-container {
  background-color: #ebe9e1;
  color: #1a1a1a;
  box-shadow: 0 4px 12px rgba(26, 26, 26, 0.05);
}

.light-mode .login-container h2 {
  color: #d63031;
}

.light-mode .login-container label {
  color: #333;
}

.light-mode .login-container input {
  background-color: rgba(26, 26, 26, 0.05);
  color: #1a1a1a;
  border: 1px solid #ccc;
}

.light-mode .login-container input:focus {
  outline: 2px solid #d63031;
}

.light-mode .login-container button {
  background-color: #d63031;
}

.light-mode .login-container button:hover {
  background-color: #b8292a;
}

.light-mode .error-message {
  color: #d63031;
}

.light-mode .login-container input,
.light-mode .login-container input:focus,
.light-mode .login-container input:valid {
  background-color: rgba(26, 26, 26, 0.05);
  color: #1a1a1a;
}

.light-mode .edit-textarea {
  caret-color: black;
}

.light-mode .modal-content {
  background: #ffffff;
  color: #000;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.light-mode .modal-content h3 {
  color: #d63031;
}

.light-mode .modal-content input {
  background: #ffffff;
  color: #000;
  border: 1px solid #ccc;
}

.light-mode .modal-content button {
  background-color: #d63031;
  color: white;
}

.light-mode .close-button {
  color: #000;
}

.light-mode .label-pill {
  border: 2px solid #d63031;
  color: #d63031;
  background-color: #d4c8b4;
}

.light-mode .remove-label-btn {
  background-color: #d63031;
  color: #d4c8b4;
}

.light-mode .label-dropdown {
  border-color: #d63031;
  color: #d63031;
  background-color: #d4c8b4;
  background-image: url('data:image/svg+xml;utf8,<svg fill="%23d63031" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/></svg>');
}

.theme-switch {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 32px;
}

.theme-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  background-color: #1c1c1c;
  border-radius: 32px;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  transition: background-color 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 6px;
  box-sizing: border-box;
}

.slider .icon {
  stroke: #ff3b2f;
  transition: transform 0.3s ease, opacity 0.3s ease;
  width: 20px;
  height: 20px;
  stroke-width: 1.8;
}

.slider .sun {
  opacity: 0.2;
  transform: scale(0.9);
}

.slider .moon {
  opacity: 1;
  transform: scale(1.2);
}

.theme-switch input:checked + .slider {
  background-color: #ebe9e1;
}

.theme-switch input:checked + .slider .sun {
  opacity: 1;
  transform: scale(1.2);
}

.theme-switch input:checked + .slider .moon {
  opacity: 0.2;
  transform: scale(0.9);
}

.login-page .theme-switch {
  position: absolute;
  top: 20px;
  right: 20px;
  display: inline-block;
  width: 60px;
  height: 32px;
  background-color: #1c1c1c;
  border-radius: 32px;
  padding: 0 6px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.login-page .theme-switch input {
  display: none;
}

.login-page .slider .icon {
  stroke: #ff3b2f;
  width: 20px;
  height: 20px;
  stroke-width: 1.8;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.login-page .slider .sun {
  opacity: 0.2;
  transform: scale(0.9);
}

.login-page .slider .moon {
  opacity: 1;
  transform: scale(1.2);
}

.login-page #theme-toggle:checked + .slider .sun {
  opacity: 1;
  transform: scale(1.2);
}

.login-page #theme-toggle:checked + .slider .moon {
  opacity: 0.2;
  transform: scale(0.9);
}

@media (max-width: 768px) {
  .navbar {
    padding: 16px 20px;
  }

  .navbar h1 {
    font-size: 20px;
  }

  .container {
    padding: 30px 16px;
  }

  .search-box {
    margin-bottom: 30px;
  }

  .search-box input[type="text"] {
    width: 100%;
    padding: 16px 20px;
    font-size: 18px;
    border-radius: 12px;
  }

  .cards {
    gap: 16px;
  }

  .card {
    padding: 20px;
    border-radius: 16px;
    transition: transform 0.2s ease;
  }

  .card:active {
    transform: scale(0.98);
  }

  .card h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
    line-height: 1.4;
  }

  .card p {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 0;
  }

  .card-header h3 {
    font-size: 20px;
    font-weight: 600;
    line-height: 1.4;
  }

  .fav-icon {
    width: 24px;
    height: 24px;
    margin-top: 2px;
  }

  .main-content {
    padding: 0 20px;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 60px 0;
    text-align: center;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .hero-description {
    font-size: 1.1rem;
  }

  .hero-actions {
    justify-content: center;
  }

  .features {
    padding: 60px 0;
  }

  .features-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .cta {
    padding: 60px 0;
  }

  .cta-content h2 {
    font-size: 2rem;
  }

  .demo-card {
    max-width: 100%;
  }

  .label {
    font-size: 14px;
    padding: 6px 12px;
  }
}

@media (max-width: 480px) {
  .navbar {
    padding: 14px 16px;
  }

  .navbar h1 {
    font-size: 18px;
  }

  .logo {
    height: 24px;
    width: 24px;
  }

  .container {
    padding: 20px 12px;
  }

  .search-box input[type="text"] {
    padding: 18px 20px;
    font-size: 16px;
  }

  .cards {
    gap: 14px;
  }

  .card {
    padding: 24px 20px;
    border-radius: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  }

  .card h3 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 14px;
    line-height: 1.3;
  }

  .card p {
    font-size: 17px;
    line-height: 1.7;
  }

  .card-header {
    align-items: flex-start;
    gap: 16px;
  }

  .card-header h3 {
    font-size: 22px;
    font-weight: 600;
    line-height: 1.3;
  }

  .fav-icon {
    width: 26px;
    height: 26px;
    margin-top: 4px;
  }

  .hero-title {
    font-size: 2rem;
  }

  .btn {
    padding: 16px 24px;
    font-size: 16px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }

  .btn {
    width: 100%;
    max-width: 280px;
  }

  .theme-switch {
    width: 56px;
    height: 30px;
  }

  .slider .icon {
    width: 18px;
    height: 18px;
  }

  .label {
    font-size: 15px;
    padding: 8px 14px;
  }

  .login-container {
    margin: 150px 16px;
    padding: 32px 24px;
  }

  .login-container h2 {
    font-size: 24px;
  }

  .login-container input,
  .login-container button {
    font-size: 15px;
  }
}

@media (max-width: 360px) {
  .card {
    padding: 28px 18px;
  }

  .card h3 {
    font-size: 24px;
    margin-bottom: 16px;
  }

  .card p {
    font-size: 18px;
    line-height: 1.8;
  }

  .card-header h3 {
    font-size: 24px;
  }

  .fav-icon {
    width: 28px;
    height: 28px;
  }
}
