/*
    CTRXpert Admin Panel - Modern Dark Theme
    Brand Colors: #E91B8A (primary), #6A4CCC (secondary)
*/

:root {
  --primary: #E91B8A;
  --secondary: #6A4CCC;
}

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
  color: #ffffff;
  padding-top: 0;
  background-color: #0f0f23;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  overflow-x: hidden;
  transition: all 0.3s ease;
}

/* --- SIDEBAR BASE --- */
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: 240px;
  height: 100vh;
  background: linear-gradient(180deg, var(--secondary) 0%, #1a1a2e 100%);
  border-right: 1px solid #2a2a3e;
  z-index: 2000;
  transition: transform 0.3s ease;
  transform: translateX(0);
}

/* Main content shifts right for sidebar on desktop */
.main-content {
  margin-left: 240px;
  transition: margin-left 0.3s ease;
}

/* --- MOBILE OVERRIDES --- */
@media (max-width: 768px) {
  .sidebar {
    transform: translateX(-100%);
    width: 80vw;
    max-width: 320px;
    box-shadow: 2px 0 8px rgba(0,0,0,0.2);
  }
  .sidebar.open {
    transform: translateX(0);
  }
  .main-content {
    margin-left: 0;
  }
  .sidebar-toggle {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 2100;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  }
  body.sidebar-open::before {
    content: '';
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    background: rgba(0,0,0,0.5);
    z-index: 2050;
    pointer-events: auto;
  }
}

/* Sidebar Styles */
.sidebar-header {
  padding: 24px 20px;
  border-bottom: 1px solid #5f4e9f;
  text-align: center;
}

.sidebar-logo {
  font-size: 24px;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.sidebar-logo img {
  width: auto;
  height: 32px;
}

.sidebar-nav {
  padding: 20px 0;
}

.nav-section {
  margin-bottom: 32px;
}

.nav-section-title {
  padding: 0 20px 12px;
  font-size: 12px;
  font-weight: 600;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 8px;
  margin-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 8px;
}

.nav-item {
  list-style: none;
}

.nav-link {
  display: flex;
  align-items: center;
  padding: 10px 16px;
  margin: 4px 12px;
  color: #b8b8c8;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  border-radius: 8px;
  position: relative;
  overflow: hidden;
}

.nav-link:hover,
.nav-link.active {
  background: rgba(233, 27, 138, 0.15);
  color: #fff;
  text-decoration: none;
  transform: translateX(5px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.nav-link i {
  width: 20px;
  margin-right: 12px;
  font-size: 16px;
  color: #fff !important;
}

.nav-link:hover i,
.nav-link.active i {
  color: #fff !important;
}

/* Main Content */
.top-bar {
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid #2a2a3e;
  padding: 16px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.page-title {
  font-size: 24px;
  font-weight: 600;
  color: #ffffff;
}

.user-menu {
  display: flex;
  align-items: center;
  gap: 16px;
}

.user-info {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #b8b8c8;
  font-size: 14px;
}

.user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-weight: 600;
}

/* Content Area */
.content {
  padding: 32px;
}

/* Cards */
.card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--secondary);
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 24px;
  transition: all 0.3s ease;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--secondary);
  padding: 16px 20px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  border-radius: 12px 12px 0 0;
}

.card-header .card-title {
  margin: 0;
  flex: 1;
  color: #ffffff;
  font-size: 18px;
  font-weight: 600;
}

.card-header .btn {
  margin-left: 12px;
  align-self: center;
}

.card-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--primary);
}

.card-body {
  color: #b8b8c8;
}

/* Buttons */
.btn {
  border-radius: 8px;
  font-weight: 500;
  padding: 12px 24px;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: #fff;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #d0177b 0%, #4b36a8 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(233, 27, 138, 0.3);
}

.btn-secondary {
  background: rgba(233, 27, 138, 0.08);
  color: var(--primary);
  border: 1px solid var(--secondary);
}

.btn-secondary:hover {
  background: rgba(106, 76, 204, 0.12);
  color: var(--secondary);
}

.btn-lg {
  padding: 16px 32px;
  font-size: 16px;
}

.btn-block {
  width: 100%;
  justify-content: center;
}

/* Small buttons for table actions */
.btn-xs {
  padding: 4px 8px;
  font-size: 12px;
  border-radius: 4px;
}

.btn-sm {
  padding: 6px 12px;
  font-size: 13px;
  border-radius: 6px;
}

/* Forms */
.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: #b8b8c8;
  font-size: 14px;
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid #2a2a3e;
  border-radius: 8px;
  color: #ffffff;
  font-size: 14px;
  transition: all 0.2s ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(233, 27, 138, 0.1);
}

.form-control::placeholder {
  color: #8b8b9f;
}

.form-control.has-value {
  border-color: var(--primary);
}

/* Tables - Comprehensive DataTable Styling */
.table {
  width: 100%;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #2a2a3e;
}

.table thead th {
  background: rgba(255, 255, 255, 0.05);
  color: #b8b8c8;
  font-weight: 600;
  padding: 16px;
  border-bottom: 1px solid #2a2a3e;
  font-size: 14px;
}

.table tbody td {
  padding: 16px;
  border-bottom: 1px solid #2a2a3e;
  color: #ffffff;
  font-size: 14px;
}

.table tbody tr:hover {
  background: rgba(233, 27, 138, 0.05) !important;
  color: #ffffff;
}

.table-hover-highlight {
  background: rgba(233, 27, 138, 0.1) !important;
}

/* DataTables Specific Styling */
.dataTables_wrapper {
  background: rgba(255, 255, 255, 0.02);
  border-radius: 8px;
  padding: 20px;
  border: 1px solid #2a2a3e;
}

.dataTables_length select,
.dataTables_filter input {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid #2a2a3e;
  color: #ffffff;
  border-radius: 4px;
  padding: 6px 12px;
}

.dataTables_length select:focus,
.dataTables_filter input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(233, 27, 138, 0.1);
}

.dataTables_info {
  color: #b8b8c8;
  font-size: 14px;
}

.dataTables_paginate .paginate_button {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid #2a2a3e;
  color: #b8b8c8 !important;
  border-radius: 4px;
  padding: 6px 12px;
  margin: 0 2px;
  transition: all 0.2s ease;
}

.dataTables_paginate .paginate_button:hover {
  background: rgba(233, 27, 138, 0.1) !important;
  color: var(--primary) !important;
  border-color: var(--primary);
}

