* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    Arial,
    Helvetica,
    sans-serif;
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
  color: #0f172a;
  min-height: 100vh;
}
a {
  color: inherit;
}
/* =========================================================
NAVBAR
========================================================= */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid #e2e8f0;
}
.navbar-container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.navbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-size: 17px;
  font-weight: 800;
  color: #0f172a;
}
.navbar-brand-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 10px;
  color: #2563eb;
}
.navbar-menu {
  display: flex;
  align-items: center;
  gap: 5px;
}
.navbar-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 13px;
  border-radius: 8px;
  text-decoration: none;
  color: #64748b;
  font-size: 13px;
  font-weight: 600;
  transition:
    background 0.2s ease,
    color 0.2s ease;
}
.navbar-link:hover {
  background: #f1f5f9;
  color: #0f172a;
}
.navbar-link.active {
  background: #eff6ff;
  color: #2563eb;
  font-weight: 700;
}
/* =========================================================
GLOBAL CONTAINER
========================================================= */
.container {
  width: min(100% - 32px, 1280px);
  margin: 0 auto;
  padding: 30px 0 60px;
}
/* =========================================================
CALENDAR HEADER
========================================================= */
.calendar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  margin-bottom: 25px;
}
.calendar-title {
  display: flex;
  align-items: center;
  gap: 15px;
}
.calendar-icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 14px;
  color: #2563eb;
  font-size: 25px;
}
.title-content h1 {
  margin: 0;
  font-size: 30px;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: -0.7px;
  color: #0f172a;
}
.title-content p {
  margin: 6px 0 0;
  color: #94a3b8;
  font-size: 14px;
  line-height: 1.5;
}
/* =========================================================
YEAR NAVIGATION
========================================================= */
.year-navigation {
  display: flex;
  align-items: center;
  gap: 8px;
}
.year-navigation a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-width: 105px;
  padding: 10px 15px;
  text-decoration: none;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  color: #475569;
  font-size: 13px;
  font-weight: 700;
  transition: all 0.2s ease;
}
.year-navigation a:hover {
  border-color: #bfdbfe;
  background: #eff6ff;
  color: #2563eb;
  transform: translateY(-1px);
}
.year-current {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 75px;
  padding: 10px 15px;
  border-radius: 10px;
  background: #2563eb;
  color: #ffffff;
  font-size: 14px;
  font-weight: 800;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}
