/* ========================================
   TLG DOWNLOADER - FRESH UI v2
   Modern, Clean, Beautiful
   ======================================== */

@import url("https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap");

/* ========================================
   NEW COLOR SYSTEM
   ======================================== */
:root {
  /* Brand Colors - Electric Blue & Coral */
  --brand-primary: #0ea5e9;
  --brand-secondary: #f43f5e;
  --brand-accent: #8b5cf6;

  /* Functional Colors */
  --success: #22c55e;
  --warning: #fbbf24;
  --danger: #ef4444;
  --info: #3b82f6;

  /* Light Mode */
  --bg-base: #fafbfc;
  --bg-card: #ffffff;
  --bg-elevated: #ffffff;
  --bg-input: #f4f6f8;
  --bg-hover: #f0f2f5;

  --text-heading: #1a1d21;
  --text-body: #3d4752;
  --text-secondary: #6b7785;
  --text-placeholder: #9ca8b7;

  --border-default: #e1e5ea;
  --border-light: #edf0f3;
  --border-focus: var(--brand-primary);

  /* Effects */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
  --shadow-glow: 0 0 20px rgba(14, 165, 233, 0.2);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;
}

/* Dark Mode */
html[data-theme="dark"] {
  --bg-base: #0f1419;
  --bg-card: #1c2128;
  --bg-elevated: #262d36;
  --bg-input: #262d36;
  --bg-hover: #343d48;

  --text-heading: #ffffff;
  --text-body: #c9d1da;
  --text-secondary: #8b98a6;
  --text-placeholder: #6e7a88;

  --border-default: #373e47;
  --border-light: #2d333b;
}

/* ========================================
   GLOBAL
   ======================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body,
.app-body {
  font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont,
    sans-serif !important;
  background: var(--bg-base) !important;
  color: var(--text-body) !important;
  font-size: 14px !important;
  line-height: 1.6 !important;
  -webkit-font-smoothing: antialiased !important;
}

#app {
  background: var(--bg-base) !important;
  min-height: 100vh !important;
}

/* ========================================
   LOGIN SCREEN - SPLIT DESIGN
   ======================================== */
#licenseScreen {
  background: linear-gradient(
    135deg,
    #0ea5e9 0%,
    #8b5cf6 50%,
    #f43f5e 100%
  ) !important;
  position: relative !important;
  overflow: hidden !important;
}

#licenseScreen::before {
  content: "" !important;
  position: absolute !important;
  top: -50% !important;
  right: -20% !important;
  width: 80% !important;
  height: 200% !important;
  background: rgba(255, 255, 255, 0.03) !important;
  transform: rotate(-12deg) !important;
  pointer-events: none !important;
}

#licenseScreen .container {
  position: relative !important;
  z-index: 10 !important;
}

#licenseScreen .card {
  background: var(--bg-card) !important;
  border: none !important;
  border-radius: var(--radius-xl) !important;
  box-shadow: var(--shadow-lg), var(--shadow-glow) !important;
  padding: 2.5rem !important;
  backdrop-filter: blur(10px) !important;
}

#licenseScreen h1 {
  font-size: 1.75rem !important;
  font-weight: 800 !important;
  color: var(--text-heading) !important;
  letter-spacing: -0.02em !important;
  margin-bottom: 0.5rem !important;
}

#licenseScreen .text-muted {
  color: var(--text-secondary) !important;
}

#licenseScreen .form-label {
  font-size: 0.8125rem !important;
  font-weight: 600 !important;
  color: var(--text-body) !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
}

#licenseScreen .form-control {
  background: var(--bg-input) !important;
  border: 2px solid var(--border-light) !important;
  border-radius: var(--radius-md) !important;
  padding: 0.875rem 1rem !important;
  color: var(--text-heading) !important;
  font-size: 1rem !important;
  transition: all 0.2s ease !important;
}

#licenseScreen .form-control:focus {
  background: var(--bg-card) !important;
  border-color: var(--brand-primary) !important;
  box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.15) !important;
}

#licenseScreen .btn-primary {
  background: linear-gradient(
    135deg,
    var(--brand-primary) 0%,
    #38bdf8 100%
  ) !important;
  border: none !important;
  border-radius: var(--radius-md) !important;
  padding: 1rem 2rem !important;
  font-weight: 700 !important;
  font-size: 1rem !important;
  letter-spacing: 0.02em !important;
  box-shadow: 0 4px 16px rgba(14, 165, 233, 0.35) !important;
  transition: all 0.25s ease !important;
}

#licenseScreen .btn-primary:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 24px rgba(14, 165, 233, 0.45) !important;
}

/* ========================================
   SESSION SCREEN - SAME DESIGN AS LICENSE
   ======================================== */
.session-screen-wrapper {
  position: fixed !important;
  inset: 0 !important;
  background: linear-gradient(
    135deg,
    #0ea5e9 0%,
    #8b5cf6 50%,
    #f43f5e 100%
  ) !important;
  overflow: auto !important;
  z-index: 1050 !important;
}

.session-screen-wrapper::before {
  content: "" !important;
  position: absolute !important;
  top: -50% !important;
  right: -20% !important;
  width: 80% !important;
  height: 200% !important;
  background: rgba(255, 255, 255, 0.03) !important;
  transform: rotate(-12deg) !important;
  pointer-events: none !important;
}

.session-screen-wrapper .container {
  position: relative !important;
  z-index: 10 !important;
}

.session-screen-wrapper .card {
  background: var(--bg-card) !important;
  border: none !important;
  border-radius: var(--radius-xl) !important;
  box-shadow: var(--shadow-lg), var(--shadow-glow) !important;
  backdrop-filter: blur(10px) !important;
}

.session-screen-wrapper .card-body {
  padding: 2.5rem !important;
}

.session-screen-wrapper h1 {
  font-size: 1.75rem !important;
  font-weight: 800 !important;
  color: var(--text-heading) !important;
  letter-spacing: -0.02em !important;
  margin-bottom: 0.5rem !important;
}