.dataTables_paginate .paginate_button.current {
  background: var(--primary) !important;
  color: #ffffff !important;
  border-color: var(--primary);
}

.dataTables_paginate .paginate_button.disabled {
  background: rgba(255, 255, 255, 0.02);
  color: #666 !important;
  border-color: #2a2a3e;
}

/* Table Action Buttons */
.table .btn {
  margin: 2px;
  font-size: 12px;
  padding: 4px 8px;
}

.table .btn i {
  margin-right: 4px;
}

/* Alerts */
.alert {
  padding: 16px;
  border-radius: 8px;
  margin-bottom: 20px;
  border: 1px solid;
  transition: all 0.3s ease;
}

.alert-danger {
  border-color: #E91B8A;
  background: rgba(233, 27, 138, 0.1);
  color: #E91B8A;
}

.alert-success {
  border-color: #6A4CCC;
  background: rgba(106, 76, 204, 0.1);
  color: #6A4CCC;
}

/* Login Page */
.login-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #0f0f23 0%, #1a1a2e 100%);
}

.login-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid #2a2a3e;
  border-radius: 16px;
  padding: 48px;
  width: 100%;
  max-width: 400px;
  text-align: center;
  transition: all 0.3s ease;
}

.login-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

.login-logo {
  margin-bottom: 32px;
}

.login-title {
  font-size: 28px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 8px;
}

.login-subtitle {
  color: #8b8b9f;
  margin-bottom: 32px;
}

/* Dashboard Stats */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
  margin-bottom: 32px;
}

.stat-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--secondary);
  border-radius: 12px;
  padding: 24px;
  text-align: center;
  transition: all 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.stat-number {
  font-size: 32px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 8px;
}

.stat-label {
  color: #8b8b9f;
  font-size: 14px;
  font-weight: 500;
}

/* Dashboard Packages Grid */
.packages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.package-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid #2a2a3e;
  border-radius: 12px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
}

.package-card:hover {
  border-color: var(--primary);
  box-shadow: 0 8px 24px rgba(233, 27, 138, 0.15);
}

.package-card-header {
  margin-bottom: 16px;
}

.package-card-name {
  font-size: 1.25rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 8px;
}

.package-card-price {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--primary);
}

.package-card-period {
  font-size: 0.9rem;
  font-weight: 400;
  color: #8b8b9f;
}

.package-card-desc {
  color: #b8b8c8;
  font-size: 14px;
  margin-bottom: 16px;
  flex-grow: 1;
  line-height: 1.5;
}

.package-card-features {
  list-style: none;
  margin-bottom: 20px;
  padding: 0;
}

.package-card-features li {
  padding: 6px 0;
  color: #b8b8c8;
  font-size: 14px;
}

.package-card-features li i {
  margin-right: 8px;
  color: var(--primary);
  width: 18px;
}

.package-buy-btn {
  margin-top: auto;
}

@media (max-width: 768px) {
  .packages-grid {
    grid-template-columns: 1fr;
  }
}

/* Responsive */
@media (max-width: 768px) {
  .sidebar {
    position: fixed;
    left: 0;
    top: 0;
    height: 100vh;
    width: 80vw;
    max-width: 320px;
    transform: translateX(-100%);
    z-index: 2000 !important;
  }
  .sidebar.open {
    transform: translateX(0);
  }
  
  .main-content {
    margin-left: 0;
  }
  
  .content {
    padding: 16px;
  }
  
  .stats-grid {
    grid-template-columns: 1fr;
  }
  
  .login-card {
    margin: 16px;
    padding: 32px;
  }
}

@media (max-width: 480px) {
  .sidebar {
    position: fixed;
    left: 0;
    top: 0;
    height: 100vh;
    width: 80vw;
    max-width: 320px;
    transform: translateX(-100%);
    z-index: 2000 !important;
  }
  .sidebar.open {
    transform: translateX(0);
  }
  
  .top-bar {
    margin-top: 0;
    padding: 10px 15px;
  }
  
  .page-title {
    font-size: 16px;
  }
  
  .user-menu .dropdown-toggle span {
    display: none;
  }
  
  .user-menu .dropdown-toggle {
    padding: 8px;
    min-width: 40px;
  }
  
  .user-menu .dropdown-menu {
    right: 0;
    min-width: 140px;
  }
  
  .user-menu .dropdown-item {
    padding: 8px 12px;
    font-size: 12px;
  }
}

/* Panel Styling for Inner Pages */
.panel {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--secondary);
  border-radius: 12px;
  margin-bottom: 24px;
  transition: all 0.3s ease;
}

.panel:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.panel-heading {
  background: rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid var(--secondary);
  padding: 16px 20px;
  border-radius: 12px 12px 0 0;
}

.panel-title {
  color: #ffffff;
  font-size: 18px;
  font-weight: 600;
  margin: 0;
}

.panel-body {
  padding: 20px;
  color: #b8b8c8;
}

/* Form Styling for Inner Pages */
.form-horizontal .form-group {
  margin-bottom: 20px;
}

.form-horizontal .control-label {
  color: #b8b8c8;
  font-weight: 500;
  font-size: 14px;
}

/* Page Header Styling */
.page-header {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid #2a2a3e;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 24px;
}

.page-header h1 {
  color: #ffffff;
  font-size: 24px;
  font-weight: 600;
  margin: 0;
}

/* Navigation Tabs */
.nav-tabs {
  border-bottom: 1px solid #2a2a3e;
  margin-bottom: 20px;
}

.nav-tabs > li > a {
  color: var(--primary);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid #2a2a3e;
  border-bottom: none;
  border-radius: 8px 8px 0 0;
  margin-right: 4px;
  transition: all 0.2s ease;
}

.nav-tabs > li > a:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--primary);
}

.nav-tabs > li.active > a,
.nav-tabs > li.active > a:hover,
.nav-tabs > li.active > a:focus {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

/* Well Styling */
.well {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid #2a2a3e;
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 16px;
}

/* Jumbotron Styling */
.jumbotron {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid #2a2a3e;
  border-radius: 12px;
  padding: 32px;
  margin-bottom: 24px;
}

.jumbotron h1 {
  color: #ffffff;
  font-size: 28px;
  font-weight: 700;
}

.jumbotron p {
  color: #b8b8c8;
  font-size: 16px;
}

/* Breadcrumb Styling */
.breadcrumb {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid #2a2a3e;
  border-radius: 8px;
  padding: 12px 16px;
  margin-bottom: 20px;
}

.breadcrumb > li > a {
  color: var(--primary);
}

.breadcrumb > .active {
  color: #b8b8c8;
}

/* Pagination Styling */
.pagination > li > a,
.pagination > li > span {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid #2a2a3e;
  color: #b8b8c8;
  transition: all 0.2s ease;
}

.pagination > li > a:hover,
.pagination > li > span:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #ffffff;
  border-color: var(--primary);
}

