/* 
Name                 : Panelry – Task, Project, CRM & SaaS Admin Dashboard Template
Author               : Panelry
Url                  : https://www.templaterise.com/template/panelry-task-project-crm-saas-admin-dashboard-template
*/

:root {
  /* Light Theme (Default) */
  --bg: #f4f6fb;
  --card: #ffffff;
  --text: #1e293b;
  --text-secondary: #6c7480;
  --accent: #4a67ff;
  --accent-2: #00b7ff;
  --hover: #f0f2f7;
  --border: #e5e8ec;
  --navbar-bg: #ffffff;
  --sidebar-bg: #ffffff;
  --shadow: 0 4px 18px rgba(0, 0, 0, 0.05);
  --radius: 12px;
  --gap: 18px;
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  --info: #3b82f6;
  --accent-rgb: 59, 130, 246;
}

.dark-mode {
  /* Dark Theme */
  --bg: #0f172a;
  --card: #1e293b;
  --text: #f1f5f9;
  --text-secondary: #94a3b8;
  --accent: #6366f1;
  --accent-2: #06b6d4;
  --hover: #2d3748;
  --border: #334155;
  --navbar-bg: #1e293b;
  --sidebar-bg: #1e293b;
  --shadow: 0 4px 18px rgba(0, 0, 0, 0.25);
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  --info: #3b82f6;
  --accent-rgb: 96, 165, 250;
}

* {
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

body {
  font-family: "Inter", system-ui, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  padding-top: 72px;
}

/* ========== NAVBAR ========== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 72px;
  background: var(--navbar-bg);
  border-bottom: 1px solid var(--border);
  padding: 0 18px;
  z-index: 1000;
  box-shadow: var(--shadow);
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-right: auto;
  padding: 0;
}

.logo {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: white;
  font-weight: 700;
  font-size: 18px;
  box-shadow: 0 4px 12px rgba(74, 103, 255, 0.25);
}

.logo img{
  width: 40px;
  height: 40px;
}

.brand-text img {
  width: 120px;
  height: auto;
}

.brand-text h1 {
  font-size: 16px;
  margin: 0;
  line-height: 1;
  color: var(--text);
}

.brand-text p {
  margin: 4px 0 0 0;
  font-size: 12px;
  color: var(--text-secondary);
}

.navbar .nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 10px;
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 14px;
  transition: all 0.15s ease;
}

.navbar .nav-link svg {
  width: 16px;
  height: 16px;
  opacity: 0.8;
}

.navbar .nav-link:hover {
  color: var(--text);
  background: var(--hover);
  transform: translateY(-2px);
}

.navbar .nav-link.active {
  background: rgba(var(--accent-rgb, 74, 103, 255), 0.1);
  color: var(--accent);
  box-shadow: 0 4px 12px rgba(var(--accent-rgb, 74, 103, 255), 0.12);
}

.navbar .icon-btn {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  background: var(--card);
  border-radius: 10px;
  border: 1px solid var(--border);
  transition: all 0.15s;
  cursor: pointer;
  padding: 0;
  color: var(--text);
}

.navbar .icon-btn:hover {
  background: var(--hover);
  transform: translateY(-2px);
}

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

.profile {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 8px;
  border-radius: 999px;
  cursor: pointer;
}

.avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--hover);
  display: grid;
  place-items: center;
  font-weight: 700;
  border: 1px solid var(--border);
  color: var(--text);
}

.profile .name {
  font-size: 13px;
  font-weight: 700;
}

.profile-dropdown .dropdown-menu {
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.profile-dropdown .dropdown-header {
  font-weight: 600;
  font-size: 1rem;
  color: var(--text);
  border-bottom: 1px solid var(--border);
  padding: 0.75rem;
}

.profile-dropdown .dropdown-item {
  gap: 0.75rem;
  padding: 0.65rem 1.5rem;
  color: var(--text);
}

.profile-dropdown .dropdown-item i {
  margin-right: 8px;
  font-size: 1.1rem;
}

.profile-dropdown .sign-out {
  border-top: 1px solid var(--border);
  text-align: center;
  padding: 4px 0;
}

.scroll-y {
  overflow-y: auto;
}

.h-380 {
  height: 380px;
}

.dropdown-toggle::after {
  display: none !important;
}

.notify-dropdown .dropdown-menu {
  background: var(--card);
  color: var(--text);
}

.notify-dropdown .timeline {
  list-style: none;
  width: 250px;
}

.notify-dropdown .timeline .timeline-panel {
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--border);
  padding-bottom: 15px;
  margin-bottom: 15px;
}

.notify-dropdown .timeline .timeline-panel .media {
  width: 45px !important;
  height: 45px !important;
  font-size: 18px !important;
  border-radius: 12px;
  overflow: hidden;
  font-size: 20px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  align-self: start;
  background: var(--hover);
}

.notify-dropdown .media-body {
  flex: 1;
}

.notify-dropdown .all-notification {
  display: block;
  padding: 0.7rem;
  text-align: center;
  border-top: 1px solid var(--border);
  color: var(--accent);
  text-decoration: none;
}

.notify-dropdown .marker {
  position: absolute;
  top: 0px;
  right: 0px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  animation: pulse 1s ease-out infinite;
}

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

.search-dropdown {
  min-width: 280px;
  padding: 12px;
}

.search-input {
  width: 100%;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid var(--border);
  font-size: 14px;
  background: var(--card);
  color: var(--text);
}

.search-input:focus {
  outline: none;
  border-color: var(--accent);
}

.search-results {
  max-height: 200px;
  overflow-y: auto;
}

.search-results .muted {
  color: var(--text-secondary);
  text-align: center;
  padding: 8px 0;
}

/* ========== SIDEBAR ========== */
.sidebar {
  position: fixed;
  top: 72px;
  left: 0;
  width: 240px;
  height: calc(100vh - 72px);
  background: var(--sidebar-bg);
  border-right: 1px solid var(--border);
  padding: 14px 8px;
  box-shadow: var(--shadow);
  overflow-y: auto;
  transition: width 0.25s ease, transform 0.25s ease;
  z-index: 900;
}

.sidebar.collapsed {
  width: 80px;
}

.sidebar.show {
  transform: translateX(0);
}

.menu {
  list-style: none;
  padding: 6px;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.menu-item a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.12s;
}

.menu-item a svg {
  width: 20px;
  height: 20px;
  opacity: 0.85;
  flex: 0 0 20px;
}

.menu-item a:hover {
  background: var(--hover);
  color: var(--accent);
  transform: translateY(-2px);
}

.menu-item a.active {
  background: rgba(var(--accent-rgb, 74, 103, 255), 0.1);
  color: var(--accent);
  box-shadow: 0 4px 12px rgba(var(--accent-rgb, 74, 103, 255), 0.12);
}

.sidebar.collapsed .menu-item a span.label {
  display: none;
}

.sidebar.collapsed .menu-item a {
  justify-content: center;
  padding-left: 0;
  padding-right: 0;
}

.sidebar.collapsed .menu-item.has-submenu .arrow {
  display: none;
}

.has-submenu .arrow {
  margin-left: auto;
  transition: 0.2s;
}

.submenu {
  display: none;
  list-style: none;
  padding: 0;
  margin: 0;
}

.submenu li a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  font-size: 14px;
  color: var(--text-secondary);
}

.submenu svg {
  width: 16px;
  height: 16px;
  color: var(--text-secondary);
}

.submenu li a:hover {
  color: var(--accent);
}

.submenu li a:hover svg {
  color: var(--accent);
}

/* ========== MAIN CONTENT ========== */
.main {
  margin-top: 0;
  margin-left: 240px;
  padding: 28px;
  transition: margin-left 0.25s ease;
  min-height: 410px;
}

.sidebar.collapsed ~ .main {
  margin-left: 80px;
}

.page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 28px;
  flex-wrap: wrap;
  gap: 16px;
}

.page-title h1 {
  font-size: 28px;
  font-weight: 700;
  margin: 0;
}

.page-title p {
  color: var(--text-secondary);
  margin: 8px 0 0 0;
  font-size: 14px;
}

.page-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn-primary {
  background: var(--accent);
  border: none;
  padding: 10px 20px;
  border-radius: 10px;
  color: white;
  font-weight: 600;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
  text-decoration: none;
}

.btn-primary:hover {
  background: var(--accent);
  opacity: 0.9;
  transform: translateY(-2px);
  color: white;
}

.btn-secondary {
  background: var(--card);
  border: 1px solid var(--border);
  padding: 10px 20px;
  border-radius: 10px;
  color: var(--text);
  font-weight: 600;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
  text-decoration: none;
}

.btn-secondary:hover {
  background: var(--hover);
  transform: translateY(-2px);
  color: var(--text);
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--border);
  padding: 10px 20px;
  border-radius: 10px;
  color: var(--text);
  font-weight: 600;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.btn-outline:hover {
  background: var(--hover);
  transform: translateY(-2px);
  color: var(--text);
}