.session-screen-wrapper .text-muted {
  color: var(--text-secondary) !important;
}

.session-screen-wrapper .form-label {
  font-size: 0.8125rem !important;
  font-weight: 600 !important;
  color: var(--text-body) !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
}

.session-screen-wrapper .form-control {
  background: var(--bg-input) !important;
  border: 2px solid var(--border-light) !important;
  border-radius: var(--radius-md) !important;
  padding: 0.875rem 1rem !important;
  color: var(--text-heading) !important;
  font-size: 1rem !important;
  transition: all 0.2s ease !important;
}

.session-screen-wrapper .form-control:focus {
  background: var(--bg-card) !important;
  border-color: var(--brand-primary) !important;
  box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.15) !important;
}

.session-screen-wrapper .btn-primary {
  background: linear-gradient(
    135deg,
    var(--brand-primary) 0%,
    #38bdf8 100%
  ) !important;
  border: none !important;
  border-radius: var(--radius-md) !important;
  padding: 1rem 2rem !important;
  font-weight: 700 !important;
  font-size: 1rem !important;
  letter-spacing: 0.02em !important;
  box-shadow: 0 4px 16px rgba(14, 165, 233, 0.35) !important;
  transition: all 0.25s ease !important;
}

.session-screen-wrapper .btn-primary:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 24px rgba(14, 165, 233, 0.45) !important;
}

.session-screen-wrapper .btn-link {
  color: var(--text-secondary) !important;
  text-decoration: none !important;
  font-weight: 500 !important;
  transition: all 0.2s ease !important;
}

.session-screen-wrapper .btn-link:hover {
  color: var(--brand-primary) !important;
}

.session-screen-wrapper .btn-link:disabled {
  opacity: 0.5 !important;
  cursor: not-allowed !important;
}

.session-screen-wrapper .text-white-50 {
  color: rgba(255, 255, 255, 0.6) !important;
}

/* ========================================
   HEADER / NAVBAR
   ======================================== */
.app-header {
  background: var(--bg-card) !important;
  border-bottom: 1px solid var(--border-light) !important;
  box-shadow: var(--shadow-sm) !important;
  padding: 0.5rem 0 !important;
}

.navbar-brand {
  font-size: 1.25rem !important;
  font-weight: 800 !important;
  color: var(--text-heading) !important;
  letter-spacing: -0.02em !important;
  display: flex !important;
  align-items: center !important;
  gap: 0.5rem !important;
}

.navbar-brand::before {
  content: "⚡" !important;
  font-size: 1.5rem !important;
}

/* Nav Buttons */
#navReload {
  background: linear-gradient(
    135deg,
    var(--brand-primary) 0%,
    #38bdf8 100%
  ) !important;
  border: none !important;
  color: white !important;
  border-radius: var(--radius-md) !important;
  font-weight: 600 !important;
  padding: 0.5rem 1.25rem !important;
  box-shadow: 0 2px 8px rgba(14, 165, 233, 0.3) !important;
}

#navReload:hover {
  transform: translateY(-1px) !important;
}

#navDialogs,
#navActiveJobs {
  background: var(--bg-input) !important;
  border: 1px solid var(--border-default) !important;
  color: var(--text-secondary) !important;
  border-radius: var(--radius-md) !important;
  font-weight: 500 !important;
}

#navDialogs:hover,
#navActiveJobs:hover {
  background: var(--bg-hover) !important;
  color: var(--brand-primary) !important;
  border-color: var(--brand-primary) !important;
}

#navAdmin {
  background: rgba(244, 63, 94, 0.1) !important;
  border: 1px solid var(--brand-secondary) !important;
  color: var(--brand-secondary) !important;
  border-radius: var(--radius-md) !important;
  font-weight: 600 !important;
}

#navAdmin:hover {
  background: var(--brand-secondary) !important;
  color: white !important;
}

#themeToggle {
  background: var(--bg-input) !important;
  border: 1px solid var(--border-default) !important;
  border-radius: var(--radius-md) !important;
  color: var(--text-secondary) !important;
  width: 40px !important;
  height: 40px !important;
}

/* ========================================
   MAIN CARD
   ======================================== */
.container-xxl > .row > main > .card {
  background: var(--bg-card) !important;
  border: 1px solid var(--border-light) !important;
  border-radius: var(--radius-xl) !important;
  box-shadow: var(--shadow-md) !important;
  overflow: hidden !important;
}

.container-xxl > .row > main > .card > .card-body {
  padding: 2rem !important;
}

/* Page Title */
.container-xxl > .row > main > .card > .card-body > .d-flex:first-child {
  margin-bottom: 1.5rem !important;
  padding-bottom: 1rem !important;
  border-bottom: 1px solid var(--border-light) !important;
}

.container-xxl > .row > main > .card > .card-body > .d-flex:first-child strong {
  font-size: 1.25rem !important;
  font-weight: 700 !important;
  color: var(--text-heading) !important;
}

/* ========================================
   SECTIONS
   ======================================== */
.group,
.group-type,
.group-actions,
.border.rounded.p-3 {
  background: var(--bg-input) !important;
  border: 1px solid var(--border-light) !important;
  border-radius: var(--radius-lg) !important;
  padding: 1.5rem !important;
  margin-bottom: 1.25rem !important;
}

.group .fw-bold,
.group-type .fw-bold,
.group-actions .fw-bold {
  font-size: 0.75rem !important;
  font-weight: 700 !important;
  color: var(--text-secondary) !important;
  text-transform: uppercase !important;
  letter-spacing: 0.1em !important;
  margin-bottom: 1rem !important;
}

/* ========================================
   CONTENT TYPE CARDS - ICON FOCUSED
   ======================================== */
