/* =============================================================================   nanushty ADMIN - GLOBAL STYLES   ============================================================================= */

/* Page Loader */

#page-loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.5s ease;
}

#page-loader.hidden {
  opacity: 0;
  pointer-events: none;
}

#page-loader .spinner {
  width: 50px;
  height: 50px;
  border: 5px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Card Hover Effects */

/* Clickable Card Links */

a[href]:has(.card) {
  text-decoration: none;
}

a[href]:has(.card) .card {
  cursor: pointer;
}

/* Table Responsive */

.table-responsive {
  overflow-x: auto;
}

/* Status Badges */

.badge {
  font-size: 0.75rem;
  padding: 0.25rem 0.5rem;
  border-radius: 30px;
}

/* Sidebar */

.sidebar {
  min-height: 100vh;
}

.sidebar .nav-link {
  color: rgba(255, 255, 255, 0.8);
  padding: 0.75rem 1rem;
}

.sidebar .nav-link:hover {
  color: #fff;
  background-color: rgba(255, 255, 255, 0.1);
}

.sidebar .nav-link.active {
  color: #fff;
  background-color: rgba(255, 255, 255, 0.2);
}

/* Topbar */

.topbar {
  height: 4.375rem;
}

/* Content Wrapper */

#content-wrapper {
  width: 100%;
  overflow-x: hidden;
}

/* Footer */

.sticky-footer {
  flex-shrink: 0;
}

/* Scroll to Top */

.scroll-to-top {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  display: none;
  width: 2.75rem;
  height: 2.75rem;
  text-align: center;
  color: #f4dbaa;
  background-color: rgba(161,130,74,0.33);
  line-height: 2.75rem;
}

.scroll-to-top:hover {
  background-color: #4a4302;
}

/* Utility Classes */

.border-left-primary {
  border-left: 0.25rem solid #4e73df !important;
}

.border-left-success {
  border-left: 0.25rem solid #1cc88a !important;
}

.border-left-info {
  border-left: 0.25rem solid #36b9cc !important;
}

.border-left-warning {
  border-left: 0.25rem solid #f6c23e !important;
}

.border-left-danger {
  border-left: 0.25rem solid #e74a3b !important;
}

/* Text Colors */

.text-gray-300 {
  color: #dddfeb !important;
}

.text-gray-400 {
  color: #d1d3e2 !important;
}

.text-gray-500 {
  color: #b7b9cc !important;
}

.text-gray-600 {
  color: #858796 !important;
}

.text-gray-700 {
  color: #6e707e !important;
}

.text-gray-800 {
  color: #5a5c69 !important;
}

.text-gray-900 {
  color: #3a3b45 !important;
}

/* Responsive */

@media (max-width: 768px) {
  .sidebar {
    display: none;
  }
}

@media (max-width: 768px) {
  .sidebar.show {
    display: block;
  }
}

/* MOBILE OPTIMIZATION FOR PRODUCT TABLE */

/* Hide the entire header row */

@media (max-width: 810px) {
  table.table thead {
    display: none !important;
  }
}

/* Make each row a compact flex container */

@media (max-width: 810px) {
  table.table tbody tr {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    padding: 8px 4px;
    border-bottom: 1px solid #eee;
  }
}

/* Hide all non-essential columns */

@media (max-width: 810px) {
  table.table tbody td:nth-child(2), table.table tbody td:nth-child(3), table.table tbody td:nth-child(4), table.table tbody td:nth-child(6) {
    display: none !important;
  }
}

/* Image column */

@media (max-width: 810px) {
  table.table tbody td:nth-child(1) {
    flex: 0 0 auto;
  }
}

/* Status toggle */

@media (max-width: 810px) {
  table.table tbody td:nth-child(5) {
    flex: 0 0 auto;
    margin-left: auto;
    margin-right: 10px;
  }
}

/* Action buttons */

@media (max-width: 810px) {
  table.table tbody td:nth-child(7) {
    flex: 0 0 auto;
    display: flex;
    gap: 6px;
  }
}

/* Smaller buttons for mobile */

@media (max-width: 810px) {
  table.table tbody td:nth-child(7) .btn {
    padding: 4px 6px;
    font-size: 12px;
  }
}