/* ========== STATS CARDS ========== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.stat-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: all 0.3s ease;
}

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

.stat-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.stat-icon {
  background: var(--bg);
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: var(--accent);
}

.stat-content h3 {
  font-size: 28px;
  font-weight: 700;
  margin: 0;
  line-height: 1;
}

.stat-icon.users {
  background: rgba(59, 130, 246, 0.1);
  color: var(--info);
}

.stat-icon.revenue {
  background: rgba(16, 185, 129, 0.1);
  color: var(--success);
}

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

.stat-icon.conversion {
  background: rgba(239, 68, 68, 0.1);
  color: var(--danger);
}

.stat-trend {
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 4px;
  font-weight: 600;
}

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

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

.stat-value {
  font-size: 32px;
  font-weight: 700;
  margin: 8px 0 4px 0;
}

.stat-label {
  color: var(--text-secondary);
  font-size: 14px;
  margin-top: 4px;
  /* font-weight: 500; */
}

.stat-change {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  margin-top: 8px;
}

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

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

/* ========== CHARTS SECTION ========== */
.charts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.chart-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.chart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.chart-title {
  font-size: 18px;
  font-weight: 700;
  margin: 0;
}

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

.chart-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--hover);
  border-radius: 8px;
  color: var(--text-secondary);
  font-size: 14px;
}

/* ========== TABLES ========== */
.table-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  margin-bottom: 30px;
}

.table-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.table-title {
  font-size: 18px;
  font-weight: 700;
  margin: 0;
}

.table-responsive {
  overflow-x: auto;
}

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

.custom-table thead {
  background: var(--hover);
}

.custom-table th {
  padding: 16px 20px;
  text-align: left;
  font-weight: 600;
  font-size: 14px;
  color: var(--text);
  border-bottom: 1px solid var(--border);
}

.custom-table td {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}

.custom-table tbody tr:hover {
  background: var(--hover);
}

.status-badge {
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  display: inline-block;
}

.status-active {
  background: rgba(16, 185, 129, 0.1);
  color: var(--success);
}

.status-pending {
  background: rgba(245, 158, 11, 0.1);
  color: var(--warning);
}

.status-completed {
  background: rgba(59, 130, 246, 0.1);
  color: var(--info);
}

.status-cancelled {
  background: rgba(239, 68, 68, 0.1);
  color: var(--danger);
}

.view-toggle {
  display: flex;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 4px;
}

.view-btn {
  padding: 8px 16px;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.view-btn:hover {
  background: var(--hover);
  color: var(--text);
}

.view-btn.active {
  background: var(--accent);
  color: white;
}

/* ========== TASK LIST ========== */
.tasks-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  margin-bottom: 30px;
}

.task-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.task-item {
  display: flex;
  align-items: center;
  padding: 16px;
  border-bottom: 1px solid var(--border);
  transition: all 0.2s ease;
}

.task-item:hover {
  background: var(--hover);
}

.task-item:last-child {
  border-bottom: none;
}

.task-checkbox {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  border: 2px solid var(--border);
  margin-right: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.task-checkbox.completed {
  background: var(--success);
  border-color: var(--success);
  color: white;
}

.task-content {
  flex: 1;
}

.task-title {
  font-weight: 600;
  margin-bottom: 4px;
}

.task-meta {
  font-size: 12px;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 12px;
}

.task-priority {
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
}

.priority-high {
  background: rgba(239, 68, 68, 0.1);
  color: var(--danger);
}

.priority-medium {
  background: rgba(245, 158, 11, 0.1);
  color: var(--warning);
}

.priority-low {
  background: rgba(59, 130, 246, 0.1);
  color: var(--info);
}

/* ========== ACTIVITY FEED ========== */

.activity-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  margin-bottom: 30px;
}

/* Activity Timeline */
.activity-timeline {
  margin-top: 20px;
}

.activity-item {
  position: relative;
  padding-left: 24px;
  margin-bottom: 24px;
}

.activity-item:last-child {
  margin-bottom: 0;
}

.activity-item:before {
  content: "";
  position: absolute;
  left: 7px;
  top: 0;
  bottom: -24px;
  width: 2px;
  background: var(--border);
}

.activity-item:last-child:before {
  bottom: 0;
}

.activity-dot {
  position: absolute;
  left: 0;
  top: 0;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--accent);
  border: 3px solid var(--card);
}

.activity-content {
  background: var(--hover);
  padding: 12px;
  border-radius: 8px;
  margin-left: 8px;
}

.activity-meta {
  display: flex;
  justify-content: space-between;
  margin-bottom: 4px;
  font-size: 12px;
  color: var(--text-secondary);
}

.activity-text {
  font-size: 14px;
  line-height: 1.5;
}

.activity-user {
  color: var(--text);
  font-weight: 600;
}

.form-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  margin-bottom: 24px;
}

.form-header {
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.form-title {
  font-size: 20px;
  font-weight: 700;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.form-title i {
  color: var(--accent);
}

.form-subtitle {
  color: var(--text-secondary);
  font-size: 14px;
  margin-top: 4px;
}

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

.form-label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  font-size: 14px;
  color: var(--text);
}

.form-label .required {
  color: var(--danger);
}

.form-control,
.form-select {
  width: 100%;
  padding: 12px 16px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  font-size: 14px;
  transition: all 0.2s ease;
}

.form-control:focus,
.form-select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(var(--accent-rgb, 74, 103, 255), 0.1);
}

.form-control::placeholder {
  color: var(--text-secondary);
  opacity: 0.7;
}

textarea.form-control {
  min-height: 120px;
  resize: vertical;
}

/* Team Members Selection */

.project-overview .team-section {
  margin: 20px 0;
}

.project-overview .team-members {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 12px;
}

.project-overview .team-member {
  display: flex;
  align-items: center;
  flex-direction: column;
  padding: 8px 12px;
  background: var(--hover);
  border-radius: 8px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
}

.project-overview .team-member:hover {
  background: rgba(var(--accent-rgb, 74, 103, 255), 0.1);
}

.project-overview .team-member.selected {
  background: rgba(var(--accent-rgb, 74, 103, 255), 0.15);
  border-color: var(--accent);
}

.project-overview .team-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--card);
  font-weight: 600;
  font-size: 12px;
  border: 1px solid var(--border);
}

.project-overview .team-name {
  font-size: 14px;
  font-weight: 500;
}

/* File Upload */
.file-upload {
  border: 2px dashed var(--border);
  border-radius: 10px;
  padding: 40px 20px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.file-upload:hover {
  border-color: var(--accent);
  background: rgba(var(--accent-rgb, 74, 103, 255), 0.05);
}

.file-upload i {
  font-size: 48px;
  color: var(--accent);
  margin-bottom: 16px;
}

.file-upload p {
  margin: 0 0 8px 0;
  font-weight: 600;
}

.file-upload span {
  font-size: 13px;
  color: var(--text-secondary);
}

/* Progress Bar */
.progress-container {
  margin-top: 20px;
}

.progress-section,
.project-progress {
  margin-bottom: 20px;
}

.progress-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
}

.progress-title {
  font-size: 16px;
  font-weight: 600;
}

.progress-label {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 500;
}

.progress-percent {
  font-size: 16px;
  font-weight: 700;
  color: var(--accent);
}

.progress {
  height: 8px;
  background: var(--hover);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 8px;
}

.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  border-radius: 4px;
  transition: width 0.3s ease;
}

.progress-stats {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--text-secondary);
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  border-radius: 4px;
  transition: width 0.3s ease;
}

/* Form Actions */
.form-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  margin-top: 32px;
}

/* ========== PROJECTS LISTING ========== */
.projects-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 24px;
  gap: 16px;
}

.filter-controls {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 8px 16px;
  border-radius: 8px;
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-btn:hover,
.filter-btn.active {
  background: rgba(var(--accent-rgb, 74, 103, 255), 0.1);
  color: var(--accent);
  border-color: var(--accent);
}

.search-box {
  position: relative;
  width: 300px;
}

.search-box input {
  width: 100%;
  padding: 10px 16px 10px 40px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  font-size: 14px;
  transition: all 0.2s ease;
}

.search-box input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(var(--accent-rgb, 74, 103, 255), 0.1);
}

.search-box i {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-secondary);
}

/* Project Grid */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 24px;
  margin-bottom: 30px;
}

.project-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

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

.project-header {
  background: var(--card);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
}

.project-title {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 4px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.project-title a {
  color: var(--text);
  text-decoration: none;
}

.project-title a:hover {
  color: var(--accent);
}

.project-category {
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 20px;
  background: var(--hover);
  color: var(--text-secondary);
  font-weight: 500;
}

.project-description {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 20px;
  flex-grow: 1;
}

.project-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 20px;
  font-size: 13px;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-secondary);
}

.project-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.team-avatars {
  display: flex;
}

.team-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid var(--card);
  margin-left: -6px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--hover);
  font-size: 10px;
  font-weight: 600;
  color: var(--text);
}

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

.project-status {
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}

