/* ===================================
   CSS VARIABLES
   =================================== */
   @import url('https://fonts.googleapis.com/css2?family=Inter:opsz,wght@14..32,100..900&display=swap');

:root {
  /* Primary Colors */
  --color-primary: #8b5cf6;
  --color-primary-hover: #7c3aed;
  --color-primary-50: rgba(139, 92, 246, 0.05);
  --color-primary-100: rgba(139, 92, 246, 0.1);
  --color-primary-200: rgba(139, 92, 246, 0.2);

  /* Semantic Colors */
  --color-success: #10b981;
  --color-success-50: rgba(16, 185, 129, 0.05);
  --color-success-100: rgba(16, 185, 129, 0.1);

  --color-warning: #f59e0b;
  --color-warning-50: rgba(245, 158, 11, 0.05);
  --color-warning-100: rgba(245, 158, 11, 0.1);

  --color-error: #ef4444;
  --color-error-50: rgba(239, 68, 68, 0.05);
  --color-error-100: rgba(239, 68, 68, 0.1);

  --color-info: #3b82f6;
  --color-info-50: rgba(59, 130, 246, 0.05);
  --color-info-100: rgba(59, 130, 246, 0.1);

  /* Text Colors */
  --color-text: #1e293b;
  --color-text-secondary: #475569;
  --color-text-muted: #94a3b8;

  /* Background Colors */
  --color-background: #ffffff;
  --color-surface: #f8fafc;
  --color-surface-hover: #f1f5f9;

  --color-overlay: rgba(0,0,0,0.5);

  /* Border Colors */
  --color-border: #e2e8f0;

  /* Typography */
  --font-primary: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.75rem;
  --text-4xl: 2rem;

  /* Font Weights */
  --weight-normal: 400;
  --weight-medium: 500;
  --weight-semibold: 600;
  --weight-bold: 700;

  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-base: 0.75rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;

  /* Border Radius */
  --radius-sm: 0.25rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);

  /* Layout */
  --sidebar-width: 260px;
  --bottom-nav-height: 80px;
  --sidebar-collapsed-width: 80px;
  --header-height: 60px;

  /* Transitions */
  --transition: 0.2s ease;
}

/* Dark Theme */
[data-theme="dark"] {
  --color-text: #ffffff;
  --color-text-secondary: #c0c0c0;
  --color-text-muted: #838383;
  --color-background: #111214;
  --color-overlay: rgba(202, 200, 200, 0.2);
  --color-surface: #1f1f1f;
  --color-surface-hover: #262626;
  --color-border: #2d2d2d;
}

