:root{
  --bg: #000;
  --panel: #111;
  --accent: #12a47f;
  --accent-dark: #094C3C;
  --muted: #ddd;
  --text: #fff;
  --border: #094C3C;
  --font-size: 14px; /* default base font-size */
}

/* light theme overrides */
.light {
  --bg: #f7f7f7;
  --panel: #fff;
  --accent: #0a8f63;
  --accent-dark: #08805a;
  --muted: #333;
  --text: #111;
  --border: #e0e0e0;
}

/* ---------- Global Reset ---------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

/* ---------- Page Background ---------- */
body {
  background-color: var(--bg);
  color: var(--text);
  min-height: 100vh;
  font-size: var(--font-size);
}

html, body {
  /* legacy fallback */
  font-size: 10px; /* You can adjust between 12px – 15px */
}


/* ---------- General Layout ---------- */
.container {
  width: 95%;
  max-width: 1100px;
  margin: 50px auto;
  background: #111;
  padding: 30px;
  border-radius: 16px;
  box-shadow: 0 0 25px rgba(9, 76, 60, 0.5);
  border: 1px solid #094C3C;
}

/* ---------- Headings ---------- */
h1, h2, h3 {
  color: #fff;
  text-align: center;
  margin-bottom: 25px;
  border-bottom: 2px solid #094C3C;
  padding-bottom: 10px;
}

/* ---------- Labels ---------- */
label {
  color: #ffffff;
  font-weight: 500;
  display: block;
  margin-bottom: 8px;
}

/* ---------- Inputs, Dropdowns & Textareas ---------- */
input, select, textarea {
  width: 100%;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #094C3C;
  background-color: #000;
  color: #fff;
  font-size: 1rem;
  margin-bottom: 15px;
  transition: 0.3s ease;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: #12a47f;
  box-shadow: 0 0 10px rgba(9, 76, 60, 0.6);
}

/* ---------- Buttons ---------- */
.btn {
  background-color: #094C3C;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 10px 20px;
  font-size: 1rem;
  cursor: pointer;
  transition: 0.3s ease;
  text-decoration: none;
  display: inline-block;
}

.btn:hover {
  background-color: #12a47f;
  transform: translateY(-2px);
}

.btn.danger {
  background-color: #d9534f;
}

.btn.danger:hover {
  background-color: #c9302c;
}

/* ---------- Form Containers ---------- */
.form-container {
  width: 100%;
  max-width: 600px;
  margin: auto;
  padding: 20px;
}

.form-card {
  background-color: #111;
  padding: 40px;
  border-radius: 16px;
  box-shadow: 0 0 30px rgba(9, 76, 60, 0.5);
  border: 1px solid #094C3C;
}

/* ---------- Footer Links ---------- */
.footer-link {
  text-align: center;
  margin-top: 25px;
}

.footer-link a {
  color: #12a47f;
  text-decoration: none;
  font-weight: 500;
  transition: 0.3s ease;
}

.footer-link a:hover {
  color: #fff;
  text-decoration: underline;
}

/* ---------- Badge Styles ---------- */
.badge {
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 500;
}

