:root {
  --primary: #3a0519;
  --primary-light: #670d2f;
  --secondary: #a53860;
  --accent: #ef88ad;
  --dark: #1a0a0e;
  --light: #fdf2f8;
  --white: #ffffff;
  --text-primary: #1f2937;
  --text-secondary: #6b7280;
  --success: #059669;
  --warning: #d97706;
  --danger: #dc2626;
  --sidebar-width: 280px;
  --header-height: 70px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family:
    "Inter",
    -apple-system,
    BlinkMacSystemFont,
    sans-serif;
  background: linear-gradient(
    135deg,
    var(--primary) 0%,
    var(--primary-light) 50%,
    var(--secondary) 100%
  );
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  min-height: 100svh;
  min-width: 100svw;
}

@media only screen and (max-width: 768px){
    table, table *{
        font-size: 12px;
    } 

    table th{
        white-space: nowrap;
    }
}

/* Sidebar */
.sidebar {
  position: fixed;
  top: 0;
  right: 0;
  width: var(--sidebar-width);
  height: 100vh;
  background: rgba(58, 5, 25, 0.95);
  backdrop-filter: blur(20px);
  border-left: 1px solid rgba(239, 136, 173, 0.2);
  z-index: 1000;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
}

.sidebar.collapsed {
  width: 80px;
}

.sidebar::-webkit-scrollbar {
  width: 4px;
}

.sidebar::-webkit-scrollbar-track {
  background: transparent;
}

.sidebar::-webkit-scrollbar-thumb {
  background: rgba(239, 136, 173, 0.3);
  border-radius: 2px;
}

.sidebar-header {
  padding: 20px;
  border-bottom: 1px solid rgba(239, 136, 173, 0.1);
  text-align: center;
}

.sidebar.collapsed .sidebar-header {
  padding: 20px 10px;
}

.logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--accent);
  font-size: 20px;
  font-weight: 700;
}

.sidebar.collapsed .logo span {
  display: none;
}

.nav-menu {
  padding: 20px 0;
}

.nav-group {
  margin-bottom: 30px;
}

.nav-group-title {
  color: rgba(239, 136, 173, 0.6);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 0 20px 10px;
}

.sidebar.collapsed .nav-group-title {
  display: none;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  color: rgba(239, 136, 173, 0.8);
  text-decoration: none;
  transition: all 0.2s ease;
  position: relative;
  margin: 2px 10px;
  border-radius: 12px;
}

.sidebar.collapsed .nav-item {
  justify-content: center;
  padding: 14px;
}

.nav-item:hover {
  background: rgba(239, 136, 173, 0.1);
  color: var(--accent);
  transform: translateX(-2px);
}

.nav-item.active {
  background: linear-gradient(135deg, var(--secondary), var(--accent));
  color: white;
  box-shadow: 0 8px 25px rgba(165, 56, 96, 0.3);
}

.nav-item.active::before {
  content: "";
  position: absolute;
  right: -10px;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 20px;
  background: var(--accent);
  border-radius: 2px;
}

.nav-item i {
  font-size: 18px;
  width: 20px;
  text-align: center;
}

.sidebar.collapsed .nav-item span {
  display: none;
}

.nav-badge {
  background: var(--accent);
  color: var(--primary);
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 10px;
  margin-right: auto;
  font-weight: 600;
}

.sidebar.collapsed .nav-badge {
  display: none;
}

/* Main Content */
.main-content {
  margin-right: var(--sidebar-width);
  min-height: 100vh;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.main-content.expanded {
  margin-right: 80px;
}

/* Header */
.header {
  height: var(--header-height);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(165, 56, 96, 0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 30px;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 20px;
}

.toggle-btn {
  background: none;
  border: none;
  font-size: 20px;
  color: var(--secondary);
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
  transition: all 0.2s ease;
}

@media only screen and (min-width: 768px){
    .toggle-btn{
        display: none !important;
    }
}

.toggle-btn:hover {
  background: var(--light);
  color: var(--primary);
}

.search-box {
  position: relative;
  width: 350px;
}

.search-input {
  width: 100%;
  padding: 12px 16px 12px 45px;
  border: 2px solid rgba(165, 56, 96, 0.1);
  border-radius: 12px;
  font-size: 14px;
  background: var(--light);
  transition: all 0.2s ease;
}

.search-input:focus {
  outline: none;
  border-color: var(--secondary);
  background: white;
  box-shadow: 0 0 0 3px rgba(165, 56, 96, 0.1);
}

.search-icon {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--secondary);
}

.header-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.notification-btn {
  position: relative;
  background: none;
  border: none;
  font-size: 20px;
  color: var(--secondary);
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.notification-btn:hover {
  background: var(--light);
  color: var(--primary);
}

.notification-badge {
  position: absolute;
  top: 2px;
  right: 2px;
  background: var(--accent);
  color: var(--primary);
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 10px;
  min-width: 18px;
  text-align: center;
  font-weight: 600;
}

.user-menu {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  border-radius: 12px;
  transition: all 0.2s ease;
}

.user-menu:hover {
  background: var(--light);
}

.user-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--secondary), var(--accent));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 600;
}