/* ===================================
   RESET & BASE STYLES
   =================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-primary);
  background: var(--color-background);
  color: var(--color-text);
  line-height: 1.6;
  font-size: var(--text-base);
  font-weight: var(--weight-normal);
}

a {
  text-decoration: none;
  color: inherit;
}

button {
  font-family: inherit;
  font-size: inherit;
  border: none;
  background: none;
  cursor: pointer;
}

.active > .material-symbols-rounded {
  color: var(--color-primary);
  font-variation-settings: "FILL" 1, "wght" 400, "GRAD" 0, "opsz" 24;
}

* {
  scrollbar-color: var(--color-text-muted) transparent;
}

/* ===================================
   BUTTON COMPONENTS
   =================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-md);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  border: 1px solid transparent;
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.btn-primary {
  background: var(--color-primary);
  color: white;
}

.btn-primary:hover {
  background: var(--color-primary-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background: var(--color-surface);
  color: var(--color-text);
  border-color: var(--color-border);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  background: var(--color-surface-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
/* ===================================
  PAGE LOADER
  =================================== */
  .page-load {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.7);
    display: none;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    z-index: 200000;
  }
  .page-load.active {
    display: flex
  }
  .loader-con {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    padding: 20px;
    background: var(--color-background);
    border-radius: 10px;
  }
  .loader {
    width: 40px;
    aspect-ratio: 1;
    border-radius: 50%;
    padding: 3px;
    background: 
      radial-gradient(farthest-side,#ffa516 95%,#0000) 50% 0/12px 12px no-repeat,
      radial-gradient(farthest-side,#0000 calc(100% - 5px),#ffa516 calc(100% - 4px)) content-box;
    animation: l6 2s infinite ;
  }
  @keyframes l6 {to{transform: rotate(1turn)}}
  
  #loader-text {
    color: var(--color-text);
  }
/* ===================================
   DASHBOARD LAYOUT
   =================================== */

.dashboard-container {
  display: flex;
  height: 100vh;
  overflow: hidden;
}

/* Sidebar */
.dashboard-sidebar {
  width: var(--sidebar-width);
  background: var(--color-background);
  display: flex;
  flex-direction: column;
  position: sticky;
  left: 0;
  top: 0;
  height: 100vh;
  z-index: 1000;
  transition: var(--transition);
}

.dashboard-sidebar.collapsed {
  width: var(--sidebar-collapsed-width);
}

.dashboard-brand {
  padding: var(--space-md) calc(var(--space-lg) - 2px);
  display: flex;
  align-items: center;
  gap: var(--space-md);
  height: var(--header-height);
}

.dashboard-sidebar-toggle {
  display: flex;
  align-items: center;
  color: var(--color-text);
  font-size: var(--text-lg);
  padding: var(--space-sm);
  border-radius: var(--radius-lg);
  transition: var(--transition);
}

.dashboard-sidebar-toggle:hover {
  background: var(--color-surface-hover);
}

.dashboard-sidebar .logo {
  font-size: var(--text-lg);
  white-space: nowrap;
  font-weight: var(--weight-semibold);
  color: var(--color-text);
  transition: var(--transition);
}

.dashboard-sidebar.collapsed .logo {
  opacity: 0;
  pointer-events: none;
}

.dashboard-nav {
  flex: 1;
  padding: var(--space-md) var(--space-xs);
  scrollbar-width: none;
  overflow-y: auto;
}
.dashboard-nav::-webkit-scrollbar {display: none;}

.dashboard-nav-section {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.dashboard-nav-item {
  display: flex;
  align-items: center;
  padding: var(--space-sm) var(--space-md);
  color: var(--color-text-secondary);
  text-decoration: none;
  font-size: var(--text-sm);
  border-radius: var(--radius-lg);
  margin: 2px var(--space-sm);
  transition: var(--transition);
  cursor: pointer;
}

.dashboard-nav-item .nav-icon {
  color: var(--color-text-secondary);
  margin-right: var(--space-base);
  font-size: var(--text-2xl);
  flex-shrink: 0;
}

.dashboard-nav-item:hover {
  background: var(--color-surface-hover);
  color: var(--color-text);
}

.dashboard-nav-item.active {
  background: var(--color-surface-hover);
  color: var(--color-text);
  font-weight: var(--weight-medium);
}

.dashboard-sidebar .nav-label {
  transition: var(--transition);
}

.dashboard-sidebar.collapsed .nav-label {
  opacity: 0;
  pointer-events: none;
}

.sidebar-footer {
  padding: var(--space-md);
}

.sidebar-back-button {
  width: 100%;
  justify-content: flex-start;
}

.dashboard-sidebar.collapsed .sidebar-back-button .btn-label {
  opacity: 0;
  pointer-events: none;
}

.dashboard-sidebar.collapsed .sidebar-back-button {
  padding-left: 12px;
}

.dashboard-sidebar-overlay {
  opacity: 0;
  pointer-events: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
  transition: var(--transition);
}

/* Main Content */
.dashboard-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow: hidden;
}

/* Header */
.dashboard-header {
  height: var(--header-height);
  background: var(--color-surface);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-lg);
  gap: var(--space-md);
}

.dashboard-header-content {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.dashboard-header .dashboard-sidebar-toggle {
  display: none;
}

.dashboard-header-title {
  font-size: var(--text-xl);
  font-weight: var(--weight-semibold);
  color: var(--color-text);
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap:20px;
}

/* Search Container */
.search-container {
  display: flex;
  align-items: center;
  max-width: 500px;
  width: 100%;
  margin: 0 var(--space-base);
  position: relative;
}

.search-icon {
  position: absolute;
  left: 16px;
  z-index: 10;
  pointer-events: none;
  color: var(--color-text-secondary);
}

.search-input {
  width: 100%;
  padding: var(--space-sm) var(--space-sm) var(--space-sm) var(--space-2xl);
  background: var(--color-background);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  color: var(--color-text);
  font-size: var(--text-md);
  transition: var(--transition);
  height: 60px;
  font-family: var(--font-primary);
}

.search-input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px var(--color-primary-100);
}

.search-input::placeholder {
  color: var(--color-text-muted);
}

