/*!**************************************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ./node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[14].oneOf[12].use[2]!./node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[14].oneOf[12].use[3]!./src/components/dashboard/ChartWidget.css ***!
  \**************************************************************************************************************************************************************************************************************************************************************************************/
/* Chart Widget Styles */
.chart-widget {
  width: 100%;
  height: 100%;
}

.chart-title {
  margin: 0 0 16px 0;
  font-size: 1.1rem;
  font-weight: 600;
  color: #2c3e50;
  text-align: center;
}

.chart-container {
  width: 100%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Bar Chart Styles */
.chart-bars {
  display: flex;
  align-items: end;
  justify-content: space-between;
  width: 100%;
  height: 100%;
  gap: 8px;
  padding: 0 8px;
}

.chart-bar-wrapper {
  flex: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.chart-bar-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  width: 100%;
  position: relative;
}

.chart-bar {
  width: 100%;
  min-height: 4px;
  border-radius: 4px 4px 0 0;
  transition: all 0.3s ease;
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  cursor: pointer;
}

.chart-bar:hover {
  transform: scaleY(1.05);
  filter: brightness(1.1);
}

.chart-value {
  position: absolute;
  top: -20px;
  font-size: 0.7rem;
  font-weight: 600;
  color: #2c3e50;
  background: rgba(255, 255, 255, 0.9);
  padding: 2px 4px;
  border-radius: 3px;
  white-space: nowrap;
}

.chart-label {
  font-size: 0.75rem;
  color: #6c757d;
  margin-top: 8px;
  font-weight: 500;
  text-align: center;
  word-break: break-word;
}

/* Line Chart Styles */
.line-chart {
  width: 100%;
  height: 100%;
  position: relative;
}

.line-path {
  transition: all 0.3s ease;
}

.line-point {
  transition: all 0.3s ease;
  cursor: pointer;
}

.line-point:hover {
  filter: brightness(1.2);
  transform: scale(1.2);
}

.line-labels {
  position: absolute;
  bottom: -30px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
}

.line-label {
  font-size: 0.75rem;
  color: #6c757d;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.line-value {
  font-size: 0.7rem;
  font-weight: 600;
  color: #2c3e50;
  margin-top: 2px;
}

/* Pie Chart Styles */
.pie-chart {
  width: 100%;
  height: 100%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pie-segment {
  transition: all 0.3s ease;
  cursor: pointer;
}

.pie-segment:hover {
  filter: brightness(1.1);
  transform-origin: 50% 50%;
  transform: scale(1.05);
}

.pie-legend {
  position: absolute;
  right: -120px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
}

.legend-color {
  width: 12px;
  height: 12px;
  border-radius: 2px;
  flex-shrink: 0;
}

.legend-label {
  color: #2c3e50;
  font-weight: 500;
  min-width: 60px;
}

.legend-value {
  color: #6c757d;
  font-weight: 600;
}

/* Responsive Design */
@media (max-width: 768px) {
  .chart-bars {
    gap: 4px;
    padding: 0 4px;
  }
  
  .chart-label {
    font-size: 0.7rem;
  }
  
  .chart-value {
    font-size: 0.65rem;
    top: -18px;
  }
  
  .line-labels {
    bottom: -25px;
  }
  
  .line-label {
    font-size: 0.7rem;
  }
  
  .pie-legend {
    position: static;
    transform: none;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 16px;
  }
  
  .legend-item {
    font-size: 0.75rem;
  }
}

@media (max-width: 480px) {
  .chart-bars {
    gap: 2px;
  }
  
  .chart-label {
    font-size: 0.65rem;
  }
  
  .chart-value {
    font-size: 0.6rem;
    top: -16px;
  }
  
  .line-labels {
    bottom: -20px;
  }
  
  .line-label {
    font-size: 0.65rem;
  }
}

/* Stacked bar chart styles */
.chart-bar-stack {
  position: relative;
  width: 100%;
  height: 100%;
}

.chart-bar-stack .chart-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
}

/* Chart legend styles */
.chart-legend {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 12px;
  flex-wrap: wrap;
}

.chart-legend-color {
  width: 12px;
  height: 12px;
  border-radius: 2px;
  flex-shrink: 0;
}

/*!******************************************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ./node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[14].oneOf[12].use[2]!./node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[14].oneOf[12].use[3]!./src/components/dashboard/ModernDashboard.css ***!
  \******************************************************************************************************************************************************************************************************************************************************************************************/
/* Modern Dashboard Styles - Clean Professional Design */
.modern-dashboard {
  min-height: 100vh;
  background: var(--dashboard-bg);
  padding: 24px;
  color: var(--dashboard-text-color);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.modern-dashboard-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background: var(--dashboard-bg);
}

.loading-spinner {
  text-align: center;
}

.loading-spinner .spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #e9ecef;
  border-top: 4px solid #007bff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 16px;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Dashboard Header - Clean Modern Card */
.dashboard-header {
  background: #7cbdf2 !important;
  border-radius: 24px;
  padding: 32px 36px;
  margin-bottom: 32px;
  /* box-shadow: 0 20px 60px rgba(99, 102, 241, 0.25), 0 0 0 1px rgba(255, 255, 255, 0.1) inset; */
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 32px;
  position: relative;
  overflow: hidden;
}

/* Decorative gradient overlay */
.dashboard-header::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 500px;
  height: 500px;
  /* background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, transparent 60%); */
  pointer-events: none;
}