.user-info h4 {
  font-size: 14px;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.user-info p {
  font-size: 12px;
  color: var(--text-secondary);
}

/* Content Area */
.content {
  padding: 30px;
}

.page-header {
  margin-bottom: 30px;
}

.page-title {
  font-size: 28px;
  font-weight: 700;
  color: white;
  margin-bottom: 8px;
}

.page-subtitle {
  color: rgba(255, 255, 255, 0.8);
  font-size: 16px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
}

.breadcrumb a {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  font-size: 14px;
}

.breadcrumb a:hover {
  color: var(--accent);
}

.breadcrumb-separator {
  color: rgba(255, 255, 255, 0.4);
}

/* Cards */
.card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-radius: 20px;
  padding: 25px;
  box-shadow: 0 20px 40px rgba(58, 5, 25, 0.1);
  border: 1px solid rgba(239, 136, 173, 0.1);
  transition: all 0.3s ease;
  margin-bottom: 25px;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 30px 60px rgba(58, 5, 25, 0.15);
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 1px solid rgba(165, 56, 96, 0.1);
}

.card-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 10px;
}

.card-title i {
  color: var(--secondary);
}

.card-actions {
  display: flex;
  gap: 10px;
}

/* Stats Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
  margin-bottom: 30px;
}

.stat-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-radius: 20px;
  padding: 30px;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.stat-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--secondary), var(--accent));
}

.stat-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 25px 50px rgba(58, 5, 25, 0.15);
}

.stat-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 20px;
}

.stat-icon {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: white;
}

.stat-icon.primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
}
.stat-icon.secondary {
  background: linear-gradient(135deg, var(--secondary), var(--accent));
}
.stat-icon.success {
  background: linear-gradient(135deg, var(--success), #047857);
}
.stat-icon.warning {
  background: linear-gradient(135deg, var(--warning), #b45309);
}
.stat-icon.danger {
  background: linear-gradient(135deg, var(--danger), #b91c1c);
}

.stat-value {
  font-size: 32px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1;
}

.stat-label {
  color: var(--text-secondary);
  font-size: 14px;
  margin-top: 8px;
}

.stat-change {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 500;
  margin-top: 8px;
}

.stat-change.positive {
  color: var(--success);
}

.stat-change.negative {
  color: var(--danger);
}

/* Table */
.table-container {
  overflow-x: auto;
  border-radius: 16px;
  border: 1px solid rgba(165, 56, 96, 0.1);
}

.table {
  width: 100%;
  border-collapse: collapse;
  background: white;
}

.table th {
  background: var(--light);
  padding: 16px;
  text-align: right;
  font-weight: 600;
  color: var(--text-primary);
  border-bottom: 1px solid rgba(165, 56, 96, 0.1);
}

.table td {
  padding: 16px;
  border-bottom: 1px solid rgba(165, 56, 96, 0.05);
  color: var(--text-secondary);
}

.table tbody tr:hover {
  background: rgba(239, 136, 173, 0.05);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border: none;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  white-space: nowrap;
}

.btnTemp {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 10px;
  border: none;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

@media (min-width: 768px) {
  .btnTemp {
    padding: 10px 20px;
  }
}

.btnTemp {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 10px;
  border: none;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}
.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: white;
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 25px rgba(58, 5, 25, 0.3);
}

.btn-secondary {
  background: linear-gradient(135deg, var(--secondary), var(--accent));
  color: white;
}

.btn-secondary:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 25px rgba(165, 56, 96, 0.3);
}