.badge-success { background-color: #0FB17A; color: #fff; }
.badge-warning { background-color: #D2A10C; color: #000; }
.badge-danger { background-color: #D9534F; color: #fff; }
.badge-primary { background-color: #094C3C; color: #fff; }
.badge-light { background-color: #555; color: #fff; }
.badge-secondary { background-color: #333; color: #ccc; }

/* ---------- Tables (for Team, Clients, Settings, etc.) ---------- */
table {
  width: 100%;
  border-collapse: collapse;
  background-color: #000;
  border-radius: 12px;
  overflow: hidden;
}

thead {
  background-color: #094C3C;
}

th, td {
  padding: 12px;
  border-bottom: 1px solid #094C3C;
  text-align: left;
  color: #ddd;
}

th {
  font-weight: 600;
  color: #fff;
}

tr:hover {
  background-color: rgba(9, 76, 60, 0.2);
  transition: 0.3s;
}

/* ---------- Description Column (Paragraph style) ---------- */
td:nth-child(2) {
  max-width: 300px;
  white-space: normal;
  word-break: break-word;
  line-height: 1.5;
  color: #ddd;
  padding: 10px 14px;
  background-color: #0a0a0a;
  border-radius: 6px;
  font-size: 0.9rem;
  text-align: justify;
}

/* ---------- Description Expand/Collapse ---------- */
.desc-box {
  position: relative;
}
.desc-box a {
  color: #12a47f;
  font-size: 0.8rem;
  margin-left: 5px;
}

/* ---------- No Tasks Message ---------- */
.no-tasks {
  text-align: center;
  color: #aaa;
  margin-top: 30px;
}

/* ---------- Search Section (shared across pages) ---------- */
.search-section {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-bottom: 25px;
  flex-wrap: wrap;
}

.search-section input,
.search-section select {
  padding: 6px 10px;
  border-radius: 6px;
  border: 1px solid #094C3C;
  background-color: #000;
  color: #fff;
  font-size: 0.9rem;
}

.search-section button {
  padding: 6px 12px;
  background-color: #094C3C;
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: 0.3s;
}

.search-section button:hover {
  background-color: #12a47f;
}

/* Back button utility */
.back-btn {
  display: inline-block;
  margin-top: 20px;
  color: var(--text);
  background: transparent;
  border: 1px solid var(--border);
  padding: 6px 10px;
  border-radius: 8px;
  text-decoration: none;
  padding:12px;
  transition: 0.3s ease;
  font-size: 12px;
}
.back-btn:hover{ background: var(--accent); color: #fff }

/* ---------- Settings Page ---------- */
.settings {
  max-width: 500px;
  margin: 40px auto;
  background-color: #111;
  border: 1px solid #094C3C;
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 0 25px rgba(9, 76, 60, 0.4);
}

.settings label {
  display: block;
  margin: 15px 0 5px;
  font-weight: 500;
}

.settings select {
  width: 100%;
  padding: 8px;
  border-radius: 6px;
  border: 1px solid #094C3C;
  background-color: #000;
  color: #fff;
}

/* --- Table Row Alignment Fix --- */
table td {
  vertical-align: middle !important;
  white-space: nowrap;
}

/* Description should wrap neatly, not overflow */
td.description-cell {
  white-space: normal;
  word-wrap: break-word;
  max-width: 250px;
}

/* Buttons aligned in a row */
.action-buttons {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

.sidebar img,
.center-logo img {
  width: 140px;
  height: auto;
  margin-bottom: 15px;
  filter: drop-shadow(0 0 6px rgba(18, 164, 127, 0.6)) brightness(1.8);
}

/* ---------- Sidebar Cleanup ---------- */
.sidebar {
  background-color: #000;
  padding: 20px;
  border-right: 1px solid #094C3C;
  height: 100vh;
}

.sidebar ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar ul li {
  margin: 15px 0;
}

.sidebar ul li a {
  text-decoration: none;
  color: #12a47f; /* Green text */
  font-size: 1rem;
  transition: 0.3s;
}

.sidebar ul li a:hover {
  color: #fff;
  text-shadow: 0 0 6px rgba(18, 164, 127, 0.8);
}

/* Remove default link styling */
a {
  color: #12a47f;
  text-decoration: none;
}

a:hover {
  color: #fff;
}

/* Remove any white lines or outlines */
hr {
  display: none;
}

/* ---------- Hide the top Dashboard heading ---------- */
h1, h2, h3 {
  color: #fff;
  text-align: center;
  margin-bottom: 25px;
  border: none !important; /* Remove green or white lines */
  padding-bottom: 0;
}

/* ---------- Optional Layout Tweak ---------- */
main.container {
  margin-left: 220px; /* Adjust if sidebar overlaps */
  padding: 30px;
}

.dashboard-container {
  padding: 30px;
  margin: auto;
  max-width: 1200px;
}           

/* Highlight completed rows */
.completed-row {
  background: linear-gradient(90deg, rgba(18,164,127,0.08), rgba(9,76,60,0.04));
}
.completed-row td { color: #dffaf0; }


/* Add Client Form Styling */
.add-client-form {
  background-color: #111;
  border: 1px solid #094C3C;
  border-radius: 12px;
  padding: 20px;
  max-width: 500px;
  margin: 40px auto 0;
  box-shadow: 0 0 20px rgba(9, 76, 60, 0.4);
}

.add-client-form h2 {
  color: #12a47f;
  text-align: center;
  margin-bottom: 20px;
}

/* Responsive Fix for Buttons Inside Table */
table .btn {
  padding: 6px 12px;
  font-size: 0.85rem;
  margin: 0;
}
