:root {
  --primary: #6366f1;
  --primary-light: #818cf8;
  --secondary: #f43f5e;
  --success: #10b981;
  --warning: #f59e0b;
  --dark: #1e293b;
  --dark-light: #334155;
  --light: #f8fafc;
  --gray: #94a3b8;
  --gray-light: #e2e8f0;
  
  --sidebar-width: 280px;
  --header-height: 70px;
  --transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
:root {
  /* Premium Color Scheme */
  --bs-primary: #6366f1;
  --bs-primary-rgb: 99, 102, 241;
  --bs-primary-bg-subtle: #eef2ff;
  --bs-primary-border-subtle: #c7d2fe;
  
  --bs-secondary: #8b5cf6;
  --bs-secondary-rgb: 139, 92, 246;
  
  --bs-success: #10b981;
  --bs-success-rgb: 16, 185, 129;
  
  --bs-danger: #ef4444;
  --bs-danger-rgb: 239, 68, 68;
  
  --bs-warning: #f59e0b;
  --bs-warning-rgb: 245, 158, 11;
  
  --bs-info: #0ea5e9;
  --bs-info-rgb: 14, 165, 233;
  
  --bs-dark: #1e293b;
  --bs-dark-rgb: 30, 41, 59;
  
  --bs-light: #f8fafc;
  --bs-light-rgb: 248, 250, 252;
  
  /* Glass Morphism Effect */
  --glass-bg: rgba(255, 255, 255, 0.85);
  --glass-border: rgba(255, 255, 255, 0.2);
  --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.1);
  
  /* Body Colors */
  --bs-body-bg: #f1f5f9;
  --bs-body-color: #334155;
  --bs-heading-color: #0f172a;
  
  /* Border Colors */
  --bs-border-color: #e2e8f0;
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
  background-color: #f1f5f9;
  color: var(--dark);
  overflow-x: hidden;
}

/* Layout */
.dashboard {
  display: flex;
  min-height: 100vh;
}

/* Sidebar */
.sidebar {
  width: var(--sidebar-width);
  background: white;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.05);
  height: 100vh;
  position: fixed;
  transition: var(--transition);
  z-index: 100;
  border-right: 1px solid var(--gray-light);
}

.sidebar.collapsed {
  transform: translateX(-100%);
}

.sidebar-header {
  height: var(--header-height);
  display: flex;
  align-items: center;
  padding: 0 1.5rem;
  border-bottom: 1px solid var(--gray-light);
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-icon {
  width: 32px;
  height: 32px;
  background: var(--primary);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
}

.logo-text {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--dark);
}

.sidebar-menu {
  padding: 1.5rem;
  height: calc(100vh - var(--header-height));
  overflow-y: auto;
}

.sidebar-menu::-webkit-scrollbar {
  width: 5px;
}

.sidebar-menu::-webkit-scrollbar-track {
  background: transparent;
}

.sidebar-menu::-webkit-scrollbar-thumb {
  background-color: rgba(99, 102, 241, 0.3);
  border-radius: 10px;
}

.sidebar-menu::-webkit-scrollbar-thumb:hover {
  background-color: var(--primary);
}

.menu-title {
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--gray);
  font-weight: 600;
  margin-bottom: 1rem;
  letter-spacing: 0.5px;
}

.menu-list {
  list-style: none;
  margin-bottom: 2rem;
}

.menu-item {
  margin-bottom: 0.5rem;
}

.menu-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  color: var(--dark-light);
  text-decoration: none;
  transition: var(--transition);
}

.menu-link:hover, .menu-link.active {
  background: var(--primary-light);
  color: white;
}

.menu-link:hover .menu-icon, .menu-link.active .menu-icon {
  color: white;
}

.menu-icon {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray);
  transition: var(--transition);
}

.menu-text {
  font-size: 0.9rem;
  font-weight: 500;
}

/* Main Content */
.main {
  flex: 1;
  margin-left: var(--sidebar-width);
  transition: var(--transition);
  width: calc(100% - var(--sidebar-width));
}

