@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Rajdhani:wght@300;400;500;600;700&family=Space+Grotesk:wght@300..700&family=Tajawal:wght@200;300;400;500;700;800;900&display=swap');

/* Reset */
/* * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  
  }
  
  body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    background-color: #e3f2fd; 
    color: #333;
    padding: 0;
    
  }
   */
   * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    background: linear-gradient(135deg, #e3f2fd, #bbdefb); /* Gradasi halus */
    color: #333;
    overflow-y: scroll;
    height: 100%;
}

.maintenance {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 9999;
    margin: 20px 0;
    padding: 25px 40px;
    font-family: 'Rajdhani', sans-serif;
    font-size: 36px;
    font-weight: 700;
    text-align: center;
    text-transform: capitalize;
    border-radius: 15px;
    pointer-events: none;
    background: none;

    /* Teks dengan gradasi bergerak */
    background-image: linear-gradient(to right, rgb(216, 209, 244), rgb(2, 2, 84), rgb(207, 203, 225));
    background-size: 200% auto;
    background-position: 0% center;
    color: transparent;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;

    animation: textGradientMove 4s linear infinite, pulse 2s infinite;
}

/* Animasi gradasi bergerak kiri-kanan */
@keyframes textGradientMove {
    0% {
        background-position: 0% center;
    }
    50% {
        background-position: 100% center;
    }
    100% {
        background-position: 0% center;
    }
}

/* Efek glow lembut */
@keyframes pulse {
    0% {
        box-shadow: 0 0 10px rgba(66, 165, 245, 0.3);
    }
    50% {
        box-shadow: 0 0 20px rgba(66, 165, 245, 0.6);
    }
    100% {
        box-shadow: 0 0 10px rgba(66, 165, 245, 0.3);
    }
}

/* Overlay blur */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.6);
    z-index: 9998;
    pointer-events: auto;
    backdrop-filter: blur(4px);
}


  /* Header */  

header {
  background-color: #1976d2;
  color: white;
  padding: 10px 10px;
  position: relative;
  top: 0;
  width: 100%;
  z-index: 1000;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px;
}

header h1 {
  font-family: "rajdhani", sans-serif;
  margin: 0;
  font-size: 2rem;
}

header h1 span:hover {
  font-family: "rajdhani", sans-serif;
  font-weight: bold;
}

/* Nav Links */
.nav-links {
  display: flex;
  gap: 20px;
}

.nav-links a {
  text-decoration: none;
  color: white;
  font-size: 1rem;
  padding: 5px 10px;
  border-radius: 5px;
  transition: background-color 0.3s ease;
}

.nav-links a:hover {
  background-color: rgba(255, 255, 255, 0.3);
}

/* Hamburger Menu Button */
.hamburger {
  display: none;
  font-size: 1.5rem;
  background: none;
  border: none;
  color: white;
  cursor: pointer;
}

/* Akhir Header */
  
  /* Hero Section */
  .hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-top: 50px;
    margin: 20px 0;
    padding: 20px;
    background: linear-gradient(to right, #1565c0, #42a5f5); /* Gradasi biru */
    color: white;
    border-radius: 10px;
  }
  
  .hero-content {
    max-width: 50%;
  }
  
  .hero-title {
    font-family: "Bebas Neue";
    font-size: 2.5rem;
    margin-bottom: 10px;
  }
  
  .hero-subtitle {
    font-family: "Tajawal";
    font-size: 1.2rem;
  }
  
  .hero-image img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
  }

  
 
 /* Chatbox */
.chatbox {
  margin: auto;
  margin-top: 50px;
  max-width: 90%;
  border: 1px solid #ffffff;
  border-radius: 10px;
  background-color: #fff;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
}

.chatbox h1 {
  font-family: 'rajdhani', sans-serif;
  font-size: 30px;
  text-align: center;
  background-color: #1976d2;
  color: white;
  padding: 15px;
  border-radius: 10px 10px 0 0;
}

#chat-container {
  flex: 1;
  padding: 10px;
  padding-bottom: 15px;
  overflow-y: auto;
  max-height: 300px;
  background-color: #f1f8e9;
  border-bottom: 1px solid #ccc;
}

/* Pesan Umum */
.chat-message {
  margin: 10px 0;
  padding: 10px;
  border-radius: 10px;
  max-width: 80%;
  font-size: 14px;
  line-height: 1.5;
}

/* Pesan Pengguna */
.chat-message.user {
  align-self: flex-end;
  background-color: #1565c0; /* Biru gelap */
  color: white;
  text-align: right;
}

/* Pesan AI */
.chat-message.ai {
  align-self: flex-start;
  background-color: #36a74b; /* Hijau */
  color: white;
  text-align: left;
}


.delete-all-btn {

  margin-bottom: 20px;
  background-color: #d33;
  color: white;
  border: none;
  padding: 10px 15px;
  border-radius: 5px;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: background 0.3s;
}

.delete-all-btn:hover {
  background-color: #b22222;
}

.delete-all-btn i {
  font-size: 18px;
}