/* ---------------------------------------------------------   BANNERS ADMIN – GLOBAL WRAPPER--------------------------------------------------------- */

.banners-admin {
  font-family: 'Anta', sans-serif;
}

/* ---------------------------------------------------------   TABS (DESKTOP)--------------------------------------------------------- */

.banner-tabs .nav-link {
  display: block;
  padding: var(--bs-nav-link-padding-y) var(--bs-nav-link-padding-x);
  font-size: var(--bs-nav-link-font-size);
  font-weight: var(--bs-nav-link-font-weight);
  color: rgba(255,255,255,0.3);
  text-decoration: none;
  background: rgba(128,128,128,0.2);
  border: 0px;
  border-radius: 15px 15px 0 0;
}

.banner-tabs .nav-link.active {
  background: #3f256d;
  border-radius: 15px 15px 0 0;
  border: #ffffff!important;
  border-width: 1px!important;
  border-style: outset!important;
  color: var(--bs-secondary-bg-subtle);
}

/* ---------------------------------------------------------   TABS (MOBILE DROPDOWN)--------------------------------------------------------- */

#mobileTabSelector {
  font-weight: 600;
  padding: 10px;
  border-radius: 6px;
}

/* ---------------------------------------------------------   TAB PANES--------------------------------------------------------- */

.tab-pane {
  display: none;
}

.tab-pane.active {
  display: block;
}

/* ---------------------------------------------------------   DASHBOARD CARDS--------------------------------------------------------- */

.gradient-card-gold {
  background: var(--text-primary);
  border-radius: 15px 15px 0 0;
  border: #ffffff!important;
  border-width: 1px!important;
  border-style: outset!important;
}