.search-close {
  position: absolute;
  right: var(--space-sm);
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  border-radius: var(--radius-lg);
  background: transparent;
  color: var(--color-text-muted);
  display: none;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.search-close:hover {
  background: var(--color-surface-hover);
  color: var(--color-text);
}

.search-close.show {
  display: flex;
}

.mobile-search-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-lg);
  background: transparent;
  color: var(--color-text-secondary);
  transition: var(--transition);
}

.mobile-search-btn:hover {
  background: var(--color-surface-hover);
  color: var(--color-text);
}

.dashboard-header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

/* Theme Toggle (inside dropdown) */
.theme-toggle {
  display: flex;
  gap: var(--space-xs);
  margin-left: auto;
  background: var(--color-surface-hover);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  padding: var(--space-xs);
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.theme-option {
  padding: var(--space-xs) var(--space-base);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  cursor: pointer;
  transition: var(--transition);
}

.theme-option:not(.active):hover {
  background-color: var(--color-primary-200);
}

.theme-option.active {
  background: var(--color-primary);
  color: white;
}

/* Notification Button */
.notification-button,
.convo-menu-button {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-lg);
  cursor: pointer;
  user-select: none;
  transition: var(--transition);
  color: var(--color-text-secondary);
}

.notification-button:hover,
.convo-menu-button:hover {
  background: var(--color-surface-hover);
  color: var(--color-text);
}

.notification-badge {
  position: absolute;
  top: 3px;
  right: 3px;
  background: var(--color-error);
  color: white;
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  padding: 2px 6px;
  border-radius: var(--radius-full);
  min-width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.user-menu-trigger {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  height: 36px;
  width: 36px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: var(--transition);
}

.user-menu-trigger:hover {
  transform: scale(1.1);
}

.user-avatar-small {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  overflow: hidden;
}

.user-avatar-small img {
  width: 100%;
  height: 100%;
  border-radius: var(--radius-full);
}

.user-avatar-small .material-symbols-rounded {
  font-size: var(--text-lg);
}

.user-menu-dropdown {
  position: absolute;
  top: calc(100% + var(--space-sm));
  right: 0;
  z-index: 1000;
  background: var(--color-background);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  min-width: 200px;
  padding: var(--space-sm);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: var(--transition);
}

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

.user-menu-item {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-base);
  color: var(--color-text);
  text-decoration: none;
  font-size: var(--text-sm);
  border-radius: var(--radius-lg);
  transition: var(--transition);
  cursor: pointer;
}

.user-menu-item:not(.theme-item):hover {
  background: var(--color-surface-hover);
}

.user-menu-item.theme-item {
  gap: 0;
}

.user-menu-item .icon {
  font-size: 1.4rem;
}

/* Content Area */
.dashboard-content {
  flex: 1;
  overflow-y: auto;
  padding: var(--space-base) var(--space-xl);
  border-top-left-radius: var(--radius-xl);
  background: var(--color-surface);
  height: calc(100vh - var(--header-height));
}


/* Views */
.dashboard-view {
  display: block;
  padding: 5px 15px;
  animation: fadeIn 0.3s ease-in-out;
}

.dashboard-view::-webkit-scrollbar,
.dashboard-content::-webkit-scrollbar,
.dashboard-main::-webkit-scrollbar {display: none !important;}

.dashboard-view.active {
  display: block;
  animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Stats Cards */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-lg);
  margin-bottom: var(--space-2xl);
}

.stats-grid.dash-grid {
  display: flex;
  justify-content: space-around;
  align-items: center;
  flex-wrap: wrap;
}

.stat-card {
  background: var(--color-background);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-sm);
  transition: var(--transition);
  margin-bottom: var(--space-lg);
  flex: 1 1 90px;
  min-width: 90px;
}

.stat-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.stat-card-header {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 15px;
}

.stat-card-title {
  font-size: var(--text-md);
  color: var(--color-text-secondary);
  font-weight: var(--weight-medium);
}

.stat-card-icon {
  width: 70px;
  height: 70px;
  border-radius: var(--radius-lg);
  display: flex;
  position: relative;
  align-items: center;
  justify-content: center;
  font-size: var(--text-4xl);
}

.stat-card-icon img {
  width: 70%;
  height: 70%;
}

.stat-card-icon.primary {
  background: var(--color-primary-100);
  color: var(--color-primary);
}

.stat-card-icon.success {
  background: var(--color-success-100);
  color: var(--color-success);
}

