
html, body {
  height: 100%;
  width: 100%;
  margin: 0;
  padding: 20px;
  box-sizing: border-box;
  font-family: Arial, sans-serif;
}

.dashboard {
  display: flex;
  gap: 20px;
  max-width: 1400px;
  margin: 0 auto;
  padding: 20px;
  background: #f8f9fa;
  min-height: 90vh;
  align-items: flex-start;
}

.chart-container {
  flex: 2.5;
  background: white;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  height: 450px;
  position: relative;
}

.stats-container {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
}

.stat-box {
  background: white;
  padding: 15px;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  text-align: left;
  transition: transform 0.2s;
  min-height: 100px;
}

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

.stat-box h3 {
  margin: 0;
  color: #B61B2B;
  font-size: 16px;
  font-weight: 500;
  text-transform: uppercase;
}

.stat-box p {
  font-size: 28px;
  margin: 15px 0 5px;
  color: #2c3e50;
  font-weight: bold;
}

.stat-box .trend {
  font-size: 14px;
  color: #28a745;
}

.chart-title {
  margin-bottom: 20px;
  color: #2c3e50;
  font-size: 24px;
  font-weight: bold;
}

/* Mobile Responsive Design */
@media (max-width: 768px) {
  html, body {
    padding: 8px;
    overflow-x: hidden;
  }

  .dashboard {
    flex-direction: column;
    gap: 12px;
    padding: 12px;
    min-height: auto;
    width: 100%;
    box-sizing: border-box;
  }

  /* Önce stats, sonra chart */
  .stats-container {
    order: 1;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 8px;
    margin-bottom: 15px;
    width: 100%;
  }

  .chart-container {
    order: 2;
    height: 400px;
    width: 100%;
    padding: 15px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
  }

  .chart-container canvas {
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 320px !important;
  }

  .chart-title {
    font-size: 16px;
    margin-bottom: 12px;
    text-align: center;
    color: #2c3e50;
    font-weight: 600;
    position: relative;
    z-index: 10;
  }

  .stat-box {
    padding: 10px;
    min-height: 75px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    border-radius: 8px;
    background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
    border-left: 4px solid #B61B2B;
  }

  .stat-box h3 {
    font-size: 11px;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
  }

  .stat-box p {
    font-size: 16px;
    margin: 5px 0;
    font-weight: bold;
    color: #2c3e50;
  }
}

@media (max-width: 480px) {
  html, body {
    padding: 6px;
    overflow-x: hidden;
  }

  .dashboard {
    padding: 8px;
    gap: 10px;
    width: 100%;
  }

  /* Mobilde stats container düzeni */
  .stats-container {
    order: 1;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(3, 1fr);
    gap: 6px;
    margin-bottom: 12px;
    width: 100%;
  }

  .chart-container {
    order: 2;
    height: 320px;
    width: 100%;
    padding: 10px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
  }

  .chart-container canvas {
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 270px !important;
  }

  .chart-title {
    font-size: 14px;
    margin-bottom: 8px;
    text-align: center;
    position: relative;
    z-index: 10;
  }

  .stat-box {
    padding: 8px;
    min-height: 60px;
    border-radius: 6px;
    border-left-width: 3px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
    border-left: 3px solid #B61B2B;
  }

  .stat-box h3 {
    font-size: 10px;
    margin-bottom: 3px;
  }

  .stat-box p {
    font-size: 14px;
    margin: 4px 0;
    line-height: 1.2;
  }

  .stat-box .trend {
    font-size: 9px;
  }
}
