:root {
  --primary-color: #1976d2;
  --primary-dark: #125ca0;
  --accent-color: #23a6f2;
  --bg-color: #f5f5f5;
  --surface-color: #ffffff;
  --text-color: #424242;
  --muted-text: #6f7d8c;
  --border-color: #e0e6ed;
  --success-color: #2e7d32;
  --warning-color: #f9a825;
  --danger-color: #c62828;
  --shadow-sm: 0 4px 12px rgba(25, 118, 210, 0.08);
  --shadow-lg: 0 12px 32px rgba(25, 118, 210, 0.12);
  --radius-sm: 12px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --font-family: "Inter", "Segoe UI", -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
}

body {
  font-family: var(--font-family);
  color: var(--text-color);
  background-color: var(--bg-color);
  line-height: 1.6;
  min-height: 100vh;
}

a {
  color: var(--primary-color);
  text-decoration: none;
}

a:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

.btn-primary,
.btn-outline-primary:hover {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  color: #ffffff;
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover,
.btn-outline-primary:hover {
  background-color: var(--primary-dark);
  border-color: var(--primary-dark);
  color: #ffffff;
}

.btn-outline-primary {
  border-color: var(--primary-color);
  color: var(--primary-color);
}

.btn-light {
  border: 1px solid var(--border-color);
  color: var(--text-color);
}

.badge-soft {
  background-color: rgba(25, 118, 210, 0.08);
  color: var(--primary-color);
  border-radius: 999px;
}

.card {
  border: none;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  background-color: var(--surface-color);
}

.card-header {
  background-color: transparent;
  border-bottom: 1px solid rgba(224, 230, 237, 0.7);
  padding-bottom: 1rem;
}

.card-title {
  color: var(--text-color);
  font-weight: 600;
}

.card-subtitle {
  color: var(--muted-text);
}

.card-metric {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.metric-value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary-color);
}

.metric-label {
  color: var(--muted-text);
  font-weight: 500;
}

.metric-trend {
  font-weight: 600;
  font-size: 0.85rem;
}

.metric-trend.up {
  color: var(--success-color);
}

.metric-trend.down {
  color: var(--danger-color);
}

.app-shell {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: 100vh;
  transition: grid-template-columns 0.3s ease;
}

.app-shell.collapsed {
  grid-template-columns: 88px 1fr;
}

.sidebar {
  background-color: #ffffff;
  box-shadow: 4px 0 18px rgba(15, 23, 42, 0.08);
  padding: 1.5rem 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  transition: width 0.3s ease, padding 0.3s ease;
  width: 260px;
  z-index: 100;
}

.sidebar-nav-wrapper {
  flex: 1;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.app-shell.collapsed .sidebar {
  width: 88px;
  padding: 1.5rem 0.75rem;
}

/* Sidebar hover expand effect */
.app-shell.collapsed .sidebar:hover {
  width: 280px;
  padding: 1.5rem 1.2rem;
  box-shadow: 4px 0 24px rgba(15, 23, 42, 0.15);
  z-index: 1000;
}

/* Content wrapper adjustment handled by grid, no margin needed */

/* Smooth transitions for sidebar elements */
.sidebar * {
  transition: opacity 0.3s ease, transform 0.3s ease, width 0.3s ease;
}

/* Tooltip for collapsed sidebar items */
.app-shell.collapsed .nav-link {
  position: relative;
}

.app-shell.collapsed .nav-link::before {
  content: attr(data-tooltip);
  position: absolute;
  left: 100%;
  top: 50%;
  transform: translateY(-50%);
  background-color: #333;
  color: #fff;
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  font-size: 0.75rem;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  margin-left: 0.5rem;
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 1001;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.app-shell.collapsed .nav-link:hover::before {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

.app-shell.collapsed .sidebar:hover .nav-link::before {
  display: none;
}

.sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 42px;
  transition: all 0.3s ease;
}

.app-shell.collapsed .sidebar-header {
  justify-content: center;
}

.sidebar .logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--primary-color);
  transition: all 0.3s ease;
  white-space: nowrap;
}

.app-shell.collapsed .sidebar .logo {
  justify-content: center;
  gap: 0;
}

.sidebar .logo span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  color: #ffffff;
  font-weight: 700;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  overflow-y: auto;
  overflow-x: hidden;
  flex: 1;
  padding-right: 0.5rem;
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 0, 0, 0.2) transparent;
}

.sidebar-nav::-webkit-scrollbar {
  width: 6px;
}

.sidebar-nav::-webkit-scrollbar-track {
  background: transparent;
}

.sidebar-nav::-webkit-scrollbar-thumb {
  background-color: rgba(0, 0, 0, 0.2);
  border-radius: 3px;
}

.sidebar-nav::-webkit-scrollbar-thumb:hover {
  background-color: rgba(0, 0, 0, 0.3);
}

.nav-section {
  color: var(--muted-text);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0.75rem 0 0.25rem 0.75rem;
  opacity: 1;
  transition: opacity 0.3s ease, transform 0.3s ease;
  white-space: nowrap;
  overflow: hidden;
  cursor: pointer;
  user-select: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-right: 0.5rem;
}

.nav-section:hover {
  color: var(--primary-color);
}

.nav-section-toggle {
  font-size: 0.7rem;
  transition: transform 0.3s ease;
  opacity: 0.6;
}

.nav-section.collapsed .nav-section-toggle {
  transform: rotate(-90deg);
}

