/* ====== Admin Layout Fix ====== */

/* .admin-layout {
  overflow: hidden;
} */
.admin-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: 100vh;
  transition: grid-template-columns 0.3s ease;
  background: #0b0d11;
}

.admin-layout.collapsed {
  grid-template-columns: 90px 1fr;
}

/* ===== Sidebar Styles ===== */
/* .sidebar {
  width: 240px;
  height: 98.5vh;
  background: #111318;
  color: #cfd3dc;
  position: fixed;
  padding: 15px;
  border-radius: 18px;
  margin: 5px;
  transition: 0.3s;
}

.sidebar.collapsed {
  width: 80px;
}

.logo {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
}

.logo-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #fff;
  color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
} */

.sidebar {
  background: #111318;
  color: #cfd3dc;
  padding: 15px;
  margin: 10px;
  border-radius: 18px;
  transition: all 0.3s ease;
  overflow-y: auto;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 25px;
}

.logo-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #fff;
  color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
}

.collapse-btn {
  background: transparent;
  border: none;
  color: #cfd3dc;
  font-size: 18px;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.collapse-btn:hover {
  transform: rotate(180deg);
}

/* ===== Menu ===== */

/* .menu {
  list-style: none;
  padding: 0;
}

.menu-link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px;
  border-radius: 10px;
  cursor: pointer;
  text-decoration: none;
  color: #cfd3dc;
  transition: 0.2s;
}

.menu-link:hover {
  background: #1c1f26;
}

.icon {
  font-size: 20px;
}

.arrow {
  margin-left: auto;
  transition: 0.3s;
}

.arrow.open {
  transform: rotate(90deg);
} */

.menu {
  list-style: none;
  padding: 0;
  margin: 0;
}

.menu-link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px;
  border-radius: 10px;
  color: #cfd3dc;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s;
}

.menu-link:hover {
  background: #1c1f26;
}

.icon {
  font-size: 20px;
}

.arrow {
  margin-left: auto;
  transition: transform 0.3s;
}

.arrow.open {
  transform: rotate(90deg);
}

/* ===== SubMenu ===== */
/* 
.submenu {
  margin: 6px 0 10px 42px;
  padding-left: 10px;
  border-left: 2px solid #2563eb;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.submenu-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  font-size: 14px;
  color: #b5bac5;
  text-decoration: none;
  border-radius: 8px;
}

.submenu-link:hover {
  background: #2563eb;
  color: #fff;
} */

.admin-layout.collapsed .menu-link span,
.admin-layout.collapsed .submenu {
  display: none;
}

.admin-layout.collapsed .menu-link {
  justify-content: center;
}

.admin-layout.collapsed .icon {
  font-size: 22px;
}


/* Right side wrapper */
.main-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  padding: 10px 10px 10px 0;
}


/* Header full width inside wrapper */
.admin-header {
  height: 70px;
  margin: 10px 10px 0 0;
  padding: 0 20px;
  border-radius: 16px;
  background: rgba(20, 22, 26, 0.9);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #fff;
}


/* Page content */
.page-content {
  flex: 1;
  /* THIS keeps footer at bottom */
  padding: 20px;
  overflow-x: hidden;
}


/* Fix DataTable overflow */
table {
  width: 100% !important;
}

.dataTables_wrapper {
  overflow-x: auto;
}


.sidebar-menu li {
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.menu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 15px;
  cursor: pointer;
  color: #fff;
  text-decoration: none;
}

.menu-item:hover {
  background: #1e1e1e;
}

.submenu {
  display: none;
  background: #1a1a1a;
  padding-left: 35px;
}

.submenu.show {
  display: block;
}

.submenu li a {
  display: block;
  padding: 8px 0;
  color: #bbb;
  text-decoration: none;
}

.submenu li a:hover {
  color: #fff;
}

.arrow {
  margin-left: auto;
  transition: 0.3s;
}

.arrow::before {
  content: "›";
}