.pagination > .active > a,
.pagination > .active > span {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

/* Label Styling */
.label {
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
  padding: 4px 8px;
}

.label-success {
  background: #16a34a;
}

.label-danger {
  background: #dc2626;
}

.label-warning {
  background: #f59e0b;
}

.label-info {
  background: var(--secondary);
  color: #fff;
}

/* Badge Styling */
.badge {
  background: var(--secondary);
  color: #fff;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
  padding: 4px 8px;
}

/* Progress Bar Styling */
.progress {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  height: 8px;
  margin-bottom: 16px;
}

.progress-bar {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  border-radius: 8px;
}

/* List Group Styling */
.list-group-item {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid #2a2a3e;
  color: #b8b8c8;
  transition: all 0.2s ease;
}

.list-group-item:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #ffffff;
}

.list-group-item.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

/* User Menu and Dropdown Styling */
.user-menu {
  position: relative;
}

.user-menu .dropdown-toggle {
  background: none !important;
  border: none !important;
  color: #ffffff !important;
  font-size: 16px;
  padding: 8px 16px;
  border-radius: 8px;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 12px;
}

.user-menu .dropdown-toggle:hover {
  background: rgba(233, 27, 138, 0.1) !important;
  color: var(--primary) !important;
}

.user-menu .dropdown-toggle:focus {
  box-shadow: 0 0 0 3px rgba(233, 27, 138, 0.15);
}

.user-menu .user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-weight: 600;
  font-size: 16px;
}

.user-menu .dropdown-menu {
  background: rgba(26, 26, 46, 0.95);
  backdrop-filter: blur(10px);
  border: 1px solid var(--secondary);
  border-radius: 12px;
  min-width: 220px;
  padding: 8px 0;
  margin-top: 8px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  animation: dropdownFadeIn 0.2s ease-out;
}

