/* ===== Global Styles ===== */
* { box-sizing: border-box; margin:0; padding:0; }
html, body { height: 100%; }

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  font-family: "Poppins", sans-serif;
  background-color: #f4f6f9;
  color: #222;
}

/* ===== Navbar ===== */
.navbar {
  background-color: #ffffff;
  padding: 0.8rem 1rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.navbar .container-fluid {
  max-width: 1140px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: nowrap;
}
.navbar-brand {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1a4cb3;
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.navbar-buttons {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}
.navbar .btn {
  border-radius: 6px;
  font-weight: 600;
}
.navbar .btn-primary {
  background-color: #1a4cb3;
  border: none;
}
.navbar .btn-primary:hover { background-color: #153b8b; }
.navbar .btn-outline-danger {
  border-color: #e74c3c;
  color: #e74c3c;
}
.navbar .btn-outline-danger:hover {
  background-color: #e74c3c;
  color: #fff;
}

/* ===== Responsive Navbar ===== */
@media(max-width:992px){
  .navbar-brand { font-size: 1.3rem; }
  .navbar .btn { font-size: 0.85rem; padding: 6px 12px; }
}
@media(max-width:576px){
  .navbar .container-fluid {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    flex-wrap: nowrap;
  }
  .navbar-brand { font-size: 1.15rem; flex:1; min-width:0; }
  .navbar-buttons { flex-direction: row; gap:6px; flex-shrink:0; }
  .navbar .btn { font-size: 0.85rem; padding:5px 8px; }
}

/* ===== Main Container ===== */
main.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 2rem 1rem;
  flex:1;
}

/* ===== Task Overview ===== */
#task-overview {
  background: #ffffff;
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.05);
}
.overview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px,1fr));
  gap:16px;
}
.overview-tab {
  background: #f9f9ff;
  border: 1px solid #e0e6f0;
  border-radius:12px;
  padding:16px;
  text-align:center;
  transition:all 0.25s ease;
  min-height:110px;
  display:flex;
  flex-direction:column;
  justify-content:center;
  cursor:pointer;
  position:relative;
  overflow:hidden;
}
.overview-tab:hover { transform: translateY(-5px) scale(1.03); box-shadow: 0 6px 20px rgba(0,0,0,0.08); }
.overview-tab h6 { font-size:0.95rem; font-weight:600; margin-bottom:6px; color:#333; }
.overview-tab p { font-size:1.3rem; font-weight:700; margin:0; line-height:1.2; }
.overview-tab.total { background:#e9f2ff; border-color:#c9e1ff; color:#1a4cb3; }
.overview-tab.completed { background:#e8f8ee; border-color:#bdeacb; color:#1e824c; }
.overview-tab.progress { background:#fff8e6; border-color:#fbe1a4; color:#a67600; }
.overview-tab.pending { background:#ffe8e6; border-color:#ffb6b3; color:#b61a09; }

@media(max-width:768px){
  .overview-grid { grid-template-columns: repeat(2,1fr); gap:12px; }
  .overview-tab { min-height:95px; padding:12px; border-radius:10px; }
  .overview-tab h6 { font-size:0.85rem; margin-bottom:4px; }
  .overview-tab p { font-size:1.15rem; }
}
@media(max-width:480px){
  .overview-tab { min-height:85px; padding:10px; }
  .overview-tab h6 { font-size:0.8rem; }
  .overview-tab p { font-size:1rem; }
}

/* ===== Search ===== */
.input-group { border-radius:8px; overflow:hidden; }
.input-group .form-control { border:none; padding:12px 14px; }

/* ===== Task Cards ===== */
.task__card {
  background:#ffffff;
  border-radius:12px;
  overflow:hidden;
  box-shadow:0 4px 16px rgba(0,0,0,0.05);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.task__card:hover { transform:translateY(-5px); box-shadow:0 6px 24px rgba(0,0,0,0.1); }
.task__card img { width:100%; height:160px; object-fit:cover; }
.card-body { display:flex; flex-direction:column; padding:14px; }
.card-title { font-size:1.05rem; font-weight:700; margin-bottom:6px; }
.card-text {
  color:#555;
  font-size:0.95rem;
  overflow-wrap:break-word;
  word-wrap:break-word;
  hyphens:auto;
  max-height:120px;
  min-height:50px;
  overflow:hidden;
  white-space:pre-wrap;
}
.status-label { display:inline-block; padding:5px 10px; border-radius:999px; font-weight:700; font-size:0.8rem; color:#fff; }
.status-label.pending { background:#e74c3c; }
.status-label.in-progress { background:#f1c40f; color:#222; }
.status-label.completed { background:#2ecc71; }
.status-dropdown { border-radius:6px; padding:5px; font-size:0.85rem; }
.card-footer { background:transparent; border-top:none; text-align:right; padding:10px; }
.mt-auto { margin-top:auto; }

/* ===== Footer ===== */
.footer {
  background-color: #e9edf4;
  border-top: 1px solid #d0d7e0;
  font-size: 0.9rem;
  padding: 1.5rem 0;
  width: 100%;
}
.footer p { color:#555; margin:0; }
.footer a { color:#555; transition: color 0.2s ease; }
.footer a:hover { color:#1a4cb3; }

@media(max-width:576px){
  .footer .container { flex-direction:column; text-align:center; gap:10px; }
}
