.password-toggle,
body {
  margin: 0;
  display: flex;
  align-items: center;
}

.main-panel,
.wrapper,
body {
  min-height: 100vh;
}

.bg-blob,
.copy-toast,
.input-icon-right {
  pointer-events: none;
}

.brand,
.btn-outline,
.sidebar-brand,
.sidebar-link {
  text-decoration: none;
}

.error-container,
.icon-card,
.step {
  text-align: center;
}

:root {
  --font-heading: "Inter", system-ui, -apple-system, "Segoe UI", Roboto,
    "Helvetica Neue", sans-serif;
  --bs-body-font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto,
    sans-serif;
  --bs-primary-rgb: 79, 70, 229;
  --bs-primary: #4f46e5;
  --bs-primary-hover: #4338ca;
  --card-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
}

body {
  background: linear-gradient(135deg, #f8fafc 0, #eef2ff 100%);
  justify-content: center;
  position: relative;
}

.bg-blob {
  position: fixed;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle,
      rgba(79, 70, 229, 0.08) 0,
      rgba(79, 70, 229, 0.02) 80%);
  filter: blur(70px);
  z-index: 0;
}

.blob-1 {
  top: -120px;
  right: -80px;
}

.input-icon-right,
.password-toggle {
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  transition: color 0.2s;
}

.blob-2 {
  bottom: -100px;
  left: -70px;
  width: 380px;
  height: 380px;
  background: radial-gradient(circle,
      rgba(139, 92, 246, 0.08) 0,
      rgba(79, 70, 229, 0.01) 80%);
}

.auth-card,
.form-group-icon {
  position: relative;
  width: 100%;
}

.auth-card {
  max-width: 460px;
  z-index: 10;
}

.card {
  backdrop-filter: blur(2px);
  background: rgba(255, 255, 255, 0.96);
}

.card:hover {
  box-shadow: var(--card-shadow) !important;
}

.form-group-icon .form-control {
  padding-right: 2.6rem;
  padding-left: 1rem;
  height: 48px;
  font-size: 0.95rem;
  border-radius: 14px;
  border: 1px solid #e2e8f0;
  background-color: #fff;
  transition: 0.2s;
}

.form-group-icon .form-control:focus {
  border-color: #4f46e5;
  box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.12);
  outline: 0;
}

.input-icon-right {
  position: absolute;
  right: 14px;
  width: 18px;
  height: 18px;
  z-index: 2;
}

.form-control:focus~.input-icon-right,
.form-group-icon .form-control:focus~.input-icon-right {
  color: #4f46e5;
}

.password-toggle {
  position: absolute;
  right: 12px;
  background: 0 0;
  border: none;
  padding: 0;
  justify-content: center;
  cursor: pointer;
  z-index: 3;
  width: 26px;
  height: 26px;
  border-radius: 999px;
}

.accordion-icon-rotate .accordion-button::after,
.auth-view,
.sidebar.collapsed .sidebar-brand span,
.sidebar.collapsed .sidebar-link span,
.sidebar.collapsed .sidebar-menu-title {
  display: none;
}

.password-toggle:hover {
  color: #1e293b;
  background-color: #f1f5f9;
}

.password-toggle i {
  width: 18px;
  height: 18px;
  stroke-width: 1.8;
}

.form-group-icon .form-control.pw-field {
  padding-right: 2.6rem;
}

.auth-view {
  animation: 0.32s cubic-bezier(0.2, 0.9, 0.4, 1.1) forwards fadeSlideUp;
}

.auth-view.active,
.input-icon-right svg,
.password-toggle svg {
  display: block;
}

@keyframes fadeSlideUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.btn-primary:hover {
  box-shadow: 0 8px 20px -8px rgba(79, 70, 229, 0.4);
}

.btn-link {
  font-weight: 500;
}

.form-label {
  letter-spacing: 0.3px;
}

.card {
  margin-bottom: 25px;
  transition: transform 0.2s, box-shadow 0.2s;
}

input:-webkit-autofill,
input:-webkit-autofill:focus {
  transition: background-color 0s 600000s, color 0s 600000s;
}

.password-toggle:active {
  transform: translateY(-50%) scale(0.96);
}

.wrapper {
  display: flex;
  width: 100%;
}

