/*
* demo.css
* File include item demo only specific css only
******************************************************************************/

.light-style .menu .app-brand.demo {
  height: 64px;
}

.dark-style .menu .app-brand.demo {
  height: 64px;
}

.app-brand-logo.demo svg {
  width: 38px;
  height: 20px;
}

.app-brand-text.demo {
  font-size: 1.25rem;
}

/* ! For .layout-navbar-fixed added fix padding top tpo .layout-page */
.layout-navbar-fixed .layout-wrapper:not(.layout-without-menu) .layout-page {
  padding-top: 64px !important;
}

/* Navbar page z-index issue solution */
.content-wrapper .navbar {
  z-index: auto;
}

/*
* Content
******************************************************************************/

.demo-blocks > * {
  display: block !important;
}

.demo-inline-spacing > * {
  margin: 1rem 0.375rem 0 0 !important;
}

/* ? .demo-vertical-spacing class is used to have vertical margins between elements. To remove margin-top from the first-child, use .demo-only-element class with .demo-vertical-spacing class. For example, we have used this class in forms-input-groups.html file. */
.demo-vertical-spacing > * {
  margin-top: 1.25rem !important;
  margin-bottom: 0 !important;
}
.demo-vertical-spacing.demo-only-element > :first-child {
  margin-top: 0 !important;
}

.demo-vertical-spacing-lg > * {
  margin-top: 1.875rem !important;
  margin-bottom: 0 !important;
}
.demo-vertical-spacing-lg.demo-only-element > :first-child {
  margin-top: 0 !important;
}

.demo-vertical-spacing-xl > * {
  margin-top: 5rem !important;
  margin-bottom: 0 !important;
}
.demo-vertical-spacing-xl.demo-only-element > :first-child {
  margin-top: 0 !important;
}

.rtl-only {
  display: none !important;
  text-align: left !important;
  direction: ltr !important;
}

[dir='rtl'] .rtl-only {
  display: block !important;
}

/* Dropdown buttons going out of small screens */
@media (max-width: 576px) {
  #dropdown-variation-demo .btn-group .text-truncate {
    width: 300px;
    position: relative;
  }
  #dropdown-variation-demo .btn-group .text-truncate::after {
    position: absolute;
    top: 45%;
    right: 0.65rem;
  }
}
/*
* Layout demo
******************************************************************************/

.layout-demo-wrapper {
  display: -ms-flexbox;
  display: flex;
  -ms-flex-align: center;
  align-items: center;
  -ms-flex-direction: column;
  flex-direction: column;
  margin-top: 1.25rem;
}
.layout-demo-placeholder img {
  width: 900px;
}
.layout-demo-info {
  text-align: center;
  margin-top: 1.25rem;
}

/* Fix for mobile menu z-index in dark-unsc and other themes */
@media (max-width: 1199.98px) {
  .layout-menu {
    z-index: 11000 !important; /* Above FAB (10000) and content */
  }
  .layout-overlay {
    z-index: 10999 !important;
  }
}

/* Fix for toast container z-index and position */
.toast-container {
  z-index: 11000 !important;
  top: 80px !important;
}

/*
* UNSC Theme Improvements (Dark Mode)
* Custom styling for input groups to match the futuristic dark theme
******************************************************************************/
[data-theme="theme-unsc"] .input-group-merge .input-group-text {
  background-color: #00d1ff !important;
  box-shadow: 0 0 10px rgba(0, 209, 255, 0.5) !important;
  border: 1px solid #00d1ff !important;
  color: #fff !important; /* Dark icon on cyan bg */
  border-right: none !important;
  border-top-left-radius: 0.375rem !important;
  border-bottom-left-radius: 0.375rem !important;
}