.stat-card-icon.warning {
  background: var(--color-warning-100);
  color: var(--color-warning);
}

.stat-card-icon.info {
  background: var(--color-info-100);
  color: var(--color-info);
}

.stat-card-value {
  font-size: var(--text-4xl);
  font-weight: var(--weight-bold);
  color: var(--color-text);
  margin-bottom: var(--space-xs);
}

.stat-card-change {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  font-size: var(--text-sm);
}

.stat-card-change.positive {
  color: var(--color-success);
}

.stat-card-change.negative {
  color: var(--color-error);
}

/* Chart Cards */
.chart-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: var(--space-lg);
  margin-bottom: var(--space-2xl);
}

.chart-card {
  background: var(--color-background);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-lg);
}

.chart-card-header {
  margin-bottom: var(--space-lg);
}

.chart-card-title {
  font-size: var(--text-lg);
  font-weight: var(--weight-semibold);
  color: var(--color-text);
  margin-bottom: var(--space-xs);
}

.chart-card-subtitle {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
}

.chart-container {
  position: relative;
  height: 300px;
}

/* Table Styles */
.dashboard-table-container {
  background: var(--color-background);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
}

.dashboard-table-header {
  padding: var(--space-md) var(--space-lg);
  border-bottom: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.dashboard-table-title {
  font-size: var(--text-lg);
  font-weight: var(--weight-semibold);
  color: var(--color-text);
}

.dashboard-table {
  width: 100%;
  border-collapse: collapse;
}

.dashboard-table thead {
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
}

.dashboard-table th {
  padding: var(--space-md) var(--space-lg);
  text-align: left;
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  color: var(--color-text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.dashboard-table td {
  padding: var(--space-md) var(--space-lg);
  border-bottom: 1px solid var(--color-border);
  color: var(--color-text);
}

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

.dashboard-table tbody tr:hover {
  background: var(--color-surface-hover);
}

.project-title-cell {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  max-width: 300px;
}

.project-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-lg);
  background: var(--color-primary-100);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

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

.project-title-text {
  font-weight: var(--weight-medium);
  color: var(--color-text);
  margin-bottom: 2px;
}

.project-meta-text {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
}

.status-badge {
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  text-transform: uppercase;
}

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

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

/* Empty State */
.empty-state {
  text-align: center;
  padding: var(--space-2xl) var(--space-md);
}

.empty-state-icon {
  width: 80px;
  height: 80px;
  background: var(--color-primary-50);
  color: var(--color-primary);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-lg);
}

.empty-state-icon .material-symbols-rounded {
  font-size: var(--text-4xl);
}

.empty-state-title {
  font-size: var(--text-xl);
  font-weight: var(--weight-semibold);
  color: var(--color-text);
  margin-bottom: var(--space-sm);
}

.empty-state-description {
  color: var(--color-text-secondary);
  margin-bottom: var(--space-xl);
}

/* ===================================
   RESPONSIVE DESIGN
   =================================== */

/* Tablet and Mobile */
@media (max-width: 1024px) {
  .dashboard-sidebar {
    position: fixed;
    top: 0;
    left: -100%;
    height: 100%;
    z-index: 1000;
    width: var(--sidebar-width);
    transition: left 0.3s ease;
  }

  .dashboard-sidebar.collapsed {
    left: 0;
  }

  .dashboard-sidebar.collapsed :is(.logo, .nav-label, .nav-icon, .dashboard-nav-title, .sidebar-back-button .btn-label) {
    opacity: 1;
    pointer-events: auto;
  }

  .dashboard-sidebar.collapsed .sidebar-back-button {
    padding-left: var(--space-md);
  }

  .dashboard-header {
    padding: 0 var(--space-md);
  }

  .dashboard-brand {
    gap: var(--space-sm);
  }

  .dashboard-header .dashboard-sidebar-toggle {
    display: flex;
  }

  /* Search responsive styles */
  .search-container {
    position: relative;
    width: 100%;
    max-width: 100%;
    height: var(--header-height);
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
    margin: 0;
    padding: 0 var(--space-sm);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
  }



  .search-container.mobile-active {
    display: flex;
  }

  .search-container .search-close {
    display: flex;
    position: static;
    transform: none;
    height: 44px;
    width: 44px;
    background: var(--color-surface-hover);
  }

  .search-icon {
    left: 30px;
  }

  .mobile-search-btn {
    display: flex;
  }

  /* Sidebar Overlay Mobile Behavior */
  .dashboard-sidebar-overlay.active {
    opacity: 1;
    pointer-events: auto;
  }

  .dashboard-sidebar {
    position: fixed;
    top: 0;
    left: -100%;
    height: 100%;
    z-index: 1000;
    width: var(--sidebar-width);
    transition: left 0.3s ease;
  }

  .dashboard-sidebar.collapsed {
    left: 0;
    width: var(--sidebar-width);
  }

  .dashboard-content {
    padding: var(--space-md);
    border-top-left-radius: 0;
  }

  .chart-grid {
    grid-template-columns: 1fr;
  }
}

.bottom-nav {
  width: 100vw;
  background: var(--color-background);
  position: fixed;
  left: 0;
  display: none;
  bottom: 0;
  height: var(--bottom-nav-height);
  z-index: 200;
  padding: 0;
  transition: var(--transition);
}

.nav-content{
  width: 100%;
  display: flex;
  align-items: center;
  list-style: none;
  position: relative;
}
.link-item{
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  height: var(--bottom-nav-height);
  width: 95px;
  padding-top: 10px;
  text-decoration: none;
  transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}
.link-item.active{
  transform: translateY(-10px);
}
.link-icon{
  font-size: 30px;
  color: var(--color-text-secondary);
  transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}
.link-item.active .link-icon{
  color: var(--color-text);
}
.link-text{
  position: absolute;
  font-size: 12px;
  font-weight: 500;
  color: var(--color-text-secondary);
  opacity: 0;
  transform: translateY(32px);
  transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}
.link-item.active .link-text{
  opacity: 1;
}
.indicator{
  position: absolute;
  top: -14px;
  left: 48px;
  height: 36px;
  width: 36px;
  background-color: var(--color-background);
  border: 6px solid var(--color-surface);
  border-radius: 50%;
  transform: translateX(-50%);
  transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}
.indicator::before,
.indicator::after{
  content: '';
  position: absolute;
  bottom: -8px;
  height: 24px;
  width: 19px;
}
.indicator::before{
  left: -22px;
  background-color: var(--color-background);
  border-top-right-radius: 25px;
  box-shadow: 1px -13px var(--color-surface);
}
.indicator::after{
  right: -22px;
  background-color: var(--color-background);
  border-top-left-radius: 25px;
  box-shadow: -1px -13px var(--color-surface);
}

/* Mobile */
@media (max-width: 768px) {
  .dashboard-header {
    padding: 0 var(--space-md);
  }

  .dashboard-content {
    padding: var(--space-base);
    /*
    padding-bottom: calc(var(--bottom-nav-height))
    */
  }

  .dashboard-content::-webkit-scrollbar {display: none;}

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-sm);
  }

  .chart-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-table-container {
    overflow-x: auto;
  }
}