/* Input Pesan */
.chat-input {
  display: flex;
  gap: 10px;
  padding: 10px;
  background-color: #fff;
}

.chat-input textarea {
  flex: 1;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
  resize: none;
}

.chat-input button {
  padding: 10px 20px;
  background-color: #1565c0; /* Warna biru */
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

.chat-input button:hover {
  background-color: #1976d2; /* Warna biru hover */
}

/* akhir chatbox */

  /* Simpan Catatan */
  .form-container {
  max-width: 400px;
  margin: 0 auto;
  background-color: #fff;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.form-container label {
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
}

.form-container input,
.form-container textarea,
.form-container button {
  width: 100%;
  padding: 10px;
  margin-bottom: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
}

.form-container button {
  background-color: #1976d2;
  color: white;
  cursor: pointer;
}

.form-container button:hover {
  background-color: #1565c0;
}

.task-list {
  display: flex;
  flex-direction: column;
  text-align: center;
  max-width: 400px;
  margin: 30px auto;
  background-color: #ffffff;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.task-list span {
  font-weight: bold;
  font-size: 30px;
  color: #1976d2;
  text-align: center;
  font-family: 'Rajdhani', sans-serif;
  margin: 10px;
}

.task-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px;
  background-color: #f9f9f9;
  margin-bottom: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
  word-wrap: break-word; /* Untuk memastikan teks panjang tetap masuk ke dalam kotak */
  width: 100%;
}

.task-item p {
  word-wrap: break-word;
  white-space: pre-wrap;
  word-break: break-word; /* Menangani teks panjang dengan baik */
  margin: 0;
  max-width: 100%;
}

.task-actions button {
  margin-left: 5px;
  padding: 5px 10px;
  border: none;
  border-radius: 3px;
  cursor: pointer;
}

.edit-btn {
  background-color: #ff9800;
  color: white;
}

.edit-btn:hover {
  background-color: #fb8c00;
}

.delete-btn {
  background-color: #f44336;
  color: white;
}

.delete-btn:hover {
  background-color: #e53935;
}


  .simpan-title {
    font-family: 'rajdhani', sans-serif;
    font-size: 50px;
    font-weight: bold;
    text-align: center;
    color: #1976d2;
    margin-top: 20px;
    margin-bottom: 10px;
  }

  /* scroll */
  #scrollToTop {
    z-index: 9999;
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 30%;
    padding: 10px;
    font-size: 20px;
    cursor: pointer;
    display: none; /* Sebelumnya disembunyikan */
}

#scrollToTop:hover {
    background-color: #0056b3;
}

#info {
   margin-left: 10px;
    color: red;
    font-size: 10px;
}

  
  /* Footer */
  footer {
    text-align: center;
    margin-top: 50px;
    padding: 20px;
    background-color: #1565c0; /* Warna biru */
    color: white;
    border-radius: 5px;
  }
  
  footer p a {
    text-decoration: none;
    color: red;
    font-weight: bold;
    font-style: italic;
  }
  
  footer p a:hover {
    text-decoration: underline;
    color: rgb(234, 234, 234);
  }

  #sosmed {
    margin: auto;
    display: flex;
    justify-content: center;
    margin-top: 10px;
  }
  
  #sosmed a {
    margin: 0 10px;
    color: #ccc;
    width: 30px;
    height: 30px;
  }
  
  #sosmed a:hover {
    color: #959aa0;
  }

  #version {
    margin: auto;
    color: #ccc;
    font-family: 'rajdhani', sans-serif;
  }
  
  
  /* Media Queries untuk Responsivitas */
@media (max-width: 768px) {
    header {
      flex-direction: column;
      text-align: center;
    }
  
    .hero {
      flex-direction: column;
      gap: 10px;
      text-align: center;
    }
  
    .hero-content {
      max-width: 100%;
    }
  
    .task-item {
      flex-direction: column;
      align-items: flex-start;
    }
  
    .task-actions {
      margin-top: 10px;
      display: flex;
      width: 100%;
      justify-content: flex-end;
    }
  
    .chatbox {
      max-width: 100%;
    }
  
    .form-container {
      max-width: 100%;
    }
  
    .task-list {
      max-width: 100%;
    }
  }


 @media (max-width: 768px) {
  .nav-links {
      display: none;
      flex-direction: column;
      position: absolute;
      top: 60px;
      right: 20px;
      background-color: #1565c0;
      padding: 10px;
      border-radius: 5px;
      box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
  }

  .nav-links.show {
      display: flex;
  }

  .hamburger {
      display: block;
  }
}


 
  
  @media (max-width: 480px) {
    header h1 {
      font-size: 1.2rem;
    }
  
    .hero-title {
      font-size: 1.8rem;
    }
  
    .hero-subtitle {
      font-size: 1rem;
    }
  
    .chat-input button {
      padding: 10px;
      font-size: 0.9rem;
    }
  
    .form-container button,
    .task-actions button {
      padding: 8px 12px;
      font-size: 0.9rem;
    }
  }
  
