/* static/admin_style.css - Premium Breathable Ops Deck */
:root {
  --bg-color: #f1f5f9;
  --card-bg: #ffffff;
  --text-main: #0f172a;
  --text-muted: #64748b;
  --border-color: #cbd5e1;
  --primary: #4f46e5;
  --primary-hover: #4338ca;
  --warning: #d97706;
  --danger: #dc2626;
  --success: #16a34a;
  --radius: 14px;
  --shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -4px rgba(0, 0, 0, 0.05);
}

[data-bs-theme="dark"] {
  --bg-color: #080c14; /* Rich, breathable deep slate instead of flat pitch black */
  --card-bg: rgba(15, 23, 42, 0.85); /* Elevated glass charcoal card background */
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --border-color: rgba(255, 255, 255, 0.1); /* Distinct soft border contrast */
  --primary: #6366f1;
  --primary-hover: #4f46e5;
  --warning: #fbbf24;
  --danger: #f87171;
  --success: #34d399;
  --shadow: 0 10px 20px -3px rgba(0, 0, 0, 0.4);
}

* {
  box-sizing: border-box;
}

body {
  font-family: 'Plus Jakarta Sans', 'Inter', system-ui, -apple-system, sans-serif;
  background-color: var(--bg-color);
  color: var(--text-main);
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.25s ease, color 0.25s ease;
}

/* CONTAINER BREATHING ROOM */
.app-container {
  padding-top: 1rem;
}

/* LUXURY GLASS CARDS WITH BREATHING PADDING */
.admin-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.25rem !important; /* Generous breathing room */
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: border-color 0.2s ease;
}

/* BRAND TITLE & GRADIENT STYLING */
.brand-title-main {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #d946ef 100%);
    background-size: 200% auto;
    color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
    font-weight: 800;
}

.brand-title-sub {
    text-transform: uppercase;
    font-weight: 800;
    letter-spacing: 1.5px;
}

/* SIGNATURE BLINKING RADAR HERO ELEMENT */
.radar-hero-box {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(34, 197, 94, 0.12);
    border: 1.5px solid rgba(34, 197, 94, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    flex-shrink: 0;
    box-shadow: 0 0 15px rgba(34, 197, 94, 0.2);
}

.radar-hero-dot {
    width: 12px;
    height: 12px;
    background-color: #22c55e;
    border-radius: 50%;
    box-shadow: 0 0 10px #22c55e;
}

.radar-hero-ring {
    position: absolute;
    width: 28px;
    height: 28px;
    border: 2px solid #22c55e;
    border-radius: 50%;
    animation: pulse-ring 2s infinite ease-out;
    opacity: 0;
}

@keyframes pulse-ring {
    0% { transform: scale(0.4); opacity: 0.9; }
    80% { transform: scale(1.3); opacity: 0; }
    100% { transform: scale(1.4); opacity: 0; }
}

/* UTILITY BUTTONS */
.btn-xs {
  padding: 0.2rem 0.65rem;
  font-size: 0.72rem;
  border-radius: 6px;
  line-height: 1.2;
}

.font-monospace {
  font-family: SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

/* CUSTOM SCROLLBARS */
.table-responsive::-webkit-scrollbar,
div[style*="overflow-y: auto"]::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

.table-responsive::-webkit-scrollbar-track,
div[style*="overflow-y: auto"]::-webkit-scrollbar-track {
  background: transparent;
}

.table-responsive::-webkit-scrollbar-thumb,
div[style*="overflow-y: auto"]::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 4px;
}

/* TABLES – spacious and clean padding */
.table-sm th,
.table-sm td {
  padding: 0.65rem 0.85rem;
  vertical-align: middle;
  border-color: var(--border-color);
}

/* ASSIGNEE TASK BATCH CARDS & THEME-AWARE CLOSE BUTTONS */
.badge .btn-close,
.btn-close {
  filter: invert(1) grayscale(100%) brightness(200%);
}

[data-bs-theme="light"] .badge .btn-close,
[data-bs-theme="light"] .btn-close {
  filter: none;
}

/* ICON BOX DECORATIONS */
.icon-box-sm {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

/* CLICKABLE BATCH PORTAL LINK HOVER */
.bg-body:hover {
  border-color: var(--primary) !important;
  transform: translateY(-1px);
  transition: all 0.15s ease;
}

/* FORM CONTROLS BREATHING ROOM */
.form-control, .form-select {
  border-color: var(--border-color) !important;
  background-color: var(--card-bg) !important;
  color: var(--text-main) !important;
  padding: 0.5rem 0.75rem !important;
}

.form-control:focus, .form-select:focus {
  border-color: var(--primary) !important;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}