/* =========================================================
SUMMARY
========================================================= */
.summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 15px;
  margin-bottom: 30px;
}
.summary-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 17px 19px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  box-shadow: 0 3px 10px rgba(15, 23, 42, 0.035);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}
.summary-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
}
.summary-icon {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border-radius: 11px;
  font-size: 17px;
  font-weight: 800;
}
.summary-icon.total {
  background: #eff6ff;
  color: #2563eb;
}
.summary-icon.national {
  background: #fef2f2;
  color: #dc2626;
}
.summary-icon.collective {
  background: #fff7ed;
  color: #ea580c;
}
.summary-value {
  font-size: 20px;
  line-height: 1.2;
  font-weight: 800;
  color: #0f172a;
}
.summary-label {
  margin-top: 3px;
  font-size: 12px;
  color: #94a3b8;
}
/* =========================================================
CALENDAR GRID
========================================================= */
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
/* =========================================================
MONTH
========================================================= */
.month {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(15, 23, 42, 0.04);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}
.month:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.07);
}
/* =========================================================
MONTH HEADER
========================================================= */
.month-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 15px 17px;
  border-bottom: 1px solid #e2e8f0;
  background: linear-gradient(135deg, #ffffff, #f8fafc);
}
.month-name {
  font-size: 16px;
  font-weight: 800;
  color: #0f172a;
}
.month-holiday-count {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 8px;
  border-radius: 999px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  color: #94a3b8;
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
}
.month-holiday-count.has-holiday {
  background: #eff6ff;
  border-color: #bfdbfe;
  color: #2563eb;
}
/* =========================================================
WEEKDAYS
========================================================= */
.weekdays,
.days {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}
.weekday {
  padding: 10px 2px;
  text-align: center;
  font-size: 10px;
  font-weight: 800;
  color: #94a3b8;
  background: #fafafa;
  border-bottom: 1px solid #f1f5f9;
  text-transform: uppercase;
}
.weekday.sunday {
  color: #dc2626;
}
/* =========================================================
DAY
========================================================= */
.day {
  position: relative;
  min-height: 76px;
  padding: 7px;
  overflow: hidden;
  border-top: 1px solid #f1f5f9;
  border-right: 1px solid #f1f5f9;
  background: #ffffff;
  transition:
    background 0.15s ease,
    transform 0.15s ease;
}
.day:nth-child(7n) {
  border-right: none;
}
.day:not(.empty):hover {
  background: #f8fafc;
  transform: scale(1.01);
  z-index: 2;
}
.day.empty {
  background: #fafafa;
  cursor: default;
}
/* =========================================================
DAY NUMBER
========================================================= */
.day-number {
  width: 29px;
  height: 29px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  color: #475569;
  font-size: 12px;
  font-weight: 700;
}
/* =========================================================
SUNDAY
========================================================= */
.day.sunday:not(.holiday-national):not(.holiday-collective) {
  background: #fffafa;
}
.day.sunday:not(.holiday-national):not(.holiday-collective) .day-number {
  color: #dc2626;
}
/* =========================================================
NATIONAL HOLIDAY
========================================================= */
.day.holiday-national {
  background: #fef2f2 !important;
  border-color: #fee2e2;
}
.day.holiday-national .day-number {
  background: #fee2e2;
  color: #dc2626 !important;
}
/* =========================================================
COLLECTIVE HOLIDAY
========================================================= */
.day.holiday-collective {
  background: #fff7ed !important;
  border-color: #ffedd5;
}
.day.holiday-collective .day-number {
  background: #ffedd5;
  color: #ea580c !important;
}
/* =========================================================
TODAY
========================================================= */
.day.today {
  outline: 2px solid #2563eb;
  outline-offset: -2px;
  z-index: 3;
}
.day.today .day-number {
  background: #2563eb;
  color: #ffffff !important;
  font-weight: 800;
}
/* =========================================================
HOLIDAY LIST
========================================================= */
.month-holidays {
  border-top: 1px solid #e2e8f0;
  padding: 12px 14px 14px;
  background: #fafbfc;
}
.month-holidays-title {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 9px;
  color: #475569;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.holiday-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.holiday-item {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 8px 9px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #ffffff;
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease;
}
.holiday-item:hover {
  transform: translateX(2px);
  box-shadow: 0 3px 8px rgba(15, 23, 42, 0.05);
}
.holiday-item-date {
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border-radius: 7px;
  font-size: 11px;
  font-weight: 800;
}
.holiday-item-content {
  min-width: 0;
  flex: 1;
}
.holiday-item-name {
  color: #0f172a;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.4;
  overflow-wrap: anywhere;
}
.holiday-item-type {
  margin-top: 2px;
  font-size: 9px;
  font-weight: 600;
}
/* NATIONAL */
.holiday-item.national {
  border-color: #fecaca;
  background: #fffafa;
}
.holiday-item.national .holiday-item-date {
  background: #fef2f2;
  color: #dc2626;
}
.holiday-item.national .holiday-item-type {
  color: #dc2626;
}
/* COLLECTIVE */
.holiday-item.collective {
  border-color: #fed7aa;
  background: #fffdf9;
}
.holiday-item.collective .holiday-item-date {
  background: #fff7ed;
  color: #ea580c;
}
.holiday-item.collective .holiday-item-type {
  color: #ea580c;
}
/* NO HOLIDAY */
.no-holiday {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 7px 2px;
  color: #94a3b8;
  font-size: 10px;
}
/* =========================================================
LEGEND
========================================================= */
.legend {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 25px;
  padding: 16px 18px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 13px;
  box-shadow: 0 3px 10px rgba(15, 23, 42, 0.03);
}
.legend-title {
  font-size: 12px;
  font-weight: 800;
  color: #475569;
}
.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  color: #475569;
}
.legend-color {
  width: 14px;
  height: 14px;
  border-radius: 4px;
  display: inline-block;
}
.legend-color.national {
  background: #fef2f2;
  border: 1px solid #fecaca;
}
.legend-color.collective {
  background: #fff7ed;
  border: 1px solid #fed7aa;
}
.legend-color.today {
  background: #ffffff;
  border: 2px solid #2563eb;
}
.legend-color.weekend {
  background: #fffafa;
  border: 1px solid #fee2e2;
}
/* =========================================================
API DOCUMENTATION
========================================================= */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  padding: 35px;
  margin-bottom: 30px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
}
.hero::after {
  content: "";
  position: absolute;
  width: 220px;
  height: 220px;
  right: -80px;
  top: -100px;
  background: #dbeafe;
  border-radius: 50%;
  opacity: 0.45;
}
.hero-content {
  position: relative;
  z-index: 1;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px;
  background: #eff6ff;
  color: #2563eb;
  border: 1px solid #dbeafe;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 15px;
}
.hero-badge-dot {
  width: 7px;
  height: 7px;
  background: #22c55e;
  border-radius: 50%;
}
.hero h1 {
  margin: 0;
  font-size: 36px;
  line-height: 1.2;
  letter-spacing: -0.8px;
}
.hero-description {
  max-width: 720px;
  margin: 12px 0 0;
  color: #64748b;
  font-size: 16px;
  line-height: 1.7;
}
/* =========================================================
API STATS
========================================================= */
.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 15px;
  margin-bottom: 30px;
}
.stat-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}
.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
}
.stat-icon {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: #eff6ff;
  color: #2563eb;
  font-size: 12px;
  font-weight: 800;
}
.stat-value {
  font-size: 20px;
  font-weight: 800;
  color: #0f172a;
}
.stat-label {
  margin-top: 2px;
  font-size: 12px;
  color: #64748b;
}
/* =========================================================
API SECTION
========================================================= */
.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 15px;
}
.section-title h2 {
  margin: 0;
  font-size: 20px;
  letter-spacing: -0.3px;
}
.section-title span {
  color: #64748b;
  font-size: 13px;
}
/* =========================================================
API ENDPOINT
========================================================= */
.endpoint {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  margin-bottom: 18px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.035);
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}
.endpoint:hover {
  border-color: #cbd5e1;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.06);
}
.endpoint-header {
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 13px;
  border-bottom: 1px solid #e2e8f0;
}
.method {
  min-width: 58px;
  text-align: center;
  padding: 6px 10px;
  border-radius: 7px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.4px;
}
.method.get {
  background: #dcfce7;
  color: #15803d;
}
.endpoint-url {
  flex: 1;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 14px;
  font-weight: 600;
  color: #334155;
  word-break: break-all;
}
.copy-button {
  border: 1px solid #e2e8f0;
  background: #ffffff;
  color: #64748b;
  padding: 7px 11px;
  border-radius: 7px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  transition: 0.2s;
}
.copy-button:hover {
  background: #f8fafc;
  color: #2563eb;
  border-color: #bfdbfe;
}
.copy-button.copied {
  background: #dcfce7;
  color: #15803d;
  border-color: #bbf7d0;
}
/* =========================================================
API BODY
========================================================= */
.endpoint-body {
  padding: 20px;
}
.endpoint-description {
  margin: 0 0 18px;
  color: #475569;
  font-size: 14px;
  line-height: 1.6;
}
.endpoint-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.code-section-title {
  margin-bottom: 8px;
  font-size: 12px;
  font-weight: 700;
  color: #475569;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.code-wrapper {
  position: relative;
}
pre {
  margin: 0;
  background: #0f172a;
  color: #e2e8f0;
  padding: 17px;
  border-radius: 10px;
  overflow-x: auto;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 12px;
  line-height: 1.7;
  border: 1px solid #1e293b;
}
.code-label {
  position: absolute;
  top: 9px;
  right: 9px;
  padding: 3px 7px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.08);
  color: #94a3b8;
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}
/* =========================================================
PARAMETERS
========================================================= */
.parameters {
  margin-top: 20px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  overflow: hidden;
}
.parameters-header {
  padding: 10px 13px;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
  font-size: 12px;
  font-weight: 700;
  color: #475569;
}
.parameter {
  padding: 11px 13px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
}
.parameter + .parameter {
  border-top: 1px solid #f1f5f9;
}
.parameter-name {
  font-family: monospace;
  color: #2563eb;
  font-weight: 700;
}
.parameter-type {
  padding: 3px 7px;
  background: #f1f5f9;
  color: #64748b;
  border-radius: 5px;
  font-size: 10px;
}
.parameter-description {
  color: #64748b;
}
/* =========================================================
API INFO
========================================================= */
.info-box {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: #eff6ff;
  border: 1px solid #dbeafe;
  border-radius: 12px;
  padding: 15px 16px;
  margin-top: 30px;
  color: #1e40af;
  font-size: 13px;
  line-height: 1.6;
}
.info-icon {
  flex-shrink: 0;
  width: 25px;
  height: 25px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #dbeafe;
  font-weight: 800;
}
/* =========================================================
FOOTER
========================================================= */
.footer {
  text-align: center;
  margin-top: 35px;
  color: #94a3b8;
  font-size: 12px;
}
/* =========================================================
TABLET
========================================================= */
@media (max-width: 1150px) {
  .calendar-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
/* =========================================================
MOBILE
========================================================= */
@media (max-width: 800px) {
  .navbar-container {
    padding: 0 15px;
  }
  .navbar-menu {
    gap: 2px;
  }
  .navbar-link {
    padding: 8px 9px;
    font-size: 12px;
  }
  .container {
    padding: 25px 15px 45px;
  }
  .calendar-header {
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
  }
  .calendar-title {
    align-items: flex-start;
  }
  .calendar-icon {
    width: 46px;
    height: 46px;
    font-size: 21px;
  }
  .title-content h1 {
    font-size: 25px;
  }
  .title-content p {
    font-size: 13px;
    line-height: 1.5;
  }
  .year-navigation {
    width: 100%;
  }
  .year-navigation a {
    flex: 1;
    min-width: 0;
  }
  .year-current {
    min-width: 65px;
  }
  .summary-grid {
    grid-template-columns: 1fr;
    gap: 10px;
    margin-bottom: 20px;
  }
  .calendar-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .month {
    border-radius: 13px;
  }
  .hero {
    padding: 25px 20px;
    border-radius: 16px;
  }
  .hero h1 {
    font-size: 28px;
  }
  .stats {
    grid-template-columns: 1fr;
  }
  .endpoint-grid {
    grid-template-columns: 1fr;
  }
}
/* =========================================================
SMALL MOBILE
========================================================= */
@media (max-width: 600px) {
  .navbar-container {
    min-height: auto;
    padding-top: 10px;
    padding-bottom: 10px;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }
  .navbar-menu {
    justify-content: center;
  }
  .endpoint-header {
    flex-wrap: wrap;
    padding: 15px;
  }
  .method {
    min-width: 52px;
  }
  .endpoint-url {
    width: calc(100% - 70px);
    flex: 1;
  }
  .copy-button {
    width: 100%;
  }
  .endpoint-body {
    padding: 15px;
  }
  pre {
    font-size: 11px;
    padding: 14px;
  }
  .parameter {
    flex-wrap: wrap;
  }
  .section-title {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }
}
/* =========================================================
EXTRA SMALL
========================================================= */
@media (max-width: 400px) {
  .day {
    min-height: 56px;
    padding: 4px;
  }
  .day-number {
    width: 25px;
    height: 25px;
    font-size: 11px;
  }
  .weekday {
    font-size: 8px;
    padding: 8px 1px;
  }
  .holiday-item-name {
    font-size: 10px;
  }
}
