* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.dashboard-container {
  padding: 24px;
  background: #f5f7fa;
  min-height: 100vh;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* Header Section */
.header-section {
  margin-bottom: 24px;
}

.page-title h1 {
  font-size: 28px;
  font-weight: 700;
  color: #1a202c;
  margin-bottom: 4px;
}

.subtitle {
  color: #718096;
  font-size: 14px;
}

/* Summary Cards */
.summary-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.summary-card {
  background: white;
  border-radius: 12px;
  padding: 20px;
  display: flex;
  gap: 16px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  transition: transform 0.2s, box-shadow 0.2s;
}

.summary-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}

.card-primary .card-icon { background: #ebf5ff; color: #3182ce; }
.card-success .card-icon { background: #e6ffed; color: #38a169; }
.card-warning .card-icon { background: #fffbeb; color: #dd6b20; }
.card-danger .card-icon { background: #fff5f5; color: #e53e3e; }

.card-content {
  flex: 1;
}

.card-label {
  font-size: 13px;
  color: #718096;
  margin-bottom: 4px;
}

.card-value {
  font-size: 32px;
  font-weight: 700;
  color: #1a202c;
  margin-bottom: 4px;
}

.card-trend {
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.card-trend.positive { color: #38a169; }
.card-trend.negative { color: #e53e3e; }
.card-trend.neutral { color: #718096; }

/* Main Grid */
.main-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 24px;
  margin-bottom: 24px;
}

.left-column, .right-column {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Card Widget */
.card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.widget-header {
  padding: 20px 24px;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.widget-title {
  font-size: 18px;
  font-weight: 600;
  color: #1a202c;
}

.widget-body {
  padding: 24px;
}

.btn-icon {
  background: transparent;
  border: none;
  color: #718096;
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
}

.btn-icon:hover {
  background: #f7fafc;
  color: #2d3748;
}

/* Machine List */
.machine-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.machine-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.machine-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.machine-name {
  font-weight: 600;
  color: #2d3748;
}

.machine-status {
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 500;
}

.status-active { background: #c6f6d5; color: #22543d; }
.status-idle { background: #e2e8f0; color: #4a5568; }
.status-maintenance { background: #feebc8; color: #7c2d12; }

.machine-progress {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.progress-bar {
  width: 100%;
  height: 8px;
  background: #e2e8f0;
  border-radius: 4px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #3182ce, #63b3ed);
  border-radius: 4px;
  transition: width 0.3s;
}

.progress-text {
  font-size: 13px;
  color: #718096;
}

/* Table */
.table-responsive {
  overflow-x: auto;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
}

.data-table th {
  text-align: left;
  padding: 12px;
  font-size: 12px;
  font-weight: 600;
  color: #718096;
  text-transform: uppercase;
  border-bottom: 2px solid #e2e8f0;
}

.data-table td {
  padding: 16px 12px;
  border-bottom: 1px solid #e2e8f0;
  font-size: 14px;
  color: #2d3748;
}

.data-table tr:hover {
  background: #f7fafc;
}

.badge {
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 500;
}

.badge-success { background: #c6f6d5; color: #22543d; }
.badge-warning { background: #feebc8; color: #7c2d12; }
.badge-info { background: #bee3f8; color: #2c5282; }
.badge-danger { background: #fed7d7; color: #742a2a; }

.link-primary {
  color: #3182ce;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
}

.link-primary:hover {
  color: #2c5282;
}

/* Weekly Plan */
.weekly-plan {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.day-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px;
  border-radius: 8px;
  transition: background 0.2s;
}

.day-item:hover {
  background: #f7fafc;
}

.day-item.active {
  background: #ebf5ff;
  border: 1px solid #90cdf4;
}

.day-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.day-name {
  font-weight: 600;
  color: #2d3748;
}

.day-count {
  font-size: 13px;
  color: #718096;
}

.day-indicator {
  height: 8px;
  border-radius: 4px;
}

.indicator-full { background: #fc8181; }
.indicator-high { background: #f6ad55; }
.indicator-medium { background: #f6e05e; }
.indicator-low { background: #68d391; }

/* PDKS Summary */
.pdks-summary {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 20px;
}

.pdks-stat {
  display: flex;
  gap: 12px;
  padding: 16px;
  border-radius: 8px;
  background: #f7fafc;
}

.pdks-stat.stat-success { background: #f0fff4; }
.pdks-stat.stat-warning { background: #fffaf0; }
.pdks-stat.stat-danger { background: #fff5f5; }

.stat-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: #cbd5e0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.stat-content {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.stat-label {
  font-size: 12px;
  color: #718096;
}

.stat-value {
  font-size: 24px;
  font-weight: 700;
  color: #1a202c;
}

.shift-info {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 20px;
  border-top: 1px solid #e2e8f0;
}

.shift-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.shift-label {
  font-size: 14px;
  color: #4a5568;
}

.shift-count {
  font-weight: 600;
  color: #2d3748;
}

.time-badge {
  padding: 4px 12px;
  background: #f7fafc;
  border-radius: 12px;
  font-size: 12px;
  color: #718096;
}

/* Offer List */
.offer-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.offer-item {
  padding: 16px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  transition: all 0.2s;
}

.offer-item:hover {
  border-color: #cbd5e0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.offer-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
}

.offer-number {
  font-weight: 600;
  color: #2d3748;
}

.offer-date {
  font-size: 12px;
  color: #718096;
}

.offer-customer {
  font-size: 14px;
  color: #4a5568;
  margin-bottom: 12px;
}

.offer-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.offer-amount {
  font-weight: 700;
  color: #2d3748;
  font-size: 16px;
}

.offer-status {
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 500;
}

.status-pending { background: #bee3f8; color: #2c5282; }
.status-urgent { background: #fed7d7; color: #742a2a; }

/* Quick Actions */
.quick-actions {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.action-btn {
  padding: 16px;
  border: none;
  border-radius: 8px;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  transition: all 0.2s;
  color: white;
}

.action-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.btn-primary { background: #3182ce; }
.btn-success { background: #38a169; }
.btn-warning { background: #dd6b20; }
.btn-info { background: #3182ce; }

.action-btn i {
  font-size: 20px;
}

.action-btn span {
  font-size: 13px;
}

/* Chart Widget */
.chart-widget .widget-header {
  flex-wrap: wrap;
  gap: 12px;
}

.chart-filters {
  display: flex;
  gap: 8px;
}

.filter-btn {
  padding: 6px 14px;
  border: 1px solid #e2e8f0;
  background: white;
  border-radius: 6px;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s;
  color: #4a5568;
}

.filter-btn:hover {
  border-color: #cbd5e0;
  background: #f7fafc;
}

.filter-btn.active {
  background: #3182ce;
  color: white;
  border-color: #3182ce;
}

.chart-placeholder {
  height: 300px;
  display: flex;
  align-items: flex-end;
  justify-content: space-around;
  padding: 20px 0;
}

.chart-bars {
  display: flex;
  align-items: flex-end;
  gap: 24px;
  height: 100%;
  width: 100%;
  justify-content: space-around;
}

.bar-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  flex: 1;
  height: 100%;
}

.bar {
  width: 100%;
  max-width: 60px;
  background: linear-gradient(180deg, #3182ce, #63b3ed);
  border-radius: 6px 6px 0 0;
  transition: all 0.3s;
  cursor: pointer;
}

.bar:hover {
  background: linear-gradient(180deg, #2c5282, #3182ce);
}

.bar.active {
  background: linear-gradient(180deg, #38a169, #68d391);
}

.bar-label {
  font-size: 12px;
  color: #718096;
  font-weight: 500;
}

/* Bottom Section */
.bottom-section {
  display: grid;
  gap: 24px;
}

/* Icon placeholders */
.icon-file-text::before { content: "📄"; }
.icon-shopping-cart::before { content: "🛒"; }
.icon-settings::before { content: "⚙️"; }
.icon-alert::before { content: "⚠️"; }
.icon-more::before { content: "⋯"; }
.icon-calendar::before { content: "📅"; }
.icon-users::before { content: "👥"; }
.icon-check::before { content: "✓"; }
.icon-clock::before { content: "🕐"; }
.icon-x::before { content: "✗"; }
.icon-plus::before { content: "+"; }
.icon-cart::before { content: "🛒"; }
.icon-calendar-plus::before { content: "📅+"; }
.icon-file-check::before { content: "✓"; }

/* Responsive Design */
@media (max-width: 1200px) {
  .main-grid {
    grid-template-columns: 1fr;
  }
  
  .summary-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .dashboard-container {
    padding: 16px;
  }
  
  .summary-cards {
    grid-template-columns: 1fr;
  }
  
  .pdks-summary {
    grid-template-columns: 1fr;
  }
  
  .quick-actions {
    grid-template-columns: 1fr;
  }
  
  .chart-filters {
    width: 100%;
    justify-content: stretch;
  }
  
  .filter-btn {
    flex: 1;
  }
}

@media (max-width: 480px) {
  .page-title h1 {
    font-size: 22px;
  }
  
  .card-value {
    font-size: 24px;
  }
  
  .data-table {
    font-size: 12px;
  }
  
  .data-table th,
  .data-table td {
    padding: 8px 6px;
  }
}