@keyframes dropdownFadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.user-menu .dropdown-item {
  color: #b8b8c8;
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.user-menu .dropdown-item:hover {
  background: rgba(233, 27, 138, 0.1);
  color: var(--primary);
  text-decoration: none;
}

.user-menu .dropdown-item i {
  width: 16px;
  text-align: center;
  font-size: 14px;
}

.user-menu .dropdown-divider {
  border-top: 1px solid #2a2a3e;
  margin: 8px 0;
}

/* Mobile Responsive User Menu */
@media (max-width: 768px) {
  .user-menu .dropdown-toggle {
    padding: 6px 12px;
    font-size: 14px;
    gap: 8px;
  }
  
  .user-menu .user-avatar {
    width: 32px;
    height: 32px;
    font-size: 14px;
  }
  
  .user-menu .dropdown-menu {
    min-width: 200px;
    right: 0;
    left: auto;
  }
  
  .user-menu .dropdown-item {
    padding: 10px 16px;
    font-size: 13px;
  }
  
  .top-bar {
    padding: 12px 16px;
  }
  
  .page-title {
    font-size: 20px;        padding-left: 70px;
  }
}

@media (max-width: 480px) {
  .user-menu .dropdown-toggle span {
    display: none;
  }
  
  .user-menu .dropdown-toggle {
    padding: 8px;
    gap: 0;
  }
  
  .user-menu .dropdown-menu {
    min-width: 180px;
  }
  
  .user-menu .dropdown-item {
    padding: 8px 12px;
    font-size: 12px;
  }
}

/* Ensure all icons are visible */
.fa, .fas, .far, .fal, .fab {
  display: inline-block !important;
  font-style: normal !important;
  font-variant: normal !important;
  text-rendering: auto !important;
  -webkit-font-smoothing: antialiased !important;
}

/* Specific icon fixes */
.fa-sign-out-alt::before {
  content: "\f2f5";
}

/* Fix for logout icon */
.fa-sign-out-alt {
  font-family: 'FontAwesome';
}

.fa-key::before {
  content: "\f084";
}

.fa-user-circle::before {
  content: "\f2bd";
}

.fa-chevron-down::before {
  content: "\f078";
}

.fa-caret-down::before {
  content: "\f0d7";
}

/* Change Password and Users Pages Styling */
.change-password-page,
.users-page {
  padding: 20px 0;
}

/* Modern Form Styling */
.modern-form {
  background: rgba(26, 26, 46, 0.95);
  backdrop-filter: blur(10px);
  border: 1px solid var(--secondary);
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.modern-form .panel-heading {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  border: none;
  border-radius: 12px 12px 0 0;
  padding: 16px 20px;
}

.modern-form .panel-heading .panel-title {
  color: #ffffff;
  font-size: 18px;
  font-weight: 600;
  margin: 0;
}

.modern-form .panel-body {
  background: transparent;
  border: none;
  padding: 24px 20px;
}

.modern-form .form-group {
  margin-bottom: 20px;
}

.modern-form .form-group label {
  color: #b8b8c8;
  font-weight: 500;
  margin-bottom: 8px;
  font-size: 14px;
}

.modern-form .input-group {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Input Group Addon Styling */
.input-group-addon {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid #2a2a3e;
  color: #fff;
  padding: 8px 12px;
  border-radius: 4px 0 0 4px;
  border-right: none;
  min-width: 40px;
  align-items: center;
  justify-content: center;
}

.input-group-addon i {
  color: var(--primary) !important;
  font-size: 14px;
}

.input-group .form-control {
  border-left: none;
  border-radius: 0 4px 4px 0;
}

.input-group .form-control:focus {
  border-left: none;
  box-shadow: 0 0 0 0.2rem rgba(233, 27, 138, 0.25);
}

.input-group:hover .input-group-addon {
  background: rgba(233, 27, 138, 0.1);
  border-color: var(--primary);
}

.input-group:hover .input-group-addon i {
  color: var(--primary) !important;
}

/* Fix for select dropdowns */
select.form-control {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid #2a2a3e;
  color: #ffffff;
  padding: 12px 16px;
  border-radius: 6px;
  font-size: 14px;
  transition: all 0.3s ease;
  min-height: 45px;
}

select.form-control:focus {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(233, 27, 138, 0.15);
  color: #ffffff;
}

select.form-control option {
  background: #1a1a2e;
  color: #ffffff;
  padding: 8px 12px;
}

/* Ensure dropdown text is not cut off */
select.form-control option:hover {
  background: var(--primary);
  color: #ffffff;
}

/* Fix table dropdown styling */
.table-actions .dropdown-menu {
  background: rgba(26, 26, 46, 0.95);
  border: 1px solid var(--secondary);
  border-radius: 8px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
  min-width: 150px;
  z-index: 1050;
}

.table-actions .dropdown-menu.show {
  display: block;
  animation: dropdownFadeIn 0.2s ease-out;
}

.table-actions .dropdown-item {
  color: #b8b8c8;
  padding: 10px 16px;
  font-size: 14px;
  transition: all 0.2s ease;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.table-actions .dropdown-item:last-child {
  border-bottom: none;
}

.table-actions .dropdown-item:hover {
  background: rgba(233, 27, 138, 0.1);
  color: #ffffff;
  text-decoration: none;
}

.table-actions .dropdown-item i {
  margin-right: 8px;
  width: 16px;
  text-align: center;
}

.modern-form .form-control {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--secondary);
  color: #ffffff;
  padding: 12px 16px;
  border-radius: 0 8px 8px 0;
  font-size: 14px;
  transition: all 0.3s ease;
}

.modern-form .form-control:focus {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(233, 27, 138, 0.15);
  color: #ffffff;
}

.modern-form .form-control[readonly] {
  background: rgba(255, 255, 255, 0.03);
  color: #888888;
  cursor: not-allowed;
  opacity: 0.7;
  border-color: #2a2a3e;
}

/* Additional styling for readonly fields in change password form */
.change-password-page .form-control[readonly] {
  background: rgba(255, 255, 255, 0.03);
  color: #888888;
  cursor: not-allowed;
  opacity: 0.7;
  border-color: #2a2a3e;
}

/* Improved readonly field styling for better readability */
.form-control[readonly] {
  background: rgba(255, 255, 255, 0.08) !important;
  color: #b8b8c8 !important;
  cursor: not-allowed;
  opacity: 1;
  border-color: #3a3a4e;
  font-weight: 500;
}

.form-control[readonly]:focus {
  background: rgba(255, 255, 255, 0.1) !important;
  color: #ffffff !important;
  border-color: #4a4a5e;
  box-shadow: 0 0 0 3px rgba(233, 27, 138, 0.1);
}

.modern-form .btn {
  padding: 12px 24px;
  font-weight: 600;
  border-radius: 8px;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.modern-form .btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  border: none;
  color: #ffffff;
}

.modern-form .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(233, 27, 138, 0.3);
}

/* Form button spacing and styling */
.form-group.text-center {
  margin-top: 30px;
  margin-bottom: 20px;
}

.form-group.text-center .btn {
  margin: 0 10px;
  padding: 12px 24px;
  font-weight: 600;
  border-radius: 8px;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.form-group.text-center .btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid #2a2a3e;
  color: #b8b8c8;
}

.form-group.text-center .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: #3a3a4e;
  color: #ffffff;
  transform: translateY(-2px);
}

/* Autofill styling for better readability */
.form-control:-webkit-autofill,
.form-control:-webkit-autofill:hover,
.form-control:-webkit-autofill:focus,
.form-control:-webkit-autofill:active {
  -webkit-box-shadow: 0 0 0 30px #1a1a2e inset !important;
  -webkit-text-fill-color: #ffffff !important;
  background-color: #1a1a2e !important;
  color: #ffffff !important;
}

/* Campaign form button styling */
.btn-success {
  background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
  border: none;
  color: #ffffff;
  padding: 12px 24px;
  font-weight: 600;
  border-radius: 8px;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.btn-success:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(40, 167, 69, 0.3);
  color: #ffffff;
}

.btn-default {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid #2a2a3e;
  color: #b8b8c8;
  padding: 12px 24px;
  font-weight: 600;
  border-radius: 8px;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.btn-default:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: #3a3a4e;
  color: #ffffff;
  transform: translateY(-2px);
}

/* Next button styling */
.btn-lg {
  padding: 16px 32px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 10px;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.btn-lg:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(233, 27, 138, 0.4);
}

/* Enhanced DataTable Styling */
.dataTables_wrapper {
  background: rgba(26, 26, 46, 0.95);
  backdrop-filter: blur(10px);
  border: 1px solid var(--secondary);
  border-radius: 16px;
  padding: 20px;
  margin-top: 20px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_filter {
  margin-bottom: 20px;
}

.dataTables_wrapper .dataTables_length select,
.dataTables_wrapper .dataTables_filter input {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--secondary);
  color: #ffffff;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 14px;
}

.dataTables_wrapper .dataTables_length select:focus,
.dataTables_wrapper .dataTables_filter input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(233, 27, 138, 0.15);
  outline: none;
}

.dataTables_wrapper .dataTables_info {
  color: #b8b8c8;
  font-size: 14px;
  margin-top: 16px;
}

/* Enhanced Pagination */
.dataTables_wrapper .dataTables_paginate {
  margin-top: 20px;
}

.dataTables_wrapper .dataTables_paginate .paginate_button {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--secondary);
  color: #b8b8c8 !important;
  padding: 8px 16px;
  margin: 0 2px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s ease;
  cursor: pointer;
}

.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
  background: rgba(233, 27, 138, 0.1);
  border-color: var(--primary);
  color: var(--primary) !important;
  transform: translateY(-1px);
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  border-color: var(--primary);
  color: #ffffff !important;
  box-shadow: 0 4px 15px rgba(233, 27, 138, 0.3);
}

.dataTables_wrapper .dataTables_paginate .paginate_button.disabled {
  background: rgba(255, 255, 255, 0.02);
  border-color: #2a2a3e;
  color: #666666 !important;
  cursor: not-allowed;
}

/* Enhanced Table Styling */
.dataTables_wrapper table.dataTable {
  background: transparent;
  border: none;
  border-radius: 12px;
  overflow: hidden;
  margin-top: 0;
}