.status-active {
  background: rgba(16, 185, 129, 0.1);
  color: var(--success);
}
.status-planning {
  background: rgba(59, 130, 246, 0.1);
  color: var(--info);
}
.status-delayed {
  background: rgba(245, 158, 11, 0.1);
  color: var(--warning);
}
.status-completed {
  background: rgba(16, 185, 129, 0.2);
  color: var(--success);
}
.status-cancelled {
  background: rgba(239, 68, 68, 0.1);
  color: var(--danger);
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  background: var(--card);
  border-radius: var(--radius);
  border: 2px dashed var(--border);
}

.empty-state i {
  font-size: 48px;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.empty-state h3 {
  font-size: 18px;
  margin-bottom: 8px;
  color: var(--text);
}

.empty-state p {
  color: var(--text-secondary);
  margin-bottom: 24px;
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 40px;
}

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

.page-link {
  padding: 8px 14px;
  border-radius: 8px;
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--text);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s ease;
}

.page-link:hover {
  background: var(--hover);
}

.page-link.active {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}

/* ========== PROJECT DETAILS ========== */
.project-details-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 24px;
  margin-bottom: 30px;
}

@media (max-width: 992px) {
  .project-details-grid {
    grid-template-columns: 1fr;
  }
}

/* Project Overview Card */
.project-overview {
  background: var(--card);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  margin-bottom: 24px;
}


.project-title-section h2 {
  font-size: 24px;
  font-weight: 700;
  margin: 0 0 8px 0;
}

.project-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 14px;
  color: var(--text-secondary);
}

.project-status-badge {
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  display: inline-block;
}

.status-active {
  background: rgba(16, 185, 129, 0.1);
  color: var(--success);
}
.status-planning {
  background: rgba(59, 130, 246, 0.1);
  color: var(--info);
}
.status-delayed {
  background: rgba(245, 158, 11, 0.1);
  color: var(--warning);
}
.status-completed {
  background: rgba(16, 185, 129, 0.2);
  color: var(--success);
}

/* Project Description */

.section-title {
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 12px 0;
}

.description-content {
  line-height: 1.6;
  color: var(--text);
}



.member-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 16px;
  margin-bottom: 8px;
  border: 2px solid var(--border);
}

.member-name {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 4px;
}

.member-role {
  font-size: 12px;
  color: var(--text-secondary);
}

/* Milestones */
.milestones-section {
  margin-bottom: 24px;
}

.milestone-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.milestone-item {
  display: flex;
  align-items: center;
  padding: 16px;
  border-bottom: 1px solid var(--border);
}

.milestone-item:last-child {
  border-bottom: none;
}

.milestone-checkbox {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid var(--border);
  margin-right: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.milestone-checkbox.completed {
  background: var(--success);
  border-color: var(--success);
  color: white;
}

.milestone-content {
  flex: 1;
}

.milestone-title {
  font-weight: 600;
  margin-bottom: 4px;
}

.milestone-meta {
  font-size: 13px;
  color: var(--text-secondary);
  display: flex;
  gap: 12px;
}

/* Sidebar Cards */
.project-info-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  margin-bottom: 24px;
}

.info-item {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.info-item:last-child {
  border-bottom: none;
}

.info-label {
  color: var(--text-secondary);
  font-size: 14px;
}

.info-value {
  font-weight: 600;
  font-size: 14px;
}

/* Files Section */
.files-section {
  margin-bottom: 24px;
}

.file-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.file-item {
  display: flex;
  align-items: center;
  padding: 12px;
  border-radius: 8px;
  margin-bottom: 8px;
  background: var(--hover);
  transition: all 0.2s ease;
}

.file-item:hover {
  background: rgba(var(--accent-rgb, 74, 103, 255), 0.1);
}

.file-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 12px;
  background: var(--card);
  color: var(--accent);
}

.file-info {
  flex: 1;
}

.file-name {
  font-weight: 600;
  margin-bottom: 2px;
}

.file-size {
  font-size: 12px;
  color: var(--text-secondary);
}

/* Recent Activity */
/* .activity-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.activity-item {
  display: flex;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.activity-item:last-child {
  border-bottom: none;
}

.activity-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 12px;
  flex-shrink: 0;
}

.activity-icon.user {
  background: rgba(59, 130, 246, 0.1);
  color: var(--info);
}
.activity-icon.system {
  background: rgba(16, 185, 129, 0.1);
  color: var(--success);
}
.activity-icon.file {
  background: rgba(245, 158, 11, 0.1);
  color: var(--warning);
}

.activity-content {
  flex: 1;
}

.activity-text {
  margin: 0 0 4px 0;
  font-size: 14px;
}

.activity-time {
  font-size: 12px;
  color: var(--text-secondary);
} */

/* Tabs Navigation */
.project-tabs {
  background: var(--card);
  border-radius: var(--radius);
  padding: 0;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  margin-bottom: 24px;
  overflow: hidden;
}

.tabs-header {
  display: flex;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}

.tab-btn {
  padding: 16px 24px;
  background: none;
  border: none;
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}

.tab-btn:hover {
  color: var(--text);
  background: var(--hover);
}

.tab-btn.active {
  color: var(--accent);
}

.tab-btn.active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent);
}

.tab-content {
  padding: 24px;
  display: none;
}

.tab-content.active {
  display: block;
}

/* ========== TASKS TAB ========== */

.tasks-tab-content {
  padding: 0 !important;
}

.tasks-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.task-page.tasks-header {
  margin-bottom: 24px;
}

.project-details .tasks-header {
  padding: 24px 24px 0 24px;
}

.tasks-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}


.tasks-search {
  position: relative;
  min-width: 200px;
}

.tasks-search input {
  width: 100%;
  padding: 8px 16px 8px 40px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-size: 14px;
}

.tasks-search i {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-secondary);
}

.tasks-list-view .tasks-table-container {
  background: var(--card);
  border-radius: var(--radius);
  overflow-x: auto;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  margin-bottom: 30px;
}

.project-details .tasks-table-container {
  padding: 24px;
  padding-top: 16px;
}

.tasks-table-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

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

.tasks-table thead {
  background: var(--hover);
}

.tasks-table th {
  padding: 12px 16px;
  text-align: left;
  font-weight: 600;
  font-size: 13px;
  color: var(--text);
  border-bottom: 1px solid var(--border);
}

.tasks-table td {
  padding: 16px;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}

.tasks-table tbody tr:hover {
  background: var(--hover);
}

.task-checkbox-cell {
  width: 40px;
}

.task-checkbox {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  border: 2px solid var(--border);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.task-checkbox.completed {
  background: var(--success);
  border-color: var(--success);
  color: white;
}

.task-title-cell {
  font-weight: 600;
}

.task-assignee {
  display: flex;
  align-items: center;
  gap: 8px;
}

.assignee-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--accent);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 600;
}

.task-priority {
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}

.priority-high {
  background: rgba(239, 68, 68, 0.1);
  color: var(--danger);
}
.priority-medium {
  background: rgba(245, 158, 11, 0.1);
  color: var(--warning);
}
.priority-low {
  background: rgba(59, 130, 246, 0.1);
  color: var(--info);
}

.task-status {
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}

.status-todo {
  background: rgba(var(--text-secondary-rgb, 108, 116, 128), 0.1);
  color: var(--text-secondary);
}
.status-in-progress {
  background: rgba(59, 130, 246, 0.1);
  color: var(--info);
}
.status-review {
  background: rgba(245, 158, 11, 0.1);
  color: var(--warning);
}
.status-completed {
  background: rgba(16, 185, 129, 0.1);
  color: var(--success);
}

.task-actions {
  display: flex;
  gap: 8px;
}

.task-action-btn {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.task-action-btn:hover {
  background: var(--hover);
  transform: translateY(-1px);
}

.tasks-grid-view {
  display: none;
}

.tasks-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
  margin-bottom: 30px;
}

.task-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.tasks-grid .task-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.task-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
}

.task-card-checkbox {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  border: 2px solid var(--border);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.task-card-checkbox.completed {
  background: var(--success);
  border-color: var(--success);
  color: white;
}

.task-card-title {
  flex: 1;
  margin-left: 12px;
}

.task-card-title h4 {
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 4px 0;
  line-height: 1.4;
}

.task-card-project {
  font-size: 12px;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 4px;
}

.task-card-project a {
  color: var(--accent);
  text-decoration: none;
}

.task-card-project a:hover {
  text-decoration: underline;
}

.task-card-description {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 20px;
  flex-grow: 1;
}

.task-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
  font-size: 13px;
}

.task-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.task-card-assignee {
  display: flex;
  align-items: center;
  gap: 8px;
}

.card-assignee-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 12px;
  border: 2px solid var(--card);
}

.task-card-actions {
  display: flex;
  gap: 8px;
}

