:root {
  --app-navy: #17365d;
  --app-blue: #2878c7;
  --app-soft: #f4f6f9;
}

html,
body {
  font-family: "Microsoft JhengHei", "Noto Sans TC", "Source Sans Pro", sans-serif;
}

body {
  background: var(--app-soft);
}

.brand-link {
  border-bottom-color: rgba(255, 255, 255, .08) !important;
}

.brand-link .brand-image {
  float: none;
  margin-left: 0;
  margin-right: .55rem;
}

.main-sidebar {
  background: var(--app-navy);
}

.nav-sidebar .nav-link.active {
  background: var(--app-blue) !important;
}

.content-header h1 {
  font-size: 1.55rem;
  font-weight: 700;
  color: #25364a;
}

.content-wrapper {
  min-height: calc(100vh - 114px);
}

.card {
  border: 0;
  box-shadow: 0 2px 12px rgba(32, 49, 68, .08);
}

.card-header {
  border-bottom-color: #edf1f5;
}

.card-title {
  font-weight: 700;
}

.table thead th {
  border-bottom-width: 1px;
  color: #394b5d;
  background: #f6f8fb;
  white-space: nowrap;
}

.table td,
.table th {
  vertical-align: middle;
}

.table-actions {
  min-width: 112px;
  white-space: nowrap;
}

.table-empty {
  padding: 2.4rem !important;
  color: #7b8794;
  text-align: center;
}

.page-loading {
  display: grid;
  min-height: 100vh;
  place-items: center;
  color: #657484;
}

.login-page {
  min-height: 100vh;
  padding: 1rem;
  background:
    radial-gradient(circle at 10% 10%, rgba(40, 120, 199, .17), transparent 38%),
    linear-gradient(135deg, #edf3f9 0%, #f7f9fc 50%, #e7eef6 100%);
}

.login-box {
  width: min(400px, 100%);
}

.login-logo a {
  color: var(--app-navy);
  font-weight: 300;
}

.login-card-body {
  padding: 2rem;
}

.login-intro {
  color: #657484;
}

.login-system-label {
  display: inline-block;
  margin-bottom: .55rem;
  color: var(--app-blue);
  font-size: .77rem;
  font-weight: 700;
  letter-spacing: .1em;
}

.stat-card .inner h3 {
  font-size: 2rem;
}

.stat-card .icon {
  top: 8px;
}

.stat-card .icon > i {
  font-size: 58px;
}

.img-thumb {
  width: 80px;
  height: 58px;
  object-fit: cover;
  border: 1px solid #d9e1e8;
  border-radius: .3rem;
  background: #f7f9fb;
}

.img-placeholder {
  display: inline-grid;
  width: 80px;
  height: 58px;
  place-items: center;
  color: #9aa5b1;
  border: 1px dashed #cbd5df;
  border-radius: .3rem;
  background: #f8fafc;
  font-size: .75rem;
}

.news-summary {
  max-width: 420px;
  color: #64717d;
  white-space: normal;
}

.current-image-box {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .75rem;
  border: 1px solid #e0e6ec;
  border-radius: .35rem;
  background: #f8fafc;
}

.current-image-box img {
  width: 120px;
  height: 86px;
  object-fit: cover;
  border-radius: .3rem;
}

.pagination-summary {
  color: #6f7b87;
  font-size: .9rem;
}

.badge-role {
  min-width: 58px;
  padding: .38em .6em;
}

.modal-header {
  background: #f8fafc;
}

.form-required::after {
  content: " *";
  color: #dc3545;
}

.sidebar-user {
  color: #c9d4df;
  font-size: .84rem;
}

.sidebar-user strong {
  color: #fff;
}

.app-version {
  color: #8a99a8;
  font-size: .8rem;
}

@media (max-width: 767.98px) {
  .content-header h1 {
    font-size: 1.3rem;
  }

  .card-header .form-inline {
    width: 100%;
  }

  .card-header .input-group {
    width: 100% !important;
    margin-top: .75rem;
  }
}
