:root {
  --week-border: 1px solid #ddd;
  --week-purple: #cbb0ff;
  --week-light-purple: #e2d3ff;

  --card-gradient: linear-gradient(
    135deg,
    var(--main-color-dark-pink),
    var(--main-color-light-pink)
  );
  --workout-rgb:  var(--main-color-middle-purple);
}
/*.modal {
  display: none;  Скрываем модальное окно по умолчанию
  /*position: fixed;
  z-index: 1;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.4);  Затемненный фон
}

.modal-content {
  background-color: #fefefe;
  margin: 15% auto;
  padding: 20px;
  border: 1px solid #888;
  width: 80%;
}

.close {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
}

.close:hover,
.close:focus {
  color: black;
  text-decoration: none;
  cursor: pointer;
}*/
.workout-card {
  border: var(--week-border);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 10px;
  background: #f8f8f8;
}

.workout-actions {
  display: flex;
  justify-content: space-around;
  padding: 8px;
}

.workout-actions img {
  width: 16px;
}

.dow {
  margin: 0;
  font-weight: 600;
}

.date {
  margin: 0;
  font-weight: 500;
  font-size: 13px;
  padding: 4px;
  border-radius: 5px;
  border: 1px solid var(--gray-color);
}

.date.is-today {
  background-color: #fff;
  border: 1px solid #bd9bff;
}

.add-btn {
    margin-top: 4px;
    border: var(--week-border);
    border-radius: 5px;
    width: 26px;
}

.add-btn:hover {
  background-color: #fff;
}

.add-btn.active {
  background-color: #fff;
}

button.active .add-btn {
  background-color: #fff;
}

button.active .add-btn:hover {
  background-color: #f3f2fa;
}

.workout-cnt {
  font-weight: 600;
  min-width: 24px;
  text-align: left;
}

.workout-time {
  font-size: 13px;
  font-weight: 600;
}

/* кнопки снизу */
.workout-actions {
  display: flex;
  justify-content: space-around;
  padding: 4px 0;
}

.workout-actions a {
  display: flex;
  align-items: center;
  justify-content: center;
}

.workout-actions a img {
  width: 12px;
}


.week-header {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  border: var(--week-border);
  border-radius: 12px 12px 0 0;
  overflow: hidden;
}

.day-btn {
  border: none;
  border-right: var(--week-border);
  background: #f5f5f5;
  padding: 10px;
}

.day-btn:last-child {
  border-right: none;
}

.day-btn.active {
  background: #e9ecef;
}

.week-content {
  border: var(--week-border);
  border-top: none;
  border-radius: 0 0 12px 12px;
  overflow: hidden;
}

.content-inner {
  padding: 12px;
}

.workout-actions {
  display: flex;
  justify-content: space-around;
  padding: 8px;
}

.workout-actions img {
  width: 16px;
}
/* ------------------*/
.week-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  border: var(--week-border);
  border-radius: 20px;
  overflow: hidden;
  margin-bottom: 16px;
  gap: 0;
  /* box-shadow: 0px 0px 3px 0px #ddd; */
}

/* TAB BUTTON */
.day-column {
  padding: 0 !important;
  border: none !important;
  border-right: var(--week-border) !important;
  background: white !important;
  border-radius: 0 !important;
  color: inherit !important;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.day-column:last-child {
  border-right: none !important;
}

/* ACTIVE TAB */
.day-column.active {
  background: #f3f2fa !important;
}

.day-column.active .day-header {
  background: var(--week-purple);
}

/* HEADER */
.day-header {
  background: var(--gray-color);
  border-bottom: var(--week-border);
  padding: 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.dow, .date {
  margin: 0;
}

.date {
  font-size: 14px;
  font-weight: 500;
}

/* MINI CARDS */
.mini-cards {
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.mini-workout-card {
  /* border: var(--week-border); */
  border-radius: 8px;
  padding: 4px;
  font-size: 12px;
  background: -webkit-linear-gradient(90deg, var(--main-color-light-pink), var(--main-color-dark-pink));
  background: linear-gradient(90deg, var(--main-color-dark-pink), var(--main-color-light-pink));
}

/* DETAILS */
.details-wrapper {
  /* border: var(--week-border);
  border-radius: 12px;

  padding: 16px;

  background: white; */
}

.details-content {
  display: flex;
  flex-direction: column;

  gap: 12px;
}

/* DETAIL CARD */

.detail-top {
  display: flex;
  justify-content: space-between;
  padding: 10px;
  /* border-bottom: var(--week-border); */
  background: var(--workout-rgb);
  background: linear-gradient(
    180deg,
    var(--main-color-light-purple),
    var(--main-color-middle-purple)
  ) !important;
  color: #fff;
}

.detail-body {
  padding: 12px;
  /* background: -webkit-linear-gradient(90deg, var(--main-color-light-pink), var(--main-color-dark-pink));
  background: linear-gradient(90deg, var(--main-color-dark-pink), var(--main-color-light-pink)); */
  background: color-mix(in srgb, var(--workout-rgb) 7%, white);
}

.training-name {
  font-weight: 600;
}

.training-description {
  margin-top: 6px;
  color: #000;
  font-size: 14px;
}

/* ACTIONS */
.detail-actions {
  display: flex;
  justify-content: space-around;
  padding: 10px;
  /* border-top: var(--week-border); */
  background: color-mix(in srgb, var(--workout-rgb) 15%, white);
}

.detail-actions img {
  width: 16px;
}







.mini-workout-card {
  background: rgba(255, 230, 255, 0.6) !important;
  border: 1px solid #f2d6f6 !important;
  border-radius: 8px;
}
.detail-card {
  background: #fff !important;
  color: #2b2b2b !important;

  border-radius: 14px;
  overflow: hidden;

  box-shadow: 0 0 4px 0 color-mix(in srgb, var(--workout-rgb) 15%, white);
  /* font-family: "Garamond", serif; */
}

.day-column.active {
  background: linear-gradient(
    180deg,
    var(--main-color-light-purple),
    var(--main-color-middle-purple)
  ) !important;

  color: white !important;
}
.day-column.active .day-header {
  background: rgba(255, 255, 255, 0.15) !important;
}

.day-column.active .date.is-today {
  color: #000;
}

.circle-btn {
    padding: 4px;
    min-width: 40px;
    min-height: 40px;
    align-items: center;
    vertical-align: middle;
    display: grid;
}

div.stats p {
  margin-top: 0.5rem;
  margin-bottom: 0rem;
}