.card-action-btn {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.card-action-btn:hover {
  background: var(--hover);
  transform: translateY(-1px);
}

/* ========== FILES TAB ========== */
.files-tab-content {
  padding: 0 !important;
}

.files-header {
  padding: 24px 24px 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.files-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.file-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.file-filter-btn {
  padding: 8px 16px;
  border-radius: 8px;
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.file-filter-btn:hover,
.file-filter-btn.active {
  background: rgba(var(--accent-rgb, 74, 103, 255), 0.1);
  color: var(--accent);
  border-color: var(--accent);
}

.files-grid {
  padding: 24px;
  padding-top: 16px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
}

@media (max-width: 768px) {
  .files-grid {
    grid-template-columns: 1fr;
  }
  .search-dropdown {
    min-width: 250px;
  }
}

.file-card {
  background: var(--hover);
  border-radius: 12px;
  padding: 20px;
  border: 1px solid var(--border);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

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

.file-card-icon {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  font-size: 24px;
}

.file-card-icon.pdf {
  background: rgba(239, 68, 68, 0.1);
  color: var(--danger);
}
.file-card-icon.doc {
  background: rgba(59, 130, 246, 0.1);
  color: var(--info);
}
.file-card-icon.img {
  background: rgba(16, 185, 129, 0.1);
  color: var(--success);
}
.file-card-icon.zip {
  background: rgba(245, 158, 11, 0.1);
  color: var(--warning);
}
.file-card-icon.fig {
  background: rgba(139, 92, 246, 0.1);
  color: #8b5cf6;
}

.file-card-name {
  font-weight: 600;
  margin-bottom: 4px;
  word-break: break-all;
}

.file-card-meta {
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.file-card-actions {
  display: flex;
  gap: 8px;
  width: 100%;
}

.file-card-btn {
  flex: 1;
  padding: 8px;
  border-radius: 8px;
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.file-card-btn:hover {
  background: var(--hover);
}

.file-card-btn.primary {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}

.file-card-btn.primary:hover {
  opacity: 0.9;
}

.footer {
  background: var(--card);
  text-align: center;
  padding: 18px;
  margin-left: 240px;
  transition: 0.25s;
  font-size: 14px;
  color: var(--text-secondary);
  border-top: 1px solid var(--border);
}

.sidebar.collapsed ~ .footer {
  margin-left: 80px;
}

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

/* ========== THEME SWITCHER ========== */
.theme-switcher {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: white;
  border: none;
  box-shadow: 0 4px 12px rgba(var(--accent-rgb, 74, 103, 255), 0.4);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.theme-switcher:hover {
  transform: scale(1.1);
}

/* ========== OFF CANVAS STYLES ========== */
.offcanvas {
  background: var(--card);
  color: var(--text);
}

.offcanvas-header {
  border-bottom: 1px solid var(--border);
}

.offcanvas-title {
  color: var(--text);
  font-weight: 700;
}

.btn-close {
  filter: invert(0.5);
}

.dark-mode .btn-close {
  filter: invert(1);
}

.nav-tabs {
  border: none;
  gap: 0;
  background: var(--hover);
  padding: 4px;
  border-radius: 10px;
}

.nav-tabs .nav-link {
  flex: 1;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  padding: 12px;
  transition: all 0.2s ease;
  color: var(--text-secondary);
  background: transparent;
}

.nav-tabs .nav-link.active {
  background: var(--accent);
  color: white;
}

.color-option {
  width: 50px;
  height: 50px;
  border-radius: 10px;
  border: 3px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}

.color-option.selected {
  border-color: var(--accent);
}

.color-option.selected::after {
  content: "✓";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 20px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.color-picker {
  width: 60px;
  height: 60px;
  border-radius: 10px;
  border: 1px solid var(--border);
  cursor: pointer;
}

.reset-btn {
  background: #ff4081;
  color: white;
  border: none;
  border-radius: 10px;
  padding: 12px 32px;
  font-weight: 600;
  font-size: 14px;
  width: 100%;
  transition: all 0.2s ease;
}

.reset-btn:hover {
  background: #f50057;
  transform: translateY(-2px);
}

.h6 {
  font-weight: 700;
  color: var(--text);
  margin-bottom: 16px;
  font-size: 14px;
}

.text-muted {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ========== MOBILE RESPONSIVE ========== */
@media (max-width: 900px) {
  .sidebar {
    transform: translateX(-100%);
  }

  .sidebar.show {
    transform: translateX(0);
  }


  .main {
    padding: 16px;
  }

  .main,
  .footer {
    padding-bottom: 20px;
    margin-left: 0 !important;
  }

  .navbar .navbar-nav {
    display: none !important;
  }

  .sidebar.collapsed {
    width: 240px;
  }

  .brand-text {
    display: none;
  }

  #collapseBtn {
    display: none;
  }

  .theme-switcher {
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    font-size: 20px;
  }
}

@media (max-width: 540px) {
  .page-header {
    margin-top: 70px;
  }
}

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

  .page-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .page-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .form-actions {
      gap: 1rem;
      flex-wrap: wrap;
      justify-content: space-around;
  }

}

/* ========== UTILITIES ========== */
.mb-0 {
  margin-bottom: 0 !important;
}

.mt-2 {
  margin-top: 8px !important;
}

.mb-2 {
  margin-bottom: 8px !important;
}

.mb-4 {
  margin-bottom: 16px !important;
}

.w-100 {
  width: 100% !important;
}

.text-center {
  text-align: center !important;
}

.d-flex {
  display: flex !important;
}

.align-items-center {
  align-items: center !important;
}

.justify-content-between {
  justify-content: space-between !important;
}

.gap-2 {
  gap: 8px !important;
}

.gap-3 {
  gap: 12px !important;
}

.gap-4 {
  gap: 16px !important;
}

.flex-wrap {
  flex-wrap: wrap !important;
}

.text-muted {
  color: var(--text-secondary) !important;
}

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

.sidebar::-webkit-scrollbar-thumb {
  background: var(--hover);
  border-radius: 8px;
}

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

/* Selection Color */
::selection {
  background: rgba(var(--accent-rgb, 74, 103, 255), 0.3);
  color: var(--text);
}

/* Select2 Custom Styling - Custom Theme */
.select2-container--default .select2-selection {
  background: var(--card) !important;
  border: 1px solid var(--border) !important;
  border-radius: 10px !important;
  color: var(--text) !important;
  padding: 12px 16px !important;
  min-height: 46px !important;
  display: flex !important;
  align-items: center !important;
  transition: all 0.2s ease !important;
}

.select2-container--default.select2-container--focus .select2-selection {
  border-color: var(--accent) !important;
  box-shadow: 0 0 0 3px rgba(var(--accent-rgb, 74, 103, 255), 0.1) !important;
  outline: none !important;
}

.select2-container--default
  .select2-selection--multiple
  .select2-selection__rendered {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 6px !important;
  padding: 0 !important;
}

.select2-container--default
  .select2-selection--multiple
  .select2-selection__choice {
  background: var(--hover) !important;
  border: 1px solid var(--border) !important;
  border-radius: 6px !important;
  color: var(--text) !important;
  padding: 4px 10px !important;
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
  margin: 0 !important;
  font-size: 13px !important;
}

.select2-container--default
  .select2-selection--multiple
  .select2-selection__choice__remove {
  color: var(--text-secondary) !important;
  border: none !important;
  background: none !important;
  padding: 0 !important;
  margin: 0 !important;
  width: 16px !important;
  height: 16px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 50% !important;
  font-size: 16px !important;
  line-height: 1 !important;
  transition: all 0.2s ease !important;
}

.select2-container--default
  .select2-selection--multiple
  .select2-selection__choice__remove:hover {
  background: rgba(239, 68, 68, 0.1) !important;
  color: var(--danger) !important;
  transform: scale(1.1) !important;
}

.select2-container--default .select2-dropdown {
  background: var(--card) !important;
  border: 1px solid var(--border) !important;
  border-radius: 10px !important;
  box-shadow: var(--shadow) !important;
  margin-top: 4px !important;
  overflow: hidden !important;
}

.select2-container--default .select2-search--dropdown {
  padding: 12px !important;
  border-bottom: 1px solid var(--border) !important;
  background: var(--card) !important;
}

.select2-container--default .select2-search--dropdown .select2-search__field {
  background: var(--card) !important;
  border: 1px solid var(--border) !important;
  color: var(--text) !important;
  border-radius: 8px !important;
  padding: 8px 12px !important;
  width: 100% !important;
  font-size: 14px !important;
}

.select2-container--default
  .select2-search--dropdown
  .select2-search__field:focus {
  outline: none !important;
  border-color: var(--accent) !important;
  box-shadow: 0 0 0 2px rgba(var(--accent-rgb, 74, 103, 255), 0.1) !important;
}

.select2-container--default .select2-results__option {
  background: var(--card) !important;
  color: var(--text) !important;
  padding: 10px 16px !important;
  font-size: 14px !important;
  transition: all 0.2s ease !important;
}

.select2-container--default .select2-results__option--highlighted {
  background: var(--hover) !important;
  color: var(--text) !important;
}

.select2-container--default .select2-results__option[aria-selected="true"] {
  background: rgba(var(--accent-rgb, 74, 103, 255), 0.15) !important;
  color: var(--accent) !important;
  font-weight: 600 !important;
}

.select2-container--default .select2-results__option--selected {
  background: rgba(var(--accent-rgb, 74, 103, 255), 0.1) !important;
  color: var(--accent) !important;
}

.select2-container--default .select2-results__option:hover {
  background: var(--hover) !important;
}

.select2-container--default .select2-selection__placeholder {
  color: var(--text-secondary) !important;
  opacity: 0.7 !important;
}

.select2-container--default .select2-selection__arrow {
  height: 46px !important;
  right: 10px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.select2-container--default .select2-selection__arrow b {
  border-color: var(--text-secondary) transparent transparent transparent !important;
  border-width: 5px 5px 0 5px !important;
  margin-top: -2px !important;
}

.select2-container--default.select2-container--open
  .select2-selection__arrow
  b {
  border-color: transparent transparent var(--text-secondary) transparent !important;
  border-width: 0 5px 5px 5px !important;
  margin-top: 0 !important;
}

.select2-container--default
  .select2-selection--multiple
  .select2-selection__clear {
  color: var(--text-secondary) !important;
  font-size: 18px !important;
  margin-right: 30px !important;
  transition: all 0.2s ease !important;
}

.select2-container--default
  .select2-selection--multiple
  .select2-selection__clear:hover {
  color: var(--danger) !important;
  transform: scale(1.1) !important;
}

.select2-results__option--selectable {
  cursor: pointer !important;
}

.select2-results__option--disabled {
  color: var(--text-secondary) !important;
  opacity: 0.5 !important;
  cursor: not-allowed !important;
}

/* Custom scrollbar for dropdown */
.select2-results {
  max-height: 300px !important;
  overflow-y: auto !important;
}

.select2-results::-webkit-scrollbar {
  width: 8px !important;
}

.select2-results::-webkit-scrollbar-thumb {
  background: var(--hover) !important;
  border-radius: 8px !important;
}

.select2-results::-webkit-scrollbar-track {
  background: transparent !important;
}

/* Search clear button */
.select2-search__field::-webkit-search-cancel-button {
  -webkit-appearance: none;
  appearance: none;
  height: 16px;
  width: 16px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%236c7480'%3E%3Cpath d='M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z'/%3E%3C/svg%3E")
    no-repeat center;
  background-size: contain;
  cursor: pointer;
}

.select2-search__field::-webkit-search-cancel-button:hover {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23ef4444'%3E%3Cpath d='M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z'/%3E%3C/svg%3E");
}

/* Assignee Avatar in Select2 - Custom */
.assignee-option-select2 {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  padding: 4px 0 !important;
}

.assignee-avatar-select2 {
  width: 32px !important;
  height: 32px !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-weight: 600 !important;
  font-size: 12px !important;
  color: white !important;
  flex-shrink: 0 !important;
}

.select2-container--default .select2-search--inline .select2-search__field {
  font-size: 14px;
  padding: 0px;
  margin: 4px;
}

/* Task Content Cards */
.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
@media (max-width: 480px) {
  .card-header {
    gap: 1rem;
    flex-wrap: wrap;
  }
}

.card-title {
  font-size: 18px;
  font-weight: 700;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.card-title i {
  color: var(--accent);
}

.card-actions {
  display: flex;
  gap: 8px;
}

/* Task Description */
.task-description {
  line-height: 1.6;
  color: var(--text);
  white-space: pre-line;
}

.due-date-alert {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  background: linear-gradient(
    135deg,
    rgba(245, 158, 11, 0.1),
    rgba(245, 158, 11, 0.05)
  );
  border: 1px solid rgba(245, 158, 11, 0.2);
  border-radius: 12px;
  margin-bottom: 24px;
}

.due-date-alert.danger {
  background: linear-gradient(
    135deg,
    rgba(239, 68, 68, 0.1),
    rgba(239, 68, 68, 0.05)
  );
  border: 1px solid rgba(239, 68, 68, 0.2);
}

.due-date-alert.success {
  background: linear-gradient(
    135deg,
    rgba(16, 185, 129, 0.1),
    rgba(16, 185, 129, 0.05)
  );
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.due-date-alert .alert-icon {
  background: rgba(245, 158, 11, 0.2);
  color: var(--warning);
}

.due-date-alert.danger .alert-icon {
  background: rgba(239, 68, 68, 0.2);
  color: var(--danger);
}

.alert-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.alert-content {
  flex: 1;
}

.alert-title {
  font-weight: 600;
  margin-bottom: 4px;
}

.alert-message {
  font-size: 14px;
  color: var(--text-secondary);
}

.btn-danger {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.2);
  padding: 10px 20px;
  border-radius: 10px;
  color: var(--danger);
  font-weight: 600;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.btn-danger:hover {
  background: rgba(239, 68, 68, 0.2);
  transform: translateY(-2px);
  color: var(--danger);
}

.status-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}

.status-todo {
  background: rgba(100, 116, 139, 0.1);
  color: #64748b;
}

.status-in-progress {
  background: rgba(59, 130, 246, 0.1);
  color: var(--info);
}

.status-review {
  background: rgba(245, 158, 11, 0.1);
  color: var(--warning);
}

.status-completed {
  background: rgba(16, 185, 129, 0.1);
  color: var(--success);
}

/* Assignees */
.assignees-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 12px;
}

.assignee-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  background: var(--hover);
  border-radius: 10px;
  min-width: 165px;
}

.assignee-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 14px;
  color: white;
  flex-shrink: 0;
}

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

.assignee-name {
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.assignee-role {
  font-size: 12px;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Attachments */
.email-attachments .attachments-list {
  margin-top: 16px;
}

.webmail-container .attachment-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px;
  margin-bottom: 8px;
  background: var(--hover);
  border-radius: 8px;
  transition: all 0.2s ease;
}

.webmail-container .attachment-item:hover {
  background: var(--hover);
  transform: translateX(2px);
}

.webmail-container .attachment-info {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
}

.webmail-container .attachment-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: var(--accent);
  background: rgba(var(--accent-rgb, 74, 103, 255), 0.1);
  flex-shrink: 0;
}

.webmail-container .attachment-details {
  flex: 1;
  min-width: 0;
}

.webmail-container .attachment-name {
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.webmail-container .attachment-meta {
  font-size: 12px;
  color: var(--text-secondary);
  display: flex;
  gap: 12px;
}

/* Comments */
.comments-section {
  margin-top: 24px;
}

.comment-form {
  margin-top: 20px;
  margin-bottom: 24px;
}

.comment-input {
  width: 100%;
  padding: 12px 16px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  font-size: 14px;
  transition: all 0.2s ease;
  resize: vertical;
  min-height: 80px;
}

.comment-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(var(--accent-rgb, 74, 103, 255), 0.1);
}

.comment-item {
  display: flex;
  gap: 12px;
  padding: 16px;
  margin-bottom: 16px;
  background: var(--card);
  border-radius: 12px;
  border: 1px solid var(--border);
}

.comment-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  background: var(--hover);
  color: var(--text);
  flex-shrink: 0;
}

.comment-content {
  flex: 1;
}

.comment-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.comment-author {
  font-weight: 600;
  font-size: 14px;
}

.comment-time {
  font-size: 12px;
  color: var(--text-secondary);
}

.comment-text {
  font-size: 14px;
  line-height: 1.5;
  color: var(--text);
}

/* Team Members Grid */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 24px;
}

@media (max-width: 768px) {
  .team-grid {
    grid-template-columns: 1fr;
  }
}
/* Team Member Card */
.member-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 24px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.member-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
  border-color: var(--accent);
}

.member-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 20px;
}

.member-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 24px;
  color: white;
  flex-shrink: 0;
}

.member-status {
  position: absolute;
  top: 20px;
  right: 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}

.status-online {
  background: rgba(16, 185, 129, 0.1);
  color: var(--success);
}

.status-offline {
  background: rgba(100, 116, 139, 0.1);
  color: #64748b;
}

.status-away {
  background: rgba(245, 158, 11, 0.1);
  color: var(--warning);
}

.status-busy {
  background: rgba(239, 68, 68, 0.1);
  color: var(--danger);
}

.member-info {
  flex: 1;
  margin-left: 20px;
}

.member-name {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 4px;
}

.member-role {
  color: var(--accent);
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 8px;
}

.member-contact {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-secondary);
  font-size: 13px;
  margin-bottom: 4px;
}