.nav-section-group {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.nav-section-links {
  max-height: 1000px;
  overflow: hidden;
  transition: max-height 0.3s ease, opacity 0.3s ease;
  opacity: 1;
}

.nav-section.collapsed + .nav-section-links {
  max-height: 0;
  opacity: 0;
  margin: 0;
}

.app-shell.collapsed .nav-section {
  opacity: 0;
  height: 0;
  margin: 0;
  transform: translateX(-20px);
}

.app-shell.collapsed .sidebar:hover .nav-section {
  opacity: 1;
  height: auto;
  margin: 0.75rem 0 0.25rem 0.75rem;
  transform: translateX(0);
}

.nav-link {
  border-radius: var(--radius-sm);
  color: var(--text-color);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  transition: all 0.3s ease;
  font-weight: 500;
  position: relative;
  white-space: nowrap;
  overflow: hidden;
}

.app-shell.collapsed .nav-link {
  justify-content: center;
  padding: 0.75rem;
  gap: 0;
}

.app-shell.collapsed .sidebar:hover .nav-link {
  justify-content: flex-start;
  padding: 0.75rem 1rem;
  gap: 0.75rem;
}

.nav-link i {
  font-size: 1.1rem;
  width: 20px;
  text-align: center;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.app-shell.collapsed .nav-link i {
  width: auto;
  margin: 0;
}

.nav-link span:not(.badge) {
  opacity: 1;
  transform: translateX(0);
  transition: opacity 0.3s ease, transform 0.3s ease;
  white-space: nowrap;
}

.app-shell.collapsed .nav-link span:not(.badge) {
  opacity: 0;
  transform: translateX(-10px);
  width: 0;
  overflow: hidden;
}

.app-shell.collapsed .sidebar:hover .nav-link span:not(.badge) {
  opacity: 1;
  transform: translateX(0);
  width: auto;
}

.nav-link.active,
.nav-link:hover {
  background: rgba(25, 118, 210, 0.12);
  color: var(--primary-color);
}


.nav-link .badge {
  margin-left: auto;
  font-size: 0.7rem;
  padding: 0.35rem 0.6rem;
  border-radius: 999px;
  opacity: 1;
  transform: scale(1);
  transition: opacity 0.3s ease, transform 0.3s ease;
  flex-shrink: 0;
}

.app-shell.collapsed .nav-link .badge {
  opacity: 0;
  transform: scale(0);
  width: 0;
  margin: 0;
  padding: 0;
}

.app-shell.collapsed .sidebar:hover .nav-link .badge {
  opacity: 1;
  transform: scale(1);
  width: auto;
  margin-left: auto;
  padding: 0.35rem 0.6rem;
}

.sidebar-footer {
  margin-top: auto;
  font-size: 0.85rem;
  color: var(--muted-text);
  background-color: rgba(25, 118, 210, 0.08);
  padding: 1rem;
  border-radius: var(--radius-md);
  transition: all 0.3s ease;
  overflow: hidden;
}

.app-shell.collapsed .sidebar-footer {
  padding: 1rem 0.5rem;
}

.app-shell.collapsed .sidebar:hover .sidebar-footer {
  padding: 1rem;
}

.sidebar-footer .d-flex {
  transition: all 0.3s ease;
}

.app-shell.collapsed .sidebar-footer .d-flex {
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.app-shell.collapsed .sidebar:hover .sidebar-footer .d-flex {
  flex-direction: row;
  align-items: center;
  text-align: left;
}

.sidebar-footer .flex-grow-1 {
  opacity: 1;
  transform: translateX(0);
  transition: opacity 0.3s ease, transform 0.3s ease;
  overflow: hidden;
}

.app-shell.collapsed .sidebar-footer .flex-grow-1 {
  opacity: 0;
  transform: translateX(-10px);
  width: 0;
  height: 0;
  overflow: hidden;
}

.app-shell.collapsed .sidebar:hover .sidebar-footer .flex-grow-1 {
  opacity: 1;
  transform: translateX(0);
  width: auto;
  height: auto;
}

.sidebar-footer .btn {
  transition: all 0.3s ease;
  white-space: nowrap;
}

.app-shell.collapsed .sidebar-footer .btn {
  padding: 0.5rem;
  width: 100%;
  justify-content: center;
}

.app-shell.collapsed .sidebar-footer .btn span,
.app-shell.collapsed .sidebar-footer .btn .btn-text {
  opacity: 0;
  width: 0;
  overflow: hidden;
}

.app-shell.collapsed .sidebar:hover .sidebar-footer .btn {
  padding: 0.5rem 1rem;
  width: auto;
}

.app-shell.collapsed .sidebar:hover .sidebar-footer .btn span,
.app-shell.collapsed .sidebar:hover .sidebar-footer .btn .btn-text {
  opacity: 1;
  width: auto;
}

.content-wrapper {
  background-color: var(--bg-color);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: transparent;
  padding: 0.75rem 0;
  margin-bottom: 1rem;
}

.topbar .search-bar {
  border-radius: 999px;
  border: 1px solid var(--border-color);
  padding: 0.5rem 1rem;
  background-color: #ffffff;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 320px;
}

.topbar .search-bar input {
  border: none;
  outline: none;
  width: 100%;
}

.topbar .topbar-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: rgba(25, 118, 210, 0.15);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  color: var(--primary-color);
}

.status-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: var(--success-color);
}

.breadcrumb {
  margin-bottom: 1.25rem;
  color: var(--muted-text);
  font-size: 0.85rem;
}

.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

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

.table {
  border-collapse: separate;
  border-spacing: 0 0.75rem;
}

.table thead th {
  font-weight: 600;
  color: var(--muted-text);
  border: none;
}

.table tbody tr {
  background-color: #ffffff;
  box-shadow: var(--shadow-sm);
  border-radius: var(--radius-sm);
  transition: transform 0.15s ease, box-shadow 0.2s ease;
}

.table tbody tr:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.table tbody td {
  border: none;
  padding: 1rem;
  vertical-align: middle;
}

.table tbody td:first-child {
  border-top-left-radius: var(--radius-sm);
  border-bottom-left-radius: var(--radius-sm);
}

.table tbody td:last-child {
  border-top-right-radius: var(--radius-sm);
  border-bottom-right-radius: var(--radius-sm);
}

.table-actions {
  display: flex;
  gap: 0.5rem;
}

.table-actions .btn {
  border-radius: 999px;
  padding: 0.35rem 0.7rem;
}

.pagination {
  gap: 0.5rem;
}

.pagination .page-link {
  border-radius: 10px;
  border: none;
  color: var(--text-color);
  font-weight: 500;
  box-shadow: none;
}

.pagination .page-item.active .page-link {
  background-color: var(--primary-color);
  color: #ffffff;
}

.modal-content {
  border-radius: var(--radius-md);
  border: none;
  box-shadow: var(--shadow-lg);
}

.modal-header {
  border-bottom: 1px solid rgba(224, 230, 237, 0.7);
}

.modal-footer {
  border-top: 1px solid rgba(224, 230, 237, 0.7);
}

.stepper {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.step {
  flex: 1;
  position: relative;
  text-align: center;
  padding: 1rem;
  border-radius: var(--radius-sm);
  background-color: rgba(25, 118, 210, 0.08);
  color: var(--muted-text);
  font-weight: 500;
}

.step.active {
  background-color: var(--primary-color);
  color: #ffffff;
}

.step.completed {
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  color: #ffffff;
}

.step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -0.5rem;
  transform: translateY(-50%);
  width: 1rem;
  height: 4px;
  background: linear-gradient(90deg, rgba(25, 118, 210, 0.3), rgba(25, 118, 210, 0.05));
}

.timeline {
  position: relative;
  padding-left: 1.5rem;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0.6rem;
  width: 2px;
  height: 100%;
  background-color: rgba(25, 118, 210, 0.2);
}

.timeline-item {
  position: relative;
  padding: 0.75rem 1rem;
  background-color: #ffffff;
  border-radius: var(--radius-sm);
  margin-bottom: 0.75rem;
  box-shadow: var(--shadow-sm);
}

.timeline-item::before {
  content: "";
  position: absolute;
  top: 1rem;
  left: -0.9rem;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: var(--primary-color);
  border: 2px solid #ffffff;
  box-shadow: var(--shadow-sm);
}

.notification-card {
  border-left: 4px solid var(--primary-color);
  padding: 1rem;
  border-radius: var(--radius-md);
  background-color: #ffffff;
  margin-bottom: 0.75rem;
}

.notification-card.warning {
  border-color: var(--warning-color);
}

.notification-card.danger {
  border-color: var(--danger-color);
}

.call-console {
  background: linear-gradient(135deg, #1976d2 0%, #42a5f5 100%);
  border-radius: var(--radius-lg);
  color: #ffffff;
  padding: 2rem;
  box-shadow: var(--shadow-lg);
}

.dialer-input {
  font-size: 2rem;
  font-weight: 600;
  text-align: center;
  border-radius: var(--radius-sm);
  border: none;
  padding: 1rem;
  margin-bottom: 1rem;
  width: 100%;
  box-shadow: inset 0 4px 15px rgba(0, 0, 0, 0.15);
}

.dialer-pad {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}

.dialer-pad button {
  border: none;
  border-radius: var(--radius-sm);
  padding: 1rem;
  font-size: 1.25rem;
  font-weight: 600;
  background-color: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  transition: all 0.2s ease;
}

.dialer-pad button:hover {
  background-color: rgba(255, 255, 255, 0.3);
}

.call-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 1.5rem;
}

.call-actions button {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.btn-call {
  background-color: #43a047;
}

.btn-end {
  background-color: #e53935;
}

.btn-hold {
  background-color: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

.progress-card {
  background-color: #ffffff;
  border-radius: var(--radius-md);
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
}

.progress-card .progress {
  height: 10px;
  border-radius: 999px;
  background-color: rgba(25, 118, 210, 0.15);
}

.progress-card .progress-bar {
  border-radius: 999px;
  background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
}

.wallet-card {
  background: linear-gradient(135deg, rgba(25, 118, 210, 0.9), rgba(66, 165, 245, 0.95));
  color: #ffffff;
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-lg);
}

.wallet-card .balance {
  font-size: 2rem;
  font-weight: 700;
}

.wallet-card .subtext {
  color: rgba(255, 255, 255, 0.8);
}

.filter-chip {
  border-radius: 999px;
  background-color: rgba(25, 118, 210, 0.12);
  color: var(--primary-color);
  padding: 0.35rem 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 500;
  border: none;
}

.kanban-board {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
}

.kanban-column {
  background-color: #ffffff;
  border-radius: var(--radius-md);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  box-shadow: var(--shadow-sm);
}

.kanban-column h6 {
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.kanban-card {
  background-color: rgba(25, 118, 210, 0.08);
  border-radius: var(--radius-sm);
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.avatar-group {
  display: flex;
  align-items: center;
}

.avatar-group .avatar {
  width: 36px;
  height: 36px;
  margin-left: -12px;
  border: 2px solid #ffffff;
}

.avatar-group .avatar:first-child {
  margin-left: 0;
}

.tag {
  background-color: rgba(25, 118, 210, 0.08);
  color: var(--primary-color);
  border-radius: 999px;
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 500;
}

.badge-status {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 600;
}

.badge-status::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.badge-status.live::before {
  background-color: var(--success-color);
}

.badge-status.paused::before {
  background-color: var(--warning-color);
}

.badge-status.ended::before {
  background-color: var(--danger-color);
}

/* Chart Container Styles */
.chart-container {
  position: relative;
  height: 300px;
  max-height: 300px;
  min-height: 250px;
  width: 100%;
  overflow: hidden;
}

.chart-container canvas {
  max-height: 100% !important;
}

.chart-card {
  height: 100%;
}

.chart-card .card-body {
  position: relative;
  min-height: 300px;
}

.chart-card canvas {
  max-height: 100% !important;
  height: 100% !important;
}

.table-responsive {
  border-radius: var(--radius-md);
}

.table-responsive::-webkit-scrollbar {
  height: 6px;
}

.table-responsive::-webkit-scrollbar-thumb {
  background-color: rgba(25, 118, 210, 0.2);
  border-radius: 999px;
}

.form-control,
.form-select {
  border-radius: 12px;
  border: 1px solid var(--border-color);
  padding: 0.6rem 0.75rem;
}

.form-control:focus,
.form-select:focus {
  box-shadow: 0 0 0 0.15rem rgba(25, 118, 210, 0.2);
  border-color: var(--primary-color);
}

.input-group-text {
  border-radius: 12px 0 0 12px;
  border: 1px solid var(--border-color);
  background-color: rgba(25, 118, 210, 0.08);
}

.table-search {
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  padding: 0.5rem 0.75rem;
  background-color: #ffffff;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.table-search input {
  border: none;
  outline: none;
  width: 100%;
}

.pill-tabs {
  background-color: rgba(25, 118, 210, 0.08);
  border-radius: 999px;
  padding: 0.3rem;
  display: inline-flex;
  gap: 0.35rem;
}

.pill-tabs .btn {
  border-radius: 999px;
  border: none;
  padding: 0.4rem 1rem;
  color: var(--muted-text);
  font-weight: 500;
}

.pill-tabs .btn.active {
  background-color: #ffffff;
  color: var(--primary-color);
  box-shadow: var(--shadow-sm);
}

.notification-bell {
  position: relative;
  font-size: 1.25rem;
}

.notification-bell::after {
  content: attr(data-count);
  position: absolute;
  top: -6px;
  right: -8px;
  background-color: var(--danger-color);
  color: #ffffff;
  border-radius: 999px;
  font-size: 0.65rem;
  padding: 0.15rem 0.35rem;
  min-width: 16px;
  text-align: center;
}

.wallet-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.wallet-cta button {
  flex: 1;
  min-width: 120px;
}

.skeleton {
  background: linear-gradient(90deg, rgba(224, 230, 237, 0.6), rgba(224, 230, 237, 0.3), rgba(224, 230, 237, 0.6));
  background-size: 400% 100%;
  animation: shimmer 1.4s ease infinite;
  border-radius: 12px;
}

@keyframes shimmer {
  0% {
    background-position: 100% 0;
  }
  100% {
    background-position: -100% 0;
  }
}

.footer {
  margin-top: auto;
  padding: 2rem 0 0;
  color: var(--muted-text);
  font-size: 0.85rem;
}

.footer a {
  color: inherit;
}

.light-chip {
  background-color: rgba(255, 255, 255, 0.16);
  color: #ffffff;
  border-radius: 999px;
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 500;
}

.timeline-mini {
  list-style: none;
  padding-left: 0;
  margin-bottom: 0;
}

.timeline-mini li {
  display: flex;
  gap: 0.75rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(224, 230, 237, 0.5);
}

.timeline-mini li:last-child {
  border-bottom: none;
}

.timeline-mini .icon {
  width: 32px;
  height: 32px;
  border-radius: 12px;
  background-color: rgba(25, 118, 210, 0.12);
  color: var(--primary-color);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.timeline-mini .content {
  flex: 1;
}

.timeline-mini .time {
  font-size: 0.75rem;
  color: var(--muted-text);
}

.badge-inline {
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
}

.badge-inline.success {
  background-color: rgba(46, 125, 50, 0.15);
  color: var(--success-color);
}

.badge-inline.warning {
  background-color: rgba(249, 168, 37, 0.15);
  color: var(--warning-color);
}

.badge-inline.danger {
  background-color: rgba(198, 40, 40, 0.15);
  color: var(--danger-color);
}

.dropdown-menu {
  border-radius: var(--radius-md);
  border: none;
  box-shadow: var(--shadow-lg);
  padding: 0.75rem 0;
}

.dropdown-item {
  border-radius: 8px;
  color: var(--text-color);
  padding: 0.5rem 1.25rem;
  font-weight: 500;
}

.dropdown-item:hover {
  background-color: rgba(25, 118, 210, 0.08);
  color: var(--primary-color);
}

.dropdown-header {
  color: var(--muted-text);
}

.toggle-switch {
  position: relative;
  width: 56px;
  height: 28px;
  display: inline-block;
}

.toggle-switch input {
  display: none;
}

.toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(25, 118, 210, 0.24);
  transition: 0.3s;
  border-radius: 999px;
}

.toggle-slider::before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 4px;
  bottom: 4px;
  background-color: #ffffff;
  transition: 0.3s;
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.2);
}

.toggle-switch input:checked + .toggle-slider {
  background-color: var(--primary-color);
}

.toggle-switch input:checked + .toggle-slider::before {
  transform: translateX(28px);
}

.lead-card {
  background-color: #ffffff;
  border-radius: var(--radius-md);
  padding: 1rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  gap: 1rem;
  align-items: center;
}

.lead-card .lead-info {
  flex: 1;
}

.lead-card .lead-tags {
  display: flex;
  gap: 0.5rem;
}

.call-status {
  font-size: 0.85rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.75);
}

.waveform-placeholder {
  height: 48px;
  background: repeating-linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.25),
    rgba(255, 255, 255, 0.25) 4px,
    rgba(255, 255, 255, 0.15) 4px,
    rgba(255, 255, 255, 0.15) 8px
  );
  border-radius: var(--radius-sm);
  margin-top: 1rem;
}