.content-type-option {
  background: var(--bg-card) !important;
  border: 2px solid var(--border-default) !important;
  border-radius: var(--radius-lg) !important;
  padding: 1.5rem 1rem !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  text-align: center !important;
  position: relative !important;
}

.content-type-option::before {
  content: "" !important;
  position: absolute !important;
  inset: 0 !important;
  border-radius: var(--radius-lg) !important;
  opacity: 0 !important;
  transition: opacity 0.2s ease !important;
  pointer-events: none !important;
}

.content-type-option:hover {
  border-color: var(--brand-primary) !important;
  transform: translateY(-2px) !important;
  box-shadow: var(--shadow-md) !important;
}

.content-type-option input[type="checkbox"] {
  position: absolute !important;
  opacity: 0 !important;
}

.content-type-option label {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: 0.75rem !important;
  cursor: pointer !important;
  margin: 0 !important;
}

.content-type-option label i {
  font-size: 2rem !important;
  color: var(--text-placeholder) !important;
  transition: all 0.2s ease !important;
}

.content-type-option label span {
  font-size: 0.875rem !important;
  font-weight: 600 !important;
  color: var(--text-secondary) !important;
}

/* Selected States - Each with unique color */
.content-type-option:has(#typeVideos:checked) {
  background: linear-gradient(
    135deg,
    rgba(244, 63, 94, 0.08) 0%,
    rgba(244, 63, 94, 0.02) 100%
  ) !important;
  border-color: var(--brand-secondary) !important;
}
.content-type-option:has(#typeVideos:checked) label i,
.content-type-option:has(#typeVideos:checked) label span {
  color: var(--brand-secondary) !important;
}

.content-type-option:has(#typeImages:checked) {
  background: linear-gradient(
    135deg,
    rgba(14, 165, 233, 0.08) 0%,
    rgba(14, 165, 233, 0.02) 100%
  ) !important;
  border-color: var(--brand-primary) !important;
}
.content-type-option:has(#typeImages:checked) label i,
.content-type-option:has(#typeImages:checked) label span {
  color: var(--brand-primary) !important;
}

.content-type-option:has(#typeLinks:checked) {
  background: linear-gradient(
    135deg,
    rgba(139, 92, 246, 0.08) 0%,
    rgba(139, 92, 246, 0.02) 100%
  ) !important;
  border-color: var(--brand-accent) !important;
}
.content-type-option:has(#typeLinks:checked) label i,
.content-type-option:has(#typeLinks:checked) label span {
  color: var(--brand-accent) !important;
}

.content-type-option:has(#typeText:checked) {
  background: linear-gradient(
    135deg,
    rgba(34, 197, 94, 0.08) 0%,
    rgba(34, 197, 94, 0.02) 100%
  ) !important;
  border-color: var(--success) !important;
}
.content-type-option:has(#typeText:checked) label i,
.content-type-option:has(#typeText:checked) label span {
  color: var(--success) !important;
}

/* ========================================
   STORAGE OPTIONS
   ======================================== */
.storage-option {
  background: var(--bg-card) !important;
  border: 2px solid var(--border-default) !important;
  border-radius: var(--radius-lg) !important;
  padding: 1.25rem !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
}

.storage-option:hover {
  border-color: var(--brand-primary) !important;
}

.storage-option input[type="checkbox"] {
  position: absolute !important;
  opacity: 0 !important;
}

.storage-option label {
  display: flex !important;
  align-items: center !important;
  gap: 0.75rem !important;
  cursor: pointer !important;
  margin: 0 !important;
}

.storage-option label i {
  font-size: 1.25rem !important;
  color: var(--text-placeholder) !important;
}

.storage-option label span {
  font-size: 0.875rem !important;
  font-weight: 600 !important;
  color: var(--text-secondary) !important;
}

.storage-option:has(input:checked) {
  background: rgba(14, 165, 233, 0.08) !important;
  border-color: var(--brand-primary) !important;
}

.storage-option:has(input:checked) label i,
.storage-option:has(input:checked) label span {
  color: var(--brand-primary) !important;
}

/* ========================================
   DOWNLOAD SUMMARY
   ======================================== */
.download-summary,
#downloadSummary {
  background: linear-gradient(
    135deg,
    rgba(14, 165, 233, 0.05) 0%,
    var(--bg-input) 100%
  ) !important;
  border: 1px solid var(--border-light) !important;
  border-radius: var(--radius-lg) !important;
  padding: 1.25rem !important;
  position: relative !important;
}

.download-summary::before,
#downloadSummary::before {
  content: "" !important;
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  height: 3px !important;
  background: linear-gradient(
    90deg,
    var(--brand-primary) 0%,
    var(--brand-accent) 50%,
    var(--brand-secondary) 100%
  ) !important;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0 !important;
}

.chip,
.chip-neutral {
  background: var(--bg-card) !important;
  border: 1px solid var(--border-default) !important;
  border-radius: var(--radius-full) !important;
  padding: 0.375rem 0.875rem !important;
  font-size: 0.75rem !important;
  font-weight: 600 !important;
  color: var(--text-secondary) !important;
}

/* ========================================
   BUTTONS
   ======================================== */
.btn {
  font-family: "Plus Jakarta Sans", sans-serif !important;
  font-weight: 600 !important;
  border-radius: var(--radius-md) !important;
  transition: all 0.2s ease !important;
}

.btn-primary {
  background: linear-gradient(
    135deg,
    var(--brand-primary) 0%,
    #38bdf8 100%
  ) !important;
  border: none !important;
  color: white !important;
  box-shadow: 0 2px 8px rgba(14, 165, 233, 0.3) !important;
}

.btn-primary:hover {
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 16px rgba(14, 165, 233, 0.4) !important;
}

.btn-success {
  background: linear-gradient(
    135deg,
    var(--success) 0%,
    #4ade80 100%
  ) !important;
  border: none !important;
  box-shadow: 0 2px 8px rgba(34, 197, 94, 0.3) !important;
}

.btn-danger {
  background: linear-gradient(
    135deg,
    var(--danger) 0%,
    #f87171 100%
  ) !important;
  border: none !important;
}

.btn-outline-secondary {
  background: var(--bg-input) !important;
  border: 1px solid var(--border-default) !important;
  color: var(--text-secondary) !important;
}

.btn-outline-secondary:hover {
  background: var(--bg-hover) !important;
  border-color: var(--brand-primary) !important;
  color: var(--brand-primary) !important;
}

.btn-outline-danger {
  background: rgba(239, 68, 68, 0.08) !important;
  border: 1px solid var(--danger) !important;
  color: var(--danger) !important;
}

.btn-outline-danger:hover {
  background: var(--danger) !important;
  color: white !important;
}

/* Main Actions */
#start {
  background: linear-gradient(
    135deg,
    var(--brand-primary) 0%,
    var(--brand-accent) 100%
  ) !important;
  border: none !important;
  color: white !important;
  padding: 0.875rem 2rem !important;
  font-size: 1rem !important;
  box-shadow: 0 4px 16px rgba(14, 165, 233, 0.35) !important;
}

#start:not(:disabled):hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 24px rgba(14, 165, 233, 0.45) !important;
}