/* Skills Tags */
/* .skills-container {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 16px 0;
}

.skill-tag {
  padding: 4px 10px;
  background: var(--hover);
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text);
} */

/* Skills Tags */
.skills-container {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.skill-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: var(--hover);
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text);
}

.skill-tag .remove {
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  transition: all 0.2s ease;
}

.skill-tag .remove:hover {
  background: rgba(239, 68, 68, 0.1);
  color: var(--danger);
}

.skill-input-group {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.skill-input {
  flex: 1;
  padding: 8px 12px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text);
}

/* Performance Metrics */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

@media (max-width: 480px) {
 .metrics-grid {
  grid-template-columns: repeat(2, 1fr);
 }
}

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

.metric-value {
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
}

.metric-label {
  font-size: 11px;
  color: var(--text-secondary);
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.metric-card {
  text-align: center;
  padding: 20px;
  background: var(--hover);
  border-radius: 12px;
}

/* Member Actions */
.member-card .member-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.action-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: var(--hover);
  border-radius: 8px;
  border: none;
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

.action-btn:hover {
  background: var(--accent);
  color: white;
  transform: translateY(-2px);
}

/* Departments Grid */
.departments-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
}

/* Department Card */
.department-card {
  background: var(--card);
  padding: 20px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  transition: all 0.3s ease;
}