.chat-card {
  background-color: #ffffff;
  border-radius: var(--radius-md);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.chat-message {
  display: flex;
  gap: 0.75rem;
}

.chat-message .bubble {
  background-color: rgba(25, 118, 210, 0.08);
  border-radius: 16px;
  padding: 0.75rem 1rem;
  max-width: 75%;
}

.chat-message.self .bubble {
  background-color: var(--primary-color);
  color: #ffffff;
  margin-left: auto;
}

.empty-state {
  background-color: #ffffff;
  border-radius: var(--radius-md);
  padding: 2.5rem;
  text-align: center;
  color: var(--muted-text);
  box-shadow: var(--shadow-sm);
}

.empty-state i {
  display: inline-flex;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  align-items: center;
  justify-content: center;
  background-color: rgba(25, 118, 210, 0.12);
  color: var(--primary-color);
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.data-summary {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.data-summary .icon {
  display: inline-flex;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background-color: rgba(25, 118, 210, 0.12);
  color: var(--primary-color);
  font-size: 1.2rem;
}

.filter-sidebar {
  background-color: #ffffff;
  border-radius: var(--radius-md);
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
  min-width: 260px;
}

.filter-sidebar h6 {
  font-weight: 600;
  margin-bottom: 1rem;
}

.list-group {
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.list-group-item {
  border: none;
  padding: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.list-group-item + .list-group-item {
  border-top: 1px solid rgba(224, 230, 237, 0.7);
}

.list-group-item:hover {
  background-color: rgba(25, 118, 210, 0.08);
}

.table-minimal {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(224, 230, 237, 0.6);
}

.table-minimal th,
.table-minimal td {
  border: none;
  padding: 0.85rem 1rem;
}

.table-minimal thead {
  background-color: rgba(25, 118, 210, 0.08);
  color: var(--primary-color);
}

.responsive-grid {
  display: grid;
  gap: 1.25rem;
}

.responsive-grid.two {
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.responsive-grid.three {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.responsive-grid.four {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.stats-pill {
  background-color: rgba(25, 118, 210, 0.1);
  color: var(--primary-color);
  border-radius: 999px;
  padding: 0.25rem 0.75rem;
  font-weight: 600;
  font-size: 0.8rem;
}

.table-nowrap td,
.table-nowrap th {
  white-space: nowrap;
}

.action-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background-color: rgba(25, 118, 210, 0.12);
  color: var(--primary-color);
}

.action-icon:hover {
  background-color: var(--primary-color);
  color: #ffffff;
}

.stepper-content {
  background-color: #ffffff;
  border-radius: var(--radius-md);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  margin-top: 1.25rem;
}

.wizard-footer {
  display: flex;
  justify-content: space-between;
  margin-top: 1.5rem;
}

.sticky-toolbar {
  position: sticky;
  top: 74px;
  z-index: 9;
  background-color: rgba(245, 245, 245, 0.85);
  backdrop-filter: blur(6px);
  border-radius: var(--radius-md);
  padding: 0.75rem 1rem;
  border: 1px solid rgba(224, 230, 237, 0.6);
}

.toolbar-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.toolbar-actions .form-control {
  border-radius: 999px;
}

.form-check-input {
  border-radius: 6px;
  border-color: var(--border-color);
}

.form-check-input:checked {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

.modal-body .dropzone {
  border: 2px dashed rgba(25, 118, 210, 0.4);
  border-radius: var(--radius-md);
  padding: 2rem;
  text-align: center;
  color: var(--muted-text);
  background-color: rgba(25, 118, 210, 0.04);
}

.modal-body .dropzone i {
  font-size: 2rem;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.rates-table {
  background-color: #ffffff;
  border-radius: var(--radius-md);
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
}

.rates-table .table {
  border-spacing: 0;
}

.badge-number {
  background-color: rgba(25, 118, 210, 0.12);
  color: var(--primary-color);
  border-radius: 10px;
  padding: 0.45rem 0.75rem;
  font-weight: 600;
}

.call-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.call-summary .summary-card {
  background-color: rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-md);
  padding: 1rem;
  text-align: center;
}

.call-summary .summary-card h5 {
  margin-bottom: 0.25rem;
  font-weight: 600;
}

.header-compact {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.profile-card {
  background-color: #ffffff;
  border-radius: var(--radius-md);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  text-align: center;
}

.profile-card .avatar {
  margin: 0 auto 1rem;
  width: 64px;
  height: 64px;
}

.profile-card .role {
  color: var(--muted-text);
  font-weight: 500;
  margin-bottom: 0.75rem;
}

.profile-card .stats {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.stats-card {
  background-color: #ffffff;
  border-radius: var(--radius-md);
  padding: 1rem;
  box-shadow: var(--shadow-sm);
}

.stats-card .stats-label {
  font-size: 0.85rem;
  color: var(--muted-text);
}

.stats-card .stats-value {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--primary-color);
}

.schedule-card {
  border-radius: var(--radius-md);
  background-color: #ffffff;
  padding: 1rem;
  box-shadow: var(--shadow-sm);
}

.attendance-table .badge {
  font-size: 0.75rem;
  padding: 0.3rem 0.6rem;
  border-radius: 999px;
}

.analytics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
}

.analytics-grid .card {
  min-height: 280px;
}

.floating-cta {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 999;
}

.floating-cta button {
  border-radius: 999px;
  box-shadow: var(--shadow-lg);
}

.table-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background-color: rgba(25, 118, 210, 0.12);
  color: var(--primary-color);
  border-radius: 12px;
  padding: 0.35rem 0.6rem;
  font-size: 0.75rem;
  font-weight: 600;
}

.timeline-badge {
  background-color: rgba(25, 118, 210, 0.12);
  color: var(--primary-color);
  border-radius: 999px;
  padding: 0.25rem 0.75rem;
  font-weight: 600;
  font-size: 0.7rem;
}

.chart-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.chart-toolbar .form-select {
  width: auto;
  min-width: 150px;
}

.chart-legend {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--muted-text);
}

.chart-legend span {
  display: inline-flex;
  width: 12px;
  height: 12px;
  border-radius: 4px;
}

.profile-menu {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background-color: #ffffff;
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
  box-shadow: var(--shadow-sm);
}

.profile-menu .info {
  display: flex;
  flex-direction: column;
}

.profile-menu .info span:first-child {
  font-weight: 600;
}

.profile-menu .info span:last-child {
  font-size: 0.75rem;
  color: var(--muted-text);
}

.profile-menu button {
  border: none;
  background: none;
  color: var(--muted-text);
}

.breadcrumbs {
  display: inline-flex;
  gap: 0.5rem;
  color: var(--muted-text);
  font-size: 0.85rem;
  align-items: center;
}

.breadcrumbs span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.breadcrumbs i {
  font-size: 0.75rem;
  color: rgba(15, 23, 42, 0.25);
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background-color: rgba(25, 118, 210, 0.12);
  color: var(--primary-color);
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.75rem;
}

.timeline-log {
  border-left: 2px dashed rgba(25, 118, 210, 0.2);
  padding-left: 1rem;
  margin-left: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.timeline-log .log-item {
  position: relative;
  padding-left: 1rem;
}

.timeline-log .log-item::before {
  content: "";
  position: absolute;
  top: 0.5rem;
  left: -1.1rem;
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background-color: var(--primary-color);
  border: 2px solid #ffffff;
}

.timeline-log .time {
  font-size: 0.75rem;
  color: var(--muted-text);
}

.table-head-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.table-head-actions .btn {
  border-radius: 999px;
}

.card-compact {
  border-radius: var(--radius-sm);
  box-shadow: none;
  border: 1px solid rgba(224, 230, 237, 0.7);
}

.card-compact .card-header {
  border-bottom: none;
}

.tab-content {
  background-color: #ffffff;
  border-radius: var(--radius-md);
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
  margin-top: 1rem;
}

.nav-tabs {
  border-bottom: none;
  background-color: rgba(25, 118, 210, 0.08);
  border-radius: 999px;
  padding: 0.3rem;
  display: inline-flex;
  gap: 0.35rem;
}

.nav-tabs .nav-link {
  border: none;
  border-radius: 999px;
  color: var(--muted-text);
  font-weight: 500;
  padding: 0.5rem 1.25rem;
}

.nav-tabs .nav-link.active {
  background-color: #ffffff;
  color: var(--primary-color);
  box-shadow: var(--shadow-sm);
}

.tab-pane h6 {
  font-weight: 600;
}

.avatar-sm {
  width: 32px;
  height: 32px;
  font-size: 0.85rem;
}

.avatar-lg {
  width: 72px;
  height: 72px;
  font-size: 1.2rem;
}

.badge-dot {
  position: relative;
  padding-left: 1.25rem;
}

.badge-dot::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: currentColor;
  position: absolute;
  left: 0.5rem;
  top: 50%;
  transform: translateY(-50%);
}

/* Responsive Styles */
@media (max-width: 992px) {
  .app-shell {
    grid-template-columns: 1fr;
  }
  
  .app-shell.collapsed {
    grid-template-columns: 1fr;
  }
  
  .sidebar {
    position: fixed;
    left: -260px;
    z-index: 1000;
    transition: left 0.3s ease;
    width: 260px !important;
  }
  
  .sidebar.show {
    left: 0;
  }
  
  /* Disable hover expand on mobile */
  .app-shell.collapsed .sidebar:hover {
    width: 260px !important;
    padding: 1.5rem 1.2rem !important;
  }
  
  .topbar .search-bar {
    width: 200px;
  }
  
  .responsive-grid.four {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }
  
  .responsive-grid.three {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
  
  .responsive-grid.two {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .topbar {
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
  }
  
  .topbar .search-bar {
    width: 100%;
  }
  
  .topbar-actions {
    width: 100%;
    justify-content: space-between;
  }
  
  .call-console {
    padding: 1.5rem;
  }
  
  .dialer-input {
    font-size: 1.5rem;
  }
  
  .wallet-card {
    padding: 1rem;
  }
  
  .wallet-card .balance {
    font-size: 1.5rem;
  }
  
  .table-responsive {
    font-size: 0.85rem;
  }
  
  .section-title {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  
  .chart-container {
    height: 250px;
    max-height: 250px;
    min-height: 200px;
  }
  
  .chart-card .card-body {
    min-height: 250px;
  }
}

@media (max-width: 576px) {
  .content-wrapper {
    padding: 1rem;
  }
  
  .card {
    padding: 1rem;
  }
  
  .metric-value {
    font-size: 1.5rem;
  }
  
  .call-actions button {
    width: 50px;
    height: 50px;
    font-size: 1rem;
  }
  
  .dialer-pad {
    gap: 0.5rem;
  }
  
  .dialer-pad button {
    padding: 0.75rem;
    font-size: 1rem;
  }
  
  .stepper {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .step:not(:last-child)::after {
    display: none;
  }
}

/* Logo Text */
.logo-text {
  transition: opacity 0.3s ease, transform 0.3s ease, width 0.3s ease;
  opacity: 1;
  transform: translateX(0);
}

.app-shell.collapsed .logo-text {
  opacity: 0;
  width: 0;
  overflow: hidden;
  transform: translateX(-10px);
}

.app-shell.collapsed .sidebar:hover .logo-text {
  opacity: 1;
  width: auto;
  transform: translateX(0);
}

/* Additional Utility Classes */
.text-truncate-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.text-truncate-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.cursor-pointer {
  cursor: pointer;
}

.shadow-hover {
  transition: box-shadow 0.3s ease;
}

.shadow-hover:hover {
  box-shadow: var(--shadow-lg);
}

/* Loading Spinner */
.spinner-custom {
  width: 40px;
  height: 40px;
  border: 4px solid rgba(25, 118, 210, 0.1);
  border-top-color: var(--primary-color);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Pulse Animation */
.pulse {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

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

/* Fade In Animation */
.fade-in {
  animation: fadeIn 0.5s ease-in;
}

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

/* Slide In Animation */
.slide-in-right {
  animation: slideInRight 0.3s ease-out;
}

@keyframes slideInRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* Hover Effects */
.hover-lift {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hover-lift:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

/* Focus States */
.btn:focus,
.form-control:focus,
.form-select:focus {
  outline: none;
  box-shadow: 0 0 0 0.15rem rgba(25, 118, 210, 0.25);
}

/* Disabled States */
.btn:disabled,
.form-control:disabled,
.form-select:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Print Styles */
@media print {
  .sidebar,
  .topbar,
  .btn,
  .dropdown,
  .notification-bell {
    display: none !important;
  }
  
  .content-wrapper {
    padding: 0;
  }
  
  .card {
    box-shadow: none;
    border: 1px solid #ddd;
  }
}

/* Dark Mode Support (Optional) */
@media (prefers-color-scheme: dark) {
  /* Uncomment to enable dark mode */
  /*
  body {
    background-color: #1a1a1a;
    color: #e0e0e0;
  }
  
  .card {
    background-color: #2a2a2a;
    color: #e0e0e0;
  }
  
  .sidebar {
    background-color: #2a2a2a;
  }
  */
}

/* Scrollbar Styling */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: rgba(224, 230, 237, 0.3);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb {
  background: rgba(25, 118, 210, 0.3);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(25, 118, 210, 0.5);
}

/* Selection Color */
::selection {
  background-color: rgba(25, 118, 210, 0.2);
  color: var(--text-color);
}

/* Smooth Scrolling */
html {
  scroll-behavior: smooth;
}

/* Backdrop Overlay */
.backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1040;
  display: none;
}

.backdrop.show {
  display: block;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: none;
}

@media (max-width: 992px) {
  .mobile-menu-toggle {
    display: block;
  }
  
  .sidebar.show + .backdrop {
    display: block;
  }
}

/* Notification Badge Animation */
@keyframes bounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
  }
}

.notification-bell[data-count]:not([data-count="0"])::after {
  animation: bounce 0.5s ease;
}

/* Table Row Selection */
.table tbody tr {
  cursor: pointer;
}

.table tbody tr.selected {
  background-color: rgba(25, 118, 210, 0.1);
}

/* Form Group Spacing */
.form-group {
  margin-bottom: 1.5rem;
}

/* Input Icons */
.input-icon {
  position: relative;
}

.input-icon .form-control {
  padding-left: 2.5rem;
}

.input-icon i {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted-text);
}

/* Status Indicators */
.status-indicator {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 0.5rem;
}

.status-indicator.online {
  background-color: var(--success-color);
}

.status-indicator.offline {
  background-color: var(--muted-text);
}

.status-indicator.busy {
  background-color: var(--danger-color);
}

/* Card Hover Effect */
.card-hover {
  transition: all 0.3s ease;
}

.card-hover:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

/* Badge Variants */
.badge-outline {
  background-color: transparent;
  border: 1px solid currentColor;
}

/* Divider */
.divider {
  height: 1px;
  background: var(--border-color);
  margin: 1.5rem 0;
}

/* Empty State Icon */
.empty-state-icon {
  font-size: 4rem;
  color: var(--muted-text);
  opacity: 0.5;
  margin-bottom: 1rem;
}

/* Loading Overlay */
.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(255, 255, 255, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

/* Tooltip Custom */
.tooltip-custom {
  position: relative;
}

.tooltip-custom::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  padding: 0.5rem 0.75rem;
  background-color: #333;
  color: #fff;
  border-radius: 6px;
  font-size: 0.75rem;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.tooltip-custom:hover::after {
  opacity: 1;
}

/* Ripple Effect */
.ripple {
  position: relative;
  overflow: hidden;
}

.ripple::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.ripple:active::after {
  width: 300px;
  height: 300px;
}

/* Transition Utilities */
.transition-all {
  transition: all 0.3s ease;
}

.transition-fast {
  transition: all 0.15s ease;
}

.transition-slow {
  transition: all 0.5s ease;
}

/* Wallet Balance Header Styles */
.wallet-balance-header {
  margin-right: 12px;
}

.wallet-balance-card {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 12px;
  padding: 10px 16px;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.25);
  transition: all 0.3s ease;
  min-width: 200px;
}

.wallet-balance-card:hover {
  box-shadow: 0 6px 16px rgba(102, 126, 234, 0.35);
  transform: translateY(-1px);
}

.wallet-balance-card .d-flex {
  align-items: center;
}

.wallet-icon {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.wallet-icon i {
  color: white;
  font-size: 18px;
}

.wallet-balance-info {
  flex: 1;
  min-width: 0;
}

.wallet-label {
  font-size: 11px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 2px;
  line-height: 1.2;
}

.wallet-amount {
  font-size: 20px;
  font-weight: 700;
  color: white;
  line-height: 1.2;
  white-space: nowrap;
}

.wallet-topup-btn {
  width: 32px;
  height: 32px;
  padding: 0;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.wallet-topup-btn:hover {
  background: rgba(255, 255, 255, 0.3);
  border-color: rgba(255, 255, 255, 0.5);
  color: white;
  transform: scale(1.05);
}

.wallet-topup-btn i {
  font-size: 14px;
}

/* Responsive adjustments for wallet balance */
@media (max-width: 1200px) {
  .wallet-balance-card {
    min-width: 180px;
    padding: 8px 14px;
  }
  .wallet-amount {
    font-size: 18px;
  }
  .wallet-icon {
    width: 36px;
    height: 36px;
  }
  .wallet-icon i {
    font-size: 16px;
  }
}

@media (max-width: 992px) {
  .wallet-balance-header {
    order: -1;
    width: 100%;
    margin-right: 0;
    margin-bottom: 12px;
  }
  .wallet-balance-card {
    width: 100%;
    min-width: auto;
  }
  .topbar-actions {
    flex-wrap: wrap;
  }
}

@media (max-width: 768px) {
  .wallet-balance-card {
    padding: 10px 14px;
  }
  .wallet-amount {
    font-size: 18px;
  }
  .wallet-label {
    font-size: 10px;
  }
}

/* Call Routing Item Styles */
.call-routing-item {
  background-color: #f8f9fa;
  transition: all 0.2s ease;
  border-radius: 8px;
}

.call-routing-item:hover {
  background-color: #e9ecef;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.call-routing-item .form-select-sm {
  font-size: 0.875rem;
}

.call-routing-item .btn-outline-danger {
  border-radius: 6px;
  padding: 0.25rem 0.5rem;
}

.call-routing-item .btn-outline-danger:hover {
  background-color: var(--danger-color);
  border-color: var(--danger-color);
  color: white;
}

/* Invoice Styles */
.invoice-container {
  background: white;
  padding: 2rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.invoice-wrapper {
  max-width: 100%;
  margin: 0 auto;
}

.invoice-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 2px solid var(--border-color);
}

.invoice-logo {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.logo-box {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
}

.logo-text h2 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
}

.logo-text p {
  color: var(--muted-text);
  font-size: 0.875rem;
}

.invoice-title {
  text-align: right;
}

.invoice-title h1 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-color);
  margin: 0 0 0.5rem 0;
  letter-spacing: 2px;
}

.invoice-number {
  font-size: 0.875rem;
  color: var(--muted-text);
}

.invoice-info-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.invoice-bill-to h6 {
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--muted-text);
  margin-bottom: 0.75rem;
  letter-spacing: 0.5px;
}

.bill-to-content {
  font-size: 0.875rem;
  line-height: 1.6;
}

.bill-to-content strong {
  font-size: 1rem;
  color: var(--text-color);
  display: block;
  margin-bottom: 0.25rem;
}

.invoice-details {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.invoice-detail-item {
  display: flex;
  justify-content: space-between;
  font-size: 0.875rem;
}

.invoice-detail-item .label {
  color: var(--muted-text);
  font-weight: 500;
}

.invoice-detail-item .value {
  color: var(--text-color);
  font-weight: 600;
}

.badge-status {
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
}

.badge-status.success {
  background-color: rgba(46, 125, 50, 0.15);
  color: var(--success-color);
}

.invoice-items-section {
  margin-bottom: 2rem;
}

.invoice-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1rem;
}

.invoice-table thead {
  background-color: #f8f9fa;
}

.invoice-table th {
  padding: 0.75rem;
  text-align: left;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--muted-text);
  letter-spacing: 0.5px;
  border-bottom: 2px solid var(--border-color);
}

.invoice-table th.col-description {
  width: 50%;
}

.invoice-table th.col-quantity {
  width: 15%;
  text-align: center;
}

.invoice-table th.col-rate {
  width: 17.5%;
  text-align: right;
}

.invoice-table th.col-amount {
  width: 17.5%;
  text-align: right;
}

.invoice-table td {
  padding: 0.875rem 0.75rem;
  font-size: 0.875rem;
  color: var(--text-color);
  border-bottom: 1px solid rgba(224, 230, 237, 0.5);
}

.invoice-table tbody tr:last-child td {
  border-bottom: none;
}

.invoice-summary-section {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 2rem;
}

.invoice-summary {
  width: 300px;
  border-top: 2px solid var(--border-color);
  padding-top: 1rem;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0;
  font-size: 0.875rem;
}

.summary-row.total-row {
  border-top: 2px solid var(--border-color);
  margin-top: 0.5rem;
  padding-top: 0.75rem;
  font-size: 1rem;
  font-weight: 700;
}

.summary-label {
  color: var(--muted-text);
}

.summary-value {
  color: var(--text-color);
  font-weight: 600;
}

.summary-row.total-row .summary-value {
  font-size: 1.25rem;
  color: var(--primary-color);
}

.invoice-payment-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-color);
}

.payment-info h6,
.payment-notes h6 {
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--muted-text);
  margin-bottom: 0.75rem;
  letter-spacing: 0.5px;
}

.payment-info p,
.payment-notes p {
  font-size: 0.875rem;
  color: var(--text-color);
  line-height: 1.6;
  margin-bottom: 0.5rem;
}

.invoice-footer {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-color);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.footer-company {
  font-size: 0.75rem;
  color: var(--muted-text);
  line-height: 1.6;
}

.footer-company strong {
  color: var(--text-color);
  font-size: 0.875rem;
}

.footer-terms {
  text-align: right;
  font-size: 0.75rem;
  color: var(--muted-text);
}

/* Print Styles for A4 */
@page {
  size: A4;
  margin: 0;
}

@media print {
  body {
    margin: 0;
    padding: 0;
    background: white;
  }

  .app-shell {
    display: block;
  }

  .sidebar,
  .topbar,
  .btn,
  .dropdown,
  .notification-bell,
  .breadcrumbs,
  .section-title {
    display: none !important;
  }

  .content-wrapper {
    padding: 0;
    margin: 0;
    background: white;
  }

  .invoice-container {
    padding: 15mm;
    margin: 0;
    box-shadow: none;
    border: none;
    background: white;
    width: 210mm;
    min-height: 297mm;
    max-width: 210mm;
  }

  .invoice-wrapper {
    width: 100%;
  }

  .invoice-header {
    margin-bottom: 20px;
    padding-bottom: 15px;
  }

  .invoice-info-section {
    margin-bottom: 20px;
  }

  .invoice-items-section {
    margin-bottom: 20px;
  }

  .invoice-table {
    page-break-inside: auto;
  }

  .invoice-table thead {
    display: table-header-group;
  }

  .invoice-table tbody {
    display: table-row-group;
  }

  .invoice-table tr {
    page-break-inside: avoid;
    page-break-after: auto;
  }

  .invoice-table thead tr {
    page-break-after: avoid;
    page-break-inside: avoid;
  }

  .invoice-summary-section {
    page-break-inside: avoid;
    margin-bottom: 20px;
  }

  .invoice-payment-section {
    page-break-inside: avoid;
    margin-bottom: 20px;
  }

  .invoice-footer {
    page-break-inside: avoid;
    margin-top: 20px;
  }

  /* Ensure content fits on page */
  .invoice-container {
    font-size: 12px;
  }

  .invoice-title h1 {
    font-size: 24px;
  }

  .logo-text h2 {
    font-size: 18px;
  }

  .invoice-table th,
  .invoice-table td {
    font-size: 11px;
    padding: 8px 6px;
  }

  .summary-row {
    font-size: 11px;
  }

  .summary-row.total-row {
    font-size: 14px;
  }

  .summary-row.total-row .summary-value {
    font-size: 16px;
  }

  /* Prevent page breaks in critical sections */
  .invoice-header,
  .invoice-info-section,
  .invoice-summary-section,
  .invoice-payment-section {
    page-break-inside: avoid;
  }
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .invoice-header {
    flex-direction: column;
    gap: 1.5rem;
  }

  .invoice-title {
    text-align: left;
  }

  .invoice-info-section {
    grid-template-columns: 1fr;
  }

  .invoice-payment-section {
    grid-template-columns: 1fr;
  }

  .invoice-footer {
    grid-template-columns: 1fr;
  }

  .footer-terms {
    text-align: left;
  }
}

/* Profile Page Styles */
.profile-card {
  text-align: center;
}

.profile-avatar-wrapper {
  position: relative;
  display: inline-block;
}

.profile-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 2.5rem;
  font-weight: 700;
  margin: 0 auto;
  border: 4px solid white;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.avatar-edit-btn {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  border: 2px solid white;
}

.profile-status {
  margin: 1rem 0;
}

.profile-stats {
  display: flex;
  justify-content: space-around;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-color);
}

.stat-item {
  text-align: center;
}

.stat-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 0.25rem;
}

.stat-label {
  font-size: 0.75rem;
  color: var(--muted-text);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.activity-stat {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background-color: #f8f9fa;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
}

.activity-stat:hover {
  background-color: #e9ecef;
  transform: translateY(-2px);
}

.activity-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.activity-content {
  flex: 1;
}

.activity-value {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-color);
  margin-bottom: 0.25rem;
}

.activity-label {
  font-size: 0.75rem;
  color: var(--muted-text);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