#start:disabled {
  opacity: 0.6 !important;
  cursor: not-allowed !important;
  transform: none !important;
  box-shadow: none !important;
  filter: grayscale(0.5) !important;
}

#stop {
  background: rgba(244, 63, 94, 0.1) !important;
  border: 1px solid var(--brand-secondary) !important;
  color: var(--brand-secondary) !important;
}

#stop:not(:disabled):hover {
  background: var(--brand-secondary) !important;
  color: white !important;
}

#stop:disabled {
  opacity: 0.5 !important;
  cursor: not-allowed !important;
  background: rgba(244, 63, 94, 0.05) !important;
  border-color: rgba(244, 63, 94, 0.3) !important;
  color: rgba(244, 63, 94, 0.5) !important;
}

/* ========================================
   FORM CONTROLS
   ======================================== */
.form-control,
.form-select {
  background: var(--bg-input) !important;
  border: 2px solid var(--border-light) !important;
  border-radius: var(--radius-md) !important;
  padding: 0.625rem 0.875rem !important;
  color: var(--text-heading) !important;
  font-size: 0.875rem !important;
}

.form-control:focus,
.form-select:focus {
  background: var(--bg-card) !important;
  border-color: var(--brand-primary) !important;
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.12) !important;
}

.form-control::placeholder {
  color: var(--text-placeholder) !important;
}

.form-label {
  font-size: 0.75rem !important;
  font-weight: 600 !important;
  color: var(--text-secondary) !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
}

.form-range {
  accent-color: var(--brand-primary) !important;
}

/* ========================================
   MODALS
   ======================================== */
.modal-backdrop.show {
  background: rgba(15, 20, 25, 0.75) !important;
  backdrop-filter: blur(4px) !important;
}

.modal-content {
  background: var(--bg-card) !important;
  border: 1px solid var(--border-light) !important;
  border-radius: var(--radius-xl) !important;
  box-shadow: var(--shadow-lg) !important;
  overflow: hidden !important;
}

.modal-header {
  background: linear-gradient(
    135deg,
    var(--brand-primary) 0%,
    var(--brand-accent) 100%
  ) !important;
  border-bottom: none !important;
  padding: 1.5rem 1.75rem !important;
}

.modal-title {
  font-size: 1.125rem !important;
  font-weight: 700 !important;
  color: white !important;
}

.modal-header .btn-close {
  filter: brightness(0) invert(1) !important;
  opacity: 0.8 !important;
}

.modal-body {
  padding: 1.75rem !important;
  background: var(--bg-card) !important;
}

.modal-footer {
  background: var(--bg-input) !important;
  border-top: 1px solid var(--border-light) !important;
  padding: 1rem 1.75rem !important;
}

/* ========================================
   LIST ITEMS
   ======================================== */
.list-group-item {
  background: var(--bg-card) !important;
  border: 1px solid var(--border-light) !important;
  border-radius: var(--radius-md) !important;
  margin-bottom: 0.5rem !important;
  padding: 1rem 1.25rem !important;
  transition: all 0.2s ease !important;
  color: var(--text-body) !important;
}

.list-group-item:hover {
  background: var(--bg-hover) !important;
  border-color: var(--brand-primary) !important;
  transform: translateX(4px) !important;
}

/* ========================================
   BADGES & STATUS
   ======================================== */
.badge {
  font-size: 0.6875rem !important;
  font-weight: 700 !important;
  border-radius: var(--radius-full) !important;
  padding: 0.25rem 0.75rem !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
}

#statusBadge {
  background: linear-gradient(
    135deg,
    var(--success) 0%,
    #4ade80 100%
  ) !important;
  color: white !important;
}

/* ========================================
   PROGRESS
   ======================================== */
.progress {
  height: 8px !important;
  background: var(--bg-input) !important;
  border-radius: var(--radius-full) !important;
  overflow: hidden !important;
}

.progress-bar {
  background: linear-gradient(
    90deg,
    var(--brand-primary) 0%,
    var(--brand-accent) 50%,
    var(--brand-secondary) 100%
  ) !important;
  border-radius: var(--radius-full) !important;
}

/* ========================================
   ALERTS
   ======================================== */
.alert {
  border-radius: var(--radius-md) !important;
  border-left: 4px solid !important;
  font-weight: 500 !important;
}

.alert-info {
  background: rgba(14, 165, 233, 0.08) !important;
  border-color: var(--brand-primary) !important;
  color: var(--brand-primary) !important;
}

.alert-success {
  background: rgba(34, 197, 94, 0.08) !important;
  border-color: var(--success) !important;
  color: var(--success) !important;
}

.alert-danger {
  background: rgba(239, 68, 68, 0.08) !important;
  border-color: var(--danger) !important;
  color: var(--danger) !important;
}