.department-card:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
}

/* Header */
.department-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

/* Icon */
.department-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: #fff;
}

/* Info */
.department-info {
  flex: 1;
}

.department-info h4,
.department-name {
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 4px;
}

.department-info p {
  font-size: 12px;
  color: var(--text-secondary);
  margin: 0;
}

.department-role {
  font-size: 14px;
  color: var(--accent);
  font-weight: 600;
}

/* Members / Details */
.department-members {
  display: flex;
  margin: 12px 0;
}

.department-details {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 14px;
}

.member-avatar-small {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 12px;
  color: white;
  margin-right: -8px;
  border: 2px solid var(--card);
}

.member-count {
  margin-left: auto;
  font-size: 12px;
  color: var(--text-secondary);
}

/* Avatar Upload */
.avatar-upload {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 20px;
}

.avatar-preview {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: var(--hover);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  font-weight: 700;
  color: var(--text);
  border: 3px solid var(--border);
  overflow: hidden;
  position: relative;
}

.avatar-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.avatar-upload-controls {
  flex: 1;
}

.avatar-upload-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: var(--hover);
  border-radius: 8px;
  border: 1px solid var(--border);
  color: var(--text);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.avatar-upload-btn:hover {
  background: rgba(var(--accent-rgb, 74, 103, 255), 0.1);
}

.avatar-hint {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 8px;
}

/* Department Assignments */
.department-assignments {
  margin-top: 16px;
}

.assignment-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  background: var(--hover);
  border-radius: 10px;
  margin-bottom: 12px;
  transition: all 0.2s ease;
}

.assignment-item:hover {
  background: rgba(var(--accent-rgb, 74, 103, 255), 0.1);
}

.assignment-details {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 16px;
  align-items: center;
}

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

.department-select,
.role-select {
  width: 100%;
  padding: 10px 12px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-size: 14px;
}

.remove-assignment {
  background: none;
  border: none;
  color: var(--danger);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.remove-assignment:hover {
  background: rgba(239, 68, 68, 0.1);
}

/* Date Range Picker */
.date-range-picker {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 16px;
}

.date-range-picker input {
  background: transparent;
  border: none;
  color: var(--text);
  font-size: 14px;
  width: 120px;
}

.date-range-picker input:focus {
  outline: none;
}

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

.quick-stat-card {
  text-align: center;
  padding: 20px;
  background: var(--card);
  border-radius: 12px;
  border: 1px solid var(--border);
}

.quick-stat-value {
  font-size: 32px;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 8px;
}

.quick-stat-label {
  font-size: 14px;
  color: var(--text-secondary);
}

/* Charts Container */
.charts-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 24px;
  margin-bottom: 24px;
}

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


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

/* Report Types Grid */
.report-types-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
  margin-top: 24px;
  margin-bottom: 24px;
}

.report-type-card {
  padding: 24px;
  background: var(--card);
  border-radius: 12px;
  border: 1px solid var(--border);
  transition: all 0.3s ease;
  cursor: pointer;
}

.report-type-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: 0 8px 25px rgba(var(--accent-rgb, 74, 103, 255), 0.15);
}

.report-type-icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  font-size: 24px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: white;
}

.report-type-name {
  font-weight: 700;
  font-size: 18px;
  margin-bottom: 8px;
}

.report-type-description {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 16px;
  line-height: 1.5;
}

.report-type-meta {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-secondary);
}

/* Report Types Grid */
.report-types-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.report-type-card {
  padding: 24px;
  background: var(--card);
  border-radius: 12px;
  border: 1px solid var(--border);
  transition: all 0.3s ease;
  cursor: pointer;
}

.report-type-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: 0 8px 25px rgba(var(--accent-rgb, 74, 103, 255), 0.15);
}

.report-type-icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  font-size: 24px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: white;
}

.report-type-name {
  font-weight: 700;
  font-size: 18px;
  margin-bottom: 8px;
}

.report-type-description {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 16px;
  line-height: 1.5;
}

.report-type-meta {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-secondary);
}

.reports-table {
  background: var(--card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  overflow: hidden;
  margin-bottom: 24px;
}

/* Filter Section */
.filter-section {
  background: var(--card);
  border-radius: var(--radius);
  padding: 20px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  margin-bottom: 24px;
}

.filter-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.filter-title {
  font-size: 16px;
  font-weight: 600;
  margin: 0;
}

.filter-options {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.filter-tag {
  padding: 8px 16px;
  background: var(--hover);
  border-radius: 20px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-tag:hover {
  background: var(--accent);
  color: white;
}

.filter-tag.active {
  background: var(--accent);
  color: white;
}

/* User Header */
.user-header {
  background: var(--card);
  border-radius: var(--radius);
  padding: 32px;
  margin-bottom: 24px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.user-header-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 120px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  opacity: 0.1;
}

.user-header-content {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 24px;
}

@media (max-width: 768px) {
  .user-header-content {
    flex-direction: column;
    text-align: center;
  }
}

.user-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 4px solid var(--card);
  background: var(--hover);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  font-weight: 700;
  color: var(--text);
  flex-shrink: 0;
  overflow: hidden;
}

.user-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.user-info {
  flex: 1;
}

.user-name {
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 8px;
}

.user-title {
  color: var(--accent);
  font-weight: 600;
  font-size: 18px;
  margin-bottom: 12px;
}

.user-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 16px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-secondary);
  font-size: 14px;
}

.user-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(16, 185, 129, 0.1);
  border-radius: 20px;
  color: var(--success);
  font-weight: 600;
  font-size: 14px;
}

.user-status.offline {
  background: rgba(100, 116, 139, 0.1);
  color: #64748b;
}

.user-status.away {
  background: rgba(245, 158, 11, 0.1);
  color: var(--warning);
}

.user-status.busy {
  background: rgba(239, 68, 68, 0.1);
  color: var(--danger);
}

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

/* Tabs */
.tabs-container {
  margin-bottom: 24px;
}

.tabs {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
}

.tab {
  padding: 12px 24px;
  background: transparent;
  border: none;
  border-bottom: 3px solid transparent;
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.tab:hover {
  color: var(--text);
}

.tab.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
  background: rgba(var(--accent-rgb, 74, 103, 255), 0.05);
}

.tab-content {
  display: none;
  animation: fadeIn 0.3s ease;
}

.tab-content.active {
  display: block;
}

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

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

/* Content Cards */
.content-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 24px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  margin-bottom: 24px;
}

/* .card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.card-title {
  font-size: 18px;
  font-weight: 700;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.card-title i {
  color: var(--accent);
}

.card-actions {
  display: flex;
  gap: 8px;
} */

.detail-item {
  display: flex;
  justify-content: space-between;
}

.detail-label {
  color: var(--text-secondary);
}

.detail-value {
  font-weight: 600;
}

/* Experience Timeline */
.skills-tab .timeline {
  position: relative;
  padding-left: 30px;
}

.skills-tab .timeline:before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--border);
}

.skills-tab .timeline-item {
  position: relative;
  margin-bottom: 24px;
  padding-left: 24px;
}

.skills-tab .timeline-item:last-child {
  margin-bottom: 0;
}

.skills-tab .timeline-dot {
  position: absolute;
  left: -6px;
  top: 0;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent);
  border: 3px solid var(--card);
}

.skills-tab .timeline-content {
  background: var(--hover);
  padding: 16px;
  border-radius: 10px;
}

.skills-tab .timeline-date {
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 4px;
}

.skills-tab .timeline-title {
  font-weight: 600;
  margin-bottom: 4px;
}

.skills-tab .timeline-description {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Reports */
.reports-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
}

.report-card {
  padding: 20px;
  background: var(--card);
  border-radius: 12px;
  border: 1px solid var(--border);
  transition: all 0.3s ease;
}

.report-card:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
}

.report-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  font-size: 24px;
  background: rgba(var(--accent-rgb, 74, 103, 255), 0.1);
  color: var(--accent);
}

.report-name {
  font-weight: 600;
  margin-bottom: 8px;
}

.report-meta {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

/* Workload Chart */
.workload-chart {
  margin-top: 20px;
}

.workload-bars {
  display: flex;
  gap: 8px;
  height: 24px;
  margin-bottom: 8px;
}

.workload-bar {
  flex: 1;
  background: var(--border);
  border-radius: 6px;
  overflow: hidden;
  position: relative;
}

.workload-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  border-radius: 6px;
  transition: width 0.3s ease;
}

.workload-labels {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-secondary);
}

/* Permissions Grid */
.permissions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 12px;
}

.permission-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px;
  background: var(--hover);
  border-radius: 8px;
}

.permission-info {
  flex: 1;
}

.permission-name {
  font-weight: 600;
  margin-bottom: 4px;
}

.permission-description {
  font-size: 12px;
  color: var(--text-secondary);
}