.main.expanded {
  margin-left: 0;
  width: 100%;
}

/* Ensure content doesn't overflow */
.content {
  max-width: 100%;
  overflow-x: hidden;
}

/* Header */
.header {
  height: var(--header-height);
  background: white;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 0;
  z-index: 90;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.toggle-sidebar {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  color: var(--dark-light);
}

.toggle-sidebar:hover {
  background: var(--gray-light);
}

.search-bar {
  position: relative;
  width: 300px;
}

.search-bar input {
  width: 100%;
  padding: 0.75rem 1rem 0.75rem 2.5rem;
  border-radius: 8px;
  border: 1px solid var(--gray-light);
  outline: none;
  font-size: 0.9rem;
  transition: var(--transition);
}

.search-bar input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

.search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gray);
}

.header-right {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.header-action {
  position: relative;
  cursor: pointer;
  color: var(--dark-light);
  transition: var(--transition);
}

.header-action:hover {
  color: var(--primary);
}

.notification-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  width: 18px;
  height: 18px;
  background: var(--secondary);
  color: white;
  border-radius: 50%;
  font-size: 0.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.user-profile {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
}

.user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--gray-light);
}

.user-name {
  font-size: 0.9rem;
  font-weight: 500;
}

.user-role {
  font-size: 0.75rem;
  color: var(--gray);
}

/* Content */
.content {
  padding: 2rem;
}

.page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.page-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--dark);
}

.page-actions {
  display: flex;
  gap: 1rem;
}

.btn {
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  border: none;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
}

.btn-primary {
  background: var(--primary);
  color: white;
}

.btn-primary:hover {
  background: var(--primary-light);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.2);
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--gray-light);
  color: var(--dark-light);
}

.btn-outline:hover {
  background: var(--gray-light);
}

/* Stats Cards */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.stat-card {
  background: white;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  transition: var(--transition);
}

.stat-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
}

.stat-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.stat-title {
  font-size: 0.9rem;
  color: var(--gray);
  font-weight: 500;
}

.stat-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

.stat-icon.primary {
  background: var(--primary);
}

.stat-icon.success {
  background: var(--success);
}

.stat-icon.warning {
  background: var(--warning);
}

.stat-icon.danger {
  background: var(--secondary);
}

.stat-value {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.stat-change {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.85rem;
}

.stat-change.positive {
  color: var(--success);
}

.stat-change.negative {
  color: var(--secondary);
}

/* ========== CARDS ========== */
.card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  overflow: hidden;
  margin-bottom: 1.5rem;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
}

.card-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--gray-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: white;
}

.card-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--dark);
  margin: 0;
}

.card-actions {
  display: flex;
  gap: 0.5rem;
}

.card-action {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  color: var(--gray);
}

.card-action:hover {
  background: var(--gray-light);
  color: var(--dark);
}


/* ========== TABLES ========== */
.table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  min-width: 600px;
}

.table th {
  text-align: left;
  padding: 0.75rem 1rem;
  font-weight: 500;
  color: var(--gray);
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.5px;
  background: var(--light);
  border-bottom: 1px solid var(--gray-light);
}

.table td {
  padding: 1rem;
  border-bottom: 1px solid var(--gray-light);
  vertical-align: middle;
}

.table tr:last-child td {
  border-bottom: none;
}

.table tr:hover td {
  background: rgba(99, 102, 241, 0.02);
}

/* Table variants */
.table-striped tbody tr:nth-child(odd) {
  background: rgba(241, 245, 249, 0.5);
}

.table-hover tbody tr:hover {
  background: rgba(99, 102, 241, 0.05);
}

/* ========== PROGRESS BARS ========== */
.progress-container {
  width: 100%;
  margin: 1rem 0;
}

.progress-label {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
  font-size: 0.85rem;
}

.progress-label span:first-child {
  color: var(--dark-light);
}

.progress-label span:last-child {
  color: var(--gray);
  font-weight: 500;
}

.progress-bar {
  height: 8px;
  border-radius: 4px;
  background: var(--gray-light);
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 0.6s ease;
}