.alert-warning {
  background: rgba(251, 191, 36, 0.08) !important;
  border-color: var(--warning) !important;
  color: #b45309 !important;
}

/* ========================================
   NAV TABS
   ======================================== */
.nav-tabs {
  border-bottom: 2px solid var(--border-light) !important;
  gap: 0.25rem !important;
}

.nav-tabs .nav-link {
  font-size: 0.875rem !important;
  font-weight: 600 !important;
  color: var(--text-secondary) !important;
  border: none !important;
  padding: 0.75rem 1.25rem !important;
  border-radius: var(--radius-md) var(--radius-md) 0 0 !important;
}

.nav-tabs .nav-link:hover {
  color: var(--brand-primary) !important;
  background: rgba(14, 165, 233, 0.05) !important;
}

.nav-tabs .nav-link.active {
  color: white !important;
  background: linear-gradient(
    135deg,
    var(--brand-primary) 0%,
    var(--brand-accent) 100%
  ) !important;
}

/* ========================================
   DROPZONE
   ======================================== */
.send-dropzone {
  background: var(--bg-input) !important;
  border: 2px dashed var(--border-default) !important;
  border-radius: var(--radius-lg) !important;
  padding: 2.5rem !important;
  text-align: center !important;
  transition: all 0.2s ease !important;
}

.send-dropzone:hover {
  border-color: var(--brand-primary) !important;
  background: rgba(14, 165, 233, 0.05) !important;
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 768px) {
  .navbar-nav {
    flex-direction: row !important;
    flex-wrap: wrap !important;
    gap: 0.5rem !important;
    justify-content: center !important;
  }

  .navbar-nav .btn {
    font-size: 0.75rem !important;
    padding: 0.375rem 0.75rem !important;
  }

  .container-xxl > .row > main > .card > .card-body {
    padding: 1.25rem !important;
  }

  .content-type-option {
    padding: 1rem 0.75rem !important;
  }

  .content-type-option label i {
    font-size: 1.5rem !important;
  }

  .d-flex.flex-wrap.gap-2 {
    flex-direction: column !important;
  }

  .d-flex.flex-wrap.gap-2 .btn {
    width: 100% !important;
  }

  .form-control,
  .form-select {
    font-size: 16px !important;
  }
}

@media (max-width: 576px) {
  .navbar-nav .btn span {
    display: none !important;
  }

  .navbar-brand::before {
    display: none !important;
  }
}

/* ========================================
   NEW DASHBOARD LAYOUT
   ======================================== */
.dashboard-main-card {
  border-radius: var(--radius-xl) !important;
  overflow: visible !important;
}

.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 1.5rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-light);
}

.dashboard-header-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.dashboard-title {
  font-size: 1.5rem !important;
  font-weight: 800 !important;
  color: var(--text-heading) !important;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0;
}

.dashboard-title i {
  color: var(--brand-primary);
}

.status-badge {
  background: linear-gradient(
    135deg,
    var(--success) 0%,
    #4ade80 100%
  ) !important;
  color: white !important;
  padding: 0.5rem 1rem !important;
  border-radius: var(--radius-full) !important;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
}