[data-theme="theme-unsc"] .input-group-merge .form-control {
  background-color: rgba(14, 31, 47, 0.8) !important;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.2) !important;
  border: 1px solid rgba(0, 209, 255, 0.4) !important;
  color: #e1e4e8 !important;
  border-left: none !important;
  border-top-right-radius: 0.375rem !important;
  border-bottom-right-radius: 0.375rem !important;
  transition: all 0.3s ease;
}

/* Wrapper hover effect (simulated by targeting siblings if possible, or container) */
[data-theme="theme-unsc"] .input-group-merge:hover .form-control {
    border-color: #00d1ff !important;
    box-shadow: 0 0 15px rgba(0, 209, 255, 0.2) !important;
}

[data-theme="theme-unsc"] .input-group-merge:hover .input-group-text {
    box-shadow: 0 0 15px rgba(0, 209, 255, 0.6) !important;
}

[data-theme="theme-unsc"] .input-group-merge .form-control:focus,
[data-theme="theme-unsc"] .input-group-merge:focus-within .input-group-text,
[data-theme="theme-unsc"] .input-group-merge:focus-within .form-control {
  border-color: #00d1ff !important;
  box-shadow: 0 0 0 0.2rem rgba(0, 209, 255, 0.2), 0 0 20px rgba(0, 209, 255, 0.3) !important;
}

/* Standalone Inputs */
[data-theme="theme-unsc"] .form-control:not(.input-group-merge .form-control),
[data-theme="theme-unsc"] .form-select {
    background-color: rgba(14, 31, 47, 0.8) !important;
    border: 1px solid rgba(0, 209, 255, 0.3) !important;
    color: #e1e4e8 !important;
}

[data-theme="theme-unsc"] .form-control:focus,
[data-theme="theme-unsc"] .form-select:focus {
    background-color: rgba(14, 31, 47, 0.95) !important;
    border-color: #00d1ff !important;
    box-shadow: 0 0 15px rgba(0, 209, 255, 0.25) !important;
    color: #fff !important;
}

[data-theme="theme-unsc"] .form-control::placeholder {
  color: rgba(225, 228, 232, 0.4) !important;
}

/* Fix for "No sales found" in UNSC theme */
[data-theme="theme-unsc"] .no-sales-container {
  background-color: rgba(14, 31, 47, 0.6) !important; /* Darker background */
  border: 1px solid rgba(0, 209, 255, 0.1);
  border-radius: 0.375rem;
}

[data-theme="theme-unsc"] .no-sales-container .text-muted {
  color: rgba(225, 228, 232, 0.6) !important; /* Lighter text for dark mode */
}

  [data-theme="theme-unsc"] .no-sales-container p {
    color: #e1e4e8 !important;
  }

  [data-theme="theme-unsc"] .no-sales-container i {
    color: #00d1ff !important; /* Cyan icon */
    text-shadow: 0 0 10px rgba(0, 209, 255, 0.5);
  }

/* UNSC Theme Modal Improvements */
[data-theme="theme-unsc"] .modal-content {
  background-color: rgba(14, 31, 47, 0.95) !important;
  border: 1px solid rgba(0, 209, 255, 0.3) !important;
  box-shadow: 0 0 20px rgba(0, 209, 255, 0.15) !important;
  color: #e1e4e8 !important;
}

[data-theme="theme-unsc"] .modal-header {
  border-bottom-color: rgba(0, 209, 255, 0.2) !important;
}

  [data-theme="theme-unsc"] .modal-header .btn-close {
    filter: invert(1) grayscale(100%) brightness(200%);
  }

[data-theme="theme-unsc"] .modal-footer {
  border-top-color: rgba(0, 209, 255, 0.2) !important;
}

[data-theme="theme-unsc"] .modal-title {
  color: #00d1ff !important;
  text-shadow: 0 0 5px rgba(0, 209, 255, 0.3);
}

[data-theme="theme-unsc"] .modal-body .alert-warning {
  background-color: rgba(255, 193, 7, 0.1) !important;
  border-color: rgba(255, 193, 7, 0.3) !important;
  color: #ffc107 !important;
}

