/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
  width: 100%;
  font-family: system-ui, sans-serif;
  background: #000;
  color: #fff;
}

/*HEADER AND HEADER BUTTON*/
.header {
  margin-bottom: 30px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
      align-items: center;
      background: rgb(26, 26, 26);
      backdrop-filter: blur(100px);
      position: sticky;
      top: 0;
      z-index: 2;
      padding: 0 20px;
    }
    .header h1 {
      font-size: clamp(1.4rem, 2.4rem, 2rem);
      margin-bottom: 8px;
      color: white;
      transition: color 0.4s ease;
    }
    .header h1:hover {
      color: #00aeff81;
    }
   section p {
      color: #bdbdbd;
      font-size: 1rem;
      text-align: center;
      margin-top: 20px;
    }
    @media (min-width:1000px) {
      .header{
      top: 10px;
max-width: 900px;
border-radius: 50px;
margin: auto;
      }
    }
    .logoContainer {
      display: flex;
      justify-content: center;
      align-items: center;
      text-decoration: none;
    }
  
    .logo {
      overflow: hidden;
      max-height: 50px;
      max-width: 120px;
      display: flex;
      justify-content: center;
      align-items: center;
      border-radius: 12px;
      background: rgb(41, 41, 41);
      transition: all 0.4s ease;
      background-color: beige;
    }
.logo img {
width: 200px;
      height: 200px;
}
    .logo:hover {
      border-radius: 50%;
      padding: 5px;
    }
    .btn {
      background: #00aeff;
      padding: 5px 10px;
      border-radius: 8px;
      text-decoration: none;
      color: black;
      font-weight: 500;
      font-size: 1rem;
            border: 1px solid #6a5acd;
      transition: all 0.4s ease;
    }
    .btn:hover {
      background: none;
      color: white;
      border: 1px solid #6a5acd;
    }

/* PAGE WRAPPER */
.page {
  max-width: 700px;
  margin: 0 auto;
  padding: 20px;
}


@media(min-width: 1000px) {
  .page {
    display: grid;
    gap: 30px;
    max-width: 100%;
    width: 100%;
    height: auto;
    grid-template-columns: minmax(400px, 500px) 1fr;
  }
}

/* INPUT SECTION */
.container {
  width: 100%;
  margin-bottom: 30px;
}
#toggleInputContainer {
  background-color: #4CAF50 ;
  color: #000;
  opacity: 1;
  cursor: pointer;
  padding: 0.5rem;
  border: none;
  outline: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  transition: background-color 0.4s ease, opacity 0.4s ease;
}
#toggleInputContainer:hover {
  opacity: 0.9;
}
#toggleInputContainer.panelClosed {
opacity: 0.7;
}

.inputContainer {
    max-width: 0;
  max-height: 0;
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 14px;
  border-radius: 12px;
  transition:  max-height 1s ease, max-width 1s ease, padding 1s ease;
  background-color: #000;
  color: #000;
}
.expand {
  background: #111;
  max-width: 700px;
  max-height: 600px;
  padding: 20px;
  border: 1px solid #6a5acd;
}
.expand label {
  color: #ffffff;
  font-size: 0.9rem;
}
label {
  color: #000;
}

/* INPUTS */
input,
textarea {
  width: 100%;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid #333;
  background: #1c1c1c;
  color: #ffffff;
  font-size: 1rem;
  transition: 0.3s;
  outline: none;
}

input:focus,
textarea:focus {
  border-color: #00eaff;
  box-shadow: 0 0 8px #00eaff;
}

textarea {
  min-height: 120px;
  resize: vertical;
}

/* BUTTON */
#logTask {
  padding: 12px;
  border-radius: 8px;
  border: 1px solid #4b4bff;
  background: #4b4bff;
  color: white;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: 0.3s;
}

#logTask:hover {
  background: #00aeff;
  border-color: #00aeff;
  color: black;
}

/* LOG LIST */
.logs {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 20px;
}

/* LOG ITEM */
details {
  background: #111;
  border: 1px solid #333;
  border-radius: 10px;
  padding: 12px;
  transition: 0.3s;
}

details[open] {
  border-color: #4b4bff;
  background: #1d1d1d42;
}
details[open] .deleteBtn {
  background-color: #1c1c1c;
}
summary {
  cursor: pointer;
  font-size: 1.1rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.deleteBtn {
  background-color: #000000;
  border: none;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  font-size: 1.5rem;
  color: rgba(255, 255, 255, 0.852);
  transition: color 0.4s ease, background-color 0.5s ease, transform 0.4s ease;
  position: relative;
  cursor: pointer;
}
.deleteBtn.tooltip::after {
  background: red;
}
/* Tooltip bubble */
.tooltip::after {
  content: attr(data-title);
  position: absolute;
  left: -100%;
  top: -80%;
  transform: translateX(-50%);
  color: #fff;
  padding: 8px 12px;
  border-radius: 60px 60px 0 60px;
  font-size: 14px;
  line-height: 1.3;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  transform-origin: top;
  z-index: 9999;
}

/* Tooltip arrow */
.tooltip::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 100%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  opacity: 0;
  transition: opacity 0.2s ease;
}

/* Show on hover */
.tooltip:hover::after,
.tooltip:hover::before {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.deleteBtn:hover {
  transform: scale(1.1);
  color: rgb(255, 0, 0);
}
.deleteBtn svg {
  width: 25px;
  height: 25px;
}
details span {
  background-color: #181818;
  padding: 8px;
  border-radius: 4px 8px;
  margin-top: 5px;
  display: block;
  width: fit-content;
  cursor: text;
}

details p {
  margin-top: 10px;
  color: #cfcfcf;
  line-height: 1.5;
  text-align: left;
}

/* RESPONSIVE */
@media (max-width: 480px) {
  .header h1 {
    font-size: 2rem;
  }

  .inputContainer {
    padding: 16px;
  }

  input,
  textarea {
    font-size: 0.95rem;
  }
}

/* When a log is added */
.taskContainer {
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.taskContainer.show {
  opacity: 1;
  transform: translateY(0);
}

/* When a log is deleted */
.taskContainer.removing {
  opacity: 0;
  transform: translateY(-6px);
}


.placeholderText {
  text-align: center;
  opacity: 0.4;
  margin-top: 20px;
}


.ads {
  border-radius: 8px;
  background: #222;
  margin-top: 10px;
  border: 1px solid  #333;
  padding: 5px;
}
.ads h2 {
  text-align: center;
}
.ads a {
  display: block;
  width: 90%;
  padding: 10px 0;
  font-weight: 700;
  font-size: 1.1rem;
  text-align: center;
  margin: 20px auto;
}