.dataTables_wrapper table.dataTable thead th {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: #ffffff;
  border: none;
  padding: 16px 12px;
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.dataTables_wrapper table.dataTable thead th.sorting,
.dataTables_wrapper table.dataTable thead th.sorting_asc,
.dataTables_wrapper table.dataTable thead th.sorting_desc {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: #ffffff;
}

.dataTables_wrapper table.dataTable thead th.sorting:hover,
.dataTables_wrapper table.dataTable thead th.sorting_asc:hover,
.dataTables_wrapper table.dataTable thead th.sorting_desc:hover {
  background: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 100%);
}

/* Striped Rows */
.dataTables_wrapper table.dataTable tbody tr:nth-child(odd) {
  background: rgba(255, 255, 255, 0.02);
}

.dataTables_wrapper table.dataTable tbody tr:nth-child(even) {
  background: rgba(255, 255, 255, 0.05);
}

/* Bootstrap table striped styling for dark theme */
.table-striped > tbody > tr:nth-of-type(odd) {
  background-color: rgba(255, 255, 255, 0.02);
}

.table-striped > tbody > tr:nth-of-type(even) {
  background-color: rgba(255, 255, 255, 0.05);
}

.table-striped > tbody > tr:hover {
  background-color: rgba(233, 27, 138, 0.1) !important;
}

/* Hover Effects */
.dataTables_wrapper table.dataTable tbody tr:hover {
  background: rgba(233, 27, 138, 0.1) !important;
  transform: scale(1.01);
  transition: all 0.2s ease;
}

.dataTables_wrapper table.dataTable tbody td {
  border: none;
  padding: 12px;
  color: #b8b8c8;
  font-size: 14px;
  vertical-align: middle;
}

/* Action Buttons in Tables */
.table-actions {
  display: flex;
  gap: 8px;
  justify-content: center;
}

.table-actions .btn {
  padding: 6px 12px;
  font-size: 12px;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.table-actions .btn:hover {
  transform: translateY(-1px);
}

.table-actions .btn-edit {
  background: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
}

.table-actions .btn-delete {
  background: #dc3545;
  border-color: #dc3545;
  color: #ffffff;
}

.table-actions .btn-report {
  background: linear-gradient(135deg, #17a2b8 0%, #20c997 100%);
  border: none;
  color: #ffffff;
  margin-right: 4px;
}

.table-actions .btn-screenshots {
  background: linear-gradient(135deg, #6f42c1 0%, #e83e8c 100%);
  border: none;
  color: #ffffff;
  margin-right: 4px;
}

.table-actions .btn-log {
  background: linear-gradient(135deg, #fd7e14 0%, #ffc107 100%);
  border: none;
  color: #ffffff;
  margin-right: 4px;
}

/* Table dropdown styling */
.table-actions .dropdown {
  display: inline-block;
  margin-right: 8px;
}

.table-actions .dropdown-toggle {
  background: var(--secondary);
  border-color: var(--secondary);
  color: #ffffff;
  padding: 6px 12px;
  font-size: 12px;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.table-actions .dropdown-toggle:hover {
  background: rgba(106, 76, 204, 0.8);
  border-color: var(--secondary);
  color: #ffffff;
}

.table-actions .dropdown-menu {
  background: rgba(15, 15, 35, 0.98);
  backdrop-filter: blur(15px);
  border: 1px solid var(--secondary);
  border-radius: 8px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  padding: 8px 0;
  min-width: 160px;
}

.table-actions .dropdown-item {
  color: #b8b8c8;
  padding: 8px 16px;
  font-size: 13px;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.table-actions .dropdown-item:hover {
  background: rgba(233, 27, 138, 0.1);
  color: #ffffff;
  text-decoration: none;
}

.table-actions .dropdown-item i {
  width: 16px;
  text-align: center;
}

/* Modern Loading Spinner */
.loading {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 60px;
  margin: 20px 0;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(233, 27, 138, 0.2);
  border-top: 3px solid var(--primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  box-shadow: 0 0 20px rgba(233, 27, 138, 0.3);
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Alternative loading styles for different contexts */
.loading-pulse {
  display: inline-block;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--primary);
  animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
  0% {
    transform: scale(0.8);
    opacity: 0.5;
  }
  50% {
    transform: scale(1.2);
    opacity: 1;
  }
  100% {
    transform: scale(0.8);
    opacity: 0.5;
  }
}

/* Loading dots */
.loading-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  height: 40px;
}

.loading-dots .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
  animation: dots 1.4s ease-in-out infinite both;
}

.loading-dots .dot:nth-child(1) {
  animation-delay: -0.32s;
}

.loading-dots .dot:nth-child(2) {
  animation-delay: -0.16s;
}

@keyframes dots {
  0%, 80%, 100% {
    transform: scale(0);
    opacity: 0.5;
  }
  40% {
    transform: scale(1);
    opacity: 1;
  }
}

/* Status Badges */
.status-badge {
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.status-badge.active {
  background: rgba(40, 167, 69, 0.2);
  color: #28a745;
  border: 1px solid #28a745;
}

.status-badge.inactive {
  background: rgba(220, 53, 69, 0.2);
  color: #dc3545;
  border: 1px solid #dc3545;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .modern-form {
    padding: 16px;
    margin-bottom: 16px;
  }
  
  .modern-form .panel-heading {
    padding: 12px 16px;
  }
  
  .modern-form .panel-heading .panel-title {
    font-size: 16px;
  }
  
  .modern-form .panel-body {
    padding: 16px;
  }
  
  .dataTables_wrapper {
    padding: 16px;
    margin-top: 16px;
  }
  
  .dataTables_wrapper .dataTables_length,
  .dataTables_wrapper .dataTables_filter {
    text-align: center;
    margin-bottom: 16px;
  }
  
  .dataTables_wrapper table.dataTable thead th {
    padding: 12px 8px;
    font-size: 12px;
  }
  
  .dataTables_wrapper table.dataTable tbody td {
    padding: 8px;
    font-size: 12px;
  }
  
  .table-actions {
    flex-direction: column;
    gap: 4px;
  }
  
  .table-actions .btn {
    padding: 4px 8px;
    font-size: 10px;
  }
}

@media (max-width: 480px) {
  .modern-form {
    padding: 12px;
  }
  
  .modern-form .panel-heading {
    padding: 10px 12px;
  }
  
  .modern-form .panel-heading .panel-title {
    font-size: 14px;
  }
  
  .modern-form .panel-body {
    padding: 12px;
  }
  
  .dataTables_wrapper {
    padding: 12px;
  }
  
  .dataTables_wrapper .dataTables_paginate .paginate_button {
    padding: 6px 12px;
    font-size: 12px;
    margin: 0 1px;
  }
}

/* User Menu Dropdown Styles */
.user-menu {
  position: relative;
}

.user-menu .dropdown-toggle {
  background: none;
  border: none;
  color: #fff;
  font-size: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 16px;
  border-radius: 8px;
  transition: all 0.3s ease;
  cursor: pointer;
}

.user-menu .dropdown-toggle:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.user-menu .dropdown-toggle:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(106, 76, 204, 0.3);
}

.user-menu .user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-weight: 600;
  font-size: 14px;
}

.user-menu .dropdown-menu {
  position: absolute;
  right: 0;
  top: 100%;
  background: #1a1a2e;
  border: 1px solid #2a2a3e;
  border-radius: 8px;
  min-width: 200px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  z-index: 1003;
  margin-top: 8px;
  display: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
}

/* Fix dropdown positioning to prevent going off-screen */
@media (max-width: 768px) {
  .user-menu .dropdown-menu {
    right: 0;
    left: auto;
    min-width: 180px;
  }
}

@media (max-width: 480px) {
  .user-menu .dropdown-menu {
    right: 0;
    left: auto;
    min-width: 160px;
    max-width: calc(100vw - 20px);
  }
}

.user-menu .dropdown-menu.show {
  display: block;
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

@keyframes dropdownFadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.user-menu .dropdown-item {
  display: flex;
  align-items: center;
  padding: 12px 20px;
  color: #b8b8c8;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s ease;
  gap: 12px;
  border-bottom: 1px solid #2a2a3e;
}

.user-menu .dropdown-item:last-child {
  border-bottom: none;
}

.user-menu .dropdown-item:hover {
  background: rgba(106, 76, 204, 0.1);
  color: #fff;
  text-decoration: none;
}

.user-menu .dropdown-item i {
  width: 16px;
  font-size: 14px;
  color: #fff !important;
}

.user-menu .dropdown-divider {
  height: 1px;
  background: #2a2a3e;
  margin: 8px 0;
}

/* Dashboard Section Enhancements */
.dashboard-steps {
  display: flex;
  gap: 16px;
  margin: 20px 0;
  flex-wrap: wrap;
}

.dashboard-step {
  flex: 1;
  min-width: 200px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  border-radius: 12px;
  padding: 16px;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 8px 32px rgba(233, 27, 138, 0.2);
}

.dashboard-step:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 48px rgba(233, 27, 138, 0.3);
}

.dashboard-step::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.1) 50%, transparent 70%);
  transform: translateX(-100%);
  transition: transform 0.6s ease;
}

