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

  body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f5f5f5;
    color: #333;
  }

  .header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 2rem 0;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  }

  .header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    font-weight: 300;
  }

  .header p {
    font-size: 1.1rem;
    opacity: 0.9;
  }

  .container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
  }

  .controls {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
  }

  .control-group {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
  }

  .control-group label {
    font-weight: 600;
    color: #555;
  }

  .control-group select {
    padding: 0.75rem 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    background: white;
    font-size: 1rem;
    transition: all 0.3s ease;
    min-width: 200px;
  }

  .control-group select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
  }

  .loading {
    display: none;
    background: white;
    padding: 3rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  }

  .loading.show {
    display: block;
  }

  .spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
  }

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

  .gantt-container {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    overflow: hidden;
  }

  .gantt-header {
    background: #f8f9fa;
    padding: 1.5rem;
    border-bottom: 2px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .gantt-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #333;
  }

  .project-info {
    background: #667eea;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
  }

  .gantt-chart {
    overflow-x: auto;
    padding: 1rem;
  }

  .chart-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 800px;
  }

  .chart-table th {
    background: #f8f9fa;
    padding: 1rem 0.5rem;
    text-align: center;
    font-weight: 600;
    border: 1px solid #dee2e6;
    font-size: 0.9rem;
    position: sticky;
    top: 0;
    z-index: 10;
  }

  .chart-table td {
    padding: 0.75rem 0.5rem;
    border: 1px solid #dee2e6;
    text-align: center;
    font-size: 0.85rem;
  }

  .concept-row {
    transition: background-color 0.3s ease;
  }

  .concept-row:hover {
    background-color: #f8f9fa;
  }

  .summary-row {
    transition: background-color 0.3s ease;
  }

  .summary-row:hover {
    background-color: #f8f9fa;
  }

  .summary-info {
    text-align: left;
    padding-left: 1rem;
    max-width: 250px;
  }

  .summary-title {
    font-weight: 600;
    color: #333;
    margin-bottom: 0.25rem;
    font-size: 1rem;
  }

  .summary-subtitle {
    color: #666;
    font-size: 0.8rem;
    line-height: 1.3;
  }

  .concept-info {
    text-align: left;
    padding-left: 1rem;
    max-width: 250px;
  }

  .concept-key {
    font-weight: 600;
    color: #333;
    margin-bottom: 0.25rem;
  }

  .concept-description {
    color: #666;
    font-size: 0.8rem;
    line-height: 1.3;
  }

  .month-cell {
    position: relative;
    min-width: 120px;
    background: #fff;
  }

  .month-bar {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 0.5rem;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.8rem;
    margin: 2px;
    text-align: center;
  }

  .month-summary-bar {
    background: linear-gradient(135deg, #2E8B57, #228B22);
    color: white;
    padding: 0.75rem 0.5rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.9rem;
    margin: 4px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(46, 139, 87, 0.3);
    transition: transform 0.2s ease;
  }

  .month-summary-bar:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(46, 139, 87, 0.4);
  }

  .month-total {
    font-size: 0.85rem;
    font-weight: 700;
  }

  .month-empty {
    color: #ccc;
    font-size: 1.2rem;
    padding: 0.75rem;
    text-align: center;
  }

  .month-amount {
    font-size: 0.75rem;
    margin-top: 0.25rem;
    opacity: 0.9;
  }

  .totals-row {
    background: #e3f2fd;
    font-weight: 600;
  }

  .totals-row td {
    background: #e3f2fd;
    color: #1565c0;
    font-weight: 600;
  }

  .total-amount {
    background: linear-gradient(135deg, #1976d2, #1565c0);
    color: white;
    padding: 0.5rem;
    border-radius: 4px;
    font-weight: 600;
  }

  .no-data {
    text-align: center;
    padding: 3rem;
    color: #666;
    font-size: 1.1rem;
  }

  .stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
  }

  .stat-card {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    text-align: center;
  }

  .stat-number {
    font-size: 2rem;
    font-weight: 600;
    color: #667eea;
    margin-bottom: 0.5rem;
  }

  .stat-label {
    color: #666;
    font-size: 0.9rem;
  }

.comparison-container {
  margin-top: 2rem;
}

.comparison-header {
  background: #fff3e0;
  padding: 1.5rem;
  border-bottom: 2px solid #ffb74d;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.comparison-title {
  font-size: 1.3rem;
  font-weight: 600;
  color: #e65100;
}

.estimation-row {
  background: #fafafa;
}

.estimation-bar {
  background: linear-gradient(135deg, #ff9800, #f57c00);
  color: white;
  padding: 0.75rem 0.5rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.9rem;
  margin: 4px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(255, 152, 0, 0.3);
}

.comparison-cell {
  position: relative;
  background: #f8f9fa;
}

.variance-positive {
  background: linear-gradient(135deg, #4caf50, #388e3c);
  color: white;
  padding: 0.5rem;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 600;
}

.variance-negative {
  background: linear-gradient(135deg, #f44336, #d32f2f);
  color: white;
  padding: 0.5rem;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 600;
}

.variance-amount {
  font-size: 0.75rem;
  margin-top: 0.25rem;
}

.charts-container {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.chart-section {
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  padding: 1.5rem;
}

.chart-title {
  font-size: 1.2rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.chart-canvas {
  position: relative;
  height: 400px;
}

.chart-canvas.small {
  height: 300px;
}

.trend-chart {
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  padding: 1.5rem;
  margin-bottom: 2rem;
}

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