/* Night Raid palette - Combo 4 */
:root {
  --nr-bg: #0E1113; /* Primary - Midnight Black */
  --nr-card: #2B3035; /* Secondary - Slate Gray */
  --nr-footer: #1e2226; /* Footer - darker slate */
  --nr-accent: #B11226; /* Accent - Infrared Red */
  --nr-red: #B11226; /* Danger / Accent */
  --nr-success: #2d5a2d; /* Success - muted green */
  --nr-white: #fff;
  --nr-muted: #6B7278; /* Tertiary - Cold Gray */
}

/* Base */
body {
  background: var(--nr-bg) !important;
  color: var(--nr-white) !important;
  font-size: 1rem;
}

/* Cards and Modals */
.card,
.modal-content {
  background: var(--nr-card) !important;
  color: var(--nr-white) !important;
  border: 2px solid var(--nr-accent);
}

/* Table */
.table,
.table-dark {
  background: var(--nr-card) !important;
  color: var(--nr-white) !important;
}
.table-dark {
  background: var(--nr-accent) !important;
  color: var(--nr-white) !important;
}

/* Navbar - Night Raid: slate with red accent */
.navbar {
  background: var(--nr-card) !important;
  box-shadow: 0 2px 8px 0 #0002;
  border-bottom: 1px solid var(--nr-muted);
}
.navbar-brand {
  font-size: 1.35rem !important;
  color: var(--nr-white) !important;
  letter-spacing: 0.03em;
}
.nav-link {
  color: var(--nr-white) !important;
  transition:
    background 0.15s,
    color 0.15s;
  border-radius: 0.4rem;
}

.nav-link:hover,
.nav-link:focus {
  background: var(--nr-bg);
  color: var(--nr-accent) !important;
}

.nav-link.active,
.navbar .nav-link.active {
  background: var(--nr-bg) !important;
  color: var(--nr-accent) !important;
}
.navbar .btn.active,
.navbar .btn:active {
  background: var(--nr-bg) !important;
  color: var(--nr-accent) !important;
  border-color: var(--nr-bg) !important;
}
/* Buttons */
.btn-primary,
.bg-primary {
  background: var(--nr-accent) !important;
  border-color: var(--nr-accent) !important;
  color: #fff !important;
  font-weight: 700;
}
.btn-primary:hover,
.bg-primary:hover {
  background: #c9182c !important;
  border-color: #c9182c !important;
  color: #fff !important;
}
.btn-outline-primary {
  color: var(--nr-accent) !important;
  border-color: var(--nr-accent) !important;
  background: transparent !important;
}
.btn-outline-primary:hover {
  background: var(--nr-accent) !important;
  color: var(--nr-white) !important;
}
.btn-outline-secondary {
  color: var(--nr-red) !important;
  border-color: var(--nr-red) !important;
  background: transparent !important;
}
.btn-outline-secondary:hover {
  background: var(--nr-red) !important;
  color: var(--nr-white) !important;
}
.btn-outline-success {
  color: var(--nr-success) !important;
  border-color: var(--nr-success) !important;
  background: transparent !important;
}
.btn-outline-success:hover {
  background: var(--nr-success) !important;
  color: var(--nr-white) !important;
}
.btn-link,
a {
  color: var(--nr-accent);
}

/* Form labels and controls */
.form-label {
  color: var(--nr-accent);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.01em;
}
.form-control,
.form-select {
  background: #232323;
  color: var(--nr-white);
  border: 1.5px solid var(--nr-accent);
  border-radius: 0.5rem;
  font-size: 0.98rem;
  padding: 0.5rem 0.75rem;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}
.form-control:focus,
.form-select:focus {
  border-color: var(--nr-accent);
  box-shadow: 0 0 0 0.12rem rgba(177, 18, 38, 0.5);
  background: var(--nr-card);
  color: var(--nr-white);
}
::placeholder {
  color: var(--nr-muted) !important;
  opacity: 1;
}

/* Card titles */
.card-title {
  font-weight: 700;
  letter-spacing: 0.3px;
  font-size: 1.3rem;
  color: var(--nr-accent);
}
.card {
  border-radius: 1rem;
}

/* Status badges */
.status-badge.bg-success {
  background: var(--nr-success) !important;
}
.status-badge.bg-warning {
  background: var(--nr-accent) !important;
  color: var(--nr-white) !important;
}
.status-badge.bg-danger {
  background: var(--nr-red) !important;
}