.dashboard-header::after {
  content: '';
  position: absolute;
  bottom: -80px;
  left: -80px;
  width: 400px;
  height: 400px;
  /* background: radial-gradient(circle, rgba(139, 92, 246, 0.2) 0%, transparent 65%); */
  pointer-events: none;
}

.dashboard-title-section {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.dashboard-title {
  font-size: 2rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.dashboard-subtitle {
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.875rem;
  font-weight: 500;
  flex-wrap: wrap;
}

.scope-indicator {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
  font-size: 0.875rem;
}

.scope-indicator i {
  font-size: 0.875rem;
  opacity: 0.9;
}

.dashboard-subtitle i {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.875rem;
}

.refresh-indicator {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.8rem;
  font-weight: 500;
}

.dashboard-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
  z-index: 1;
  justify-self: end;

}

/* View Mode Toggle - Clean Modern Design */
.scope-toggle {
  display: flex;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 4px;
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.toggle-btn {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.75);
  padding: 9px 20px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
  position: relative;
}

.toggle-btn.active {
  background: #ffffff;
  color: #05253D;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.08);
}

.toggle-btn:hover:not(.active) {
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.95);
}

/* Employee Selector */
.employee-selector {
  margin-left: 0;
}

.employee-dropdown {
  background: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 12px;
  padding: 9px 14px;
  color: #1e293b;
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  min-width: 180px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.5);
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%236366f1' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 14px;
  padding-right: 36px;
}

.employee-dropdown:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.5);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12), 0 0 0 2px rgba(255, 255, 255, 0.3);
}

.employee-dropdown:hover {
  border-color: rgba(255, 255, 255, 0.45);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.employee-dropdown option {
  background: #ffffff;
  color: #1e293b;
  padding: 10px;
  font-weight: 500;
}

.search-container {
  position: relative;
  width: 280px;
}

.search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #64748b;
  z-index: 2;
  font-size: 0.875rem;
}

.dashboard-search {
  width: 100%;
  padding: 9px 16px 9px 38px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 12px;
  font-size: 0.875rem;
  background: #ffffff;
  color: #1e293b;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.5);
  font-weight: 500;
}

.dashboard-search:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.5);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12), 0 0 0 2px rgba(255, 255, 255, 0.3);
}

.dashboard-search::placeholder {
  color: #94a3b8;
  font-weight: 500;
}

.add-widget-btn {
  background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
  color: white;
  border: none;
  padding: 12px 20px;
  border-radius: 25px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.add-widget-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

/* Dashboard Content */
.dashboard-content {
  width: 100%;
}

.widgets-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: start;
}

/* Widget Base Styles */
.widget {
  background: var(--dashboard-widget-bg);
  border-radius: 12px;
  box-shadow: var(--dashboard-widget-shadow);
  border: 1px solid var(--dashboard-widget-border);
  overflow: hidden;
  transition: all 0.3s ease;
  animation: slideInUp 0.3s ease-out;
  color: var(--dashboard-text-color);
}

/* Metric Widget Styles */
.metric-widget {
  min-height: 120px;
}