.btn-success {
  background: linear-gradient(135deg, var(--success), #047857);
  color: white;
}

.btn-warning {
  background: linear-gradient(135deg, var(--warning), #b45309);
  color: white;
}

.btn-danger {
  background: linear-gradient(135deg, var(--danger), #b91c1c);
  color: white;
}

.btn-sm {
  padding: 6px 12px;
  font-size: 12px;
}

/* Chart Container */
.chart-container {
  position: relative;
  height: 400px;
  margin: 20px 0;
}

/* Responsive */
@media (max-width: 1024px) {
  .sidebar {
    transform: translateX(100%);
  }

  .sidebar.show {
    transform: translateX(0);
  }

  .main-content {
    margin-right: 0;
  }

  .search-box {
    width: 250px;
  }
}

@media (max-width: 768px) {
  .content {
    padding: 20px;
  }

  .header {
    padding: 0 20px;
  }

  .search-box {
    display: none;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .page-title {
    font-size: 24px;
  }
}

.content-section {
  display: none;
}

.content-section.active {
  display: block;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: rgba(239, 136, 173, 0.1);
}

::-webkit-scrollbar-thumb {
  background: rgba(165, 56, 96, 0.3);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(165, 56, 96, 0.5);
}

.linkText {
  text-decoration: none;
  color: white;
}

.rowImg {
  width: 50px;
  height: 50px;
  border-radius: 100000px;
}

/* .modalContainer{
  position: absolute;
  top: 10%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 100000000;
  border-radius: 24px;
  background-color: green;
  padding: 16px;
  width: clamp(380px, 80vw, 800px);
  opacity: 0;
  transition: top 300ms ease-in-out, opacity 300ms ease-in-out;
}

.modalContainer.active{
  top: 30%;
  opacity: 1;
}

.modalBg{
  position: absolute;
  z-index: 10000000;
  top: 0px;
  left: 0px;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.404);
  opacity: 0;
  transition: opacity 300ms ease-in-out;
}

.modalBg.active{
  opacity: 1;
}

.disBlock{
  display: block !important;
}

.disNone{
  display: none !important;
} */

.ticketTab {
  display: none;
}

.ticketTab.active {
  display: block;
}

.ticketTabBtn {
  filter: grayscale(100%);
}

.ticketTabBtn.active {
  filter: grayscale(0%);
}

.popover {
  display: none;
  position: absolute;
  top: 30%;
  left: 50%;
  transform: translate(-50%, -50%);
  margin: 0px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(58, 5, 25, 0.1);
  padding: 40px;
  opacity: 0;
  z-index: 100000;
  width: clamp(350px, 65%, 750px);
  transition-property: opacity display overlay top;
  transition-duration: 0.3s;
  transition-behavior: allow-discrete;
}

.popover.active {
  display: block;
  opacity: 1;
  top: 50%;
}
@starting-style {
  .popover.active {
    opacity: 0;
    top: 30%;
  }
}

.backdrop {
  display: none;
  opacity: 0;
  position: fixed;
  top: 0px;
  left: 0px;
  width: 100svw;
  height: 100svh;
  background-color: black;
  transition-property: opacity display overlay;
  transition-duration: 0.3s;
  transition-behavior: allow-discrete;
  z-index: 10000;
}

.backdrop.active {
  display: block;
  opacity: 0.5;

  @starting-style {
    opacity: 0;
  }
}

html:has(#light:checked) {
  color-scheme: light;
}

.imgPopover {
  display: none;
  position: fixed;
  top: 30%;
  left: 50%;
  transform: translate(-50%, -50%);
  margin: 0px;
  /* background: rgba(255, 255, 255, 0.95); */
  /* border-radius: 20px; */
  box-shadow: 0 20px 40px rgba(58, 5, 25, 0.1);
  /* padding: 40px; */
  opacity: 0;
  z-index: 100000;
  width: clamp(200px, 80%, 500px);
  aspect-ratio: 1/1;
  transition-property: opacity display overlay top;
  transition-duration: 0.3s;
  transition-behavior: allow-discrete;
}

.imgPopover.active {
  display: block;
  opacity: 1;
  top: 50%;
}
@starting-style {
  .imgPopover.active {
    opacity: 0;
    top: 30%;
  }
}

.imgPopover > img {
  width: 100%;
  height: 100%;
}

.infoContainer {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  padding-inline: 16px;
  gap: 40px;
}

.info {
  flex: 0 0 calc(50% - 20px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.fullWidth {
  width: 100%;
  justify-content: center;
  flex-grow: 1;
}

.info > :nth-child(2) {
  color: var(--text-secondary);
}

@media only screen and (max-width: 768px) {
  .infoContainer {
    flex-direction: column;
  }

  .info {
    align-items: start;
  }
}

.btnTemp {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 10px;
  border: none;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

@media (min-width: 768px) {
  .btnTemp {
    padding: 10px 20px;
  }
}

.codeLi {
  list-style-type: none;
}

.codeLiC {
  text-align: center;
}
