/* Custom styles moved from HTML files (dashboard, create_task, etc.) */

body {
  max-width: 100%;
}

/* ---- Styles moved from task_detail.html ---- */
body.task-detail-page {
  background: linear-gradient(135deg, #e0f7fa 0%, #b2dfdb 100%) !important;
}
.task-detail-card {
  margin-top: -10px !important;
  margin-bottom: 38px !important;
  min-width: 0;
  width: 100%;
  max-width: 950px;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  background: #fff;
}
.card-header.bg-primary {
  background: #1976d2 !important;
  border-radius: 12px 12px 0 0;
}
.detail-label {
  font-weight: 600;
  color: #1976d2;
  font-size: 1.08rem;
  margin-bottom: 2px;
  letter-spacing: 0.2px;
}
.detail-value {
  font-size: 1.05rem;
  color: #444;
  font-family: "Segoe UI", Arial, sans-serif;
}
.detail-desc,
.detail-remarks {
  font-size: 1.08rem;
  font-family: "Segoe UI", Arial, sans-serif;
  color: #333;
  background: #f8fafc;
  border-left: 4px solid #1976d2;
  border-radius: 6px;
  padding: 12px 12px;
  margin-bottom: 0.5rem;
}
.badge.bg-info {
  background: #00bcd4 !important;
}
/* ---- End moved styles ---- */

/* Stat Card Styles - Matched with Task List */
.stat-card {
  transition: transform 0.2s ease;
  cursor: pointer;
  min-height: 60px;
  max-height: 80px;
}
.stat-card .card-body {
  padding: 0.5rem 0.75rem;
}
.stat-card .card-title {
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
}
.stat-card .card-text {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 0;
}
.stat-card:hover {
  transform: translateY(-2px);
}
.stat-card.active {
  border: 2px solid #fff;
}
.custom-table {
  font-size: 0.9rem;
  table-layout: fixed;
  width: 100%;
}
.custom-table th {
  font-weight: 600;
  background-color: #f8f9fa;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: middle;
  padding: 12px 8px;
}
.custom-table td {
  padding: 8px;
  vertical-align: middle;
}
.project-col {
  width: 15%;
}
.project-cell {
  position: relative;
}
.project-name {
  max-width: 100%;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.3;
  min-height: 2.6em;
}
.custom-table th:nth-child(1) {
  width: 15%;
}
.custom-table th:nth-child(2) {
  width: 12%;
}
.custom-table th:nth-child(3) {
  width: 10%;
}
.custom-table th:nth-child(4) {
  width: 12%;
}
.custom-table th:nth-child(5) {
  width: 10%;
}
.custom-table th:nth-child(6) {
  width: 20%;
}
.custom-table th:nth-child(7) {
  width: 8%;
}
.custom-table th:nth-child(8) {
  width: 8%;
}
.custom-table th:nth-child(9) {
  width: 5%;
}
.dashboard-filter-form label,
.dashboard-filter-form select,
.dashboard-filter-form input {
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 0.98rem;
  font-weight: 400;
  color: #222;
  letter-spacing: 0.01em;
}
.dashboard-filter-form .form-select,
.dashboard-filter-form input[type="date"] {
  min-height: 32px;
  padding: 4px 10px;
  border-radius: 5px;
  border: 1px solid #b0c4de;
  background: #f8fafc;
  box-shadow: none;
  transition: border 0.2s;
}
.dashboard-filter-form .form-select:focus,
.dashboard-filter-form input[type="date"]:focus {
  border: 1.5px solid #1976d2;
  background: #fff;
  outline: none;
}
.dashboard-filter-form .btn {
  font-size: 1rem;
  border-radius: 6px;
  padding: 0.5rem 1.2rem;
}
.task-description-row {
  display: none;
}
.status-badge.status-complete {
  background: #e6f4ea !important;
  color: #219653 !important;
  font-weight: 600;
}
/* Custom styles moved from HTML files (dashboard, create_task, etc.) */

body {
  max-width: 100%;
}

/* ---- Styles moved from task_detail.html ---- */
body.task-detail-page {
  background: linear-gradient(135deg, #e0f7fa 0%, #b2dfdb 100%) !important;
}
.task-detail-card {
  margin-top: -10px !important;
  margin-bottom: 38px !important;
  min-width: 0;
  width: 100%;
  max-width: 950px;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  background: #fff;
}
.card-header.bg-primary {
  background: #1976d2 !important;
  border-radius: 12px 12px 0 0;
}
.detail-label {
  font-weight: 600;
  color: #1976d2;
  font-size: 1.08rem;
  margin-bottom: 2px;
  letter-spacing: 0.2px;
}
.detail-value {
  font-size: 1.05rem;
  color: #444;
  font-family: "Segoe UI", Arial, sans-serif;
}
.detail-desc,
.detail-remarks {
  font-size: 1.08rem;
  font-family: "Segoe UI", Arial, sans-serif;
  color: #333;
  background: #f8fafc;
  border-left: 4px solid #1976d2;
  border-radius: 6px;
  padding: 12px 12px;
  margin-bottom: 0.5rem;
}
.badge.bg-info {
  background: #00bcd4 !important;
}
/* ---- End moved styles ---- */

/* Stat Card Styles - Matched with Task List */
.stat-card {
  transition: transform 0.2s ease;
  cursor: pointer;
  min-height: 60px;
  max-height: 80px;
}
.stat-card .card-body {
  padding: 0.5rem 0.75rem;
}
.stat-card .card-title {
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
}
.stat-card .card-text {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 0;
}
.stat-card:hover {
  transform: translateY(-2px);
}
.stat-card.active {
  border: 2px solid #fff;
}
.custom-table {
  font-size: 0.9rem;
  table-layout: fixed;
  width: 100%;
}
.custom-table th {
  font-weight: 600;
  background-color: #f8f9fa;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: middle;
  padding: 12px 8px;
}
.custom-table td {
  padding: 8px;
  vertical-align: middle;
}
.project-col {
  width: 15%;
}
.project-cell {
  position: relative;
}
.project-name {
  max-width: 100%;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.3;
  min-height: 2.6em;
}
.custom-table th:nth-child(1) {
  width: 15%;
}
.custom-table th:nth-child(2) {
  width: 12%;
}
.custom-table th:nth-child(3) {
  width: 10%;
}
.custom-table th:nth-child(4) {
  width: 12%;
}
.custom-table th:nth-child(5) {
  width: 10%;
}
.custom-table th:nth-child(6) {
  width: 20%;
}
.custom-table th:nth-child(7) {
  width: 8%;
}
.custom-table th:nth-child(8) {
  width: 8%;
}
.custom-table th:nth-child(9) {
  width: 5%;
}
.dashboard-filter-form label,
.dashboard-filter-form select,
.dashboard-filter-form input {
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 0.98rem;
  font-weight: 400;
  color: #222;
  letter-spacing: 0.01em;
}
.dashboard-filter-form .form-select,
.dashboard-filter-form input[type="date"] {
  min-height: 32px;
  padding: 4px 10px;
  border-radius: 5px;
  border: 1px solid #b0c4de;
  background: #f8fafc;
  box-shadow: none;
  transition: border 0.2s;
}
.dashboard-filter-form .form-select:focus,
.dashboard-filter-form input[type="date"]:focus {
  border: 1.5px solid #1976d2;
  background: #fff;
  outline: none;
}
.dashboard-filter-form .btn {
  font-size: 1rem;
  border-radius: 6px;
  padding: 0.5rem 1.2rem;
}
.task-description-row {
  display: none;
}
.status-badge.status-complete {
  background: #e6f4ea !important;
  color: #219653 !important;
  font-weight: 600;
}
.status-badge.status-in_progress,
.status-badge.status-todo,
.status-badge.status-on_hold {
  background: #fff7e6 !important;
  color: #ff9800 !important;
  font-weight: 600;
 /* change font color to be red */
 

}
.table td.actions {
  display: flex !important;
  gap: 0.5rem;
  align-items: center;
  justify-content: center;
}

/* ---- Styles moved from manager_dashboard.html ---- */
.clickable-stat-card:hover {
  box-shadow: 0 0 0 0.2rem #1976d233;
  transform: translateY(-2px) scale(1.03);
  transition: all 0.2s;
  cursor: pointer;
}
.table.custom-table th,
.table.custom-table td {
  text-align: center !important;
  vertical-align: middle !important;
}

/* Modern button styles for task actions */
.btn-modern {
  display: inline-flex;
  align-items: center;
  font-size: 1rem;
  font-weight: 500;
  border-radius: 6px;
  padding: 0.5rem 1.2rem;
  border: none;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
  box-shadow: 0 2px 8px rgba(25, 118, 210, 0.08);
  background: #f5f5f5;
  color: #1976d2;
  text-decoration: none;
  margin-right: 0.5rem;
}
.btn-modern:hover, .btn-modern:focus {
  background: #e3f2fd;
  color: #0d47a1;
  text-decoration: none;
}
.btn-edit {
  background: #1976d2;
  color: #fff;
}
.btn-edit:hover, .btn-edit:focus {
  background: #1565c0;
  color: #fff;
}
.btn-back {
  background: #6c757d;
  color: #fff;
}
.btn-back:hover, .btn-back:focus {
  background: #495057;
  color: #fff;
}
.btn-delete {
  background: #e53935;
  color: #fff;
}
.btn-delete:hover, .btn-delete:focus {
  background: #b71c1c;
  color: #fff;
}
.card.h-100 {
}
.card.h-100 .card-body {
  height: auto;
  display: block;
  align-items: unset;
  justify-content: unset;
}
.dashboard-charts .card {
  min-height: 200px;
  max-height: unset;
}
.dashboard-charts .card-body {
  min-height: unset;
  max-height: unset;
  padding-top: 1.25rem;
  padding-bottom: 1.25rem;
}

/* Login Page Styles */
body.login-page {
  background: url('/static/tasks/project-banner-.jpg') no-repeat center center fixed;
  background-size: cover;
}
.login-page .container {
  background: rgba(21, 141, 197, 0.85);
  border-radius: 12px;
  padding: 2rem 1rem;
}

.table-responsive .dropdown {
    position: static;
}
.table td.actions {
  display: flex !important;
  gap: 0.5rem;
  align-items: center;
  justify-content: center;
}

/* ---- Styles moved from manager_dashboard.html ---- */
.clickable-stat-card:hover {
  box-shadow: 0 0 0 0.2rem #1976d233;
  transform: translateY(-2px) scale(1.03);
  transition: all 0.2s;
  cursor: pointer;
}
.table.custom-table th,
.table.custom-table td {
  text-align: center !important;
  vertical-align: middle !important;
}

/* Modern button styles for task actions */
.btn-modern {
  display: inline-flex;
  align-items: center;
  font-size: 1rem;
  font-weight: 500;
  border-radius: 6px;
  padding: 0.5rem 1.2rem;
  border: none;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
  box-shadow: 0 2px 8px rgba(25, 118, 210, 0.08);
  background: #f5f5f5;
  color: #1976d2;
  text-decoration: none;
  margin-right: 0.5rem;
}
.btn-modern:hover, .btn-modern:focus {
  background: #e3f2fd;
  color: #0d47a1;
  text-decoration: none;
}
.btn-edit {
  background: #1976d2;
  color: #fff;
}
.btn-edit:hover, .btn-edit:focus {
  background: #1565c0;
  color: #fff;
}
.btn-back {
  background: #6c757d;
  color: #fff;
}
.btn-back:hover, .btn-back:focus {
  background: #495057;
  color: #fff;
}
.btn-delete {
  background: #e53935;
  color: #fff;
}
.btn-delete:hover, .btn-delete:focus {
  background: #b71c1c;
  color: #fff;
}
.card.h-100 {
}
.card.h-100 .card-body {
  height: auto;
  display: block;
  align-items: unset;
  justify-content: unset;
}
.dashboard-charts .card {
  min-height: 200px;
  max-height: unset;
}
.dashboard-charts .card-body {
  min-height: unset;
  max-height: unset;
  padding-top: 1.25rem;
  padding-bottom: 1.25rem;
}

/* Login Page Styles */
body.login-page {
  background: url('/static/tasks/project-banner-.jpg') no-repeat center center fixed;
  background-size: cover;
}
.login-page .container {
  background: rgba(21, 141, 197, 0.85);
  border-radius: 12px;
  padding: 2rem 1rem;
}