[data-theme="theme-unsc"] .modal-body .text-muted {
  color: rgba(225, 228, 232, 0.6) !important;
}

[data-theme="theme-unsc"] .btn-outline-secondary {
  color: #e1e4e8 !important;
  border-color: rgba(225, 228, 232, 0.4) !important;
}

  [data-theme="theme-unsc"] .btn-outline-secondary:hover {
    background-color: rgba(225, 228, 232, 0.1) !important;
  }

/*
* PREMIUM UNSC TABLE THEME - REQUESTED UPDATE
* Scoped to [data-theme="theme-unsc"]
* Premium Tables, Animations, Scrollbars, Full Responsive
******************************************************************************/

[data-theme="theme-unsc"] .card {
  background: rgba(14, 31, 47, 0.85) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(0, 209, 255, 0.2) !important;
  box-shadow: 0 0 15px rgba(0, 209, 255, 0.1), inset 0 0 20px rgba(14, 31, 47, 0.8) !important;
  transition: all 0.3s ease;
}

  [data-theme="theme-unsc"] .card:hover {
    box-shadow: 0 0 25px rgba(0, 209, 255, 0.2), inset 0 0 20px rgba(14, 31, 47, 0.9) !important;
    border-color: rgba(0, 209, 255, 0.4) !important;
  }

/* Premium Scrollbar */
[data-theme="theme-unsc"] .table-responsive::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

[data-theme="theme-unsc"] .table-responsive::-webkit-scrollbar-track {
  background: rgba(14, 31, 47, 0.5);
  border-radius: 4px;
}

[data-theme="theme-unsc"] .table-responsive::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #009ec0, #00d1ff);
  border-radius: 4px;
  border: 1px solid rgba(14, 31, 47, 0.5);
  box-shadow: 0 0 10px rgba(0, 209, 255, 0.5);
}

  [data-theme="theme-unsc"] .table-responsive::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #00d1ff, #ffffff);
  }

/* Table Styles */
[data-theme="theme-unsc"] .table {
  --bs-table-bg: transparent;
  --bs-table-color: #e1e4e8;
  --bs-table-border-color: rgba(0, 209, 255, 0.15);
  --bs-table-hover-bg: rgba(0, 209, 255, 0.05);
  border-collapse: separate;
  border-spacing: 0 6px; /* Floating rows effect */
  margin-top: 0;
  width: 100%;
}

  [data-theme="theme-unsc"] .table thead th {
    background: #0e1f2f !important;
    color: #00d1ff !important;
    text-transform: uppercase;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1.2px;
    border-bottom: 2px solid rgba(0, 209, 255, 0.4) !important;
    padding: 1rem;
    white-space: nowrap;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 10;
  }

  [data-theme="theme-unsc"] .table tbody tr {
    background: rgba(13, 25, 40, 0.7) !important; /* Darker, more solid premium feel */
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-bottom: 1px solid rgba(0, 209, 255, 0.05); /* Subtle separator */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  }

    [data-theme="theme-unsc"] .table tbody tr:nth-child(odd) {
      background: rgba(13, 25, 40, 0.7) !important;
    }

    [data-theme="theme-unsc"] .table tbody tr:nth-child(even) {
      background: rgba(24, 42, 61, 0.65) !important; /* Distinct zebra striping */
    }

    [data-theme="theme-unsc"] .table tbody tr td:first-child {
      border-top-left-radius: 6px;
      border-bottom-left-radius: 6px;
      border-left: 3px solid transparent;
    }

    [data-theme="theme-unsc"] .table tbody tr td:last-child {
      border-top-right-radius: 6px;
      border-bottom-right-radius: 6px;
    }

    [data-theme="theme-unsc"] .table tbody tr:hover {
      background: rgba(0, 209, 255, 0.1) !important;
      transform: translateY(-3px) scale(1.005);
      box-shadow: 0 10px 20px -5px rgba(0, 0, 0, 0.5), 0 0 15px rgba(0, 209, 255, 0.2) !important;
      z-index: 5;
      position: relative;
    }

      [data-theme="theme-unsc"] .table tbody tr:hover td:first-child {
        border-left-color: #00d1ff;
      }

  [data-theme="theme-unsc"] .table td {
    padding: 1rem;
    vertical-align: middle;
    border: none;
    color: #e2e8f0; /* Brighter text for better contrast */
    font-size: 0.9rem;
    font-weight: 500;
  }

  /* Row Animations (Staggered Fade In) */
  [data-theme="theme-unsc"] .table tbody tr {
    animation: unscSlideIn 0.5s ease-out forwards;
    opacity: 0;
  }

