* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  outline: none;
  text-decoration: none;
}

body {
  font-family: "Poppins", sans-serif;
  font-style: normal;
  min-height: 100vh;
  background-color: #f0f2f5;
  /* margin-top: 0 !important; */
  padding-top: 10px;
}

.container {
  max-width: 900px;
  margin: 24px auto;
  padding: 24px 32px;
  background-color: rgba(255, 255, 255 , 0.95);
  text-align: center;
  align-items: center;
  border-radius: 10px;
  /* padding-bottom: 20px; */
}

button {
  flex: 1;
  padding: 8px;
  background-color: #28a475;
  border: none;
  color: white;
  border-radius: 5px;
}

/* !Navbar*/
.navbar {
  display: flex;
  justify-content: space-between;
  margin-top: 0 !important;
  align-items: center;
  background: #28a475;
  padding: 12px 32px; 
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navbar-left a {
  display: flex;
  align-items: center;
  font-size: 2rem;
  /* font-wight: 700; */
  color: rgb(197, 33, 162);
  font-style: italic;
}

.user-dropdown {
  position: relative;
  display: inline-block;
}

.user-icon {
  cursor: pointer;
}

.login-menu {
  display: none;
  position: absolute;
  top: 35px;
  right: 0;
  background: black;
  padding: 15px;
  border: 1px solid #ddd;
  border-radius: 8px;
  z-index: 100;
}

.login-menu form {
  display: flex;
  flex-direction: column;
}

.login-menu input {
  padding: 8px;
  border: 1px solid #ccc;
}

.login-menu button {
  margin-top: 10px;
  padding: 8px;
  background: #4cafef;
  color: white;
  cursor: pointer;
}

.login-menu button:hover {
  background: #3a9fd6;
}

.signup-text {
  font-size: 12px;
  margin-top: 8px;
  text-align: center;
}

.user-dropdown.show .login-menu {
  display: block;
}




/* !Navbar*/

/* !Form  Section Start*/

/* Form Bar */
.form-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 16px 10px;
  gap: 10px;
}

/* Task New */
.newTask {
  display: flex;
  padding: 10px 10px;
  width: 45vw;
  min-width: 100px;
}

/* Date */
.dateInput {
  padding: 10px 10px;
}

/* Date Button */
.add-btn {
  font-size: 15px;
  padding: 10px 10px;
  cursor: pointer;
  /* margin-left: 8px; */
}

/* !Form End */

/* !Filter and Delete Start */
.filter-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 16px 0;
}

.filter {
  position: relative;
  display: inline-block;
  margin-left: 10px;
}

.dropbtn {
  padding: 8px;
  border: none;
  cursor: pointer;
}

.dropdown-content {
  display: none;
  position: absolute;
  min-width: 120px;
  box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.2);
  z-index: 1;
  border-radius: 5px;
}

.dropdown-content a {
  color: #333;
  padding: 8px 12px;
  text-decoration: none;
  display: block;
}

.dropdown-content a:hover {
  color: white;
}

.delete-btn {
  background-color: #e74c3c;
  color: white;
  border: none;
  border-radius: 5px;
  padding: 8px 6px;
  cursor: pointer;
  max-width: 120px;
  margin-right: 10px;
}
/* !Filter and delete End */

/* Table */
table {
  width: 100%;
  border-collapse: collapse;
  background-color: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.07);
  margin: 16px auto;
}

th,
td {
  padding: 16px 12px;
  text-align: center;
  font-size: 1.1rem;
}

th {
  background-color: #28a475;
  color: #fff;
  font-weight: 600;
}

td:first-child,
th:first-child {
  width: 200px;
  max-width: 200px;
  min-width: 200px;
  word-break: break-word;
  text-align: left;
}

tr:nth-child(even) {
  background-color: #f2f2f2;
}

tr:hover {
  background-color: #e6f7ee;
}

td button {
  margin: 0 4px;
  padding: 6px 12px;
  font-size: 0.95rem;
  border-radius: 4px;
  border: none;
  cursor: pointer;
}

td button:first-child {
  background-color: #e74c3c;
  color: #fff;
}

td button:last-child {
  background-color: #28a475;
  color: #fff;
}

/* !Task List End */

/* !Media Queris */

/* Desktop */
/* html {
} */

/* Tab */
@media (max-width: 900px) {
  .container {
    max-width: 98vw;
    padding: 16px 8px;
  }
  .table {
    font-size: 0.98rem;
  }
  th,
  td {
    padding: 10px 6px;
  }
  .newTask {
    width: 70vw;
    min-width: 120px;
  }
}

/* Mobile */
@media (max-width: 600px) {
  .container {
    max-width: 100vw;
    padding: 8px 2px;
    border-radius: 0;
  }
  table,
  thead,
  tbody,
  th,
  td,
  tr {
    display: block;
    width: 100%;
  }
  thead {
    display: none;
  }
  tr {
    margin-bottom: 16px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.07);
    border-radius: 8px;
    background: #fff;
    padding: 8px 0;
  }
  td {
    text-align: left;
    padding: 8px 12px;
    position: relative;
    font-size: 1rem;
    border: none;
  }
  td:before {
    content: attr(data-lable);
    font-weight: bold;
    display: block;
    margin-bottom: 4px;
    color: #28a475;
  }
  .form-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }
  .newTask,
  .dateInput {
    width: 100%;
    margin: 0;
    border-radius: 5px;
  }
}


/* todo Footer */
.footer {
  justify-content: center;
  text-align: center;

}