.gradient-card-pink {
  background: linear-gradient(135deg, #ff6ac1 0%, #ff3f8e 100%);
  border-radius: 14px;
}

.gradient-card-purple h2, .gradient-card-pink h2 {
  font-size: 32px;
}

/* ---------------------------------------------------------   UPCOMING HOLIDAYS LIST--------------------------------------------------------- */

.upcoming-holidays-list .list-group-item {
  border-radius: 10px;
  margin-bottom: 10px;
  border: 1px solid #eee;
}

/* ---------------------------------------------------------   BANNER PREVIEW BOX--------------------------------------------------------- */

.banner-preview-box {
  border: 2px dashed #ccc;
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

/* ---------------------------------------------------------   HOLIDAY MODAL--------------------------------------------------------- */

.holidayModal {
  display: none;
  position: fixed;
  z-index: 99999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  background: rgba(0, 0, 0, 0.45);
  padding-top: 40px;
}

.modalContent {
  background: #fff;
  margin: auto;
  padding: 25px;
  border-radius: 12px;
  max-width: 500px;
  width: 90%;
  position: relative;
  animation: fadeIn 0.25s ease-out;
}

.closeModal {
  position: absolute;
  right: 15px;
  top: 10px;
  font-size: 22px;
  cursor: pointer;
  color: #666;
}

.closeModal:hover {
  color: #000;
}

/* ---------------------------------------------------------   TABLE BADGES--------------------------------------------------------- */

.badge.bg-warning {
  background-color: #582877 !important;
  color: #ffffff;
}

.badge.bg-primary {
  background-color: #582877 !important;
  color: #ffffff;
  align-self: center;
  padding: 15px;
}

.badge.bg-danger {
  background-color: #ff3f3f !important;
}

/* ---------------------------------------------------------   RESPONSIVE FIXES--------------------------------------------------------- */

@media (max-width: 768px) {
  .gradient-card-purple h2, .gradient-card-pink h2 {
    font-size: 24px;
  }
}

@media (max-width: 768px) {
  .banner-tabs {
    display: none !important;
  }
}

@media (max-width: 768px) {
  .uploadBannerImage {
    font-size: 18px;
  }
}

@media (max-width: 768px) {
  .modalContent {
    width: 95%;
  }
}

/* ---------------------------------------------------------   ANIMATIONS--------------------------------------------------------- */

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.navbar.navbar-dark.navbar-expand-md.fixed-top.bg-dark {
  background-color: #000!important;
  /*opacity: 0.8;*/
}

.navbar-dark .navbar-nav .nav-link {
  color: #ffffff;
  font-size: 13px;
}

.navbar-dark .navbar-nav .nav-link .apple-logo {
  font-size: 21px;
  line-height: 0;
}

.LogOut {
  cursor: pointer;
}

.admin-offcanvas {
  width: 250px;
  background: #111;
  color: #fff;
  font-family: 'Anta', sans-serif;
}

.admin-brand {
  font-family: 'Anta', sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: #fff;
}

.sidebar-divider {
  border-color: rgba(255,255,255,0.15);
}

.sidebar-btn {
  width: 100%;
  text-align: left;
  padding: 10px 20px;
  font-family: 'Anta', sans-serif;
  font-weight: 700;
  font-style: italic;
  background: transparent;
  border: none;
}

.sidebar-btn:hover {
  background: rgba(255,255,255,0.03);
}

.sidebar-btn.active {
  background: var(--bg-tertiary);
}

.sidebar-subnav {
  padding-left: 20px;
  margin-top: 5px;
}

.sidebar-link {
  display: block;
  padding: 6px 0;
  font-family: 'Anta', sans-serif;
  font-weight: 600;
  text-decoration: none;
}

.sidebar-link:hover {
  opacity: 0.8;
}

.admin-topbar {
  height: 60px;
}

.admin-topbar-title {
  width: 100%;
  font-family: 'Anta', sans-serif;
  color: var(--bs-gray-100);
  text-decoration: none;
  font-weight: 700;
}

.coupon-code-pill {
  font-family: 'Courier New', monospace;
  font-weight: 700;
  font-size: 0.9rem;
  background: rgba(99,102,241,0.15);
  border: 1px solid rgba(99,102,241,0.3);
  color: #a5b4fc;
  padding: 2px 10px;
  border-radius: 6px;
  letter-spacing: 1px;
}

.type-badge {
  font-size: 0.7rem;
  padding: 3px 8px;
  border-radius: 20px;
  font-weight: 700;
  text-transform: uppercase;
}

.type-percent {
  background: rgba(16,185,129,0.15);
  color: #6ee7b7;
  border: 1px solid rgba(16,185,129,0.3);
}

.type-fixed {
  background: rgba(99,102,241,0.15);
  color: #a5b4fc;
  border: 1px solid rgba(99,102,241,0.3);
}

.type-free_shipping {
  background: rgba(14,165,233,0.15);
  color: #7dd3fc;
  border: 1px solid rgba(14,165,233,0.3);
}

.scope-badge {
  font-size: 0.7rem;
  padding: 3px 8px;
  border-radius: 20px;
  background: rgba(255,255,255,0.07);
  color: var(--bs-secondary-color);
}

.usage-bar {
  height: 4px;
  background: rgba(255,255,255,0.1);
  border-radius: 2px;
  margin-top: 4px;
  overflow: hidden;
}

.usage-bar-fill {
  height: 100%;
  background: var(--bs-info);
  border-radius: 2px;
  transition: width .4s;
}

.expired-row td {
  opacity: 0.5;
}

.filter-btn {
  font-size: 0.8rem;
  padding: 3px 12px;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.15);
  cursor: pointer;
  background: transparent;
  color: var(--bs-secondary-color);
  transition: all .2s;
}

.filter-btn.active {
  background: var(--bs-info);
  color: #000;
  border-color: var(--bs-info);
  font-weight: 700;
}

.zone-card {
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  margin-bottom: 1.5rem;
  overflow: hidden;
}

.zone-header {
  background: rgba(255,255,255,0.05);
  padding: 1rem 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.zone-name {
  font-family: 'Anta', sans-serif;
  font-size: 1rem;
  font-weight: bold;
  color: var(--bs-info);
  margin: 0;
}

.zone-countries {
  font-size: 0.78rem;
  color: var(--bs-secondary-color);
  margin-top: 2px;
}

.zone-body {
  padding: 1rem 1.25rem;
}

.method-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 0.875rem;
  border-radius: 8px;
  margin-bottom: 0.5rem;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
}

.method-row:last-child {
  margin-bottom: 0;
}

.method-type-badge {
  font-size: 0.7rem;
  padding: 2px 8px;
  border-radius: 20px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  flex-shrink: 0;
}

.type-free {
  background: rgba(16,185,129,0.2);
  color: #6ee7b7;
  border: 1px solid rgba(16,185,129,0.3);
}

.type-fixed {
  background: rgba(99,102,241,0.2);
  color: #a5b4fc;
  border: 1px solid rgba(99,102,241,0.3);
}

.type-weight {
  background: rgba(245,158,11,0.2);
  color: #fcd34d;
  border: 1px solid rgba(245,158,11,0.3);
}

.method-name {
  flex: 1;
  font-weight: 600;
  font-size: 0.9rem;
}

.method-detail {
  font-size: 0.8rem;
  color: var(--bs-secondary-color);
}

.method-eta {
  font-size: 0.75rem;
  color: var(--bs-secondary-color);
  font-style: italic;
}

.add-method-btn {
  border: 1px dashed rgba(255,255,255,0.2);
  border-radius: 8px;
  padding: 0.5rem;
  text-align: center;
  cursor: pointer;
  font-size: 0.85rem;
  color: var(--bs-secondary-color);
  transition: all 0.2s;
  margin-top: 0.75rem;
}

.add-method-btn:hover {
  border-color: var(--bs-info);
  color: var(--bs-info);
  background: rgba(13,202,240,0.05);
}

.stat-pill {
  font-size: 0.75rem;
  background: rgba(255,255,255,0.08);
  border-radius: 20px;
  padding: 2px 10px;
  color: var(--bs-secondary-color);
}

.sidebar-link {
  margin-left: 5em;
}

.navbar .container-fluid {
  flex-direction: row-reverse;
  flex-wrap: initial;
}

.auth-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--spacing-lg);
  background: linear-gradient(135deg, var(--bs-danger-text-emphasis) 0%, var(--bs-code-color) 100%);
}