.metric-display {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 20px;
  text-align: center;
}

.metric-value-large {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--dashboard-metric-value-color);
  margin-bottom: 8px;
  line-height: 1;
}

.metric-change {
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 12px;
  padding: 4px 8px;
  border-radius: 12px;
}

.metric-change.positive {
  color: #10b981;
  background: rgba(16, 185, 129, 0.1);
}

.metric-change.negative {
  color: #ef4444;
  background: rgba(239, 68, 68, 0.1);
}

.metric-change.neutral {
  color: #6b7280;
  background: rgba(107, 114, 128, 0.1);
}

.metric-chart {
  width: 100%;
  height: 20px;
  position: relative;
  margin-top: 8px;
}

.chart-line {
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
  border-radius: 1px;
  position: relative;
}

.chart-line::after {
  content: '';
  position: absolute;
  top: -2px;
  right: 0;
  width: 6px;
  height: 6px;
  background: #667eea;
  border-radius: 50%;
}

.widget:hover {
  transform: translateY(-2px);
  box-shadow: var(--dashboard-widget-hover-shadow);
}

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

.widget-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid var(--dashboard-widget-header-border);
  background: var(--dashboard-widget-header-bg);
}

.widget-header h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  color: var(--dashboard-title-color);
  text-shadow: none;
}

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

.widget-toggle {
  background: none;
  border: none;
  color: var(--dashboard-subtitle-color);
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.widget-toggle:hover {
  background: var(--dashboard-list-item-hover);
  color: #dc3545;
}

.widget-content {
  padding: 24px;
}

/* Timesheet Widget */
.timesheet-widget {
  grid-column: span 2;
}

.chart-container {
  height: 200px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  padding: 20px 0;
}

.chart-bars {
  display: flex;
  align-items: end;
  gap: 12px;
  width: 100%;
  height: 100%;
}

.chart-bar-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  height: 100%;
}

