* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
  font-family: 'Segoe UI', sans-serif;
}

body.homepage {
  position: relative;
  min-height: 100vh;
  background: linear-gradient(to right, #92bae0); /* ✅ soft gradient background */
  background-size: cover;
  color: #24313d;
}

/* Keep content above overlay */
.navbar,
.hero,
.footer {
  position: relative;
  z-index: 1;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 40px;
  background: rgba(57, 92, 142, 0.644);
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}


.nav-right ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-right a {
  text-decoration: none;
  color: #24313d;
  font-weight: 500;
}

.hero {
  text-align: center;
  padding: 100px 20px;
}

.hero h1 {
  font-size: 42px;
  margin-bottom: 20px;
}

.hero .intro {
  max-width: 650px;
  margin: 0 auto 30px;
  font-size: 16px;
  color: #555; /* ✅ slightly darker for readability */
  line-height: 1.6;
}

.btn {
  padding: 10px 16px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
}

/* ✅ Login button */
.btn-primary {
  background: #f3f4f3; /* green */
  color: #fff;
}
.btn-primary:hover {
  background: #d9e4da; /* darker green on hover */
}

/* ✅ Sign Up button */
.btn-secondary {
  background: #ffffff; /* orange */
  color: #fff;
}
.btn-secondary:hover {
  background: #fefefe; /* darker orange on hover */
}

/* ✅ Learn More button */
.btn-learn,
.btn-learn:visited,
.btn-learn:hover,
.btn-learn:active {
  padding: 14px 32px;
  background: linear-gradient(to right, #257eeb, #1e40af);
  color: #fff;
  border-radius: 8px;
  font-weight: bold;
  display: inline-block;
  text-decoration: none !important;
  transition: all 0.3s ease;
}

.btn-learn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.15);
}
/* loginpage css */
body.auth {
  background: linear-gradient(to right, #e0f2ff, #f0f4f8);
  font-family: 'Segoe UI', sans-serif;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
}

.container.narrow {
  background: #fff;
  padding: 40px 30px;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
  width: 100%;
  max-width: 400px;
  text-align: center;
}

.container.narrow h2 {
  margin-bottom: 24px;
  font-size: 24px;
  color: #1e40af;
}

.card-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  text-align: left;
}

.form-group label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  color: #374151;
}

.form-group input {
  width: 100%;
  padding: 12px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-size: 14px;
  background-color: #f9fafb;
  transition: border-color 0.3s ease;
}

.form-group input:focus {
  border-color: #1e40af;
  outline: none;
}

/* .btn-primary {
  background: #1e40af;
  color: #fff;
  padding: 12px;
  border: none;
  border-radius: 8px;
  font-weight: bold;
  font-size: 16px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.btn-primary:hover {
  background: #2563eb;
} */

.form-note {
  margin-top: 12px;
  font-size: 14px;
  color: #555;
}

.form-note a {
  color: #1e40af;
  text-decoration: none;
  font-weight: 500;
}

.alert-error {
  background: #fee2e2;
  color: #b91c1c;
  padding: 10px;
  border-radius: 6px;
  margin-bottom: 20px;
  font-size: 14px;
}
/* signup page css */
body.auth {
  background: linear-gradient(to right, #e0f2ff, #f0f4f8);
  font-family: 'Segoe UI', sans-serif;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
}

.container.narrow {
  background: #fff;
  padding: 40px 30px;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
  width: 100%;
  max-width: 400px;
  text-align: center;
}

.container.narrow h2 {
  margin-bottom: 24px;
  font-size: 24px;
  color: #1e40af;
}

.card-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  text-align: left;
}

.form-group label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  color: #374151;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 12px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-size: 14px;
  background-color: #f9fafb;
  transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus {
  border-color: #1e40af;
  outline: none;
}





.form-note {
  margin-top: 12px;
  font-size: 14px;
  color: #555;
}

.form-note a {
  color: #1e40af;
  text-decoration: none;
  font-weight: 500;
}

.alert-success {
  background: #d1fae5;
  color: #065f46;
  padding: 10px;
  border-radius: 6px;
  margin-bottom: 20px;
  font-size: 14px;
}

.alert-error {
  background: #fee2e2;
  color: #b91c1c;
  padding: 10px;
  border-radius: 6px;
  margin-bottom: 20px;
  font-size: 14px;
}