@keyframes unscSlideIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

[data-theme="theme-unsc"] .table tbody tr:nth-child(1) {
  animation-delay: 0.05s;
}

[data-theme="theme-unsc"] .table tbody tr:nth-child(2) {
  animation-delay: 0.1s;
}

[data-theme="theme-unsc"] .table tbody tr:nth-child(3) {
  animation-delay: 0.15s;
}

[data-theme="theme-unsc"] .table tbody tr:nth-child(4) {
  animation-delay: 0.2s;
}

[data-theme="theme-unsc"] .table tbody tr:nth-child(5) {
  animation-delay: 0.25s;
}

[data-theme="theme-unsc"] .table tbody tr:nth-child(6) {
  animation-delay: 0.3s;
}

[data-theme="theme-unsc"] .table tbody tr:nth-child(7) {
  animation-delay: 0.35s;
}

[data-theme="theme-unsc"] .table tbody tr:nth-child(8) {
  animation-delay: 0.4s;
}

[data-theme="theme-unsc"] .table tbody tr:nth-child(9) {
  animation-delay: 0.45s;
}

[data-theme="theme-unsc"] .table tbody tr:nth-child(10) {
  animation-delay: 0.5s;
}

[data-theme="theme-unsc"] .table tbody tr:nth-of-type(n+11) {
  animation-delay: 0.55s;
}

/* Responsive/Mobile View Improvements */
@media (max-width: 768px) {
  [data-theme="theme-unsc"] .table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  /* Make cards slightly more compact on mobile */
  [data-theme="theme-unsc"] .card .card-body {
    padding: 1rem;
  }

  [data-theme="theme-unsc"] .table td,
  [data-theme="theme-unsc"] .table th {
    padding: 0.75rem;
  }
}

/* Actions Dropdown in Table */
[data-theme="theme-unsc"] .table .dropdown-menu {
  background: rgba(14, 31, 47, 0.98) !important;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(0, 209, 255, 0.4) !important;
  box-shadow: 0 0 15px rgba(0, 209, 255, 0.2) !important;
}

[data-theme="theme-unsc"] .table .dropdown-item {
  color: #e1e4e8 !important;
  transition: all 0.2s;
}

  [data-theme="theme-unsc"] .table .dropdown-item:hover {
    background: rgba(0, 209, 255, 0.15) !important;
    color: #00d1ff !important;
    padding-left: 1.5rem; /* Slide effect */
  }

  [data-theme="theme-unsc"] .table .dropdown-item i {
    color: #00d1ff !important;
  }

/* Pagination Premium Styles */
[data-theme="theme-unsc"] .pagination .page-link {
  background-color: rgba(14, 31, 47, 0.6) !important;
  border-color: rgba(0, 209, 255, 0.2) !important;
  color: #e1e4e8 !important;
}

[data-theme="theme-unsc"] .pagination .page-item.active .page-link {
  background-color: rgba(0, 209, 255, 0.2) !important;
  border-color: #00d1ff !important;
  color: #00d1ff !important;
  box-shadow: 0 0 10px rgba(0, 209, 255, 0.4);
}