/* Small Mobile */
@media (max-width: 480px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-table-header {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-sm);
  }
}

/* Focus Styles */
*:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px var(--color-primary);
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

.side-menu {
  width: 100vw;
  height: 100vh;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 200;
  background: var(--color-overlay);
  visibility: hidden;
  transition: all .3s ease;
}
.side-area {
  position: absolute;
  right: -80vw;
  width: 80vw;
  height: 100vh;
  overflow-y: auto;
  transition: .5s ease;
  padding: 15px;
  padding-top: 70px;
  background: var(--color-background);
}
.side-menu.active {
  visibility: visible;
}
.side-menu.active .side-area {
  right: 0;
}
.close-menu {
  position: absolute;
  left: 20px;
  top: 10px;
  font-size: 30px;
}
.convo-list {
  list-style-type: none;
}
.convo-item {
  padding: 10px;
}
.convo-item:hover {
  background: var(--color-surface)
}

.side-con {
  position: fixed;
  width: 100%;
  height: 100vh !important;
  overflow-y: hidden;
  left: 110%;
  top: 0;
  z-index: 270;
  padding: 0px;
  background: var(--color-surface);
  max-width: 100%;
  overflow-x: hidden;
  transition: all .5s ease;
}
.side-con.active {
  left: 0; 
}

.profile-section {
  width: 100%;
  margin: 10px auto;
  background: var(--bg-container);
  border-radius: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}