.user-details-task .tasks-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.user-details-task .task-item {
  background: var(--hover);
  border-radius: 10px;
  transition: all 0.2s ease;
}

.task-info {
  flex: 1;
}

.quick-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
}

/* Activity Feed */
.user-details-tabs .activity-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.user-details-tabs .activity-item {
  display: flex;
  gap: 12px;
  padding: 16px;
  background: var(--hover);
  border-radius: 10px;
  transition: all 0.2s ease;
  margin-bottom: 0;
}

.user-details-tabs .activity-item:hover {
  transform: translateX(4px);
}

.user-details-tabs .activity-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  background: rgba(var(--accent-rgb, 74, 103, 255), 0.1);
  color: var(--accent);
  flex-shrink: 0;
}

.user-details-tabs .activity-content {
  background: unset;
  padding: 0;
  border-radius: 0;
  margin-left: 0;
  flex: 1;
}

.user-details-tabs .activity-text {
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 4px;
}

.user-details-tabs .activity-meta {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-secondary);
}

.user-details-tabs .activity-item:before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0;
  background: unset;
}

.quick-actions .action-btn {
  padding: 16px;
  gap: 12px;
  font-weight: 600;
  font-size: 1rem;
}

.quick-actions .action-btn i {
  font-size: 20px;
}

/* Settings Layout */
.settings-container {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 24px;
}

@media (max-width: 992px) {
  .settings-container {
    grid-template-columns: 1fr;
  }
}

/* Settings Sidebar */
.settings-sidebar {
  background: var(--card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  overflow: hidden;
  height: fit-content;
}

.settings-nav {
  list-style: none;
  padding: 0;
  margin: 0;
}

.settings-nav-item {
  border-bottom: 1px solid var(--border);
}

.settings-nav-item:last-child {
  border-bottom: none;
}

.settings-nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 20px;
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.2s ease;
}

.settings-nav-link:hover {
  background: var(--hover);
  color: var(--accent);
}

.settings-nav-link.active {
  background: rgba(var(--accent-rgb, 74, 103, 255), 0.1);
  color: var(--accent);
  border-left: 3px solid var(--accent);
}

.settings-nav-link i {
  font-size: 18px;
  width: 24px;
}

/* Settings Content */
.settings-content {
  background: var(--card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  padding: 32px;
}

.settings-section {
  display: none;
  margin-bottom: 40px;
}

.settings-section.active {
  display: block;
}

.settings-section:last-child {
  margin-bottom: 0;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.section-title {
  font-size: 20px;
  font-weight: 700;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-title i {
  color: var(--accent);
}

.section-description {
  color: var(--text-secondary);
  font-size: 14px;
  margin-top: 8px;
}

/* Toggle Switch */
.toggle-switch {
  position: relative;
  display: inline-block;
  width: 52px;
  height: 28px;
  margin-right: 12px;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--border);
  transition: 0.4s;
  border-radius: 34px;
}

.toggle-slider:before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: 0.4s;
  border-radius: 50%;
}

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

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

.toggle-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
  background: var(--hover);
  border-radius: 8px;
  margin-bottom: 12px;
  transition: all 0.2s ease;
}

.toggle-item:hover {
  background: var(--border);
}

.toggle-info {
  flex: 1;
}

.toggle-title {
  font-weight: 600;
  margin-bottom: 4px;
}

.toggle-description {
  font-size: 13px;
  color: var(--text-secondary);
}

/* Radio Cards */
.radio-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
}

.radio-card {
  position: relative;
  padding: 20px;
  background: var(--hover);
  border: 2px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.radio-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.radio-card.selected {
  border-color: var(--accent);
  background: rgba(var(--accent-rgb, 74, 103, 255), 0.1);
}

.radio-card input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
}

.radio-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  font-size: 20px;
  background: rgba(var(--accent-rgb, 74, 103, 255), 0.1);
  color: var(--accent);
}

.radio-title {
  font-weight: 600;
  margin-bottom: 4px;
}

.radio-description {
  font-size: 12px;
  color: var(--text-secondary);
}

/* Danger Zone */
.danger-zone {
  border: 1px solid var(--danger);
  border-radius: var(--radius);
  padding: 24px;
  background: rgba(239, 68, 68, 0.05);
}