.status-dot {
  width: 8px;
  height: 8px;
  background: white;
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

/* 2-Column Grid */
.dashboard-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (max-width: 1024px) {
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
}

/* Left Column - Configuration */
.dashboard-config {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Config Sections */
.config-section {
  background: var(--bg-input);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
}

.config-section-primary {
  background: linear-gradient(
    135deg,
    rgba(14, 165, 233, 0.05) 0%,
    var(--bg-input) 100%
  );
  border-color: var(--brand-primary);
  border-width: 2px;
}

.section-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.section-number {
  width: 28px;
  height: 28px;
  background: linear-gradient(135deg, var(--brand-primary) 0%, #38bdf8 100%);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  font-weight: 700;
}

.section-icon {
  width: 28px;
  height: 28px;
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
}

.section-title {
  font-size: 1rem !important;
  font-weight: 700 !important;
  color: var(--text-heading) !important;
  margin: 0 !important;
}

.section-description {
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-weight: 500;
  margin-top: 2px;
  line-height: 1.4;
}

/* Content Types Grid */
.content-types-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

@media (max-width: 992px) {
  .content-types-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }
}

@media (max-width: 576px) {
  .content-types-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
  }

  .content-type-card {
    padding: 1rem 0.5rem;
  }

  .content-type-icon {
    width: 44px;
    height: 44px;
  }

  .content-type-icon i {
    font-size: 1.25rem;
  }

  .content-type-name {
    font-size: 0.75rem;
  }
}

.content-type-card {
  background: var(--bg-card);
  border: 2px solid var(--border-default);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1rem;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
  position: relative;
}

.content-type-card:hover {
  border-color: var(--brand-primary);
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(14, 165, 233, 0.15);
}

.content-type-card input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.content-type-card label {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
  margin: 0;
}

.content-type-icon {
  width: 56px;
  height: 56px;
  background: var(--bg-input);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.content-type-icon i {
  font-size: 1.75rem;
  color: var(--text-placeholder);
  transition: color 0.2s ease;
}

.content-type-name {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-secondary);
}

/* Selected States */
.content-type-card:has(input:checked) {
  border-color: var(--brand-primary);
  background: rgba(14, 165, 233, 0.08);
}

.content-type-card:has(input:checked) .content-type-icon {
  background: linear-gradient(135deg, var(--brand-primary) 0%, #38bdf8 100%);
}

.content-type-card:has(input:checked) .content-type-icon i {
  color: white;
}

.content-type-card:has(input:checked) .content-type-name {
  color: var(--brand-primary);
}

/* Unique colors for each type when selected */
.content-type-card[data-type="videos"]:has(input:checked) {
  border-color: var(--brand-secondary);
  background: rgba(244, 63, 94, 0.08);
}
.content-type-card[data-type="videos"]:has(input:checked) .content-type-icon {
  background: linear-gradient(135deg, var(--brand-secondary) 0%, #fb7185 100%);
}
.content-type-card[data-type="videos"]:has(input:checked) .content-type-name {
  color: var(--brand-secondary);
}

.content-type-card[data-type="images"]:has(input:checked) {
  border-color: var(--brand-primary);
  background: rgba(14, 165, 233, 0.08);
}
.content-type-card[data-type="images"]:has(input:checked) .content-type-icon {
  background: linear-gradient(135deg, var(--brand-primary) 0%, #38bdf8 100%);
}
.content-type-card[data-type="images"]:has(input:checked) .content-type-name {
  color: var(--brand-primary);
}

.content-type-card[data-type="links"]:has(input:checked) {
  border-color: var(--brand-accent);
  background: rgba(139, 92, 246, 0.08);
}
.content-type-card[data-type="links"]:has(input:checked) .content-type-icon {
  background: linear-gradient(135deg, var(--brand-accent) 0%, #a78bfa 100%);
}
.content-type-card[data-type="links"]:has(input:checked) .content-type-name {
  color: var(--brand-accent);
}

.content-type-card[data-type="text"]:has(input:checked) {
  border-color: var(--success);
  background: rgba(34, 197, 94, 0.08);
}
.content-type-card[data-type="text"]:has(input:checked) .content-type-icon {
  background: linear-gradient(135deg, var(--success) 0%, #4ade80 100%);
}
.content-type-card[data-type="text"]:has(input:checked) .content-type-name {
  color: var(--success);
}

/* Storage Grid */
.storage-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}

@media (max-width: 576px) {
  .storage-grid {
    grid-template-columns: 1fr;
  }
}

.storage-card {
  background: var(--bg-card);
  border: 2px solid var(--border-default);
  border-radius: var(--radius-md);
  padding: 1rem;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
}

.storage-card:hover {
  border-color: var(--brand-primary);
}

.storage-card input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.storage-card label {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  margin: 0;
}

.storage-card label i {
  font-size: 1.5rem;
  color: var(--text-placeholder);
}

.storage-card label span {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.storage-card:has(input:checked) {
  border-color: var(--brand-primary);
  background: rgba(14, 165, 233, 0.08);
}

.storage-card:has(input:checked) label i,
.storage-card:has(input:checked) label span {
  color: var(--brand-primary);
}

/* Forward Options */
.forward-options {
  margin-top: 1rem;
  padding: 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
}

/* Collapsible Section */
.config-section-collapsible {
  padding: 0;
  background: var(--bg-card);
}

.section-toggle {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 1.5rem;
  background: none;
  border: none;
  cursor: pointer;
  transition: background 0.2s ease;
}

.section-toggle:hover {
  background: var(--bg-hover);
}

.section-toggle .section-header {
  margin-bottom: 0;
}

.toggle-icon {
  color: var(--text-secondary);
  transition: transform 0.3s ease;
}

.section-toggle[aria-expanded="true"] .toggle-icon {
  transform: rotate(180deg);
}

.advanced-filters-content {
  padding: 0 1.5rem 1.5rem 1.5rem;
}

/* Filter Groups */
.filter-group {
  margin-bottom: 1.25rem;
}

.filter-group:last-child {
  margin-bottom: 0;
}

.filter-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.filter-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.filter-value {
  flex: 1;
  font-size: 0.875rem;
  color: var(--text-body);
}

.date-range {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.date-input-group {
  flex: 1;
}

.date-separator {
  color: var(--text-placeholder);
  font-weight: 600;
}

.workers-slider {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.workers-slider output {
  min-width: 2rem;
  text-align: center;
  font-weight: 700;
  color: var(--brand-primary);
}

/* Right Column - Sidebar */
.dashboard-sidebar {
  position: relative;
}

.sidebar-sticky {
  position: sticky;
  top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

@media (max-width: 1024px) {
  .sidebar-sticky {
    position: static;
  }
}

.sidebar-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

/* Chat Card */
.chat-card-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background: linear-gradient(
    135deg,
    var(--brand-primary) 0%,
    var(--brand-accent) 100%
  );
  color: white;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.chat-card-body {
  padding: 1rem;
}

.chat-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-heading);
}

/* Summary Card */
.summary-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background: var(--bg-input);
  border-bottom: 1px solid var(--border-light);
  color: var(--text-secondary);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.summary-body {
  padding: 1rem;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
  border-bottom: 1px dashed var(--border-light);
}

.summary-row:last-child {
  border-bottom: none;
}

.summary-label {
  font-size: 0.8125rem;
  color: var(--text-secondary);
}

.summary-value {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-heading);
}

.summary-warning {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background: rgba(245, 158, 11, 0.1);
  color: #b45309;
  font-size: 0.8125rem;
}

.summary-status {
  padding: 0.75rem 1rem;
  background: var(--bg-input);
  font-size: 0.8125rem;
  color: var(--text-secondary);
  text-align: center;
}

/* Action Buttons */
.action-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.btn-action {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem;
  border: none;
  border-radius: var(--radius-lg);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-action-primary {
  background: linear-gradient(
    135deg,
    var(--brand-primary) 0%,
    var(--brand-accent) 100%
  );
  color: white;
  box-shadow: 0 4px 16px rgba(14, 165, 233, 0.35);
}

.btn-action-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(14, 165, 233, 0.45);
}

.btn-action-danger {
  background: var(--bg-input);
  border: 2px solid var(--brand-secondary);
  color: var(--brand-secondary);
}

.btn-action-danger:hover {
  background: var(--brand-secondary);
  color: white;
}

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

.secondary-actions .btn {
  flex: 1;
}

/* ========================================
   JOB STATUS MODAL
   ======================================== */

/* Floating Trigger Button */
.job-status-trigger {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 1000;
}

.btn-job-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.875rem 1.25rem;
  background: linear-gradient(
    135deg,
    var(--brand-primary) 0%,
    var(--brand-accent) 100%
  );
  border: none;
  border-radius: var(--radius-lg);
  color: white;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(14, 165, 233, 0.4);
  transition: all 0.2s ease;
}

.btn-job-status:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(14, 165, 233, 0.5);
}

.job-status-indicator {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.job-status-dot {
  width: 10px;
  height: 10px;
  background: #4ade80;
  border-radius: 50%;
  animation: pulse 1.5s infinite;
}

.job-status-text {
  font-size: 0.875rem;
}

/* Modal Styles */
.job-modal {
  border: none !important;
  border-radius: var(--radius-xl) !important;
  overflow: hidden !important;
}

.job-modal-header {
  background: linear-gradient(
    135deg,
    var(--brand-primary) 0%,
    var(--brand-accent) 100%
  ) !important;
  border-bottom: none !important;
  padding: 1.5rem !important;
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
}

.job-modal-header-content {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.job-modal-icon {
  font-size: 2rem;
  color: rgba(255, 255, 255, 0.9);
}

.job-modal-icon.spinning {
  animation: spin 2s linear infinite;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.job-modal-header .modal-title {
  color: white !important;
  font-size: 1.25rem !important;
  font-weight: 700 !important;
  margin: 0 !important;
}

.job-modal-subtitle {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.75rem;
  font-family: "Monaco", "Consolas", monospace;
}

.job-modal-header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.job-status-badge {
  background: rgba(255, 255, 255, 0.2) !important;
  color: white !important;
  padding: 0.375rem 1rem !important;
  border-radius: var(--radius-full) !important;
  font-size: 0.75rem !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
}

.job-status-badge.running {
  background: rgba(74, 222, 128, 0.3) !important;
}

.job-status-badge.completed {
  background: rgba(34, 197, 94, 0.3) !important;
}

.job-status-badge.error {
  background: rgba(239, 68, 68, 0.3) !important;
}

/* Modal Body */
.job-modal-body {
  padding: 1.5rem !important;
  background: var(--bg-card) !important;
}

/* Stats Grid */
.job-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.job-stat {
  background: var(--bg-input);
  border-radius: var(--radius-md);
  padding: 1rem;
  text-align: center;
}

.job-stat-value {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 0.25rem;
  word-break: break-all;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.job-stat-label {
  font-size: 0.75rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.job-stat-errors .job-stat-value {
  color: var(--danger);
}

/* ETA Section */
.job-eta-section {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: linear-gradient(
    135deg,
    rgba(14, 165, 233, 0.08) 0%,
    var(--bg-input) 100%
  );
  border-radius: var(--radius-md);
  margin-bottom: 1.5rem;
}

.job-eta-section i {
  font-size: 1.5rem;
  color: var(--brand-primary);
}

.job-eta-label {
  display: block;
  font-size: 0.75rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.job-eta-value {
  display: block;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-heading);
}

/* Modern Timeline */
.job-timeline-modern {
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
  padding-left: 1rem;
}

.job-timeline-modern::before {
  content: "";
  position: absolute;
  left: 1.5rem;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--border-default);
}

.timeline-step {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem 0;
  position: relative;
}

.timeline-step-icon {
  width: 32px;
  height: 32px;
  background: var(--bg-input);
  border: 2px solid var(--border-default);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  z-index: 1;
  transition: all 0.3s ease;
}

.timeline-step-icon i {
  font-size: 0.875rem;
  color: var(--text-placeholder);
}

.timeline-step-content {
  flex: 1;
  padding-top: 0.25rem;
}

.timeline-step-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 0.125rem;
}

.timeline-step-meta {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Active Step */
.timeline-step--active .timeline-step-icon {
  background: linear-gradient(135deg, var(--brand-primary) 0%, #38bdf8 100%);
  border-color: var(--brand-primary);
}

.timeline-step--active .timeline-step-icon i {
  color: white;
}

.timeline-step--active .timeline-step-title {
  color: var(--brand-primary);
}

/* Completed Step */
.timeline-step--completed .timeline-step-icon {
  background: var(--success);
  border-color: var(--success);
}

.timeline-step--completed .timeline-step-icon i {
  color: white;
}

.timeline-step--completed .timeline-step-title {
  color: var(--success);
}

/* Progress Bar */
.job-progress {
  margin-top: 1.5rem;
}

.job-progress-bar {
  height: 8px;
  background: var(--bg-input);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.job-progress-fill {
  height: 100%;
  background: linear-gradient(
    90deg,
    var(--brand-primary) 0%,
    var(--brand-accent) 50%,
    var(--brand-secondary) 100%
  );
  border-radius: var(--radius-full);
  transition: width 0.3s ease;
}

/* Error Alert */
.job-error-alert {
  padding: 1rem;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid var(--danger);
  border-radius: var(--radius-md);
  color: var(--danger);
  margin-top: 1rem;
}

/* Feedback */
.job-feedback {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
  background: rgba(251, 191, 36, 0.1);
  border: 1px solid var(--warning);
  border-radius: var(--radius-md);
  color: #b45309;
  margin-top: 1rem;
}

/* Modal Footer */
.job-modal-footer {
  background: var(--bg-input) !important;
  border-top: 1px solid var(--border-light) !important;
  padding: 1rem 1.5rem !important;
}

.job-actions {
  display: flex;
  gap: 0.75rem;
  width: 100%;
}

.job-action-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.job-action-btn:hover:not(:disabled) {
  background: var(--bg-hover);
  border-color: var(--brand-primary);
  color: var(--brand-primary);
}

.job-action-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.job-action-btn.job-action-stop {
  background: rgba(244, 63, 94, 0.1);
  border-color: var(--brand-secondary);
  color: var(--brand-secondary);
}

.job-action-btn.job-action-stop:hover:not(:disabled) {
  background: var(--brand-secondary);
  color: white;
}

@media (max-width: 768px) {
  .job-status-trigger {
    bottom: 1rem;
    right: 1rem;
    left: 1rem;
  }

  .btn-job-status {
    width: 100%;
  }

  .job-stats {
    grid-template-columns: 1fr;
  }

  .job-actions {
    flex-direction: column;
  }
}

/* ========================================
   MODERN TOAST NOTIFICATIONS & ALERTS
   ======================================== */

/* Ant Feedback (Connection alerts) */
.ant-feedback {
  display: flex !important;
  align-items: center !important;
  gap: 0.75rem !important;
  padding: 1rem 1.25rem !important;
  border-radius: var(--radius-lg) !important;
  border: none !important;
  font-size: 0.875rem !important;
  font-weight: 500 !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
  backdrop-filter: blur(10px) !important;
}

.ant-feedback i {
  font-size: 1.25rem !important;
  flex-shrink: 0 !important;
}

/* Warning - Modern Amber */
.ant-feedback--warning {
  background: linear-gradient(
    135deg,
    rgba(251, 191, 36, 0.95) 0%,
    rgba(245, 158, 11, 0.95) 100%
  ) !important;
  color: #1f2937 !important;
  border-left: none !important;
}

.ant-feedback--warning i {
  color: #92400e !important;
}

/* Error - Modern Red */
.ant-feedback--error {
  background: linear-gradient(
    135deg,
    rgba(239, 68, 68, 0.95) 0%,
    rgba(220, 38, 38, 0.95) 100%
  ) !important;
  color: white !important;
  border-left: none !important;
}

/* Info - Modern Blue */
.ant-feedback--info {
  background: linear-gradient(
    135deg,
    rgba(14, 165, 233, 0.95) 0%,
    rgba(59, 130, 246, 0.95) 100%
  ) !important;
  color: white !important;
  border-left: none !important;
}

/* Success - Modern Green */
.ant-feedback--success {
  background: linear-gradient(
    135deg,
    rgba(34, 197, 94, 0.95) 0%,
    rgba(22, 163, 74, 0.95) 100%
  ) !important;
  color: white !important;
}

/* Dark Mode */
html[data-theme="dark"] .ant-feedback--warning {
  background: linear-gradient(
    135deg,
    rgba(251, 191, 36, 0.2) 0%,
    rgba(245, 158, 11, 0.15) 100%
  ) !important;
  border: 1px solid rgba(251, 191, 36, 0.3) !important;
  color: #fbbf24 !important;
}

html[data-theme="dark"] .ant-feedback--warning i {
  color: #fbbf24 !important;
}

html[data-theme="dark"] .ant-feedback--error {
  background: linear-gradient(
    135deg,
    rgba(239, 68, 68, 0.2) 0%,
    rgba(220, 38, 38, 0.15) 100%
  ) !important;
  border: 1px solid rgba(239, 68, 68, 0.3) !important;
  color: #f87171 !important;
}

html[data-theme="dark"] .ant-feedback--info {
  background: linear-gradient(
    135deg,
    rgba(14, 165, 233, 0.2) 0%,
    rgba(59, 130, 246, 0.15) 100%
  ) !important;
  border: 1px solid rgba(14, 165, 233, 0.3) !important;
  color: #38bdf8 !important;
}

/* Banner Alerts */
#activeJobBanner[data-alert-level="warning"] {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%) !important;
  border-color: transparent !important;
  color: #1f2937 !important;
}

#activeJobBanner[data-alert-level="danger"] {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%) !important;
  border-color: transparent !important;
  color: white !important;
}

.banner-alert {
  padding: 0.25rem 0.75rem !important;
  border-radius: var(--radius-full) !important;
  font-size: 0.75rem !important;
  font-weight: 600 !important;
}

.banner-alert--warning {
  background: rgba(251, 191, 36, 0.2) !important;
  color: #b45309 !important;
}

.banner-alert--danger {
  background: rgba(239, 68, 68, 0.2) !important;
  color: #dc2626 !important;
}

.banner-alert--info {
  background: rgba(14, 165, 233, 0.2) !important;
  color: var(--brand-primary) !important;
}

html[data-theme="dark"] .banner-alert--warning {
  background: rgba(251, 191, 36, 0.25) !important;
  color: #fbbf24 !important;
}

html[data-theme="dark"] .banner-alert--danger {
  background: rgba(239, 68, 68, 0.25) !important;
  color: #f87171 !important;
}

/* Persistent Feedback (Toast container) */
.persistent-feedback-container {
  position: fixed !important;
  bottom: 2rem !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  z-index: 9999 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 0.75rem !important;
  max-width: 400px !important;
  width: calc(100% - 2rem) !important;
}

.persistent-feedback {
  animation: slideUp 0.3s ease !important;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(1rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Hide header job banner - replaced by floating trigger button */
#activeJobBanner {
  display: none !important;
}

/* ========================================
   FIX BOOTSTRAP MODAL LAYOUT SHIFT
   ======================================== */

/* Prevent Bootstrap from adding padding to body */
html {
  scrollbar-gutter: stable;
  overflow-y: scroll;
}

body {
  padding-right: 0 !important;
  margin-right: 0 !important;
  width: 100% !important;
  max-width: 100vw !important;
  overflow-x: hidden !important;
}

body.modal-open {
  padding-right: 0 !important;
  margin-right: 0 !important;
  overflow: hidden !important;
  position: fixed !important;
  width: 100% !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
}

.modal {
  padding-right: 0 !important;
  overflow-y: auto !important;
}

.modal-backdrop {
  width: 100% !important;
}

/* Fix for main content container */
.container-xxl,
.dashboard-main-card,
.dashboard-grid,
.content-types-grid {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}

/* Ensure the main card doesn't shift */
main.col-12 {
  flex: 0 0 100% !important;
  max-width: 100% !important;
}

@media (max-width: 992px) {
  .dashboard-grid {
    grid-template-columns: 1fr !important;
  }
}