.arrow.open {
  transform: rotate(90deg);
}

.premium-login {
  height: 100vh;
  background: linear-gradient(135deg, #000000, #000);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

/* abstract shapes */
.premium-login::before,
.premium-login::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
}

.premium-login::before {
  width: 400px;
  height: 400px;
  background: #bc2a3b;
  top: -100px;
  left: -100px;
}

.premium-login::after {
  width: 400px;
  height: 400px;
  background: #bc2a3b;
  bottom: -100px;
  right: -100px;
}

/* glass card */
.login-box {
  width: 100%;
  max-width: 420px;
  padding: 20px;
  border-radius: 15px;
  backdrop-filter: blur(15px);
  background: rgb(0 0 0);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  z-index: 2;
}

.login-box label {
  font-size: 14px;
  margin-bottom: 5px;
}

.login-box .form-control {
  height: 45px;
  border-radius: 8px;
}

.login-btn {
  height: 45px;
  border-radius: 8px;
  font-weight: 600;
}

.toggle-pass {
  position: absolute;
  right: 12px;
  top: 38px;
  cursor: pointer;
  font-size: 13px;
  color: #0d6efd;
}

.login-box a {
  color: #fff;
  font-size: 13px;
}

.toggle-pass {
  position: absolute;
  right: 12px;
  top: 42px;
  cursor: pointer;
  color: #6c757d;
}

.toggle-pass svg {
  vertical-align: middle;
}

.stat-card {
  padding: 20px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.stat-card h3 {
  font-size: 28px;
  margin-bottom: 5px;
  text-align: left;
}

.stat-card p {
  margin: 0;
  font-weight: 500;
}

/* ===== Stat Cards ===== */

.stat-card {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 20px;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
  transition: 0.3s;
}

.stat-card:hover {
  transform: translateY(-5px);
}

.stat-icon {
  width: 55px;
  height: 55px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: #fff;
}

.stat-card h3 {
  margin: 0;
  font-weight: 700;
  color: #000;
}

.stat-card p {
  margin: 0;
  color: #000;
  font-size: 14px;
}

/* ===== Card Design ===== */

.card {
  border: none;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
  position: static;
}

.card-header {
  background: #fff;
  font-weight: 600;
  border-bottom: 1px solid #eee;
  padding: 15px 20px;
}

.stat-icon svg {
  display: block;
}

/* ===== Table Card ===== */
.table-card {
  border-radius: 14px;
  border: none;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
}

/* ===== DataTable Header Area ===== */
.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_filter {
  margin-bottom: 15px;
}

.dataTables_wrapper .dataTables_filter input {
  border-radius: 8px;
  border: 1px solid #ddd;
  padding: 6px 12px;
  height: 36px;
}

.dataTables_wrapper .dataTables_length select {
  border-radius: 8px;
  border: 1px solid #ddd;
  height: 36px;
}

/* ===== Table Header ===== */
table.dataTable thead th {
  background: #f8f9fb !important;
  border: none !important;
  font-weight: 600;
  padding: 14px !important;
  color: #444;
}

/* ===== Floating Rows Effect ===== */
/* table.dataTable {
  border-collapse: separate !important;
  border-spacing: 0 10px !important;
} */

/* table.dataTable tbody tr {
  background: #ffffff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  transition: 0.2s ease;
} */

/* table.dataTable tbody tr:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.08);
} */

/* Remove default borders */
/* table.dataTable tbody td {
  border: none !important;
  padding: 14px !important;
  vertical-align: middle;
} */

/* Rounded row corners */
/* table.dataTable tbody tr td:first-child {
  border-top-left-radius: 10px;
  border-bottom-left-radius: 10px;
}

table.dataTable tbody tr td:last-child {
  border-top-right-radius: 10px;
  border-bottom-right-radius: 10px;
} */

/* ===== Pagination ===== */
.dataTables_wrapper .dataTables_paginate .paginate_button {
  border-radius: 6px !important;
  padding: 5px 12px !important;
  border: none !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current {
  background: #0d6efd !important;
  color: #fff !important;
}

/* ===== Table Card ===== */
.table-card {
  border-radius: 14px;
  border: none;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
}

/* ===== DataTable Header Area ===== */
.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_filter {
  margin-bottom: 15px;
}

.dataTables_wrapper .dataTables_filter input {
  border-radius: 8px;
  border: 1px solid #ddd;
  padding: 6px 12px;
  height: 36px;
}

.dataTables_wrapper .dataTables_length select {
  border-radius: 8px;
  border: 1px solid #ddd;
  height: 36px;
}

/* ===== Table Header ===== */
table.dataTable thead th {
  background: #f8f9fb !important;
  border: none !important;
  font-weight: 600;
  padding: 14px !important;
  color: #444;
}

/* ===== Floating Rows Effect ===== */
table.dataTable {
  border-collapse: separate !important;
  border-spacing: 0 10px !important;
}

table.dataTable tbody tr {
  background: #ffffff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  transition: 0.2s ease;
}

table.dataTable tbody tr:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.08);
}

/* Remove default borders */
table.dataTable tbody td {
  border: none !important;
  padding: 14px !important;
  vertical-align: middle;
}

/* Rounded row corners */
table.dataTable tbody tr td:first-child {
  border-top-left-radius: 10px;
  border-bottom-left-radius: 10px;
}

table.dataTable tbody tr td:last-child {
  border-top-right-radius: 10px;
  border-bottom-right-radius: 10px;
}

/* ===== Pagination ===== */
.dataTables_wrapper .dataTables_paginate .paginate_button {
  border-radius: 6px !important;
  padding: 5px 12px !important;
  border: none !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current {
  background: #0d6efd !important;
  color: #fff !important;
}

.admin-header {
  height: 70px;
  margin: 10px 10px 10px 0;
  padding: 0 20px;
  border-radius: 16px;
  background: rgba(20, 22, 26, 0.9);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #fff;
}

.page-title {
  font-weight: 600;
  margin: 0;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 18px;
}

/* Search */
.search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #1c1f26;
  padding: 8px 12px;
  border-radius: 8px;
  position: relative;
}

.search-box input {
  background: transparent;
  border: none;
  outline: none;
  color: #fff;
  width: 350px;
}

.search-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  width: 420px;
  background: #11141b;
  border-radius: 12px;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.45);
  padding: 6px;
  z-index: 1000;
}