.dashboard-step:hover::before {
  transform: translateX(100%);
}

.step-number {
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 18px;
  margin: 0 auto 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.step-title {
  color: #fff;
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.step-description {
  color: rgba(255, 255, 255, 0.9);
  font-size: 13px;
  line-height: 1.4;
}

/* Enhanced Welcome Card */
.welcome-card {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  border: 2px solid var(--secondary);
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
}

.welcome-card::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(233, 27, 138, 0.1) 0%, transparent 70%);
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(180deg); }
}

.welcome-card .card-title {
  color: #fff;
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 12px;
  position: relative;
  z-index: 1;
}

.welcome-card .card-body {
  position: relative;
  z-index: 1;
}

/* Enhanced Statistics Cards */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
  margin-bottom: 32px;
}

.stat-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
  border: 1px solid var(--secondary);
  border-radius: 16px;
  padding: 24px;
  text-align: center;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 100%);
}

.stat-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.2);
  border-color: var(--primary);
}

.stat-number {
  font-size: 36px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 8px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.stat-label {
  color: #b8b8c8;
  font-size: 14px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Quick Actions Enhancement */
.quick-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 24px;
}

.quick-action-btn {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  border: 2px solid transparent;
  border-radius: 16px;
  padding: 24px 20px;
  color: #fff;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  font-weight: 700;
  font-size: 18px;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(233, 27, 138, 0.25);
  min-height: 80px;
}

.quick-action-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.6s ease;
}

.quick-action-btn:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 12px 35px rgba(233, 27, 138, 0.4);
  color: #fff;
  text-decoration: none;
  border-color: rgba(255, 255, 255, 0.2);
}

.quick-action-btn:hover::before {
  left: 100%;
}

.quick-action-btn i {
  font-size: 24px;
  color: #fff;
  transition: transform 0.3s ease;
}

.quick-action-btn:hover i {
  transform: scale(1.1) rotate(5deg);
}

/* Mobile Responsive Enhancements */
@media (max-width: 768px) {
  .dashboard-steps {
    flex-direction: column;
    gap: 16px;
  }
  
  .dashboard-step {
    min-width: auto;
  }
  
  .stats-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .quick-actions {
    grid-template-columns: 1fr;
  }
  
  .welcome-card {
    padding: 24px;
  }
  
  .welcome-card .card-title {
    font-size: 24px;
  }
}

@media (max-width: 480px) {
  .dashboard-step {
    padding: 20px;
  }
  
  .step-number {
    width: 40px;
    height: 40px;
    font-size: 16px;
  }
  
  .step-title {
    font-size: 16px;
  }
  
  .stat-number {
    font-size: 28px;
  }
}

.nav-link i,
.user-menu .dropdown-item i,
.btn i,
.quick-action-btn i {
  color: #fff !important;
}

/* Sidebar Navigation Icons - Force White */
.sidebar .nav-link i,
.sidebar .nav-item i,
.sidebar i {
  color: #fff !important;
}

.nav-link i {
  width: 20px;
  margin-right: 12px;
  font-size: 16px;
  color: #fff !important;
}

.nav-link:hover i,
.nav-link.active i,
.nav-link:focus i {
  color: #fff !important;
}

/* Ensure all sidebar icons are white */
.sidebar .fa,
.sidebar .fas,
.sidebar .far,
.sidebar .fal,
.sidebar .fab {
  color: #fff !important;
}

.sidebar .nav-link:hover .fa,
.sidebar .nav-link:hover .fas,
.sidebar .nav-link:hover .far,
.sidebar .nav-link:hover .fal,
.sidebar .nav-link:hover .fab,
.sidebar .nav-link.active .fa,
.sidebar .nav-link.active .fas,
.sidebar .nav-link.active .far,
.sidebar .nav-link.active .fal,
.sidebar .nav-link.active .fab {
  color: #fff !important;
}

/* Global Icon Styling - All Icons White */
i, .fa, .fas, .far, .fal, .fab {
  color: #fff !important;
}