.danger-title {
  color: var(--danger);
  font-weight: 700;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.danger-description {
  color: var(--text-secondary);
  font-size: 14px;
  margin-bottom: 20px;
}

.form-text {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 6px;
}

.auth-container {
  max-width: 450px;
  margin: 0 auto;
  min-height: 90vh;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

/* Form Side */
.form-side {
  background: var(--card);
  padding: 60px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.form-header {
  margin-bottom: 40px;
}

.form-header h2 {
  font-size: 32px;
  font-weight: 700;
  margin: 0 0 8px 0;
}

.form-header p {
  color: var(--text-secondary);
  margin: 0;
  font-size: 16px;
}

/* Form Styles */
.auth-form {
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 24px;
  position: relative;
}


.form-input {
  width: 100%;
  padding: 14px 16px;
  background: var(--bg);
  border: 2px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  font-size: 16px;
  transition: all 0.3s ease;
}

.form-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(var(--accent-rgb, 74, 103, 255), 0.1);
}

.form-input.has-error {
  border-color: var(--danger);
}

.error-message {
  color: var(--danger);
  font-size: 12px;
  margin-top: 4px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.password-toggle {
  position: absolute;
  right: 16px;
  top: 42px;
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 18px;
}

.password-toggle:hover {
  color: var(--text);
}

/* Checkbox */
.form-check {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
}

.form-check-input {
  width: 18px;
  height: 18px;
  border: 2px solid var(--border);
  border-radius: 4px;
  background: var(--bg);
  cursor: pointer;
  appearance: none;
  position: relative;
  flex-shrink: 0;
}

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

.form-check-input:checked::after {
  content: "✓";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 12px;
  font-weight: bold;
}

.form-check-label {
  font-size: 14px;
  color: var(--text-secondary);
  cursor: pointer;
}

/* Divider */
.divider {
  display: flex;
  align-items: center;
  margin: 24px 0;
  color: var(--text-secondary);
  font-size: 14px;
}

.divider::before,
.divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}

.divider span {
  padding: 0 16px;
}

/* Social Buttons */
.social-buttons {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 32px;
}

.social-btn {
  padding: 12px;
  border: 2px solid var(--border);
  border-radius: 10px;
  background: var(--bg);
  color: var(--text);
  font-size: 18px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: grid;
  place-items: center;
}

.social-btn:hover {
  background: var(--hover);
  transform: translateY(-2px);
}

.social-btn.google:hover {
  border-color: #db4437;
  color: #db4437;
}

.social-btn.github:hover {
  border-color: #333;
  color: #333;
}

.social-btn.microsoft:hover {
  border-color: #00a4ef;
  color: #00a4ef;
}

/* Links */
.form-links {
  text-align: center;
  margin-top: 24px;
}

.form-link {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.3s ease;
}

.form-link:hover {
  text-decoration: underline;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  margin-top: 20px;
  transition: all 0.3s ease;
}

.back-link:hover {
  color: var(--accent);
}

/* Error Pages */
.error-container {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  padding: 60px 40px;
}

.error-icon {
  font-size: 120px;
  color: var(--accent);
  margin-bottom: 30px;
  opacity: 0.8;
}

.error-title {
  font-size: 72px;
  font-weight: 800;
  margin: 0 0 16px 0;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.error-subtitle {
  font-size: 24px;
  font-weight: 600;
  margin: 0 0 16px 0;
  color: var(--text);
}

.error-description {
  font-size: 18px;
  color: var(--text-secondary);
  margin-bottom: 40px;
  line-height: 1.6;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.error-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

/* Footer */
.auth-footer {
  text-align: center;
  margin-top: 60px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 14px;
}

.auth-footer a {
  color: var(--accent);
  text-decoration: none;
}

.auth-footer a:hover {
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
  .auth-container {
    border-radius: 16px;
  }

  .form-side {
    padding: 40px 24px;
  }

  .error-title {
    font-size: 48px;
  }

  .error-subtitle {
    font-size: 20px;
  }

  .error-icon {
    font-size: 80px;
  }

  .social-buttons {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  body {
    padding: 5px;
  }

  .auth-container {
    min-height: auto;
  }

  .error-actions {
    flex-direction: column;
  }
}

/* Theme Toggle for Auth Pages */
.theme-toggle {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1000;
}

.theme-btn {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  background: var(--card);
  border: 2px solid var(--border);
  color: var(--text);
  font-size: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: grid;
  place-items: center;
}

.theme-btn:hover {
  background: var(--hover);
  transform: translateY(-2px);
}

/* Webmail Layout */
.webmail-container {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 24px;
  height: calc(100vh - 180px);
}

@media (max-width: 1200px) {
  .webmail-container {
    grid-template-columns: 1fr;
  }
}

/* Mail Sidebar */
.mail-sidebar {
  background: var(--card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* Compose Button */
.compose-btn {
  margin: 20px;
  padding: 14px 20px;
  background: var(--accent);
  color: white;
  border: none;
  border-radius: 10px;
  font-weight: 600;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.compose-btn:hover {
  background: var(--accent);
  opacity: 0.9;
  transform: translateY(-2px);
}

/* Folders */
.mail-folders {
  padding: 0 20px;
  flex: 1;
  overflow-y: auto;
}

.folder-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

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

.folder-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  color: var(--text);
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.folder-link:hover {
  background: var(--hover);
}

.folder-link.active {
  background: rgba(var(--accent-rgb, 74, 103, 255), 0.1);
  color: var(--accent);
  font-weight: 600;
}

.folder-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.folder-icon {
  font-size: 18px;
  width: 24px;
  text-align: center;
}

.folder-name {
  font-size: 14px;
}

.folder-count {
  background: var(--hover);
  color: var(--text-secondary);
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
  min-width: 24px;
  text-align: center;
}

.folder-link.active .folder-count {
  background: var(--accent);
  color: white;
}

/* Labels */
.mail-labels {
  padding: 20px;
  border-top: 1px solid var(--border);
}

.labels-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.label-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.label-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  cursor: pointer;
}

.label-color {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
}

.label-name {
  font-size: 14px;
  color: var(--text);
  flex: 1;
}

.label-count {
  font-size: 12px;
  color: var(--text-secondary);
}

/* Mail Main Area */
.mail-main {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  overflow: hidden;
}

/* Mail Toolbar */
.mail-toolbar {
  padding: 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.toolbar-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.toolbar-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.search-box {
  position: relative;
  width: 300px;
}

@media (max-width: 768px) {
  .search-box {
    width: 200px;
  }
}

.webmail-search-input {
  width: 100%;
  padding: 10px 16px 10px 40px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-size: 14px;
  transition: all 0.2s ease;
}

.webmail-search-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(var(--accent-rgb, 74, 103, 255), 0.1);
}

.search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-secondary);
  font-size: 16px;
}

/* Action Buttons */
.action-buttons {
  display: flex;
  gap: 4px;
}

.action-btn.active {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}

/* Mail List */
.mail-list {
  flex: 1;
  overflow-y: auto;
}

.mail-item {
  display: flex;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: all 0.2s ease;
  gap: 16px;
}

.mail-item:hover {
  background: var(--hover);
}

.mail-item.unread {
  background: var(--unread-bg);
  font-weight: 600;
}

.mail-item.selected {
  background: rgba(var(--accent-rgb, 74, 103, 255), 0.1);
  border-left: 3px solid var(--accent);
}

.mail-checkbox {
  width: 20px;
  height: 20px;
  border: 2px solid var(--border);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
}

.mail-checkbox.checked {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
}

.mail-star {
  color: var(--text-secondary);
  font-size: 18px;
  cursor: pointer;
  flex-shrink: 0;
  transition: color 0.2s ease;
}

.mail-star:hover {
  color: var(--warning);
}

.mail-star.starred {
  color: var(--warning);
}

.mail-sender {
  width: 200px;
  font-size: 14px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.sender-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--hover);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 14px;
  color: var(--text);
  flex-shrink: 0;
}

.sender-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mail-content {
  flex: 1;
  min-width: 0;
}

.mail-subject {
  font-size: 14px;
  margin-bottom: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mail-preview {
  font-size: 13px;
  color: var(--text-secondary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mail-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 180px;
  flex-shrink: 0;
  justify-content: flex-end;
}

.mail-time {
  font-size: 12px;
  color: var(--text-secondary);
  white-space: nowrap;
}

.mail-attachment {
  color: var(--text-secondary);
  font-size: 14px;
}

.mail-labels-container {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}

.mail-label {
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

/* Empty State */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 40px;
  text-align: center;
}

.empty-icon {
  font-size: 64px;
  color: var(--text-secondary);
  margin-bottom: 20px;
  opacity: 0.5;
}

.empty-title {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text);
}

.empty-description {
  color: var(--text-secondary);
  margin-bottom: 20px;
  max-width: 400px;
}

/* Email View */
.email-view {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.email-header {
  padding: 24px;
  border-bottom: 1px solid var(--border);
}

.email-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.email-actions {
  display: flex;
  gap: 8px;
}

.email-subject {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 16px;
}

.email-info {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}

.sender-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.sender-avatar-lg {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--hover);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 18px;
  color: var(--text);
  flex-shrink: 0;
}

.sender-details {
  flex: 1;
}

.sender-name-lg {
  font-weight: 600;
  font-size: 16px;
  margin-bottom: 4px;
}

.sender-email {
  font-size: 14px;
  color: var(--text-secondary);
}

.email-meta {
  text-align: right;
}

.email-date {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.email-labels {
  display: flex;
  gap: 6px;
  justify-content: flex-end;
}

.email-body {
  flex: 1;
  padding: 24px;
  overflow-y: auto;
  line-height: 1.6;
}

.email-content {
  max-width: 800px;
  margin: 0 auto;
}

/* .email-attachments {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.attachments-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.attachments-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
} */

/* .attachment-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: var(--hover);
  border-radius: 8px;
  border: 1px solid var(--border);
  min-width: 200px;
} */

/* .attachment-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: var(--accent);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

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

.attachment-name {
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.attachment-size {
  font-size: 12px;
  color: var(--text-secondary);
}

.attachment-download {
  color: var(--accent);
  font-size: 20px;
  cursor: pointer;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.attachment-download:hover {
  transform: translateY(-2px);
} */

/* Compose Modal */
.compose-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.compose-modal.active {
  opacity: 1;
  visibility: visible;
}

.compose-content {
  background: var(--card);
  border-radius: var(--radius);
  width: 90%;
  max-width: 800px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.compose-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--accent);
  color: white;
  border-radius: var(--radius) var(--radius) 0 0;
}

.compose-title {
  font-size: 18px;
  font-weight: 600;
  margin: 0;
}

.close-compose {
  background: none;
  border: none;
  font-size: 24px;
  color: white;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.close-compose:hover {
  opacity: 0.8;
}

.compose-body {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
}

.compose-field {
  display: flex;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.compose-label {
  width: 80px;
  font-size: 14px;
  color: var(--text-secondary);
  flex-shrink: 0;
}

.compose-input {
  flex: 1;
  border: none;
  background: transparent;
  color: var(--text);
  font-size: 14px;
  padding: 4px 0;
}

.compose-input:focus {
  outline: none;
}

.compose-textarea {
  min-height: 300px;
  padding: 16px 0;
  border: none;
  background: transparent;
  color: var(--text);
  font-family: inherit;
  font-size: 14px;
  line-height: 1.6;
  resize: none;
  width: 100%;
}

.compose-textarea:focus {
  outline: none;
}

.compose-footer {
  padding: 20px 24px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.compose-actions {
  display: flex;
  gap: 8px;
}

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

.mail-stat-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 20px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
}

.mail-stat-card:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
}

.mail-stat-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.mail-stat-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  background: rgba(var(--accent-rgb, 74, 103, 255), 0.1);
  color: var(--accent);
}

.mail-stat-content h3 {
  font-size: 28px;
  font-weight: 700;
  margin: 0;
  line-height: 1;
}

.mail-stat-label {
  font-size: 14px;
  color: var(--text-secondary);
  margin-top: 4px;
}

/* Responsive */
@media (max-width: 1200px) {
  .webmail-container {
    grid-template-columns: 1fr;
  }

  .mail-sidebar {
    display: none;
  }

  .mail-sidebar.active {
    display: flex;
    position: fixed;
    top: 72px;
    left: 0;
    width: 300px;
    height: calc(100vh - 72px);
    z-index: 800;
  }
}

@media (max-width: 768px) {
  .mail-item {
    flex-wrap: wrap;
    gap: 8px;
  }

  .mail-sender {
    width: 100%;
    order: 1;
  }

  .mail-content {
    order: 3;
    width: 100%;
  }

  .mail-meta {
    order: 2;
    width: auto;
    margin-left: auto;
  }

  .email-info {
    flex-direction: column;
  }

  .email-meta {
    text-align: left;
    width: 100%;
  }

  .email-labels {
    justify-content: flex-start;
  }
}

/* ========== DROPDOWN DIALOG ========== */
.dropdown-dialog {
  position: absolute;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  min-width: 200px;
  z-index: 1000;
  overflow: hidden;
  display: none;
  animation: fadeIn 0.2s ease;
}

.dropdown-dialog.show {
  display: block;
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  color: var(--text);
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
  border-bottom: 1px solid var(--border);
}

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

.dropdown-item:hover {
  background: var(--hover);
  color: var(--accent);
}

.dropdown-item i {
  width: 20px;
  font-size: 16px;
}

.dropdown-item .label {
  font-size: 14px;
  font-weight: 500;
}

.dropdown-divider {
  height: 1px;
  background: var(--border);
  margin: 4px 0;
}

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

/* Email actions dropdown */
.email-actions-dropdown {
  position: relative;
}

.email-actions-dropdown .dropdown-dialog {
  right: 0;
  top: 100%;
  margin-top: 8px;
}