[data-theme="theme-unsc"] .pagination .page-link:hover {
  background-color: rgba(0, 209, 255, 0.1) !important;
  color: #00d1ff !important;
  transform: translateY(-2px);
}

/*
* UNSC Theme Company Name Neon Effect
******************************************************************************/
[data-theme="theme-unsc"] .app-brand-text.demo {
  color: #ffffff !important;
  text-shadow: 0 0 5px #00d1ff, 0 0 10px #00d1ff, 0 0 20px #00d1ff, 0 0 40px #009ec0 !important;
  font-weight: 800 !important;
  letter-spacing: 1px;
  animation: neonPulse 1.5s infinite alternate;
}

@keyframes neonPulse {
  from {
    text-shadow: 0 0 5px #00d1ff, 0 0 10px #00d1ff, 0 0 20px #00d1ff;
  }

  to {
    text-shadow: 0 0 2px #00d1ff, 0 0 5px #00d1ff, 0 0 10px #00d1ff, 0 0 20px #00d1ff, 0 0 30px #00d1ff;
  }
}

/*
* Drag & Drop Premium Styles (UNSC Theme)
******************************************************************************/

/* Base styles for drop zone (can be used globally) */
.upload-drop-zone {
  min-height: 200px;
  border-width: 2px;
  margin-bottom: 20px;
  color: #a1acb8;
  border-style: dashed;
  border-color: #d9dee3;
  text-align: center;
  background-color: #fcfdfd;
  cursor: pointer;
  transition: all 0.3s ease;
  border-radius: 0.5rem;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 1.5rem;
}