/* Page Title Icons */
.page-title i,
.card-title i,
h1 i, h2 i, h3 i, h4 i, h5 i, h6 i {
  color: #fff !important;
}

/* Button Icons */
.btn i,
.btn-primary i,
.btn-secondary i,
.btn-success i,
.btn-warning i,
.btn-danger i,
.btn-info i {
  color: #fff !important;
}

/* Form Label Icons */
.control-label i,
.form-label i,
label i {
  color: #fff !important;
}

/* Input Group Icons */
.input-group-addon i {
  color: #fff !important;
}

/* Navigation Icons */
.nav-link i,
.nav-item i,
.sidebar i {
  color: #fff !important;
}

/* Table Action Icons */
.table-actions i,
.btn-edit i,
.btn-delete i,
.btn-view i {
  color: #fff !important;
}

/* Status Badge Icons */
.status-badge i {
  color: #fff !important;
}

/* Dropdown Icons */
.dropdown-item i,
.user-menu .dropdown-item i {
  color: #fff !important;
}

/* Quick Action Icons */
.quick-action-btn i {
  color: #fff !important;
}

/* Sidebar Section Icons */
.sidebar .nav-link i,
.sidebar .nav-item i,
.sidebar i {
  color: #fff !important;
}

.sidebar .nav-link:hover i,
.sidebar .nav-link.active i,
.sidebar .nav-link:focus i {
  color: #fff !important;
}

/* Ensure all sidebar icons are white */
.sidebar .fa,
.sidebar .fas,
.sidebar .far,
.sidebar .fal,
.sidebar .fab {
  color: #fff !important;
}

.sidebar .nav-link:hover .fa,
.sidebar .nav-link:hover .fas,
.sidebar .nav-link:hover .far,
.sidebar .nav-link:hover .fal,
.sidebar .nav-link:hover .fab,
.sidebar .nav-link.active .fa,
.sidebar .nav-link.active .fas,
.sidebar .nav-link.active .far,
.sidebar .nav-link.active .fal,
.sidebar .nav-link.active .fab {
  color: #fff !important;
}

.table-actions .btn-report:hover {
  background: linear-gradient(135deg, #138496 0%, #1ea085 100%);
}

.table-actions .btn-screenshots:hover {
  background: linear-gradient(135deg, #5a32a3 0%, #d63384 100%);
}

.table-actions .btn-log:hover {
  background: linear-gradient(135deg, #e55a0c 0%, #e6a700 100%);
}

@media (max-width: 480px) {
  /* Reduce icon spacing in buttons and input groups */
  .table-actions .btn-report,
  .table-actions .btn-screenshots,
  .table-actions .btn-log,
  .table-actions .btn-edit,
  .table-actions .btn-delete {
    padding: 8px 8px;
    font-size: 13px;
    min-width: 0;
    white-space: nowrap;
    margin-right: 2px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
  }
  .table-actions .btn-report i,
  .table-actions .btn-screenshots i,
  .table-actions .btn-log i,
  .table-actions .btn-edit i,
  .table-actions .btn-delete i {
    margin-right: 4px;
    font-size: 15px;
  }
  .input-group {
    flex-wrap: nowrap !important;
    align-items: center;
  }
  .input-group-addon {
    padding: 6px 8px;
    font-size: 13px;
    min-width: 28px;
    max-width: 32px;
    white-space: nowrap;
  }
  .input-group-addon i {
    margin-right: 0;
    font-size: 15px;
  }
  .form-label {
    font-size: 13px;
    white-space: nowrap;
  }
  .form-control {
    font-size: 13px;
    padding: 8px 10px;
    min-width: 0;
    white-space: nowrap;
  }
  .input-group .form-control {
    min-width: 0;
    width: 1%;
    flex: 1 1 0%;
    white-space: nowrap;
  }
  /* Prevent input group from wrapping to two lines */
  .mb-3.col-md-6, .mb-3.col-md-12 {
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
  }
}
.sidebar-open .sidebar {
  transform: translateX(0%);
  z-index: 9999 !important;
}

.sidebar-toggle {
  z-index: 99999;
}

/* Package Information Card Styles */
.package-info-card {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  border: 1px solid #2a2a3e;
  margin-bottom: 24px;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  position: relative;
}

.package-info-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 50%, #51cf66 100%);
}

.package-info-card .card-header {
  background: linear-gradient(135deg, var(--secondary) 0%, #5f4e9f 100%);
  border-bottom: 1px solid #2a2a3e;
  padding: 20px 24px;
  position: relative;
}

.package-info-card .card-header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.1) 50%, transparent 100%);
}

.package-details {
  padding: 24px;
  position: relative;
}

.package-details::before {
  content: '';
  position: absolute;
  top: 0;
  left: 24px;
  right: 24px;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.1) 50%, transparent 100%);
}

.package-name {
  font-size: 28px;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 12px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  letter-spacing: -0.5px;
}

.package-description {
  color: #b8b8c8;
  font-size: 15px;
  margin-bottom: 24px;
  line-height: 1.6;
  font-weight: 400;
}

.campaign-usage {
  margin-top: 20px;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 8px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.usage-bar {
  width: 100%;
  height: 12px;
  background: rgba(42, 42, 62, 0.8);
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 12px;
  position: relative;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

.usage-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 100%);
  border-radius: 6px;
  transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  box-shadow: 0 2px 8px rgba(233, 27, 138, 0.3);
}

.usage-fill::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.2) 50%, transparent 100%);
  border-radius: 6px;
}

.usage-text {
  font-size: 15px;
  color: #ffffff;
  text-align: center;
  font-weight: 500;
  letter-spacing: 0.2px;
}

.usage-warning {
  color: #ff6b6b;
  font-weight: 700;
  text-shadow: 0 1px 2px rgba(255, 107, 107, 0.3);
  animation: pulse 2s infinite;
}

.usage-remaining {
  color: #51cf66;
  font-weight: 700;
  text-shadow: 0 1px 2px rgba(81, 207, 102, 0.3);
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
}

/* Package card hover effects */
.package-info-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.package-info-card:hover .usage-fill {
  box-shadow: 0 4px 12px rgba(233, 27, 138, 0.4);
}

