/* ========== Dashboard Page ========== */
.dashboard-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.5rem; margin-bottom: 2rem; }

/* Dashboard card header and metrics */
.stat-card-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 1rem; }
.stat-value { font-size: 2rem; font-weight: 700; line-height: 1; margin-bottom: 0.5rem; color: var(--text-primary); }

/* Stat icon variants */
.stat-icon { width: 3rem; height: 3rem; border-radius: 0.5rem; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; color: white; }
.stat-icon.primary { background-color: #0d6efd; }
.stat-icon.success { background-color: #198754; }
.stat-icon.warning { background-color: #ffc107; color: #333; }
.stat-icon.danger { background-color: #dc3545; }
.stat-icon.info { background-color: #0dcaf0; }

/* Stat change indicator */
.stat-change { display: flex; align-items: center; gap: 0.5rem; font-size: 0.875rem; font-weight: 500; margin-top: 0.75rem; }
.stat-change.positive { color: #198754; }
.stat-change.negative { color: #dc3545; }
.stat-change i { font-size: 1rem; }

/* Queue list / placeholders */
.queue-item { background: var(--bg-secondary); transition: all 0.2s; }
.queue-item:hover { background: #fff; box-shadow: var(--shadow-sm); }
.chart-placeholder { background: var(--bg-secondary); border-radius: 0.375rem; }
.placeholder-glow .placeholder { background-color: #dee2e6; }

/* ========== Review Queues Page ========== */
/* Metric icons for summary cards */
.metric-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

/* Queue cards */
.queue-card {
    transition: all 0.3s ease;
    border: 1px solid #e0e0e0;
}

.queue-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
}

.queue-card.has-work {
    border-left: 4px solid #0d6efd;
}

.queue-card.urgent-queue {
    border-left: 4px solid #dc3545;
    background: linear-gradient(to right, #fff5f5 0%, white 10%);
}

.queue-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c3e50;
}

/* Metric boxes within queue cards */
.metric-box {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 10px;
    text-align: center;
    transition: all 0.2s ease;
}

.metric-box.metric-active {
    background: #fff;
    border: 1px solid #e0e0e0;
}

.metric-box:hover {
    background: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.metric-value {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.metric-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    color: #6c757d;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.empty-queue-state {
    opacity: 0.6;
}

.progress {
    background-color: #e9ecef;
}

/* ========== Review Transaction Page ========== */
.review-container { max-width: 1400px; margin: 0 auto; }
.primary-image-container { background: #f8f9fa; padding: 1rem; border-radius: 0.5rem; }
.image-thumbnails { border-top: 1px solid #dee2e6; padding-top: 1rem; }
.thumbnail-wrapper { position: relative; cursor: pointer; border: 2px solid transparent; border-radius: 0.25rem; padding: 0.25rem; transition: border-color 0.2s, transform 0.2s; }
.thumbnail-wrapper:hover { border-color: #0d6efd; transform: scale(1.05); }
.thumbnail-wrapper.selected { border-color: #0d6efd; background: #e7f1ff; }
.thumbnail-wrapper img { width: 100%; height: auto; }
.thumbnail-label { display: block; text-align: center; margin-top: 0.25rem; font-size: 0.75rem; color: #6c757d; }
.font-monospace { font-family: 'Courier New', monospace; font-weight: 600; letter-spacing: 0.05em; }

/* Simple animation utility */
@keyframes pages-slideDown { from { opacity: 0; transform: translateY(-10px);} to { opacity: 1; transform: translateY(0);} }
.image-tool-container { animation: pages-slideDown 0.3s ease-out; background: #ffffff; }

/* ========== Login Page (Razor Pages) ========== */
.login-container { display: flex; align-items: center; justify-content: center; min-height: 100vh; background: linear-gradient(135deg, #00556f 0%, #003d4f 100%); padding: 20px; }
.login-box { background: #fff; border-radius: 12px; box-shadow: 0 10px 40px rgba(0,0,0,0.1); width: 100%; max-width: 400px; padding: 40px; }
.login-header { text-align: center; margin-bottom: 30px; }
.login-logo { margin-bottom: 15px; }
.logo-img { width: 60px; height: 60px; object-fit: contain; filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1)); }
.login-header h1 { font-size: 2rem; font-weight: 800; color: #00556f; letter-spacing: 1px; margin-bottom: 5px; }
.login-header .subtitle { color: #999; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.5px; }
.login-form h3 { font-size: 1.3rem; font-weight: 600; color: #333; }
.form-control, .form-control-lg { border: 1px solid #ddd; border-radius: 6px; padding: 10px 15px; font-size: 0.95rem; transition: all 0.2s; }
.form-control:focus, .form-control-lg:focus { border-color: #00556f; box-shadow: 0 0 0 0.2rem rgba(0,85,111,0.25); }
.btn-primary, .btn-outline-primary { border-radius: 6px; font-weight: 600; transition: all 0.2s; }
.btn-primary { background: #00556f; border-color: #00556f; }
.btn-primary:hover { background: #003d4f; border-color: #003d4f; transform: translateY(-2px); box-shadow: 0 5px 15px rgba(0,85,111,0.3); }
.btn-outline-primary:hover { background: #f0f0f0; transform: translateY(-2px); }
.divider { display: flex; align-items: center; margin: 20px 0; color: #999; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: #ddd; }
.divider span { padding: 0 15px; font-size: 0.9rem; }
.login-footer { text-align: center; }
.login-footer a { color: #00556f; text-decoration: none; }
.login-footer a:hover { text-decoration: underline; }
.login-info { background: #f8f9fa; padding: 12px; border-radius: 6px; }
.alert { border: none; border-radius: 6px; }
.alert-danger { background: #f8d7da; color: #721c24; }
@media (max-width: 576px) {
  .login-box { padding: 30px 20px; }
  .login-header h1 { font-size: 1.5rem; }
  .login-form h3 { font-size: 1.1rem; }
}

/* ========== Page Layout Styles ========== */
.page-container {
  padding: 2rem;
}

.page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.header-content {
  flex: 1;
}

.header-actions {
  display: flex;
  gap: 0.5rem;
}

.page-title {
  margin: 0;
  font-size: 2rem;
  font-weight: 600;
}

.page-description {
  margin: 0.5rem 0 0 0;
  color: #6c757d;
}

/* ========== Typography & Code Display ========== */
.font-monospace {
  font-family: 'Courier New', monospace, 'SF Mono', Monaco, Consolas;
  font-size: 0.9rem;
}

.code-preview code,
pre code {
  font-size: 0.85rem;
  color: #333;
  white-space: pre-wrap;
  word-wrap: break-word;
}

.code-preview {
  background: #f8f9fa;
  border-radius: 4px;
  padding: 0.75rem;
  overflow-x: auto;
}