/* admin panel css*/
body.panel {
  background: linear-gradient(to right, #f0f4f8, #e0f2ff);
  font-family: 'Segoe UI', sans-serif;
  margin: 0;
  padding: 0;
}

.topbar {
  background: #1e40af;
  color: #fff;
  padding: 16px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.topbar .brand {
  font-size: 20px;
  font-weight: bold;
}

.topbar .user-pill {
  margin-right: 16px;
  font-weight: 500;
}

.btn-danger {
  background: #dc2626;
  color: #fff;
  padding: 8px 14px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
}

.container {
  max-width: 900px;
  margin: 40px auto;
  padding: 0 20px;
}

h2 {
  font-size: 24px;
  margin-bottom: 20px;
  color: #1e40af;
}

.card.form {
  background: #fff;
  padding: 24px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  margin-bottom: 40px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  font-weight: 600;
  margin-bottom: 6px;
  color: #374151;
}

.form-group input,
.form-group select {
  padding: 12px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-size: 14px;
  background-color: #f9fafb;
  transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus {
  border-color: #1e40af;
  outline: none;
}

.btn-primary {
 background-color: #f9fafb;
color: #1e40af;
  padding: 12px 24px;
  border: none;
  border-radius: 8px;
  font-weight: bold;
  font-size: 16px;
  cursor: pointer;
  transition: background 0.3s ease;
  margin-top: 20px;
}

.btn-primary:hover {
  background: #2563eb;
}

.card {
  background: #fff;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 16px;
}

.table th,
.table td {
  padding: 12px;
  border-bottom: 1px solid #e5e7eb;
  text-align: left;
  font-size: 14px;
}

.table th {
  background: #f1f5f9;
  color: #1e293b;
}

.table .muted {
  color: #6b7280;
  text-align: center;
}

.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #1e40af;
  display: flex;
  justify-content: space-around;
  padding: 12px 0;
}

.bottom-nav a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  font-size: 14px;
}

.bottom-nav a.active {
  font-weight: bold;
  border-bottom: 2px solid #fff;
}
/* user panel css*/
body.panel.user {
  background: linear-gradient(to right, #f0f4f8, #e0f2ff);
  font-family: 'Segoe UI', sans-serif;
  margin: 0;
  padding: 0;
  color: #1e293b;
}

/* HEADER */
.topbar.user {
  background: #1e40af;
  color: #fff;
  padding: 16px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.topbar.user .brand {
  font-size: 20px;
  font-weight: bold;
}

.topbar.user .user-pill {
  margin-right: 16px;
  font-weight: 500;
}

.btn-danger {
  background: #dc2626;
  color: #fff;
  padding: 8px 14px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
}

/* CONTAINER */
.container {
  max-width: 900px;
  margin: 40px auto;
  padding: 0 20px;
}

/* CARD SECTIONS */
.card.user {
  background: #fff;
  padding: 24px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  margin-bottom: 32px;
}

.card.user h2 {
  font-size: 20px;
  margin-bottom: 16px;
  color: #1e40af;
}

/* TABLE STYLING */
.table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 12px;
}

.table th,
.table td {
  padding: 12px;
  border-bottom: 1px solid #e5e7eb;
  text-align: left;
  font-size: 14px;
}

.table th {
  background: #f1f5f9;
  color: #1e293b;
}

.table .muted {
  color: #6b7280;
  text-align: center;
}

/* ACTIVITY LIST */
.activity {
  list-style: none;
  padding: 0;
  margin: 0;
}

.activity li {
  padding: 8px 0;
  border-bottom: 1px solid #e5e7eb;
  font-size: 14px;
}

.activity .date {
  color: #1e40af;
  font-weight: 500;
}

.activity .title {
  color: #1e293b;
}

.activity .status {
  color: #f59e0b;
  font-weight: 500;
}

/* BOTTOM NAVIGATION */
.bottom-nav.user {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #1e40af;
  display: flex;
  justify-content: space-around;
  padding: 12px 0;
  border-top: 1px solid #e5e7eb;
}

.bottom-nav.user a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  font-size: 14px;
}

.bottom-nav.user a.active {
  font-weight: bold;
  border-bottom: 2px solid #fff;
}



.icon-btn {
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
  margin: 0 4px;
}
.icon-btn:hover {
  color: limegreen;
}
.icon-btn[title="Delete task"]:hover {
  color: red;
}

.complete-btn {
  color: rgb(15, 75, 185);
}
.process-btn {
  color: rgb(15, 75, 185);
}

btn btn-danger{
  background-color: rgb(0, 42, 255);

}