/* Responsive design */
@media (max-width: 768px) {
  .package-info-card {
    margin-bottom: 20px;
    border-radius: 10px;
  }
  
  .package-details {
    padding: 20px;
  }
  
  .package-name {
    font-size: 24px;
  }
  
  .package-description {
    font-size: 14px;
  }
  
  .usage-text {
    font-size: 14px;
  }
  
  .campaign-usage {
    padding: 14px;
  }
  
  .usage-bar {
    height: 10px;
  }
}

@media (max-width: 480px) {
  .package-info-card .card-header {
    padding: 16px 20px;
  }
  
  .package-details {
    padding: 16px;
  }
  
  .package-name {
    font-size: 22px;
  }
  
  .package-description {
    font-size: 13px;
  }
  
  .usage-text {
    font-size: 13px;
  }
  
  .campaign-usage {
    padding: 12px;
  }
}

/* Admin-only field styling */
.admin-only-badge {
  background: linear-gradient(135deg, #ff6b6b 0%, #ee5a52 100%);
  color: #ffffff;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  margin-left: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 1px 3px rgba(255, 107, 107, 0.3);
}

.readonly-field {
  background-color: rgba(42, 42, 62, 0.8) !important;
  color: #b8b8c8 !important;
  cursor: not-allowed;
  border-color: #2a2a3e !important;
}

.readonly-field:focus {
  background-color: rgba(42, 42, 62, 0.8) !important;
  border-color: #2a2a3e !important;
  box-shadow: none !important;
}

.form-text {
  font-size: 12px;
  color: #b8b8c8;
  margin-top: 4px;
  font-style: italic;
}

.form-text i {
  margin-right: 4px;
  color: #ff6b6b;
}

/* Package limit styling */
.package-limit-badge {
  background: linear-gradient(135deg, #51cf66 0%, #40c057 100%);
  color: #ffffff;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  margin-left: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 1px 3px rgba(81, 207, 102, 0.3);
}

.package-restricted {
  border-color: #51cf66 !important;
}

.package-restricted:focus {
  border-color: #51cf66 !important;
  box-shadow: 0 0 0 0.2rem rgba(81, 207, 102, 0.25) !important;
}

.package-restricted:hover {
  border-color: #40c057 !important;
}

.mb-3 {
  margin-bottom: 20px;
}

/* Enhanced Error Alert Styling */
.error-alert {
  background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
  border: 2px solid #dc3545;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 24px;
  box-shadow: 0 8px 32px rgba(220, 53, 69, 0.3);
  position: relative;
  overflow: hidden;
}

.error-alert::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #ff6b6b 0%, #ee5a52 50%, #dc3545 100%);
}

.error-header {
  display: flex;
  align-items: center;
  margin-bottom: 16px;
  font-size: 20px;
  font-weight: 700;
  color: #ffffff;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.error-header i {
  margin-right: 12px;
  font-size: 24px;
  color: #ffffff;
  animation: pulse 2s infinite;
}

.error-message {
  font-size: 18px;
  font-weight: 600;
  color: #ffffff;
  line-height: 1.6;
  margin-bottom: 12px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  border-left: 4px solid #ffffff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.error-message:last-child {
  margin-bottom: 0;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.8;
    transform: scale(1.05);
  }
}

/* Responsive design for error alerts */
@media (max-width: 768px) {
  .error-alert {
    padding: 16px;
    margin-bottom: 20px;
  }
  
  .error-header {
    font-size: 18px;
  }
  
  .error-header i {
    font-size: 20px;
  }
  
  .error-message {
    font-size: 16px;
    padding: 10px 12px;
  }
}

@media (max-width: 480px) {
  .error-alert {
    padding: 12px;
  }
  
  .error-header {
    font-size: 16px;
  }
  
  .error-message {
    font-size: 14px;
    padding: 8px 10px;
  }
}

/* Modal Styles for Dark Theme */
.modal-content {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  border: 1px solid #2a2a3e;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  color: #ffffff;
}

.modal-header {
  background: linear-gradient(135deg, var(--secondary) 0%, #2a2a3e 100%);
  border-bottom: 1px solid #2a2a3e;
  border-radius: 12px 12px 0 0;
  padding: 20px 24px;
}

.modal-title {
  color: #ffffff;
  font-weight: 600;
  font-size: 18px;
  margin: 0;
}

.modal-header .close {
  color: #ffffff;
  opacity: 0.8;
  text-shadow: none;
  font-size: 24px;
  font-weight: 300;
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.modal-header .close:hover {
  opacity: 1;
  background: rgba(255, 255, 255, 0.1);
  transform: scale(1.1);
}

.modal-body {
  padding: 24px;
  background: transparent;
}

.modal-body .table {
  background: transparent;
  color: #ffffff;
}

.modal-body .table thead th {
  background: rgba(106, 76, 204, 0.1);
  color: #ffffff;
  border-bottom: 1px solid #2a2a3e;
  font-weight: 600;
  padding: 12px 16px;
}

.modal-body .table tbody td {
  background: transparent;
  color: #b8b8c8;
  border-bottom: 1px solid rgba(42, 42, 62, 0.5);
  padding: 12px 16px;
  vertical-align: middle;
}

.modal-body .table tbody tr:hover {
  background: rgba(106, 76, 204, 0.05);
}

.modal-body .table tbody tr:hover td {
  color: #ffffff;
}

.modal-body .btn {
  background: var(--primary);
  border: none;
  color: #ffffff;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.modal-body .btn:hover {
  background: #d4157a;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(233, 27, 138, 0.3);
}

.modal-backdrop {
  background-color: rgba(0, 0, 0, 0.6);
}

.modal-backdrop.show {
  opacity: 1;
}

/* Modal animation */
.modal.fade .modal-dialog {
  transform: scale(0.8);
  transition: transform 0.3s ease;
}

.modal.show .modal-dialog {
  transform: scale(1);
}

/* Responsive modal adjustments */
@media (max-width: 768px) {
  .modal-dialog {
    margin: 10px;
  }
  
  .modal-content {
    border-radius: 8px;
  }
  
  .modal-header {
    border-radius: 8px 8px 0 0;
    padding: 16px 20px;
  }
  
  .modal-body {
    padding: 16px 20px;
  }
  
  .modal-title {
    font-size: 16px;
  }
}

@media (max-width: 480px) {
  .modal-dialog {
    margin: 5px;
  }
  
  .modal-header {
    padding: 12px 16px;
  }
  
  .modal-body {
    padding: 12px 16px;
  }
  
  .modal-body .table thead th,
  .modal-body .table tbody td {
    padding: 8px 12px;
    font-size: 14px;
  }
}