:root {
    --primary-blue: #4285F4;
    --primary-red: #EA4335;
    --primary-green: #34A853;
    --primary-yellow: #FBBC05;
    --primary-purple: #9B59B6;
  }
  
  body {
    background: #f8fafc;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 20px;
    color: #2d3748;
  }
  
  .header {
    text-align: center;
    margin-bottom: 40px;
  }
  
  h1 {
    color: #1a365d;
    margin-bottom: 10px;
    font-weight: 600;
  }
  
  h2 {
    color: #2d3748;
    margin: 50px 0 20px;
    text-align: center;
    font-weight: 600;
    position: relative;
  }
  
  h2:before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 1px;
    background: #e2e8f0;
    z-index: -1;
  }
  
  h2 span {
    background: #f8fafc;
    padding: 0 20px;
  }
  
  .subtitle {
    color: #718096;
    font-size: 1.1rem;
  }
  
  .dashboard {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
  }
  
  .chart-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    padding: 25px;
    transition: transform 0.2s, box-shadow 0.2s;
    position: relative;
    border: 1px solid rgba(0, 0, 0, 0.05);
  }
  
  .chart-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  }
  
  .chart-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: #2d3748;
    display: flex;
    align-items: center;
    padding-right: 100px;
  }
  
  .chart-title svg {
    margin-right: 10px;
    flex-shrink: 0;
  }
  
  .chart-container {
    position: relative;
    height: 320px;
    width: 100%;
  }
  
  .summary-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
  }
  
  .summary-card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.2s;
    border: 1px solid rgba(0, 0, 0, 0.05);
  }
  
  .summary-card:hover {
    transform: translateY(-3px);
  }
  
  .summary-card h3 {
    color: #718096;
    font-size: 1.05rem;
    margin-top: 0;
    margin-bottom: 12px;
    font-weight: 500;
  }
  
  .summary-card p {
    color: #2d3748;
    font-size: 2rem;
    font-weight: 700;
    margin: 0;
  }
  
  .blue { color: var(--primary-blue); }
  .red { color: var(--primary-red); }
  .green { color: var(--primary-green); }
  .yellow { color: var(--primary-yellow); }
  .purple { color: var(--primary-purple); }
  
  .chart-actions {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    gap: 10px;
    z-index: 10;
  }
  
  .export-btn {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 6px 12px;
    font-size: 13px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
    transition: all 0.2s;
    font-weight: 500;
    color: #4a5568;
  }
  
  .export-btn:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
    color: #2d3748;
  }
  
  .export-btn svg {
    width: 14px;
    height: 14px;
  }
  
  .categories-table {
    max-width: 1400px;
    margin: 50px auto;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    padding: 30px;
    border: 1px solid rgba(0, 0, 0, 0.05);
  }
  
  .categories-table h2 {
    margin-top: 0;
    text-align: left;
    padding-bottom: 15px;
    border-bottom: 1px solid #e2e8f0;
  }
  
  .table-container {
    overflow-x: auto;
  }
  
  table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
  }
  
  th {
    text-align: left;
    padding: 15px 12px;
    font-weight: 600;
    color: #4a5568;
    border-bottom: 2px solid #e2e8f0;
  }
  
  td {
    padding: 15px 12px;
    border-bottom: 1px solid #e2e8f0;
    vertical-align: middle;
  }
  
  tr:hover td {
    background-color: #f8fafc;
  }
  
  .category-icon {
    width: 30px;
    height: 30px;
    margin-right: 12px;
    vertical-align: middle;
    border-radius: 6px;
    object-fit: cover;
    background: #f1f5f9;
  }
  
  .news-count {
    font-weight: 600;
    color: #2d3748;
  }
  
  .alt-name {
    color: #718096;
    font-size: 0.9em;
  }
  
  .progress-container {
    width: 100px;
    height: 6px;
    background: #e2e8f0;
    border-radius: 3px;
    overflow: hidden;
    display: inline-block;
    vertical-align: middle;
    margin-left: 10px;
  }
  
  .progress-bar {
    height: 100%;
    background: var(--primary-blue);
    border-radius: 3px;
  }
  
  @media (max-width: 768px) {
    .dashboard {
      grid-template-columns: 1fr;
    }
    
    .summary-cards {
      grid-template-columns: 1fr 1fr;
    }
  }
  
  @media (max-width: 480px) {
    .summary-cards {
      grid-template-columns: 1fr;
    }
    
    .chart-title {
      padding-right: 0;
      font-size: 1.1rem;
    }
    
    .chart-actions {
      position: static;
      margin-bottom: 15px;
      justify-content: flex-end;
    }
  }