.chart-bar {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  width: 100%;
  min-height: 20px;
  border-radius: 6px 6px 0 0;
  transition: all 0.3s ease;
  position: relative;
  box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.chart-bar:hover {
  background: linear-gradient(135deg, #5a67d8 0%, #667eea 100%);
  transform: scaleY(1.05);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.chart-label {
  font-size: 0.8rem;
  color: var(--dashboard-chart-text);
  margin-top: 8px;
  font-weight: 600;
}

.chart-value {
  font-size: 0.75rem;
  color: #667eea;
  font-weight: 700;
  margin-top: 4px;
}

/* Employee Status Widget */
.employee-widget {
  grid-column: span 1;
}

.donut-chart {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.donut-segment {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 10px;
  transition: all 0.2s ease;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.donut-segment:hover {
  background: rgba(255, 255, 255, 0.8);
  transform: translateX(4px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

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

.segment-label {
  font-weight: 600;
  color: var(--dashboard-text-color);
  font-size: 0.9rem;
}

/* Activities Widget */
.activities-widget {
  grid-column: span 1;
}

.activities-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 300px;
  overflow-y: auto;
}

.activity-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 10px;
  transition: all 0.2s ease;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.activity-item:hover {
  background: rgba(255, 255, 255, 0.8);
  transform: translateX(4px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.activity-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.activity-content {
  flex: 1;
}

.activity-title {
  margin: 0 0 4px 0;
  font-size: 0.9rem;
  color: #2c3e50;
  font-weight: 600;
}

.activity-time {
  font-size: 0.8rem;
  color: #4a5568;
  font-weight: 500;
}

/* Approvals Widget */
.approvals-widget {
  grid-column: span 1;
}

.approvals-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.approval-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  background: rgba(255, 193, 7, 0.1);
  border: 1px solid rgba(255, 193, 7, 0.3);
  border-radius: 10px;
  transition: all 0.2s ease;
}

.approval-item:hover {
  background: rgba(255, 193, 7, 0.2);
  transform: translateX(4px);
  box-shadow: 0 2px 8px rgba(255, 193, 7, 0.2);
}

.approval-type {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #d97706;
  font-weight: 600;
  font-size: 0.9rem;
}

.approval-details {
  flex: 1;
}

.approval-details p {
  margin: 0 0 4px 0;
  font-weight: 500;
  color: #2c3e50;
}

.approval-date {
  font-size: 0.8rem;
  color: #6c757d;
}

.approval-action {
  background: #007bff;
  color: white;
  border: none;
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.approval-action:hover {
  background: #0056b3;
  transform: scale(1.05);
}

/* Client Widget */
.client-widget {
  grid-column: span 1;
}

.client-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.client-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 10px;
  transition: all 0.2s ease;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.client-item:hover {
  background: rgba(255, 255, 255, 0.8);
  transform: translateX(4px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.client-info h4 {
  margin: 0 0 4px 0;
  font-size: 1rem;
  color: #2c3e50;
  font-weight: 700;
}

.client-info p {
  margin: 0;
  font-size: 0.8rem;
  color: #4a5568;
  font-weight: 500;
}

.client-revenue {
  font-size: 1.1rem;
  font-weight: 700;
  color: #10b981;
  text-shadow: 0 1px 2px rgba(16, 185, 129, 0.2);
}

/* Revenue Widget */
.revenue-widget {
  grid-column: span 1;
}

.revenue-metrics {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.metric-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 10px;
  transition: all 0.2s ease;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.metric-item:hover {
  background: rgba(255, 255, 255, 0.8);
  transform: translateX(4px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.metric-label {
  font-size: 0.9rem;
  color: #4a5568;
  font-weight: 600;
}

.metric-value {
  font-size: 1.2rem;
  font-weight: 700;
  color: #2c3e50;
}

.metric-value.success {
  color: #10b981;
  text-shadow: 0 1px 2px rgba(16, 185, 129, 0.2);
}

.metric-value.warning {
  color: #f59e0b;
  text-shadow: 0 1px 2px rgba(245, 158, 11, 0.2);
}

/* Responsive Design */
@media (max-width: 1200px) {
  .widgets-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .dashboard-header {
    padding: 28px 32px;
    grid-template-columns: 1fr;
    gap: 24px;
  }
  
  .dashboard-title {
    font-size: 1.85rem;
  }
  
  .dashboard-controls {
    justify-self: start;
    flex-wrap: wrap;
  }
  
  .employee-dropdown {
    min-width: 160px;
  }
  
  .search-container {
    width: 240px;
  }
}

@media (max-width: 768px) {
  .modern-dashboard {
    padding: 16px;
  }
  
  .dashboard-header {
    padding: 24px 20px;
    gap: 20px;
    border-radius: 20px;
  }
  
  .dashboard-header::before,
  .dashboard-header::after {
    display: none;
  }
  
  .dashboard-title {
    font-size: 1.75rem;
  }
  
  .dashboard-subtitle {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  
  .dashboard-controls {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    width: 100%;
  }
  
  .scope-toggle {
    width: 100%;
  }
  
  .toggle-btn {
    flex: 1;
    padding: 10px 18px;
  }
  
  .employee-selector {
    width: 100%;
  }
  
  .employee-dropdown {
    width: 100%;
    min-width: auto;
  }
  
  .search-container {
    width: 100%;
  }
  
  .widgets-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .widget-header {
    padding: 16px 20px;
  }
  
  .widget-content {
    padding: 20px;
  }
}

@media (max-width: 480px) {
  .modern-dashboard {
    padding: 12px;
  }
  
  .dashboard-title {
    font-size: 1.75rem;
  }
  
  .widget-header h3 {
    font-size: 1.1rem;
  }
  
  .chart-container {
    height: 150px;
  }
  
  .activities-list,
  .approvals-list,
  .client-list {
    max-height: 200px;
  }
}

/* Scrollbar Styling */
.activities-list::-webkit-scrollbar,
.approvals-list::-webkit-scrollbar,
.client-list::-webkit-scrollbar {
  width: 4px;
}

.activities-list::-webkit-scrollbar-track,
.approvals-list::-webkit-scrollbar-track,
.client-list::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 2px;
}

.activities-list::-webkit-scrollbar-thumb,
.approvals-list::-webkit-scrollbar-thumb,
.client-list::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 2px;
}

.activities-list::-webkit-scrollbar-thumb:hover,
.approvals-list::-webkit-scrollbar-thumb:hover,
.client-list::-webkit-scrollbar-thumb:hover {
  background: #a8a8a8;
}

/* Theme-aware text colors */
.modern-dashboard .metric-value.success {
  color: #28a745;
}

.modern-dashboard .metric-value.warning {
  color: #ffc107;
}

.modern-dashboard .client-revenue {
  color: #28a745;
}

/* Clean Widget Styles - No Bright Gradients */
.revenue-widget,
.employee-widget,
.timesheet-widget {
  background: var(--dashboard-widget-bg);
  border: 1px solid var(--dashboard-widget-border);
  color: var(--dashboard-text-color);
}

.chart-widget,
.list-widget,
.activity-widget {
  background: var(--dashboard-widget-bg);
  border: 1px solid var(--dashboard-widget-border);
  box-shadow: var(--dashboard-widget-shadow);
}

/* Metric Details */
.metric-details {
  display: flex;
  justify-content: space-between;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--dashboard-widget-header-border);
}

.metric-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.metric-label {
  font-size: 0.75rem;
  opacity: 0.8;
  margin-bottom: 4px;
}

.metric-value {
  font-size: 1rem;
  font-weight: 600;
}

/* List Widget Styles */
.list-container {
  max-height: 300px;
  overflow-y: auto;
}

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

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

.list-item-rank {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--dashboard-list-rank-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--dashboard-list-rank-color);
  margin-right: 12px;
}

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

.list-item-name {
  font-weight: 600;
  color: var(--dashboard-text-color);
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.list-item-detail {
  font-size: 0.875rem;
  color: var(--dashboard-subtitle-color);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.list-item-value {
  font-weight: 600;
  color: #28a745;
  font-size: 0.875rem;
}

/* Activity Widget Styles */
.activity-list {
  max-height: 300px;
  overflow-y: auto;
}

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

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

.activity-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--dashboard-activity-icon-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 12px;
  color: var(--dashboard-activity-icon-color);
}

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

.activity-title {
  font-weight: 500;
  color: var(--dashboard-text-color);
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.activity-time {
  font-size: 0.875rem;
  color: var(--dashboard-subtitle-color);
}

.activity-status {
  margin-left: 12px;
}

/* Comprehensive Responsive Design */
@media (max-width: 1199px) {
  .modern-dashboard {
    padding: 20px;
  }
  
  .dashboard-header {
    padding: 28px 32px;
    gap: 24px;
  }
  
  .dashboard-title {
    font-size: 1.875rem;
  }
  
  .widgets-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  
  .metric-widget {
    min-height: 220px;
  }
}

@media (max-width: 991px) {
  .modern-dashboard {
    padding: 15px;
    margin-top: 60px;
  }
  
  .dashboard-header {
    padding: 24px 28px;
    gap: 20px;
    grid-template-columns: 1fr;
  }
  
  .dashboard-title {
    font-size: 1.75rem;
  }
  
  .dashboard-subtitle {
    font-size: 0.8125rem;
  }
  
  .dashboard-controls {
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 12px;
  }
  
  .toggle-buttons {
    gap: 8px;
  }
  
  .toggle-btn {
    padding: 8px 18px;
    font-size: 0.8125rem;
  }
  
  .employee-dropdown {
    min-width: 180px;
  }
  
  .search-bar {
    flex: 1;
    min-width: 200px;
  }
  
  .widgets-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  
  .metric-widget {
    min-height: 200px;
  }
  
  .widget-content {
    padding: 20px;
  }
  
  .metric-value {
    font-size: 1.75rem;
  }
}

@media (max-width: 767px) {
  .modern-dashboard {
    padding: 12px;
    margin-top: 60px;
  }
  
  .dashboard-header {
    padding: 20px 24px;
    gap: 16px;
    border-radius: 16px;
  }
  
  .dashboard-title {
    font-size: 1.5rem;
  }
  
  .dashboard-subtitle {
    font-size: 0.75rem;
    flex-wrap: wrap;
    gap: 8px;
  }
  
  .scope-indicator,
  .refresh-indicator {
    font-size: 0.75rem;
    padding: 6px 12px;
  }
  
  .dashboard-controls {
    width: 100%;
    flex-direction: column;
    gap: 10px;
  }
  
  .toggle-buttons {
    width: 100%;
    gap: 8px;
  }
  
  .toggle-btn {
    flex: 1;
    padding: 10px 16px;
    font-size: 0.875rem;
  }
  
  .employee-dropdown {
    width: 100%;
    min-width: auto;
  }
  
  .search-bar {
    width: 100%;
    min-width: auto;
  }
  
  .widgets-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  
  .metric-widget {
    min-height: 180px;
  }
  
  .widget-content {
    padding: 16px;
  }
  
  .widget-header {
    margin-bottom: 12px;
  }
  
  .widget-title {
    font-size: 0.875rem;
  }
  
  .metric-value {
    font-size: 1.5rem;
  }
  
  .metric-label {
    font-size: 0.75rem;
  }
  
  .metric-details {
    margin-top: 12px;
    padding-top: 12px;
  }
  
  .metric-item {
    font-size: 0.75rem;
  }
  
  /* List widgets */
  .list-container,
  .activity-list {
    max-height: 250px;
  }
  
  .list-item,
  .activity-item {
    padding: 10px 0;
  }
  
  .list-item-rank {
    width: 28px;
    height: 28px;
    font-size: 0.75rem;
    margin-right: 10px;
  }
  
  .list-item-name,
  .activity-title {
    font-size: 0.875rem;
  }
  
  .list-item-detail,
  .list-item-value,
  .activity-time {
    font-size: 0.75rem;
  }
  
  .activity-icon {
    width: 36px;
    height: 36px;
    margin-right: 10px;
  }
  
  /* Decorative overlays - hide on mobile */
  .dashboard-header::before,
  .dashboard-header::after {
    display: none;
  }
}

@media (max-width: 480px) {
  .modern-dashboard {
    padding: 10px;
  }
  
  .dashboard-header {
    padding: 16px 20px;
    border-radius: 12px;
  }
  
  .dashboard-title {
    font-size: 1.25rem;
  }
  
  .dashboard-subtitle {
    font-size: 0.6875rem;
    gap: 6px;
  }
  
  .scope-indicator,
  .refresh-indicator {
    font-size: 0.6875rem;
    padding: 4px 10px;
  }
  
  .toggle-btn {
    padding: 8px 14px;
    font-size: 0.8125rem;
  }
  
  .widgets-grid {
    gap: 10px;
  }
  
  .metric-widget {
    min-height: 160px;
  }
  
  .widget-content {
    padding: 14px;
  }
  
  .widget-title {
    font-size: 0.8125rem;
  }
  
  .metric-value {
    font-size: 1.375rem;
  }
  
  .metric-label {
    font-size: 0.6875rem;
  }
  
  .metric-details {
    margin-top: 10px;
    padding-top: 10px;
    flex-wrap: wrap;
    gap: 8px;
  }
  
  .metric-item {
    font-size: 0.6875rem;
    min-width: calc(50% - 4px);
  }
  
  .list-container,
  .activity-list {
    max-height: 200px;
  }
  
  .list-item,
  .activity-item {
    padding: 8px 0;
  }
  
  .list-item-rank {
    width: 24px;
    height: 24px;
    font-size: 0.6875rem;
    margin-right: 8px;
  }
  
  .list-item-name,
  .activity-title {
    font-size: 0.8125rem;
  }
  
  .list-item-detail,
  .list-item-value,
  .activity-time {
    font-size: 0.6875rem;
  }
  
  .activity-icon {
    width: 32px;
    height: 32px;
    margin-right: 8px;
    font-size: 0.875rem;
  }
}

/* Landscape orientation on mobile */
@media (max-width: 767px) and (orientation: landscape) {
  .dashboard-header {
    padding: 16px 20px;
  }
  
  .widgets-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .metric-widget {
    min-height: 160px;
  }
}

/*!************************************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ./node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[14].oneOf[12].use[2]!./node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[14].oneOf[12].use[3]!./src/components/dashboard/Dashboard.css ***!
  \************************************************************************************************************************************************************************************************************************************************************************************/
.body {
  font-family: "Poppins", sans-serif;
  background-color: #f5f7fa;
  color: #4a4a4a;
  margin: 0;
  padding: 0;
}

.nk-content {
  padding: 20px 15px;
}

.nk-content-inner {
  margin: 0 auto;
  max-width: 100%;
  width: 100%;
}

.row {
  display: flex;
  flex-wrap: wrap;
  gap: 1px;
  justify-content: space-between;
}

.row2 {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between;
}

.col-xxl-3 {
  flex: 1 1 calc(25% - 10px);
  box-sizing: border-box;
}

.col-xxl-6 {
  flex: 1 1 calc(50% - 10px);
  box-sizing: border-box;
}

.col-xxl-12 {
  flex: 1 1 100%;
  box-sizing: border-box;
}

/* Card Styling */
.card {
  background: #ffffff;
  border-radius: 5px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  /* padding: 1px; */
  transition: transform 0.3s ease-in-out;
  width: 100%;
}

.card:hover {
  transform: translateY(-5px);
}

.card-title {
  font-size: 16px;
  font-weight: 600;
  color: #616f85;
  margin-bottom: 10px;
}

.card-title1 .title {
  font-size: 18px;
  font-weight: 600;
  color: #424446;
}

.card-inner {
  padding: 10px;
}

.card .amount {
  font-size: 22px;
  font-weight: 700;
  color: #292621;
}

.amount .icon.ni-clock {
  margin-left: 5px;
  margin-top: 2px;
  font-size: 18px;
  color: #ff9900;
}

.amount .icon.ni-check-circle {
  margin-top: 2px;
  font-size: 18px;
  color: #28a745;
}

.card .info {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  color: #6c757d;
  margin-top: 5px;
}

.change {
  font-weight: 600;
}

.change.up {
  color: #28a745;
}

.change.down {
  color: #dc3545;
}

.chart-bar-fill {
  height: 100%;
  border-radius: 3px;
  width: 0%; /* Initial width, overridden inline */
  transition: width 0.5s ease, background-color 0.3s ease;
}

.nk-ecwg6-ck {
  margin-top: 10px;
}

.chart-bar-background {
  height: 6px;
  border-radius: 3px;
  background-color: #d3d3d3; 
  margin-top: 10px;
  width: 100%; 
}


.nk-sale-data {
  margin-bottom: 10px;
}

.nk-sale-data .amount {
  font-size: 22px;
  font-weight: 600;
  color: #212529;
}

.nk-sale-data .sub-title {
  font-size: 12px;
  color: #6c757d;
}

.progress-bar {
  height: 8px;
  border-radius: 5px;
}

.progress-info-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 5px;
}

.progress-info-label {
  display: flex;
  align-items: center;
}

.progress-info-swatch {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-right: 5px;
}

.progress-info-percent {
  font-size: 12px;
  font-weight: 500;
}

.tranx-list {
  padding: 0;
  list-style: none;
}

.tranx-item {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid #e0e0e0;
}

.tranx-item:hover {
  background-color: #f8f9fb42;
}

.tranx-info {
  display: flex;
  flex-direction: column;
}

.tranx-badge {
  margin-bottom: 5px;
}

.tranx-data {
  font-size: 12px;
}

.tranx-amount {
  text-align: right;
}

.tranx-amount .number {
  font-size: 18px;
  font-weight: 600;
  color: #333;
}

.tranx-amount .number-sm {
  font-size: 12px;
  color: #6c757d;
}

.tranx-col {
  flex: 1;
}

.badge {
  font-size: 10px;
  padding: 4px 8px;
  border-radius: 20px;
}

.bg-outline-warning {
  border: 1px solid #ffc107;
  color: #ffc107;
}

.bg-outline-success {
  border: 1px solid #28a745;
  color: #28a745;
}

.bg-outline-danger {
  border: 1px solid #dc3545;
  color: #dc3545;
}

/* Adjusting container sizes */
.nk-block .nk-block-head {
  margin-bottom: 20px;
}

.nk-block-head-content h3 {
  font-size: 20px;
  font-weight: 600;
  color: #333;
}

.nk-block-des {
  font-size: 14px;
  color: #787878;
}

.nk-block .nk-block-head-content h3,
.nk-block .nk-block-des {
  text-align: center;
}

/* Section headings alignment */
.card-title1 h6.nk-block-head-content {
  text-align: start;
  margin-bottom: 0;
  color: var(--text-color);
  font-weight: 600;
}

/* Recent Invoices amount visibility fix for dark mode */
.tranx-amount .number {
  color: var(--text-color);
  font-weight: 600;
  font-size: 16px;
}

.tranx-amount .number-sm {
  color: var(--text-secondary);
  font-size: 12px;
}

/* Employee Cards Container - CSS Grid Layout */
.employee-cards-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
  width: 100%;
  margin: 0;
  padding: 0;
}

.employee-card-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 70px;
  margin: 0;
  margin-top: 20px;
}

/* Remove extra spacing from parent containers */
.row {
  margin: 0;
  padding: 0;
}

.row.g-2 {
  margin: 0;
  padding: 0;
}

.col-12 {
  padding: 0;
  margin: 0;
}

/* Responsive grid breakpoints */
@media (max-width: 1199px) {
  .employee-cards-container {
    grid-template-columns: repeat(4, 1fr);
    gap: 0.375rem;
  }
}

@media (max-width: 991px) {
  .employee-cards-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
  }
}

@media (max-width: 767px) {
  .employee-cards-container {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
}

/* Employee Dashboard Cards Styling */
.card-bordered {
  border: 1px solid var(--border-color, #e5e9f2);
  transition: all 0.3s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  border-radius: 6px;
  height: 100%;
  width: 100%;
}

.card-bordered:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

/* Employee Cards Specific Styling */
.employee-summary-card,
.employee-status-card {
  background: var(--card-bg, #ffffff);
  border-radius: 6px;
  min-height: 70px;
}

.employee-summary-card .card-inner,
.employee-status-card .card-inner {
  padding: 0.5rem;
}

/* Card header styling - ultra compact */
.card-inner .d-flex {
  padding-bottom: 0.25rem;
}

.card-inner h6 {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-color, #333);
  margin: 0;
}

.card-inner .fs-7 {
  font-size: 0.75rem !important;
}

/* Amount styling - ultra compact */
.amount {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text-color, #333);
  line-height: 1.1;
}

.amount.h4 {
  font-size: 1rem;
}

.amount.h3 {
  font-size: 1rem;
}

/* Icon styling - smaller */
.card-inner .fs-6 {
  font-size: 0.75rem !important;
}

.card-inner .fs-5 {
  font-size: 0.875rem !important;
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
  .card-bordered {
    border-color: var(--border-color, #4a5568);
    background: var(--card-bg, #2d3748);
  }
}

/* Improved spacing for card content */
.card-title-group {
  margin-bottom: 1.5rem;
}

.card-title h6 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-color, #333);
  margin: 0;
}

/* Transaction item styling for dark mode */
.tranx-item {
  border-bottom: 1px solid var(--border-color);
  padding: 12px 0;
}

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

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

.btn-primary {
  background-color: #007bff;
  color: white;
  font-size: 14px;
  padding: 8px 16px;
  border-radius: 5px;
  border: none;
  display: inline-flex;
  align-items: center;
}

.btn-primary:hover {
  background-color: #0056b3;
}

.btn-sm {
  font-size: 12px;
  padding: 6px 12px;
}

@media (max-width: 576px) {
  .nk-sale-data {
    flex-direction: column;
    align-items: flex-start;
  }
  .nk-sale-data .amount {
    font-size: 18px;
  }

  .card {
    padding: 10px;
  }

  .card .amount {
    font-size: 20px;
  }

  .nk-block .row {
    gap: 15px;
  }

  .nk-block-head-content h3 {
    font-size: 18px;
  }

  .nk-tb-item {
    flex-direction: column;
    align-items: flex-start;
  }

  .nk-tb-col {
    margin-bottom: 10px;
  }

  .nk-tb-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .nk-tb-actions button {
    margin-top: 5px;
  }
}

/* Pagination Styling */
.pagination {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0;
  gap: 4px;
}

.page-item {
  display: inline-block;
}

.page-item.disabled .page-link {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

.page-item.active .page-link {
  background-color: #007bff;
  color: white;
  border-color: #007bff;
}

.page-link {
  padding: 6px 12px;
  border: 1px solid #dee2e6;
  border-radius: 4px;
  background-color: white;
  color: #007bff;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
}

.page-link:hover:not(.disabled) {
  background-color: #e9ecef;
  border-color: #dee2e6;
}

.page-link em {
  font-size: 12px;
}