.search-result {
  width: 100%;
  border: none;
  background: transparent;
  color: #dfe6f7;
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: 10px;
  text-align: left;
  transition: background 0.2s ease;
}

.search-result + .search-result {
  margin-top: 4px;
}

.search-result:hover {
  background: rgba(255, 255, 255, 0.05);
}

.search-result-type {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: #8f9dbf;
  min-width: 70px;
}

.search-result-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.search-result-title {
  font-weight: 600;
}

.search-result-subtitle {
  font-size: 12px;
  color: #9aa6c5;
}

.search-feedback {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px;
  color: #a9b3ce;
}

/* Icons */
.icon-btn {
  position: relative;
  font-size: 20px;
  cursor: pointer;
}

.badge-dot {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 8px;
  height: 8px;
  background: red;
  border-radius: 50%;
}

/* Profile */
.profile-box {
  cursor: pointer;
}

.profile-trigger {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #1c1f26;
  padding: 8px 12px;
  border-radius: 8px;
}

/* .dropdown-menu {
  background: #1c1f26;
  border: none;
  color: #fff;
} */

/* .dropdown-item {
  color: #0a0909;
}

.dropdown-item:hover {
  background: #ccc;
  color: #fff;
}

.dropdown-toggle::after {
  display: none;
} */

/* ===== Action Dropdown ===== */
.action-menu-btn {
  font-size: 18px;
  color: #333;
}

.action-menu-btn:hover {
  color: #0d6efd;
}