html,
body {
  height: 100%;
  min-height: 100%;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.site-footer,
footer {
  flex-shrink: 0;
  background: var(--nr-footer) !important;
  color: #bdbdbd;
}

.footer-main {
  padding: 2.5rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 3rem;
  align-items: start;
  max-width: 900px;
}

.footer-brand {
  max-width: 260px;
}

.footer-brand-link {
  display: inline-block;
  margin-bottom: 0.75rem;
}

.footer-logo {
  height: 40px;
  width: 40px;
  object-fit: cover;
  border-radius: 0.4rem;
}

.footer-brand-name {
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--nr-white);
  margin-bottom: 0.25rem;
}

.footer-col-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--nr-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 1rem;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-link {
  color: #bdbdbd;
  text-decoration: none;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  transition: color 0.15s;
}

.footer-link:hover {
  color: var(--nr-accent);
}

.footer-link i {
  margin-right: 0.5rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1rem 0;
}

.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-copyright {
  color: var(--nr-muted);
  font-size: 0.85rem;
}

.footer-social-icons {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.footer-icon-link {
  color: #bdbdbd;
  font-size: 1.1rem;
  transition: color 0.15s;
}

.footer-icon-link:hover {
  color: var(--nr-accent);
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-main {
    padding: 2rem 0 1.5rem;
  }
}

.footer-divider {
  border-top: 1px solid #444;
  margin: 1.2rem 0 1rem 0;
}

/* Responsive tweaks */
@media (max-width: 600px) {
  .card {
    padding: 0.3rem;
  }
  .card-title {
    font-size: 1.05rem;
  }
  .form-control,
  .form-select {
    font-size: 0.95rem;
  }
}

.hero {
  padding: 4rem 0 2rem 0;
  text-align: center;
}
.hero-title {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--nr-accent);
  letter-spacing: 0.02em;
}
.hero-desc {
  font-size: 1.2rem;
  color: var(--nr-muted);
  margin-bottom: 2rem;
}
.quick-links {
  margin-top: 2rem;
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.quick-link {
  background: var(--nr-card);
  color: var(--nr-white);
  border-radius: 1rem;
  padding: 1.2rem 2.2rem;
  font-size: 1.1rem;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 2px 12px #0003;
  transition:
    background 0.15s,
    color 0.15s,
    box-shadow 0.15s;
  border: 2px solid var(--nr-accent);
}
.quick-link:hover,
.quick-link:focus {
  background: var(--nr-accent);
  color: #fff !important;
  font-weight: 700;
  text-shadow: 0 1px 2px #fff8;
  box-shadow: 0 4px 24px #0005;
  text-decoration: none;
  border-color: var(--nr-accent);
}

.btn-discord {
  background: #5865f2 !important; /* Discord blurple */
  color: #fff !important;
  border: none !important;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition:
    background 0.15s,
    color 0.15s;
}
.btn-discord:hover,
.btn-discord:focus {
  background: #4752c4 !important;
  color: #fff !important;
}

.text-muted,
.form-text.text-muted {
  color: #ccc !important;
  opacity: 1;
}

@media (max-width: 991.98px) {
  .navbar .d-flex.align-items-center {
    justify-content: flex-start;
    align-items: stretch !important;
  }
  .navbar .btn-discord {
    width: 100%;
    margin-top: 0.5rem;
  }
  .navbar .navbar-text {
    margin-top: 0.5rem;
  }
}

/* ========================================
   Embedded CSS Classes (consolidated from inline styles)
   ======================================== */

/* Font size utilities */
.fs-0-9 {
  font-size: 0.9rem;
}

.fs-1-1 {
  font-size: 1.1rem;
}

.fs-1-2 {
  font-size: 1.2rem;
}

.fs-1-4 {
  font-size: 1.4rem;
}

.fs-1-5 {
  font-size: 1.5rem;
}

.fs-2 {
  font-size: 2rem;
}

.fs-3 {
  font-size: 3rem;
}

.fs-4 {
  font-size: 4rem;
}

/* Icon size utilities */
.icon-sm {
  font-size: 2rem;
}

.icon-md {
  font-size: 3rem;
}

.icon-lg {
  font-size: 4rem;
}

/* Color utilities */
.text-accent {
  color: var(--nr-accent);
}

.text-muted-gray {
  color: var(--nr-muted);
}

.text-black-important {
  color: #000 !important;
}

.text-red-important {
  color: #B11226 !important;
}

.text-light-opacity {
  color: #e0e0e0;
  opacity: 0.8;
}

/* Background utilities */
.bg-primary-dark {
  background: #0E1113;
}

.bg-dark-1 {
  background: #08090b;
}

.bg-dark-2 {
  background: #0a0a0a;
}

.bg-dark-3 {
  background: #0f1113;
}

.bg-dark-4 {
  background: #141414;
}

.bg-dark-5 {
  background: #1C1F22;
}

.bg-card {
  background: #2B3035;
}

.bg-card-border {
  background: #2B3035;
  color: #fff;
  border: 1px solid #6B7278;
}

.bg-light-subtle {
  background-color: #f8f9fa;
}

.bg-transparent-dark {
  background: rgba(0, 0, 0, 0.2);
  color: #fff;
}

.bg-transparent-darker {
  background: rgba(0, 0, 0, 0.25);
  color: #fff;
}

.bg-transparent-darkest {
  background: rgba(0, 0, 0, 0.3);
  color: #fff;
}

.bg-transparent-black {
  background: rgba(0, 0, 0, 0.4);
  color: #fff;
}

.bg-overlay {
  background: rgba(0, 0, 0, 0.5);
}

.bg-gradient-dark {
  background: linear-gradient(
    135deg,
    rgba(30, 30, 40, 0.98) 0%,
    rgba(20, 20, 30, 0.98) 100%
  );
  border: 1px solid rgba(255, 255, 255, 0.15);
}

/* Theme color backgrounds */
.bg-theme-blue {
  background: #1A2A3A;
}

.bg-theme-blue-light {
  background: #2E4A62;
}

.bg-theme-blue-lighter {
  background: #9FB2C3;
}

.bg-theme-blue-border {
  background: #2E4A62;
  color: #fff;
  border: 1px solid #C9A24D;
}

.bg-theme-green {
  background: #1a2318;
}

.bg-theme-green-dark {
  background: #141d18;
}

.bg-theme-green-medium {
  background: #1F2E24;
}

.bg-theme-green-light {
  background: #2F3E2B;
}

.bg-theme-green-bright {
  background: #3E5B3A;
}

.bg-theme-green-brighter {
  background: #3B4F3A;
}

.bg-theme-green-brightest {
  background: #4A5D3A;
}

.bg-theme-green-text {
  background: #3E5B3A;
  color: #fff;
}

.bg-theme-green-border {
  background: #3B4F3A;
  color: #fff;
  border: 1px solid #C86B2A;
}

.bg-theme-green-gold-border {
  background: #4A5D3A;
  color: #fff;
  border: 1px solid #B59A4A;
}

.bg-theme-gold {
  background: #C9A24D;
}

.bg-theme-gold-light {
  background: #C2B280;
}

.bg-theme-gold-lighter {
  background: #D6C8A2;
}

.bg-theme-gold-bright {
  background: #B59A4A;
}

.bg-theme-gold-text {
  background: #C9A24D;
  color: #1A2A3A;
}

.bg-theme-gold-bright-text {
  background: #B59A4A;
  color: #1a2318;
}

.bg-theme-orange {
  background: #C86B2A;
}

.bg-theme-orange-text {
  background: #C86B2A;
  color: #fff;
}

.bg-theme-gray {
  background: #3A3F44;
}

.bg-theme-gray-light {
  background: #7A8086;
}

.bg-theme-gray-lighter {
  background: #B8B8B8;
}

.bg-theme-gray-dark {
  background: #3F3F3F;
}

.bg-theme-gray-border {
  background: #3A3F44;
  color: #fff;
  border: 1px solid #7A8086;
}

.bg-theme-gray-dark-border {
  background: #3F3F3F;
  color: #fff;
  border: 1px solid #B8B8B8;
}

.bg-theme-red {
  background: #B11226;
}

.bg-theme-red-dark {
  background: #8B1E1E;
}

.bg-theme-red-text {
  background: #B11226;
  color: #fff;
}

.bg-theme-red-dark-text {
  background: #8B1E1E;
  color: #fff;
}

.bg-theme-muted {
  background: #6B7278;
}

.bg-form-dark {
  background: #1a1d21;
  border-color: var(--nr-muted);
  color: var(--nr-white);
}

.bg-canvas-dark {
  background: #2c313a;
}

/* Text color utilities for theme colors */
.text-theme-blue {
  color: #9FB2C3;
}

.text-theme-green {
  color: #3E5B3A;
}

.text-theme-gold {
  color: #C9A24D;
}

.text-theme-gold-bright {
  color: #B59A4A;
}

.text-theme-orange {
  color: #C86B2A;
}

.text-theme-gray {
  color: #7A8086;
}

.text-theme-gray-lighter {
  color: #B8B8B8;
}

.text-theme-gray-light-2 {
  color: #C2B280;
}

.text-theme-gray-light-3 {
  color: #D6C8A2;
}

.text-theme-red {
  color: #8B1E1E;
}

.text-theme-muted {
  color: #6B7278;
}

.text-theme-purple {
  color: #a084e8;
}

.text-theme-yellow {
  color: #ffe066;
}

/* Width utilities */
.w-50px {
  width: 50px;
}

.w-60px {
  width: 60px;
}

.w-90px {
  width: 90px;
}

.w-140px {
  max-width: 140px;
}

.w-200px {
  max-width: 200px;
}

.w-240px {
  max-width: 240px;
}

.w-320px {
  max-width: 320px;
}

.w-480px {
  max-width: 480px;
}

.w-800px {
  max-width: 800px;
}

.w-auto {
  width: auto;
}

/* Height utilities */
.h-6px {
  height: 6px;
}

.h-20px {
  height: 20px;
}

.h-50px {
  height: 50px;
}

.h-200px {
  height: 200px;
}

/* Combined width and height */
.wh-50px {
  width: 50px;
  height: 50px;
}

.wh-200px {
  width: 200px;
  height: 200px;
}

.wh-60-6 {
  width: 60px;
  height: 6px;
}

/* Object fit utilities */
.obj-fit-cover {
  object-fit: cover;
}

.obj-fit-contain {
  object-fit: contain;
}

/* Image utilities */
.img-max-full {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.img-max-200 {
  max-width: 100%;
  max-height: 200px;
  border-radius: 8px;
}

.img-max-400 {
  max-width: 100%;
  max-height: 400px;
  display: block;
}

.img-max-60vh {
  max-width: 100%;
  max-height: 60vh;
  object-fit: contain;
}

.img-thumbnail-sm {
  width: 50px;
  height: 50px;
  object-fit: cover;
  margin-right: 15px;
}

/* Spacing utilities */
.mb-1rem {
  margin-bottom: 1rem;
}

.mt-3rem {
  margin-top: 3rem;
}

/* Border utilities */
.border-radius-05 {
  border-radius: 0.5rem;
}

.border-radius-8 {
  border-radius: 8px;
}

/* Position utilities */
.pos-relative-inline {
  position: relative;
  display: inline-block;
  max-width: 100%;
  margin-bottom: 1rem;
}

.pos-absolute-full {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
}

/* Canvas utilities */
.canvas-container {
  width: 200px;
  height: 200px;
  margin: 0 auto;
  border: 2px solid #ffe066;
  border-radius: 8px;
  overflow: hidden;
  background: #2c313a;
  display: flex;
  align-items: center;
  justify-content: center;
}

.canvas-selection {
  position: absolute;
  border: 2px solid #ffe066;
  background: rgba(255, 224, 102, 0.1);
  cursor: move;
  min-width: 50px;
  min-height: 50px;
}

.canvas-handle {
  position: absolute;
  width: 10px;
  height: 10px;
  background: #ffe066;
  border-radius: 50%;
}

.canvas-handle-nw {
  top: -5px;
  left: -5px;
  cursor: nw-resize;
}

.canvas-handle-ne {
  top: -5px;
  right: -5px;
  cursor: ne-resize;
}

.canvas-handle-sw {
  bottom: -5px;
  left: -5px;
  cursor: sw-resize;
}

.canvas-handle-se {
  bottom: -5px;
  right: -5px;
  cursor: se-resize;
}

/* Text utilities */
.text-pre-wrap {
  white-space: pre-wrap;
}

.text-center-box {
  background: rgba(0, 0, 0, 0.3);
  border-radius: 8px;
  padding: 1rem;
  text-align: center;
}

.letter-spacing-03 {
  letter-spacing: 0.03em;
}

/* Cursor utilities */
.cursor-move {
  cursor: move;
}

/* Progress bar utilities */
.progress-sm {
  height: 20px;
}

.progress-xs {
  height: 6px;
}

/* Form utilities */
.form-select-narrow {
  max-width: 140px;
  background: #1a1d21;
  border-color: var(--nr-muted);
  color: var(--nr-white);
}

.form-select-medium {
  max-width: 320px;
  background: #1a1d21;
  border-color: var(--nr-muted);
  color: var(--nr-white);
}
