/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */
body {
  min-height: 100vh;
}

.app-shell {
  background:
    radial-gradient(circle at 8% 8%, rgba(13, 110, 253, 0.16), transparent 28rem),
    linear-gradient(180deg, #f7f9fc 0%, #eef2f7 100%);
  color: #111827;
}

.app-header {
  box-shadow: 0 12px 34px rgba(15, 23, 42, 0.12);
}

.top-navbar {
  background: linear-gradient(135deg, #101827 0%, #162033 54%, #0f5132 100%);
  min-height: 68px;
}

.brand-mark {
  align-items: center;
  background: #20c997;
  border-radius: 8px;
  color: #06121f;
  display: inline-flex;
  font-size: 0.82rem;
  font-weight: 800;
  height: 34px;
  justify-content: center;
  letter-spacing: 0;
  width: 34px;
}

.user-chip {
  align-items: center;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  color: #fff;
  display: inline-flex;
  font-size: 0.86rem;
  gap: 0.5rem;
  padding: 0.42rem 0.8rem;
}

.user-dot {
  background: #20c997;
  border-radius: 999px;
  display: inline-block;
  height: 0.55rem;
  width: 0.55rem;
}

.sub-navbar {
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(148, 163, 184, 0.32);
  backdrop-filter: blur(12px);
}

.subnav-inner {
  align-items: center;
  display: flex;
  gap: 0.35rem;
  padding: 0.65rem 0;
}

.subnav-scroll {
  display: flex;
  flex: 1;
  gap: 0.35rem;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
  white-space: nowrap;
}

.subnav-scroll::-webkit-scrollbar {
  display: none;
}

.subnav-link {
  border-radius: 8px;
  color: #475569;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.48rem 0.75rem;
  text-decoration: none;
}

.subnav-link:hover {
  background: #e8eef7;
  color: #0f172a;
}

.subnav-link-strong {
  background: #0f172a;
  color: #fff;
}

.app-main {
  min-height: calc(100vh - 116px);
}

.card {
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 8px;
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.07);
}

.card-header {
  background: rgba(248, 250, 252, 0.9);
  border-bottom-color: rgba(148, 163, 184, 0.24);
}

.table {
  --bs-table-bg: transparent;
}

.table td,
.table th {
  white-space: nowrap;
}

.table thead th {
  color: #64748b;
  font-size: 0.76rem;
  letter-spacing: 0;
  text-transform: uppercase;
}

.btn {
  border-radius: 8px;
}

pre {
  max-height: 520px;
  overflow: auto;
}

@keyframes cell-flash {
  0%   { background-color: rgba(250, 204, 21, 0.5); }
  100% { background-color: transparent; }
}

.cell-updated {
  animation: cell-flash 1.5s ease-out forwards;
  border-radius: 3px;
  padding: 1px 4px;
}

/* Login page */

.login-shell {
  align-items: center;
  background: linear-gradient(135deg, #101827 0%, #162033 54%, #0f5132 100%);
  display: flex;
  justify-content: center;
  min-height: 100vh;
}

.login-main {
  padding: 2rem 1rem;
  width: 100%;
}

.login-wrap {
  align-items: center;
  display: flex;
  justify-content: center;
  min-height: 100%;
}

.login-card {
  background: rgba(255, 255, 255, 0.97);
  border-radius: 16px;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.4);
  max-width: 440px;
  padding: 2.5rem;
  width: 100%;
}

.login-brand {
  align-items: center;
  display: flex;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.login-brand-name {
  color: #0f172a;
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.login-title {
  color: #0f172a;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.login-subtitle {
  color: #64748b;
  font-size: 0.9rem;
  margin-bottom: 1.75rem;
}

.login-form .form-label {
  color: #374151;
  font-size: 0.87rem;
  font-weight: 600;
}

.login-form .form-control {
  border-color: #d1d5db;
  border-radius: 8px;
}

.login-form .form-control:focus {
  border-color: #20c997;
  box-shadow: 0 0 0 3px rgba(32, 201, 151, 0.15);
}

.login-btn-primary {
  background: linear-gradient(135deg, #20c997, #0ea5e9);
  border: none;
  border-radius: 8px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.login-btn-primary:hover,
.login-btn-primary:active,
.login-btn-primary:focus {
  background: linear-gradient(135deg, #17a589, #0284c7);
  border: none;
}

.login-divider {
  align-items: center;
  color: #94a3b8;
  display: flex;
  font-size: 0.85rem;
  gap: 0.75rem;
  margin: 1.5rem 0;
}

.login-divider::before,
.login-divider::after {
  border-top: 1px solid #e2e8f0;
  content: "";
  flex: 1;
}

.login-btn-google {
  align-items: center;
  border-color: #d1d5db;
  border-radius: 8px;
  color: #374151;
  display: flex;
  font-weight: 600;
  justify-content: center;
}

.login-btn-google:hover {
  background: #f8fafc;
  border-color: #94a3b8;
  color: #0f172a;
}

/* Bookmark column — hidden until row hover, always visible when bookmarked */
.bookmark-col {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease;
}
tr:hover .bookmark-col,
.bookmark-col:has(.btn-warning) {
  opacity: 1;
  pointer-events: auto;
}

/* Notification dropdown item hover */
.notification-item {
  cursor: pointer;
}
.notification-item:hover {
  background-color: var(--bs-dropdown-link-hover-bg, #f8f9fa);
}