.user-bio-con {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 20px;
  margin-bottom: 20px;
}
.user-bio-con img {
  width: 70px;
  height: 70px;
  border-radius: 50%;
}
.text-muted {
  color: var(--color-text-muted);
}
.user-reg-con {
  padding: 10px 0;
  border: 1px solid var(--color-text-muted);
  border-radius: 20px;
}
.user-info-con {
  border-bottom: 1px solid var(--color-text-muted);
}
.user-reg-con > div {
  padding: 10px 20px;
}
.user-info-con > div {
  padding: 10px 5px;
}
.tab-pane {
  padding-top: 20px !important;
}

.classmate-con {
  max-height: calc(100vh - 430px);
  overflow-y: auto;
}

.alert {
  position: fixed;
  bottom: 0;
  left: 0;
  z-index: 100;
  width: 100%;
}

.classmate-item {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 15px;
  padding: 5px;
  margin-bottom: 15px;
}
.classmate-item img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  padding: 3px;
  border: 1px solid var(--color-text-secondary);
}

.profile-item {
  width: 100%;
  display: flex;
  font-size: 16px;
  padding: 10px 0;
  justify-content: space-between;
  align-items: center;
}
.profile-item > div:nth-child(1) {
  color: var(--color-text)
}
.profile-item > div:nth-child(2) {
  color: var(--color-text-secondary)
}
input.toggle-input {
  height: 0;
  width: 0;
  visibility: hidden;
  transition: all 750ms !important;
}
.toggle-label {
  cursor: pointer;
  text-indent: -9999px;
  width: 40px;
  height: 18px;
  background: grey;
  float: right;
  border-radius: 100px;
  position: relative;
}
.toggle-label:after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 12px;
  height: 12px;
  background: #fff;
  border-radius: 90px;
  transition: 0.3s;
  transition: all 750ms !important;
}
input.toggle-input:checked + .toggle-label {
  background: var(--color-info);
}
input.toggle-input:checked + .toggle-label:after {
  left: calc(100% - 5px);
  transform: translateX(-100%);
  transition: all 750ms !important;
}
.toggle-label:active:after {
  width: 45px;
  transition: all 750ms !important;
}

.modal-con {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.7);
  z-index: 900;
  display: none;
  justify-content: center;
  align-items: center;
  padding: 20px;
}
.modal-con.modal-top {
  align-items: flex-start;
}
.modal-con.active {
  display: flex;
}
.modal-body {
  width: 95%;
  max-height: 90vh;
  overflow-y: auto;
  max-width: 700px;
  background: var(--color-surface);
  border-radius: 20px;
  padding: 20px;
  position: relative;
}
.modal-body > .close-modal {
  position: absolute;
  top: -10px;
  right: -10px;
  z-index: 50;
  font-size: 35px;
  cursor: pointer;
  font-weight: 100;
  padding: 10px;
  width: 70px;
  height: 70px;
  color: var(--color-text);
  background: var(--color-background);
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
}
.modal-body .modal-content {
  border: none !important;
}
.small-con .modal-body {
  max-width: 400px;
}
.form-control {
  background: var(--color-background) !important;
  color: var(--color-text) !important;
  border: 1px solid var(--color-background) !important;
}
.form-control:focus {
  background: var(--color-background) !important;
  color: var(--color-text) !important;
  border: 1px solid var(--color-text-secondary) !important;
}


.nav-tabs {
  border-bottom: 1px solid #ddd;
  margin-top: 20px;
}
.nav-link {
  background: none !important;
  color: var(--color-text-muted);
  outline: none !important;
}
.nav-link.active {
  background: none !important;
  outline: none !important;
  border: none !important;
  border-bottom: 1px solid var(--color-text) !important;
  color: var(--color-text) !important;
}


/* Eduka AI section */

