:root {
  --lvn-primary: #a3161d;
  --lvn-bg-light: #f9f9f9;
  --lvn-text-main: #333;
  --lvn-border: #eee;
  --lvn-blue-tag: #e8f4fd;
}

#lunar-app-container {
  font-family: Arial, Helvetica, sans-serif;
  margin: 0 auto;
  border: 1px solid #ddd;
  background: #fff !important;
  box-shadow: 0 0 20px rgba(0,0,0,0.1);
}

/* === HEADER TOP === */
.lvn-header {
  background: #fff;
  border-bottom: 2px solid var(--lvn-primary);
  display: flex;
  flex-wrap: wrap;
}
.lvn-header-block {
  flex: 1;
  text-align: center;
  border-right: 1px solid #eee;
  min-width: 300px;
}
.lvn-header-block:last-child { border-right: none; }
.lvn-big-num {
  font-size: 80px;
  font-weight: bold;
  color: #333;
  line-height: 1;
  margin: 10px 0;
}
.lvn-big-num.lunar { color: var(--lvn-primary); }
.lvn-sub-text { color: #666; margin-top: 5px; font-size: 14px; line-height: 1.4; }
.lvn-red-text { color: var(--lvn-primary); font-weight: bold; }

/* === INFO STRIP === */
.lvn-info-strip {
  background: var(--lvn-blue-tag);
  padding: 15px;
  font-size: 14px;
  line-height: 1.6;
  border-bottom: 1px solid #eee;
}
.lvn-info-item { margin-bottom: 5px; }
.lvn-label { font-weight: bold; color: #0056b3; margin-right: 5px; } 

/* === CONTROLS === */
.lvn-controls {
  background: var(--lvn-primary);
  color: #fff;
  padding: 10px 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.lvn-btn-nav {
  background: rgba(255,255,255,0.2);
  border: none;
  color: white;
  padding: 5px 10px;
  cursor: pointer;
  border-radius: 4px;
  font-size: 14px;
  margin-bottom: 0;
  width: auto;
}
.lvn-btn-nav:hover { background: rgba(255,255,255,0.3); }

.lvn-select-group {
    display: flex;
    align-items: center;
    gap: 10px;
}
.lvn-select-group select {
  border: none;
  border-radius: 3px;
  color: #333;
  margin-bottom: 0;
  width: auto !important;
}
.lvn-btn-view {
  background: #005600; /* Darker green */
  background: rgba(0,0,0,0.3);
  border: none; color: #fff; padding: 5px 15px; font-weight: bold; cursor: pointer;
  border-radius: 4px;
  white-space: nowrap;
  margin-bottom: 0;
}

/* === GRID === */
.lvn-grid-header {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  background: #f0f0f0;
  text-align: center;
  padding: 10px 0;
  font-weight: bold;
  color: #666;
  border-bottom: 1px solid #ddd;
}
.lvn-grid-body {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  border-left: 1px solid #eee;
}
.lvn-cell {
  background: #fff;
  border-right: 1px solid #eee;
  border-bottom: 1px solid #eee;
  min-height: 100px;
  padding: 5px;
  position: relative;
  cursor: pointer;
  transition: 0.2s;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.lvn-cell:hover { background: #fffdf0; }
.lvn-cell.is-today { background: #ffffcc; }
.lvn-cell.selected { border: 2px solid var(--lvn-primary); z-index: 1; }
.lvn-cell.other-month { opacity: 0.4; background: #fafafa; }

.cell-solar { font-size: 24px; font-weight: bold; color: #333; text-align: center; margin-top: 10px; }
.cell-lunar { 
  font-size: 12px; 
  text-align: right;
  color: #666;
  margin-bottom: 2px;
}
.cell-lunar.is-hoang-dao::after {
  content: "★"; color: #FBC02D; font-size: 10px; margin-left: 2px;
}
.cell-holiday {
  font-size: 10px; color: var(--lvn-primary);
  text-align: center;
  margin-top: 2px;
  font-weight: bold;
  line-height: 1.2;
}
.is-sunday .cell-solar { color: var(--lvn-primary); }

@media (max-width: 600px) {
    .lvn-header { flex-direction: column; }
    .lvn-header-block { border-right: none; border-bottom: 1px solid #eee; min-width: auto;}
    .lvn-cell { min-height: 80px; }
    .cell-solar { font-size: 18px; }
    .lvn-controls { flex-direction: column; gap: 10px; }
}