.upload-drop-zone .content {
  line-height: 1.5;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.upload-drop-zone i {
  font-size: 3rem;
  display: block;
  margin-bottom: 0.5rem;
  transition: color 0.3s ease;
}

/* Default Hover */
.upload-drop-zone:hover,
.upload-drop-zone.dragover {
  border-color: #696cff;
  background-color: #f8f9fa;
  color: #696cff;
}

.upload-drop-zone.dragover {
    background-color: #eef2ff;
}

/* UNSC Theme Overrides */
[data-theme="theme-unsc"] .upload-drop-zone,
.dark-style .upload-drop-zone {
  background-color: rgba(0, 209, 255, 0.03); /* Subtle UNSC Cyan tint */
  border-color: rgba(0, 209, 255, 0.2); /* Subtle UNSC border */
  color: #a0a1b8;
}

[data-theme="theme-unsc"] .upload-drop-zone:hover,
[data-theme="theme-unsc"] .upload-drop-zone.dragover,
.dark-style .upload-drop-zone:hover,
.dark-style .upload-drop-zone.dragover {
  border-color: #00d1ff !important; /* UNSC Cyan Accent */
  background-color: rgba(0, 209, 255, 0.1) !important;
  color: #00d1ff !important;
  box-shadow: 0 0 10px rgba(0, 209, 255, 0.2) inset;
}

[data-theme="theme-unsc"] .upload-drop-zone:hover i,
[data-theme="theme-unsc"] .upload-drop-zone.dragover i,
.dark-style .upload-drop-zone:hover i,
.dark-style .upload-drop-zone.dragover i {
  color: #00d1ff !important;
  text-shadow: 0 0 8px rgba(0, 209, 255, 0.6);
}

/* UNSC Modal & Components */
[data-theme="theme-unsc"] .modal-content,
.dark-style .modal-content {
    background-color: #30334e; /* Card Color Dark */
    border: 1px solid #444564;
}

[data-theme="theme-unsc"] .modal-content {
    box-shadow: 0 0 15px rgba(0, 209, 255, 0.1);
}

[data-theme="theme-unsc"] .modal-header .modal-title,
.dark-style .modal-header .modal-title {
    color: #d2d2e8;
}

[data-theme="theme-unsc"] .btn-close,
.dark-style .btn-close {
    filter: invert(1) grayscale(100%) brightness(200%);
}

[data-theme="theme-unsc"] .alert-info,
.dark-style .alert-info {
    background-color: rgba(0, 209, 255, 0.1);
    border-color: rgba(0, 209, 255, 0.3);
    color: #00d1ff;
}

/* Botón UNSC Style */
[data-theme="theme-unsc"] .btn-primary {
    background-color: #00d1ff;
    border-color: #00d1ff;
    color: #000; /* Black text for high contrast on Cyan */
    font-weight: 600;
    box-shadow: 0 0 10px rgba(0, 209, 255, 0.4);
    transition: all 0.3s ease;
}

[data-theme="theme-unsc"] .btn-primary:hover {
    background-color: #00b8e6;
    border-color: #00b8e6;
    box-shadow: 0 0 15px rgba(0, 209, 255, 0.6);
    transform: translateY(-1px);
}

[data-theme="theme-unsc"] .btn-primary:disabled {
    background-color: #444564;
    border-color: #444564;
    color: #7a7b91;
    box-shadow: none;
}

[data-theme="theme-unsc"] .btn-outline-secondary,
.dark-style .btn-outline-secondary {
    color: #a0a1b8;
    border-color: #444564;
}

[data-theme="theme-unsc"] .btn-outline-secondary:hover,
.dark-style .btn-outline-secondary:hover {
    background-color: #444564;
    color: #fff;
}

/*
* GLOBAL MODAL & BACKDROP ENHANCEMENTS (UNSC Theme)
* Ported from Cart.cshtml and improved for global use
******************************************************************************/

/* 1. Backdrop Fixes */
html[data-theme="theme-unsc"] .modal-backdrop,
[data-bs-theme="dark-unsc"] .modal-backdrop {
    z-index: 1050 !important;
    background-color: rgba(5, 10, 20, 0.85) !important; /* Deep dark blue-black */
    backdrop-filter: blur(5px) !important; /* Premium blur effect */
}

html[data-theme="theme-unsc"] .modal-backdrop.show,
[data-bs-theme="dark-unsc"] .modal-backdrop.show {
    opacity: 1 !important; /* Ensure visibility with our custom rgba */
}

/* 2. Modal Z-Index & Position */
html[data-theme="theme-unsc"] .modal,
[data-bs-theme="dark-unsc"] .modal {
    z-index: 1060 !important;
}

/* 3. Modal Content - Glassmorphism & Neon Borders */
html[data-theme="theme-unsc"] .modal-content,
[data-bs-theme="dark-unsc"] .modal-content {
    background-color: rgba(13, 23, 35, 0.95) !important;
    backdrop-filter: blur(16px) !important;
    -webkit-backdrop-filter: blur(16px) !important;
    border: 1px solid rgba(0, 209, 255, 0.3) !important;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.8), 0 0 30px rgba(0, 209, 255, 0.15) !important;
    color: #f1f5f9 !important;
    border-radius: 0.5rem;
}

/* 4. Modal Header */
html[data-theme="theme-unsc"] .modal-header,
[data-bs-theme="dark-unsc"] .modal-header {
    border-bottom: 1px solid rgba(0, 209, 255, 0.2) !important;
    background: linear-gradient(90deg, rgba(0, 209, 255, 0.1) 0%, rgba(0, 0, 0, 0) 100%) !important;
    padding: 1.5rem;
}

html[data-theme="theme-unsc"] .modal-title,
[data-bs-theme="dark-unsc"] .modal-title {
    color: #00d1ff !important;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
    text-shadow: 0 0 10px rgba(0, 209, 255, 0.4);
    font-size: 1.1rem;
}

/* 5. Modal Footer */
html[data-theme="theme-unsc"] .modal-footer,
[data-bs-theme="dark-unsc"] .modal-footer {
    border-top: 1px solid rgba(0, 209, 255, 0.1) !important;
    background: rgba(0, 0, 0, 0.2) !important;
    padding: 1.25rem 1.5rem;
}
