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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: #0d1117;
  color: #c9d1d9;
  padding: 24px;
}

.tracker-app {
  max-width: 1450px;
  margin: 0 auto;
  background-color: #161b22;
  border: 1px solid #30363d;
  border-radius: 12px;
  padding: 24px;
}

.app-header h1 {
  font-size: 22px;
  color: #58a6ff;
  margin-bottom: 20px;
}

/* Horizontal Main Layout */
.tracker-main {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  overflow-x: auto;
}

/* Equal Top Headers (Fixed 64px Height) */
.column-header {
  height: 64px;
  border-bottom: 1px solid #30363d;
  margin-bottom: 12px;
  padding-bottom: 8px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.column-header h2 {
  font-size: 15px;
  color: #f0f6fc;
}

.column-header h3 {
  font-size: 15px;
  color: #84b610;
  text-align: center;
}

.header-subrow {
  font-size: 11px;
  color: #8b949e;
  font-weight: 600;
  height: 16px;
  line-height: 16px;
}

.days-header {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  font-size: 11px;
  color: #8b949e;
  font-weight: bold;
  height: 16px;
  line-height: 16px;
}

/* Left Habit Column */
.habits-column {
  flex: 0 0 260px;
  background-color: #0d1117;
  padding: 16px;
  border-radius: 8px;
  border: 1px solid #30363d;
}

.habits-list {
  display: flex;
  flex-direction: column;
  gap: 8px; /* Strict matching vertical gap */
}

.habit-input {
  border: 1px solid #30363d;
  background-color: #161b22;
  color: #f0f6fc;
  padding: 0 12px;
  border-radius: 6px;
  font-size: 13px;
  height: 36px; /* Strict matching row height */
  width: 100%;
}

.habit-input:focus {
  outline: none;
  border-color: #58a6ff;
}

/* Right Weeks Wrapper */
.weeks-wrapper {
  display: flex;
  gap: 12px;
  flex: 1;
}

.week-card {
  flex: 1;
  min-width: 200px;
  background-color: #0d1117;
  border: 1px solid #30363d;
  border-radius: 8px;
  padding: 16px;
}

.checkbox-matrix {
  display: flex;
  flex-direction: column;
  gap: 8px; /* Strict matching vertical gap */
}

.habit-row {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  height: 36px; /* Strict matching row height */
  align-items: center;
  justify-items: center;
  border-bottom: 1px solid rgba(48, 54, 61, 0.4); /* Printable grid line look */
}

.habit-row input[type="checkbox"] {
  width: 16px;
  height: 16px;
  cursor: pointer;
  accent-color: #238636;
}

 .analytics-section  {
   border-top: 1px solid  #131517;
    margin-top: 22px;
     padding: 20px;

 }

 .analytics-section h2 {
    color: #58a6ff;
     margin-bottom: 14px;
      font-size: 16px;
      
 }

  .chart-container {
    display: flex;
     gap: 16px;
      flex-wrap: wrap;

  }
   
  .chart-card {
     border-radius: 10px;
      min-width: 310px;
       background-color:  #101721;
        border: 1px solid #30363d;
         padding: 16px;
          flex: 1;

  }

   .chart-card h3 {
     font-size: 14px;
      margin-bottom: 12px;
       color: #c9d1d9;
        text-align: center;
        
   }
