/* aisi-bootstrap-custom.css: 放置自訂 Bootstrap 主題色與覆蓋 */
/* --- 主視覺色彩優化 --- */
:root {
  --aisi-primary: #5f849b;
  --aisi-secondary: #f2b263;
  --aisi-success: #6bbf8e;
  --aisi-info: #5fc3e4;
  --aisi-warning: #ffd166;
  --aisi-danger: #e76f51;
  --aisi-bg: #f8fafc;
  --aisi-card: #ffffff;
  --aisi-border: #e0e6ed;
}

body {
  background-color: var(--aisi-bg) !important;
}
.aisi-accent {
  background-color: var(--aisi-primary) !important;
  color: #fff !important;
}
.aisi-accent-text {
  color: var(--aisi-primary) !important;
}
.aisi-card {
  border-radius: 1rem;
  box-shadow: 0 2px 8px rgba(95, 132, 155, 0.08);
  background-color: var(--aisi-card);
  border: 1px solid var(--aisi-border);
}
.card.border-primary {
  border-color: var(--aisi-primary) !important;
}
.card-header.bg-primary {
  background-color: var(--aisi-primary) !important;
  color: #fff !important;
}
.btn-secondary,
.btn-secondary:focus,
.btn-secondary:active {
  background-color: var(--aisi-secondary) !important;
  border-color: var(--aisi-secondary) !important;
  color: #fff !important;
}
.btn-primary,
.btn-primary:focus,
.btn-primary:active {
  background-color: var(--aisi-primary) !important;
  border-color: var(--aisi-primary) !important;
  color: #fff !important;
}
.table thead {
  background-color: var(--aisi-primary) !important;
  color: #fff !important;
}
.table-bordered > :not(caption) > * > * {
  border-color: var(--aisi-border);
}
.spinner-border.text-primary {
  color: var(--aisi-primary) !important;
}

/* --- list-group-item 內的 a/item 取消底線 --- */
.list-group-item a {
  text-decoration: none !important;
}
.list-group-item a:hover {
  text-decoration: underline dotted !important;
  color: var(--aisi-primary) !important;
}

/* --- menu-link 樣式（帶 icon 文字）--- */
.menu-link {
  display: flex;
  align-items: center;
  gap: 0.5em;
  color: #333c4c !important;
  font-weight: 500;
  font-size: 1.08em;
  background: none !important;
  border: none;
  box-shadow: none;
  text-decoration: none !important;
  transition: color 0.15s;
}
.menu-link .bi {
  font-size: 1.2em;
  color: #5f849b;
}
.menu-link.is-active,
.menu-link.active,
.menu-link:hover {
  color: var(--aisi-primary) !important;
  background: none !important;
  text-decoration: none !important;
}
.list-group-item {
  background: transparent;
  border: none;
}
.list-group-item:hover {
  background: #f3f6fa;
}

/* --- 讓 input-group 在 md 以上寬度較短並置中 --- */
@media (min-width: 768px) {
  .aisi-input-center {
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
  }
}

.responsive-img-container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin: 0 auto;
  padding: 16px 0;
}
.responsive-img-container img {
  width: 90px;
  max-width: 100%;
  height: auto;
  display: block;
}
@media (max-width: 600px) {
  .responsive-img-container img {
    width: 60px;
  }
}

.aisi-logo-right {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  height: 40px;
  width: auto;
  margin-right: 0.5rem;
}

/* --- 其他協調色修飾 --- */
input:focus,
.form-control:focus {
  border-color: var(--aisi-primary);
  box-shadow: 0 0 0 0.2rem rgba(95, 132, 155, 0.15);
}

/* 可依需求再增添細節調色 */
/* 你可以在這裡加入更多自訂 RWD 或主題色樣式 */

/* --- Custom Table Striping --- */
.table-striped > tbody > tr:nth-of-type(odd) > * {
  --bs-table-accent-bg: var(--aisi-bg);
  /* Fallback for older Bootstrap or direct override if needed */
  /* background-color: var(--aisi-bg); */
}

/* Ensure even rows have a contrasting background if --aisi-bg is very light, 
   or if the default transparent/white is desired against --aisi-card or body background.
   If --aisi-card is white and --aisi-bg is a light color, this keeps even rows white. */
.table-striped > tbody > tr:nth-of-type(even) > * {
  background-color: var(--aisi-card); /* Assuming --aisi-card is #ffffff */
}

/* --- View Mode Toggle Buttons --- */
.btn-group .btn-check:checked + .btn-outline-primary {
  background-color: var(--aisi-primary);
  color: #fff;
}

/* --- Task/Portfolio Card Styles --- */
.aisi-task-card,
.aisi-portfolio-card {
  border: 1px solid var(--aisi-border);
  border-radius: 0.5rem; /* Softer corners */
  background-color: var(--aisi-card);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  transition: box-shadow 0.2s ease-in-out;
}

.aisi-task-card:hover,
.aisi-portfolio-card:hover {
  box-shadow: 0 4px 12px rgba(95, 132, 155, 0.1);
}

.aisi-task-card .card-title,
.aisi-portfolio-card .card-title {
  font-size: 1.1rem;
  font-weight: 500;
  color: #333c4c;
  margin-bottom: 0.5rem;
}

.aisi-task-card .card-text,
.aisi-portfolio-card .card-text {
  font-size: 0.875rem;
  color: #555;
}

.aisi-task-card .card-text .bi,
.aisi-portfolio-card .card-text .bi {
  margin-right: 0.3rem;
  color: var(--aisi-primary);
}

.aisi-task-card .card-footer,
.aisi-portfolio-card .card-footer {
  padding-top: 0.5rem;
  padding-bottom: 0.75rem;
  border-top: 1px solid var(--aisi-border);
}

.aisi-task-card .card-footer .btn,
.aisi-portfolio-card .card-footer .btn {
  padding: 0.25rem 0.5rem;
  font-size: 0.8rem;
}