.table-responsive {
  overflow: visible !important;
  padding: 20px;
}

/* Dropdown container */
.dropdown-menu {
  min-width: auto !important;       /* 👈 content based width */
  width: max-content !important;   /* 👈 content based width */
  padding: 6px 0;
  border-radius: 10px;
  border: none;
  box-shadow: 0 12px 30px rgba(0,0,0,0.15);
  font-size: 14px;
}

/* Right aligned */
.dropdown-menu-end {
  right: 0;
  left: auto;
}

/* Items */
.dropdown-item {
  display: flex;
  align-items: center;
  gap: 8px;
  border-radius: 6px;
}

.dropdown-item i {
  font-size: 14px;
}

/* Hover */
.dropdown-item:hover {
  background: #f1f3f5;
  color: #000;
}

/* Delete */
.dropdown-item.text-danger:hover {
  background: rgba(220, 53, 69, 0.1);
  color: #dc3545;
}

/* Divider spacing */
.dropdown-divider {
  margin: 6px 0;
}


.admin-footer {
  margin: 10px 10px 10px 0;
  padding: 14px 20px;
  border-radius: 16px;
  background: rgba(20, 22, 26, 0.9);
  backdrop-filter: blur(8px);
  color: #cfd3dc;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-right {
  display: flex;
  align-items: center;
}

.footer-right a {
  color: #9aa0ac;
  font-size: 18px;
  margin-left: 15px;
  transition: 0.2s;
}

.footer-right a:hover {
  color: #fff;
}

/* USER PROFILE */
.user-profile {
  color: #e5e7eb;
}

/* HEADER */
.user-header {
  display: flex;
  align-items: center;
  gap: 20px;
  background: #11141a;
  padding: 20px;
  border-radius: 14px;
}

.user-header img {
  width: 90px;
  height: 90px;
  border-radius: 50%;
}

.user-meta h3 {
  margin: 0;
}

.user-meta p.user-email {
  display: flex;
  align-items: center;
  /* ⭐ THIS FIXES IT */
  gap: 8px;
  color: #9aa0ac;
  margin: 4px 0;
}

.user-meta p.user-email svg {
  font-size: 15px;
  flex-shrink: 0;
}


/* STATUS BADGE */
.badge.active {
  background: rgba(25, 135, 84, 0.15);
  color: #28a745;
}

/* STAT BOX */
.stat-box {
  background: #11141a;
  padding: 16px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.stat-box svg {
  font-size: 22px;
  color: #0d6efd;
}

.stat-box p {
  margin: 0;
  font-size: 12px;
  color: #9aa0ac;
}

.stat-box h6 {
  margin: 0;
}

/* OVERVIEW */
.overview-box p {
  margin-bottom: 8px;
}

/* TIMELINE */
.timeline-simple {
  display: flex;
  gap: 40px;
}

.timeline-simple div span {
  font-size: 12px;
  color: #9aa0ac;
}

.timeline-simple div p {
  margin: 0;
  font-weight: 500;
}

.transaction-timeline {
  position: relative;
}

.transaction-timeline::before {
  content: '';
  position: absolute;
  left: 12px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: #e5e7eb;
}

.timeline-group {
  margin-bottom: 25px;
}

.timeline-date {
  background: #0d6efd;
  color: #fff;
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 6px;
  display: inline-block;
  margin-bottom: 15px;
}

.timeline-item {
  display: flex;
  gap: 15px;
  margin-bottom: 18px;
}

.timeline-icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #e9ecef;
  display: flex;
  align-items: center;
  justify-content: center;
}

.timeline-icon.payment { background: #d1e7dd; }
.timeline-icon.refund { background: #f8d7da; }
.timeline-icon.subscription { background: #cff4fc; }

.timeline-card {
  width: 100%;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 12px 15px;
}

.amount.success { color: #198754; }
.amount.refunded { color: #dc3545; }
.amount.active { color: #0d6efd; }