@media (max-width: 480px) {
  .auth-card {
    padding: var(--spacing-xl);
    border-radius: var(--radius-xl);
  }
}

.auth-subtitle, .auth-title {
  text-align: center;
  color: var(--bs-light);
  margin-bottom: var(--spacing-xl);
}

.auth-card {
  width: 100%;
  max-width: 440px;
  background: rgba(0,0,0,0.15);
  padding: var(--spacing-2xl);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-xl);
}

.auth-title {
  font-size: var(--text-3xl);
  text-align: center;
  margin-bottom: var(--spacing-sm);
  font-weight: bolder;
}

.auth-card, a {
  text-decoration: none;
  color: #cccccc;
  cursor: pointer;
}

.auth-error {
  display: none;
  padding: var(--spacing-md);
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid var(--error);
  border-radius: var(--radius-md);
  color: var(--error);
  margin-bottom: var(--spacing-lg);
  font-size: var(--text-sm);
}

.auth-btn {
  width: 100%;
  padding: 12px;
  background: var(--bs-pink);
  color: #ffffff;
  border: none;
  border-radius: 15px;
  font-size: var(--text-base);
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  margin: 10px 0;
}

.auth-btn:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
}

.auth-links {
  display: flex;
  justify-content: space-between;
  margin-top: var(--spacing-lg);
  font-size: var(--text-sm);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  /*font-size: 16px;*/
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

#loginForm, input {
  padding: 9px;
  width: inherit;
  border-radius: 15px;
}

.hero {
  background: var(--bs-black);
}

thead, tbody, tfoot, tr, td, th {
  /*border-color: inherit;*/
  /*border-style: solid;*/
  /*border-width: 0;*/
  /*background: #f2f2f2;*/
}

.table > :not(caption) > * > * {
  padding: .5rem .5rem;
  color: var(--bs-table-color-state, var(--bs-table-color-type, var(--bs-table-color)));
  /*background-color: #f2f2f2;*/
  /*border-bottom-width: var(--bs-border-width);*/
  /*box-shadow: inset 0 0 0 9999px #f2f2f2, var(--bs-table-bg-type, #f2f2f2)\)\);*/
}

.catdiv {
  text-align: center;
}

.catbtn {
  width: 90%;
}

#content-wrapper {
  background: radial-gradient(#582877 41%, black 100%), var(--bs-indigo);
}