/* Progress bar colors */
.progress-primary .progress-fill {
  background: var(--primary);
}

.progress-success .progress-fill {
  background: var(--success);
}

.progress-warning .progress-fill {
  background: var(--warning);
}

.progress-danger .progress-fill {
  background: var(--secondary);
}

/* ========== CARD VARIANTS ========== */
.card-primary {
  border-top: 3px solid var(--primary);
}

.card-success {
  border-top: 3px solid var(--success);
}

.card-warning {
  border-top: 3px solid var(--warning);
}

.card-danger {
  border-top: 3px solid var(--secondary);
}

/* ========== COMPACT VERSIONS ========== */
.card-sm .card-header {
  padding: 1rem 1.25rem;
}

.card-sm .card-body {
  padding: 1rem 1.25rem;
}

.table-sm th,
.table-sm td {
  padding: 0.75rem;
}

.progress-sm {
  height: 6px;
}

/* ========== ALERT NOTIFICATION ========== */
.alert {
  padding: 1rem 1.5rem;
  border-radius: 8px;
  display: flex;
  align-items: center;
  margin-bottom: 1.5rem;
  border-left: 4px solid transparent;
  background: white;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.alert-warning {
  border-left-color: var(--warning); 
}

.alert-icon {
  font-size: 1.5rem;
  margin-right: 1rem;
  flex-shrink: 0;
}

.alert-warning .alert-icon {
  color: var(--warning);
}

.alert-content {
  flex-grow: 1;
}

.alert strong {
  display: block;
  font-weight: 600;
  margin-bottom: 0.25rem;
  color: var(--dark);
}

.alert div {
  font-size: 0.9rem;
  color: var(--dark-light);
}

.alert .btn {
  margin-left: auto;
  flex-shrink: 0;
  white-space: nowrap;
}

/* Button specific to alert */
.alert .btn-warning {
  background: var(--warning);
  color: white;
  border: none;
  padding: 0.5rem 1.25rem;
  font-size: 0.9rem;
}

.alert .btn-warning:hover {
  background: #f97316;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .alert {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .alert .btn {
    margin-left: 0;
    margin-top: 1rem;
    width: 100%;
  }
}

/* ========== SETTINGS PAGE STYLES ========== */
.container.py-4 {
  padding-top: 2rem;
  padding-bottom: 2rem;
}

/* Page Header */
.d-flex.justify-content-between.align-items-center.mb-4 {
  margin-bottom: 2rem;
}

.page-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--dark);
  margin: 0;
}

/* Breadcrumb */
.breadcrumb {
  background: transparent;
  padding: 0;
  margin: 0;
  font-size: 0.85rem;
}

.breadcrumb-item {
  color: var(--gray);
}

.breadcrumb-item a {
  color: var(--primary);
  text-decoration: none;
  transition: var(--transition);
}

.breadcrumb-item a:hover {
  color: var(--primary-light);
  text-decoration: underline;
}

.breadcrumb-item.active {
  color: var(--dark-light);
}

.breadcrumb-item + .breadcrumb-item::before {
  content: "›";
  color: var(--gray);
  padding: 0 0.5rem;
}

/* Alert */


.alert-success {
  border-left-color: var(--success);
  color: var(--dark);
}

/* Card */
.card {
  border: none;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.card-body {
  padding: 2rem;
}

/* Form Styles */
h5.border-bottom {
  font-size: 1.1rem;
  font-weight: 600;
  padding-bottom: 0.75rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--gray-light);
}

.form-label {
  font-weight: 500;
  color: var(--dark-light);
  margin-bottom: 0.5rem;
  display: block;
}

.form-control {
  border: 1px solid var(--gray-light);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  width: 100%;
  transition: var(--transition);
  background: white;
}

.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
  outline: none;
}

.form-text {
  font-size: 0.8rem;
  color: var(--gray);
  margin-top: 0.25rem;
}