.sidebar {
  background: linear-gradient(180deg, #fff 0, #fefefe 100%);
  border-right: 1px solid rgba(203, 213, 225, 0.5);
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  z-index: 1030;
  overflow-y: auto;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.02);
}

.sidebar-header {
  padding: 1.5rem 1.25rem;
  border-bottom: 1px solid #eef2ff;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 1.35rem;
  color: #1e293b;
  letter-spacing: -0.3px;
}

.sidebar-brand-icon {
  background: #4f46e5;
  width: 28px;
  height: 28px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

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

.sidebar-menu-title {
  padding: 0.75rem 1.5rem;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #94a3b8;
}

.sidebar-item {
  margin-bottom: 4px;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0.65rem 1.5rem;
  color: #475569;
  font-weight: 500;
  font-size: 0.9rem;
  transition: 0.2s;
  border-radius: 12px;
  margin: 0 10px;
}

.sidebar-link i {
  width: 20px;
  height: 20px;
}

.sidebar-link:hover {
  background-color: #eef2ff;
  color: #4f46e5;
}

.bg-accordion-primary .accordion-button:not(.collapsed),
.sidebar-link.active {
  background-color: #4f46e5;
  color: #fff;
}

.main-panel {
  flex: 1;
  margin-left: 260px;
  transition: margin-left 0.3s;
}

.stat-icon-wrapper,
.top-navbar {
  display: flex;
  align-items: center;
}

.top-navbar {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(203, 213, 225, 0.5);
  padding: 0.75rem 1.5rem;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 1020;
}

.content-area {
  padding: 2rem 1.5rem;
}

.stat-icon-wrapper {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  justify-content: center;
}

.avatar-sm,
.dropdown-item {
  align-items: center;
  display: flex;
}

.stat-icon-primary {
  background: rgba(79, 70, 229, 0.1);
  color: #4f46e5;
}

.stat-icon-success {
  background: rgba(34, 197, 94, 0.1);
  color: #22c55e;
}

.stat-icon-info {
  background: rgba(6, 182, 212, 0.1);
  color: #06b6d4;
}

.stat-icon-warning {
  background: rgba(245, 158, 11, 0.1);
  color: #f59e0b;
}

.badge-soft-success {
  background: #e0f2e9;
}

.badge-soft-warning {
  background: #fff3e3;
}

.badge-soft-danger {
  background: #fee9e6;
}

.dropdown-menu {
  border-radius: 1rem;
  border: none;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
  padding: 0.5rem 0;
  margin-top: 0.5rem;
}

.dropdown-item {
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
  gap: 10px;
}

.dropdown-item i {
  width: 16px;
  height: 16px;
}

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

.notification-dropdown {
  width: 320px;
  padding: 0;
}

.notification-header {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #eef2ff;
  font-weight: 600;
}

.notification-item {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #f1f5f9;
  transition: background 0.2s;
  cursor: pointer;
}

.notification-item:hover {
  background: #fafbff;
}

.notification-footer {
  padding: 0.6rem;
  text-align: center;
  font-size: 0.75rem;
}

.avatar-sm {
  width: 34px;
  height: 34px;
  background: #4f46e5;
  border-radius: 50%;
  justify-content: center;
  color: #fff;
  font-weight: 600;
}

.demo-block {
  border: 1px solid #e2e8f0;
  padding: 1.5rem;
  border-radius: 1rem;
  background: #fff;
  margin-bottom: 2rem;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
}

.section-title {
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.badge-soft-success {
  background-color: #e0f2e9;
  color: #15803d;
}

.badge-soft-warning {
  background-color: #fff3e3;
  color: #b45309;
}

.badge-soft-danger {
  background-color: #fee9e6;
  color: #b91c1c;
}

.nav-tabs .nav-link {
  border-radius: 0.75rem 0.75rem 0 0;
  font-weight: 500;
  color: #475569;
}

.nav-tabs .nav-link.active {
  color: #4f46e5;
  font-weight: 600;
  border-bottom-color: #4f46e5;
}

.card {
  border-radius: 1.25rem !important;
  border: none;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.card-header {
  background-color: #fff;
  border-bottom: 1px solid #eef2ff;
  padding: 1rem 1.25rem;
  font-weight: 600;
}

.form-label {
  font-weight: 500;
  font-size: 0.8rem;
  margin-bottom: 0.25rem;
  color: #334155;
}

.form-control,
.form-select {
  border-radius: 0.75rem;
  border: 1px solid #e2e8f0;
  padding: 0.5rem 0.75rem;
}

.form-control:focus,
.form-select:focus {
  border-color: #4f46e5;
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.input-group-text {
  border-radius: 0.75rem;
  background-color: #f8fafc;
  border-color: #e2e8f0;
}

hr {
  opacity: 0.25;
  margin: 2rem 0;
  opacity: 0.2;
}

.icon-card {
  padding: 1.25rem 0.5rem;
  border-radius: 1rem;
  transition: 0.2s;
  cursor: pointer;
  background: #fff;
  border: 1px solid #eef2ff;
}

.icon-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  border-color: #cbd5e1;
}

.icon-card i {
  width: 32px;
  height: 32px;
  stroke-width: 1.5;
  color: #4f46e5;
  margin-bottom: 0.5rem;
}

.icon-name {
  font-size: 0.7rem;
  font-weight: 500;
  color: #1e293b;
  background: #f8fafc;
  padding: 0.2rem 0.5rem;
  border-radius: 20px;
  display: inline-block;
  font-family: monospace;
}

.search-wrapper {
  max-width: 400px;
}

.copy-toast {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1090;
  background: #1e293b;
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 2rem;
  font-size: 0.8rem;
  opacity: 0;
  transition: opacity 0.2s;
}

.step-indicator {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid #eef2ff;
  padding-bottom: 1rem;
}

.detail-body,
.main-panel,
.step {
  flex: 1;
}

.ql-container {
  min-height: 150px;
  border-radius: 0 0 0.75rem 0.75rem;
}

.ql-toolbar {
  border-radius: 0.75rem 0.75rem 0 0;
}

.select2-container--bootstrap-5 .select2-selection {
  border-radius: 0.75rem;
}

.chat-container,
.mail-container {
  flex: 1;
  display: flex;
  overflow: hidden;
  margin: 1.5rem;
  border-radius: 1.5rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  border: 1px solid #eef2ff;
}

.conversations-list {
  display: flex;
  flex-direction: column;
}

.conversation-avatar {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.chat-header,
.message-input-area {
  background: #fff;
}

.messages-area {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  background: #fafcff;
}

.message {
  display: flex;
  max-width: 70%;
}

.message.received {
  align-self: flex-start;
}

.message.sent {
  align-self: flex-end;
  flex-direction: row-reverse;
}

.brand,
.error-icon {
  align-items: center;
}

.message-bubble {
  border: 1px solid #e2e8f0;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.02);
}

.message.sent .message-bubble {
  border: none;
  background: #4f46e5;
  color: #fff;
}

.message-time {
  color: #94a3b8;
}

@media (max-width: 768px) {
  .conversations-list {
    width: 280px;
  }

  .message {
    max-width: 85%;
  }
}

.accordion-button:not(.collapsed) {
  background-color: #f8fafc;
  color: #4f46e5;
}

.accordion-button:focus {
  box-shadow: none;
  border-color: #e2e8f0;
}

.accordion-flush .accordion-item {
  border-bottom: 1px solid #eef2ff;
}

.border-accordion .accordion-item {
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  margin-bottom: 0.75rem;
}

.accordion-icon-rotate .accordion-button i {
  transition: transform 0.2s;
}

.accordion-icon-rotate .accordion-button:not(.collapsed) i {
  transform: rotate(90deg);
}

.bg-accordion-primary .accordion-button {
  background-color: #eef2ff;
  color: #1e293b;
}

.error-container {
  max-width: 600px;
  width: 100%;
  animation: 0.5s ease-out fadeInUp;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.error-code {
  font-size: 8rem;
  font-weight: 800;
  background: linear-gradient(135deg, #4f46e5, #7c3aed);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.btn-outline,
.btn-primary {
  padding: 0.6rem 1.5rem;
  font-weight: 500;
  transition: 0.2s;
}

.error-icon {
  width: 120px;
  height: 120px;
  margin: 0 auto 1.5rem;
  background: rgba(79, 70, 229, 0.1);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  color: #4f46e5;
}

.action-buttons,
.brand,
.error-message {
  margin-bottom: 2rem;
}

.error-icon svg {
  width: 64px;
  height: 64px;
  stroke-width: 1.5;
}

h1 {
  font-size: 1.75rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 0.75rem;
}

.error-message {
  color: #475569;
  font-size: 1rem;
}

.btn-primary {
  background-color: #4f46e5;
  border: none;
  border-radius: 0.75rem;
}

.btn-primary:hover {
  background-color: #4338ca;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(79, 70, 229, 0.3);
}

.btn-outline {
  background: 0 0;
  border: 1px solid #cbd5e1;
  border-radius: 0.75rem;
  color: #475569;
}

.btn-outline:hover {
  border-color: #4f46e5;
  color: #4f46e5;
  background: rgba(79, 70, 229, 0.05);
}

.action-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.brand {
  display: inline-flex;
  gap: 8px;
  font-weight: 700;
  font-size: 1.25rem;
  color: #1e293b;
}

.brand-icon {
  background: #4f46e5;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

.brand-icon svg {
  width: 18px;
  height: 18px;
}

@media (max-width: 480px) {
  .card-body {
    padding: 1.8rem !important;
  }

  .auth-card {
    max-width: 100%;
  }

  .error-code {
    font-size: 5rem;
  }

  .error-icon {
    width: 80px;
    height: 80px;
  }

  .error-icon svg {
    width: 40px;
    height: 40px;
  }

  h1 {
    font-size: 1.35rem;
  }
}

.table> :not(caption)>*>* {
  padding: 0.9rem 0.75rem;
}

.pagination .page-link {
  border-radius: 0.5rem;
  margin: 0 0.2rem;
  color: #475569;
}

.pagination .page-item.active .page-link {
  background-color: #4f46e5;
  border-color: #4f46e5;
}

.form-select-sm {
  width: auto;
  border-radius: 0.5rem;
}

.email-list-panel,
.folder-sidebar {
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.folder-item {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 4px 10px;
}

.email-subject {
  font-size: 0.9rem;
}

.email-preview {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.email-detail-panel {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.avatar-circle {
  background: #4f46e5;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pagination-sm .page-link {
  border-radius: 0.5rem;
  margin: 0 2px;
}

@media (max-width: 992px) {
  .sidebar {
    margin-left: -260px;
  }

  .main-panel,
  .sidebar.show {
    margin-left: 0;
  }

  .mail-container {
    flex-direction: column;
  }

  .folder-sidebar {
    width: 100%;
    flex-direction: row;
    overflow-x: auto;
    border-bottom: 1px solid #eef2ff;
  }

  .email-list-panel {
    width: 100%;
    max-height: 300px;
  }
}

#revenueChart,
#salesChart,
#trafficChart {
  height: 250px !important;
}

.sidebar.collapsed {
  width: 80px;
  transition: width 0.2s;
}

.sidebar.collapsed .sidebar-link {
  justify-content: center;
  padding: 0.75rem 0;
}

.sidebar.collapsed .sidebar-link i {
  margin-right: 0 !important;
}

.message,
.wrapper {
  display: flex;
}

.sidebar {
  width: 260px;
  transition: width 0.2s;
}

.traffic-chart-wrapper {
  position: relative;
  width: 100%;
  max-width: 250px;
  margin: 0 auto;
}

.traffic-chart-wrapper::after {
  content: "";
  display: block;
  padding-bottom: 100%;
}

.traffic-chart-wrapper canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100% !important;
  height: 100% !important;
}

.rounded-circle {
  border-radius: 20% !important;
}

.full-round {
  border-radius: 50% !important;
}

.category-filter-btn.active {
  background-color: #4f46e5 !important;
  color: #fff !important;
  border-color: #4f46e5 !important;
}

.conversations-list,
.email-list-panel,
.folder-sidebar {
  border-right: 1px solid #e2e8f0;
}

.product-card {
  transition: transform 0.2s, box-shadow 0.2s;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05) !important;
}

.hidden-product {
  display: none !important;
}

.notiicon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step-indicator {
  display: flex;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.step {
  flex: 1;
  padding: 0.5rem;
  border-bottom: 3px solid #e2e8f0;
  color: #94a3b8;
  font-weight: 500;
  font-size: 0.875rem;
}

.step.active {
  border-bottom-color: #4f46e5;
  color: #4f46e5;
}

.step.completed {
  border-bottom-color: #22c55e;
  color: #22c55e;
}

.chat-container,
.mail-container {
  display: flex;
  height: calc(100vh - 70px);
  background: #f8fafc;
}

.conversations-list {
  width: 320px;
  background: #fff;
  overflow-y: auto;
}

.conversation-avatar,
.unread-badge {
  background: #4f46e5;
  color: #fff;
  font-weight: 600;
}

.conversation-item,
.email-item {
  padding: 1rem;
  border-bottom: 1px solid #f1f5f9;
  cursor: pointer;
  transition: background 0.15s;
}

.chat-header,
.detail-header {
  border-bottom: 1px solid #e2e8f0;
}

.conversation-item:hover,
.email-item:hover {
  background: #f8fafc;
}

.conversation-item.active,
.email-item.active {
  background: #eef2ff;
  border-left: 3px solid #4f46e5;
}

.conversation-avatar {
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.unread-badge {
  border-radius: 10px;
  padding: 2px 8px;
  font-size: 11px;
}

.chat-area {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: #fff;
}

.badge-role,
.folder-item:hover,
.message-bubble {
  background: #f1f5f9;
}

.chat-header {
  padding: 1rem 1.5rem;
}

.messages-area {
  flex: 1;
  padding: 1.5rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.message.sent {
  justify-content: flex-end;
}

.message-bubble {
  max-width: 70%;
  padding: 0.75rem 1rem;
  border-radius: 18px;
  color: #1e293b;
}

.message-time {
  font-size: 10px;
  margin-top: 4px;
  text-align: right;
}

.message-input-area {
  padding: 1rem 1.5rem;
  border-top: 1px solid #e2e8f0;
}

.contact-avatar {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 600;
  font-size: 14px;
}

.badge-role {
  color: #1e293b;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
}

.folder-sidebar {
  width: 240px;
  background: #fff;
  padding: 1rem;
}

.folder-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  color: #475569;
  font-weight: 500;
  cursor: pointer;
  transition: 0.15s;
}

.folder-item.active {
  font-weight: 500;
  background: #eef2ff;
  color: #4f46e5;
}

.folder-badge {
  margin-left: auto;
  background: #e2e8f0;
  color: #1e293b;
  border-radius: 20px;
  padding: 2px 8px;
  font-size: 12px;
  font-weight: 600;
}

.email-list-panel {
  width: 360px;
  background: #fff;
  display: flex;
  flex-direction: column;
}

.email-item.unread {
  font-weight: 600;
  background: #f8fafc;
}

.email-subject {
  font-weight: 500;
  margin: 4px 0 2px;
}

.email-preview {
  font-size: 12px;
  color: #64748b;
}

.star-btn {
  color: #cbd5e1;
  cursor: pointer;
  transition: color 0.15s;
}

.star-btn.active {
  fill: #f59e0b;
  color: #fbbf24;
}

.star-btn:hover {
  color: #f59e0b;
}

.email-detail-panel {
  flex: 1;
  background: #fff;
  display: flex;
  flex-direction: column;
}

.detail-header {
  padding: 1.5rem;
}

.detail-body {
  padding: 1.5rem;
  flex: 1;
  overflow-y: auto;
}

.avatar-circle {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 600;
  font-size: 16px;
}

.sidebar.collapsed+.main-panel,
.sidebar.collapsed~.main-panel {
  margin-left: 75px;
}

/* Submenu Styles */
.sidebar-item.has-submenu {
  position: relative;
  flex-direction: column;
  align-items: stretch;
  padding: 0;
}

.sidebar-submenu {
  list-style: none;
  padding-left: 3.5rem;
  /* indent to align with parent text */
  margin: 0;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.sidebar-item.has-submenu.open .sidebar-submenu {
  max-height: 200px;
  /* enough for three items */
}

.sidebar-subitem {
  margin: 2px 0;
}

.sidebar-sublink {
  display: block;
  padding: 0.5rem 1rem 0.5rem 0.75rem;
  font-size: 0.875rem;
  color: #64748b;
  text-decoration: none;
  border-radius: 6px;
  transition: all 0.15s;
}

.sidebar-sublink:hover {
  background: #f1f5f9;
  color: #1e293b;
}

.sidebar-sublink.active {
  background: #eef2ff;
  color: #4f46e5;
  font-weight: 500;
}

.submenu-arrow {
  transition: transform 0.2s ease;
}

.has-submenu.open .submenu-arrow {
  transform: rotate(180deg);
}