.chatbot-popup {
  position: relative;
  width: 100vw;
  overflow:hidden;
  height: calc(100vh - var(--header-height) - 35px) !important;
  background: var(--color-surface);
  padding-bottom: 50px;
  transition: all 0.1s ease;
}
.chat-body {
  padding: 25px 22px;
  gap: 20px;
  display: flex;
  height: 100% !important;
  overflow-y: auto;
  flex-direction: column;
  scrollbar-width: thin;
  width: 100%;
  scrollbar-color: none;
}
.chat-body, .chat-form .message-input:hover {
  scrollbar-color: #ccccf5 transparent;
}
.chat-body .message {
  display: flex;
  gap: 11px;
  align-items: center;
}
.chat-body .message .bot-avatar {
  width: 35px;
  height: 35px;
  padding: 6px;
  fill: #fff;
  flex-shrink: 0;
  margin-bottom: 2px; align-self: flex-end; border-radius: 50%;
  background: #5350C4;
}
.chat-body .message .message-text {
  padding: 12px 16px; max-width: 75%; font-size: 0.95rem; 
}
.chat-body .bot-message.thinking .message-text { padding: 2px 16px; }
.chat-body .bot-message .message-text {
  background: #F2F2FF; border-radius: 13px 13px 13px 3px; 
  color: #000;
}
.chat-body .user-message { 
  flex-direction: column; align-items: flex-end; 
}
.chat-body .user-message .message-text { 
  color: #fff; background: #5350C4;
  border-radius: 13px 13px 3px 13px; 
}
.chat-body .user-message .attachment { 
  width: 50%; margin-top: -7px; border-radius: 13px 3px 13px 13px; 
}
.chat-body .bot-message .thinking-indicator { display: flex; gap: 4px; padding-block: 15px; } .chat-body .bot-message .thinking-indicator .dot { height: 7px; width: 7px; opacity: 0.7; border-radius: 50%; background: #6F6BC2; animation: dotPulse 1.8s ease-in-out infinite; } .chat-body .bot-message .thinking-indicator .dot:nth-child(1) { animation-delay: 0.2s; } .chat-body .bot-message .thinking-indicator .dot:nth-child(2) { animation-delay: 0.3s; } .chat-body .bot-message .thinking-indicator .dot:nth-child(3) { animation-delay: 0.4s; } @keyframes dotPulse { 0%, 44% { transform: translateY(0); } 28% { opacity: 0.4; transform: translateY(-4px); } 44% { opacity: 0.2; } } 
.chat-footer { 
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: 50;
  padding: 15px 22px 20px;
} 
.chat-footer .chat-form { 
  display: flex; align-items: center; position: relative;
  background: #fff; border-radius: 32px;
  outline: 1px solid #CCCCE5;
  transition: 0s ease, border-radius 0s; 
} 
.chat-form .message-input { 
  width: 100%; height: 47px; outline: none; 
  resize: none; border: none; max-height: 110px; 
  scrollbar-width: thin; border-radius: inherit; 
  font-size: 0.95rem; padding: 14px 0 12px 18px; 
  scrollbar-color: transparent transparent; 
} 
.chat-form .chat-controls { 
  gap: 3px; height: 47px; display: flex; 
  padding-right: 6px; align-items: center; 
  align-self: flex-end; 
} .chat-form .chat-controls button { height: 35px; width: 35px; border: none; cursor: pointer; color: #706DB0; border-radius: 50%; font-size: 1.15rem; background: none; transition: 0.2s ease; } .chat-form .chat-controls button:hover, body.show-emoji-picker .chat-controls #emoji-picker { color: #3d39ac; background: #f1f1ff; } .chat-form .chat-controls #send-message { color: #fff; display: none; background: #5350C4; } .chat-form .chat-controls #send-message:hover { background: #3d39ac; } .chat-form .message-input:valid~.chat-controls #send-message { display: block; } .chat-form .file-upload-wrapper { position: relative; height: 35px; width: 35px; } .chat-form .file-upload-wrapper :where(button, img) { position: absolute; } .chat-form .file-upload-wrapper img { height: 100%; width: 100%; object-fit: cover; border-radius: 50%; } .chat-form .file-upload-wrapper #file-cancel { color: #ff0000; background: #fff; } .chat-form .file-upload-wrapper :where(img, #file-cancel), .chat-form .file-upload-wrapper.file-uploaded #file-upload { display: none; } .chat-form .file-upload-wrapper.file-uploaded img, .chat-form .file-upload-wrapper.file-uploaded:hover #file-cancel { display: block; } em-emoji-picker { position: absolute; left: 50%; top: -337px; width: 100%; max-width: 350px; visibility: hidden; max-height: 330px; transform: translateX(-50%); } body.show-emoji-picker em-emoji-picker { visibility: visible; } /* Responsive media query for mobile screens */ @media (max-width: 520px) { #chatbot-toggler { right: 20px; bottom: 20px; } .chatbot-popup { right: 0; bottom: 0; height: 100%; border-radius: 0; width: 100%; } .chatbot-popup .chat-header { padding: 12px 15px; } .chat-body { height: calc(90% - 55px); padding: 25px 15px; } .chat-footer { padding: 10px 15px 15px; } .chat-form .file-upload-wrapper.file-uploaded #file-cancel { opacity: 0; } }