/* Form Switch */
.form-check {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.form-check-input {
  width: 48px;
  height: 24px;
  border-radius: 12px;
  background-color: var(--gray-light);
  border: none;
  position: relative;
  appearance: none;
  cursor: pointer;
  transition: var(--transition);
}

.form-check-input:checked {
  background-color: var(--primary);
}

.form-check-input::after {
  content: "";
  position: absolute;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: white;
  top: 2px;
  left: 2px;
  transition: var(--transition);
}

.form-check-input:checked::after {
  left: calc(100% - 22px);
}

.form-check-label {
  font-weight: 500;
  color: var(--dark-light);
  cursor: pointer;
}

/* Submit Button */
.btn-primary {
  background: var(--primary);
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
}

.btn-primary:hover {
  background: var(--primary-light);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.2);
}

.border-top {
  border-top: 1px solid var(--gray-light);
  padding-top: 1.5rem;
  margin-top: 1rem;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .card-body {
      padding: 1.5rem;
  }
  
  .d-flex.justify-content-between.align-items-center.mb-4 {
      flex-direction: column;
      align-items: flex-start;
      gap: 1rem;
  }
  
  .breadcrumb {
      font-size: 0.8rem;
  }
}

/* ========== SUBSCRIPTION SETTINGS PAGE ========== */
/* Inherits all base styles from previous settings page */

/* Input Group Enhancements */
.input-group {
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--gray-light);
  transition: var(--transition);
}

.input-group:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

.input-group-text {
  background-color: var(--light);
  color: var(--dark-light);
  font-weight: 500;
  border: none;
  padding: 0 1rem;
}

.input-group .form-control {
  border: none;
  box-shadow: none;
  padding-left: 1rem;
}

/* Tier Section Headers */
h5.border-bottom {
  position: relative;
  padding-left: 1rem;
}

h5.border-bottom::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  border-radius: 2px;
}

/* Free Tier Styling */
.col-md-6:first-child h5.border-bottom::before {
  background: var(--primary-light);
}

/* Premium Tier Styling */
.col-md-6:last-child h5.border-bottom::before {
  background: var(--warning);
}

/* Feature Toggles Section */
.col-md-6:nth-child(1) h5.border-bottom::before {
  background: var(--success);
}

/* Expiration Settings Section */
.col-md-6:nth-child(2) h5.border-bottom::before {
  background: var(--secondary);
}

/* Enhanced Form Switch */
.form-switch {
  padding-left: 3.5rem;
}

.form-switch .form-check-input {
  width: 2.75rem;
  height: 1.5rem;
  margin-left: -3.5rem;
  background-image: none;
  background-color: var(--gray-light);
  border-color: var(--gray-light);
}

.form-switch .form-check-input:checked {
  background-color: var(--primary);
  border-color: var(--primary);
}

.form-switch .form-check-input:focus {
  box-shadow: 0 0 0 0.25rem rgba(99, 102, 241, 0.25);
}

/* Price Input Styling */
.input-group.price-input .input-group-text {
  background-color: rgba(245, 158, 11, 0.1);
  color: var(--warning);
  font-weight: 600;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .row > .col-md-6 {
      margin-bottom: 2rem;
  }
  
  .row:last-child > .col-md-6:last-child {
      margin-bottom: 0;
  }
  
  .input-group-text {
      padding: 0 0.75rem;
  }
}

/* Save Button Container */
.border-top {
  display: flex;
  justify-content: flex-end;
}

/* Premium Feature Badges (optional) */
.premium-badge {
  background: var(--warning);
  color: white;
  font-size: 0.7rem;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  margin-left: 0.5rem;
  font-weight: 600;
}
.mb-3{
  margin-bottom: 0.5rem;
}

a{
  text-decoration: none;
}

ol, ul {
   padding-left: 0rem;  
}


.card-header {
  border-top-left-radius: 12px !important;
  border-top-right-radius: 12px !important;
}


.form-check-input[type=checkbox]{
  --bs-form-check-bg-image: auto;
  border-radius: 15px;
}
.form-check-input:checked[type=checkbox] 
{  --bs-form-check-bg-image: auto;
  border-radius: 15px;}