/* Kalendář — Gentelella matching styling per Petrov PHP kalendar.php */

body, .right_col { font-size: clamp(12px, 0.88rem, 24px); }
#monthTable { font-size: clamp(11px, 0.82rem, 22px); }
#monthTable th, #monthTable td {
  padding: clamp(4px, 0.4rem, 14px) clamp(6px, 0.5rem, 16px);
  vertical-align: middle;
}
#monthTable thead tr {
  background: #2c3e50;
  color: #fff;
}
#monthTable thead th { color: #fff; border-color: #34495e; }

/* Day row variants */
#monthTable .row-sunday { background-color: #fce4e4; }
#monthTable .current-day {
  background-color: #fcf3cf !important;
  border-left: 4px solid #f1c40f !important;
  font-weight: bold;
}
#monthTable .current-day td:first-child { color: #d35400; }
#monthTable .row-skipped {
  background: #5d6d7e;
  color: #95a5a6;
  font-style: italic;
}
#monthTable .day-link {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px dotted #1ABB9C;
}
#monthTable .day-link:hover { color: #1ABB9C; }

.label-movable {
  display: inline-block;
  padding: 3px 8px;
  background: #1ABB9C;
  color: #fff;
  border-radius: 3px;
  font-size: 12px;
  font-weight: 500;
}

.movable-feast-link {
  color: #2980b9;
  cursor: pointer;
  text-decoration: none;
}
.movable-feast-link:hover { text-decoration: underline; color: #3498db; }

.well {
  background: #fcf3cf;
  border: 1px solid #f4d03f;
  padding: clamp(8px, 0.7rem, 16px);
  margin-bottom: clamp(8px, 0.6rem, 20px);
  border-radius: 3px;
}

#movableFeastsList {
  font-size: clamp(10px, 0.72rem, 18px);
  column-count: 2;
  column-gap: 15px;
  list-style: none;
  margin-bottom: 0;
  padding-left: 0;
}
#movableFeastsList li { padding: 3px 0; break-inside: avoid; }

.count {
  font-size: clamp(20px, 1.6rem, 48px) !important;
  font-weight: 700;
  color: #e67e22;
  line-height: 1.2;
}
.count_top { color: #73879c; font-size: 14px; }

.x_panel { margin-bottom: clamp(8px, 0.6rem, 20px); padding: clamp(4px, 0.4rem, 16px) clamp(8px, 0.6rem, 20px); }
.x_panel.x_panel-kal { border-top: 3px solid #e67e22; }
.x_title { margin-bottom: 5px; border-bottom: 2px solid #ecf0f1; }
.x_title h2 { font-size: clamp(14px, 1.05rem, 28px); font-weight: 600; padding: 5px 0; color: #2c3e50; }
.x_content { padding: 0 clamp(4px, 0.35rem, 12px) clamp(4px, 0.35rem, 12px); }

.alert { padding: clamp(6px, 0.5rem, 16px); margin-bottom: clamp(8px, 0.6rem, 16px); font-size: clamp(11px, 0.82rem, 22px); border-radius: 3px; }
.alert-warning { border-left: 4px solid #e67e22; background: #fef5e7; color: #a04000; }
.alert-info { background: #e8f6f3; border: 1px solid #1ABB9C; color: #117a66; }
.alert-success { background: #e6f7ed; border: 1px solid #5cb85c; color: #2f6f3f; }

.form-control { height: auto; padding: clamp(3px, 0.3rem, 10px) clamp(6px, 0.5rem, 16px); font-size: clamp(11px, 0.82rem, 22px); }
.btn { padding: clamp(3px, 0.3rem, 12px) clamp(8px, 0.6rem, 20px); font-size: clamp(11px, 0.82rem, 22px); }
.btn-warning { background: #e67e22; border-color: #d35400; color: #fff; }
.btn-warning:hover { background: #d35400; border-color: #ba4a00; color: #fff; }

.radio label, .well label { font-size: clamp(10px, 0.75rem, 18px); margin-bottom: 2px; }

@media (max-width: 768px) {
  #monthTable th, #monthTable td { padding: 4px 6px; font-size: 11px; }
  #movableFeastsList { column-count: 1; }
}
