:root {
  --main-font-family: "Fira Sans", "Rubik";
  --main-font-color: #a6accd;
  --main-background-color: #0b0f14;
  --main-font-size: 14px;
  --border: rgba(255, 255, 255, 0.4);
  --radius: 14px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  --separator: 1px solid #ffffff29;
}

/*================================*/
/*================================*/
/* GENERAL */
/*================================*/
/*================================*/
html {
  min-height: 100%;
  /*   background:
    radial-gradient(
      1200px 700px at 20% 10%,
      rgba(122, 162, 255, 0.18),
      transparent 50%
    ),
    radial-gradient(
      900px 600px at 80% 0%,
      rgba(45, 212, 191, 0.12),
      transparent 55%
    ),
    var(--main-background-color); */
  background:
    radial-gradient(circle at top, rgba(110, 231, 183, 0.14), transparent 30%),
    linear-gradient(180deg, #0b1220 0%, #101827 100%);
  background-repeat: no-repeat;
  background-attachment: fixed; /* keeps it consistent while scrolling */
}

body {
  color: var(--main-font-color);
  font-family: var(--main-font-family);
  font-size: 1.2rem;
  line-height: 1.6;
  padding-top: 1em;
  background-color: transparent;
  font-size: var(--main-font-size);
}

nav {
  display: flex;
  justify-content: space-between;
}

#navbar_menu {
  position: fixed;
  top: 0.8rem;
  right: 2rem;
}

#navbar_menu_items {
  position: absolute;
  top: 2rem;
  right: 0;
  min-width: max-content;
  background-color: #000000;
  padding: 15px;
  border: 1px solid;
  border-radius: 5px;
  color: white;
  font-family: "Fira Code";
}

.navbar-brand {
  top: 4px;
  position: absolute;
  padding: 0;
}

.site-section {
  position: absolute;
  top: 2px;
  left: 4.5rem;
  font-size: 1.8rem;
  font-weight: bold;
  font-family: "Fira Sans";
  text-transform: uppercase;
}

.site-section a {
  text-decoration: none;
  color: white;
}

#navbar_menu_items div {
  padding: 4px 0;
  border-bottom: 1px solid #ffffff33;
  cursor: pointer;
}

#navbar_menu_items div:last-child {
  border-bottom: none;
}

#root {
  margin: 0 auto;
  padding: 3rem 1rem 1rem;
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  flex-direction: column;
  min-height: 90vh;
}

.flex {
  display: flex;
  flex-wrap: nowrap;
  gap: 1rem;
}

.flex-column {
  display: flex;
  flex-wrap: nowrap;
  gap: 1rem;
  flex-direction: column;
}

.separator {
  border: var(--separator);
}

.pointer {
  cursor: pointer;
}

.my_btn {
  display: flex;
  gap: 1rem;
  border: 1px solid;
  padding: 7px 10px;
  width: 16rem;
  justify-content: center;
  border-radius: 50px;
  align-items: center;
  line-height: 1;
  height: 2.2rem;
}

.error_icn,
.success_icn {
  position: absolute;
  left: 1rem;
}

.red_glow {
  box-shadow:
    0 0 10px rgba(236, 0, 0, 0.6),
    0 0 20px rgba(236, 0, 0, 0.5),
    0 0 40px rgba(236, 0, 0, 0.4);
}

.green_glow {
  box-shadow:
    0 0 10px rgba(0, 236, 28, 0.6),
    0 0 20px rgba(0, 236, 16, 0.5),
    0 0 40px rgba(0, 236, 55, 0.4);
}

.hidden {
  display: none;
}

.green {
  color: green !important;
}

.work-in-progress {
  text-align: center;
  padding: 20px;
  border: 1px solid;
  background-color: #ffa5003b;
  border-radius: 10px;
  color: yellow;
}

/*================================*/
/*================================*/
/* OVERLAY SCREEN */
/*================================*/
/*================================*/
#overlay_screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
}

#overlay_screen_card {
  position: relative;
  border: 1px solid #8f8f8f;
  height: fit-content;
  text-align: center;
  border-radius: var(--radius);
  background: #ffffff;
  gap: 0;
  width: min(35rem, 95vw); /* replaces width + max-width */
  margin: 0 0.5rem;
  font-family: "Fira Code";
  word-break: break-word;
  max-height: 75dvh;
  overflow: hidden;
}

#overlay_screen_header {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #8f8f8f;
  background-color: black;
  border-top-left-radius: var(--radius);
  border-top-right-radius: var(--radius);
  font-size: 1.2rem;
  color: white;
}

.overlay_header_slot {
  display: flex;
  align-items: center;
}

.overlay_header_slot_right {
  justify-content: flex-end;
}

#overlay_screen_content {
  font-size: 0.8rem;
  color: white;
  padding: 1rem;
  background-color: #272626;
  border-bottom-left-radius: var(--radius);
  border-bottom-right-radius: var(--radius);
  text-align: justify;
  overflow-y: auto;
  flex: 1;
}

#overlay_screen_closebtn {
  position: static;
  color: white;
  font-size: 2rem;
}

#overlay_screen_closebtn:hover {
  color: rgb(248, 166, 13);
}

#my_navbar {
  border-bottom: 1px solid rgba(255, 255, 255, 0.516);
  height: 3rem;
}

/*================================*/
/*================================*/
/* SAVE/LOAD POP-UP */
/*================================*/
/*================================*/
.popup_storage_line {
  justify-content: space-between;
  padding: 0.75rem 1rem; /* was: 10px 20px */
  font-family: "Fira Code";
  border-bottom: 1px solid #ffffff38;
  flex-wrap: wrap;
  align-items: center; /* vertically center button with content */
  gap: 0.5rem;
}

.popup_storage_line:last-child {
  border-bottom: none;
}

.storage_status {
  padding: 3px 10px;
  border-radius: var(--radius);
  font-size: 0.8rem;
  white-space: nowrap;
  flex-shrink: 0;
}

.storage_status_empty {
  border: 1px solid #00fffd;
  background: #40e0d05c;
  color: #00fffd;
}

.storage_status_used {
  border: 1px solid #efff00;
  background: #e0bd405c;
  color: #efff00;
}

.popup_storage_line_left {
  padding-right: 0; /* remove fixed padding, let gap handle spacing */
  flex: 1;
  min-width: 0; /* prevents overflow of long storage key text */
}

.storage_key {
  font-size: 0.8rem;
  color: #a1a1a1;
  font-family: "Fira Code";
  overflow-wrap: anywhere; /* breaks long strings */
  word-break: break-all;
}

.popup_btn {
  margin: auto 0;
  border-radius: var(--radius);
  min-height: 44px; /* WCAG touch target size */
  min-width: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding: 0.4rem 1rem;
}

.popup_save_btn,
.save_btn {
  border: 1px solid #8bdbff;
  background-color: #0074ff;
  color: #8bdbff;
}

.popup_save_btn:hover,
.save_btn:hover {
  border-color: rgba(0, 149, 255, 0.644);
  box-shadow: 0 0 0 3px rgba(45, 212, 191, 0.12);
}

.popup_overwrite_btn {
  border: 1px solid #ff7b7b;
  background-color: #713131;
  color: #ff7b7b;
}

.popup_overwrite_btn:hover {
  border-color: rgba(255, 0, 0, 0.644);
  box-shadow: 0 0 0 3px rgba(212, 45, 45, 0.12);
}

.popup_load_btn {
  border: 1px solid #efff00;
  background: #e0bd405c;
  color: #efff00;
}

.popup_load_btn:hover {
  border-color: rgba(255, 196, 0, 0.644);
  box-shadow: 0 0 0 3px rgba(212, 159, 45, 0.12);
}

.popup_storage_line_left_index {
  color: gray;
}

.popup_storage_line_left_namestatus {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.session_name_card_content {
  padding: 0 20px;
  text-align: left;
}

#session_name_input {
  cursor: text;
  background-color: rgb(33, 37, 41);
  color: white;
  border-radius: 4px;
}

#overwrite_warning {
  border: 1px solid;
  padding: 5px 10px;
  border-radius: var(--radius);
  text-align: center;
  color: red;
  background-color: #82262666;
}

/*================================*/
/*================================*/
/* IMPORT WORKOUT SCREEN */
/*================================*/
/*================================*/

#import_screen_wrapper {
  justify-content: center;
  margin: auto;
  text-align: center;
  border: var(--separator);
  padding: 2rem;
  border-radius: var(--radius);
  background-color: #4e4c4c2b;
}

#workout_string_lbl {
  font-size: 1.4rem;
  font-weight: bold;
}

#workout_string {
  width: 100%;
  cursor: text;
  background-color: rgb(33, 37, 41);
  color: white;
  border-radius: 10px;
  padding: 10px;
  margin-bottom: 1rem;
}

.import_screen_top {
  padding-bottom: 2rem;
  border-bottom: var(--separator);
  align-items: center;
}

.import_screen_bottom {
  padding-top: 1rem;
  margin: auto;
}

#import_workout_btn {
  color: rgb(131 215 184);
  background-color: #306e38;
}

#import_workout_btn:hover {
  border-color: rgba(3, 155, 100, 0.644);
  box-shadow: 0 0 0 3px rgba(45, 212, 191, 0.12);
}

#create_workout_btn {
  color: rgb(123 173 208);
  background-color: rgb(26 44 98);
}

#create_workout_btn:hover {
  border-color: rgba(0, 98, 255, 0.644);
  box-shadow: 0 0 0 3px rgba(45, 81, 212, 0.12);
}

#load_workout_btn {
  border: 1px solid #efff00;
  background: #e0bd405c;
  color: #efff00;
}

#load_workout_btn:hover {
  border-color: rgba(255, 196, 0, 0.644);
  box-shadow: 0 0 0 3px rgba(212, 159, 45, 0.12);
}

/*================================*/
/*================================*/
/* MOVE SELECTION SCREEN */
/*================================*/
/*================================*/

/*===========================*/
/*Moves config card*/
/*===========================*/
#workout_config_card {
  width: 80vw;
  margin: auto;
  background-color: #4e4c4c2b;
}

/*===========================*/
/*Moves config header*/
/*===========================*/
#workout_config_title {
  margin: 0;
  padding: 12px 10px;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  color: rgba(231, 238, 252, 0.92);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.11);
  text-align: center;
  border-top-left-radius: var(--radius);
  border-top-right-radius: var(--radius);
  border-bottom: none;
  font-weight: bold;
}

#workout_config {
  border: 1px solid var(--border);
  border-bottom-left-radius: var(--radius);
  border-bottom-right-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 7px 10px;
}

.workout_config_pill {
  width: 8rem;
}

.config_label {
  width: 3rem;
  font-weight: bold;
}

.config_value_pill {
  display: flex;
  gap: 0.5rem;
  flex-wrap: nowrap;
}

#workout_config_info {
  display: flex;
  flex-wrap: nowrap;
  flex-direction: row;
  gap: 1rem;
  border-bottom: var(--separator);
  padding: 0.8rem;
  justify-content: space-evenly;
}

#workout_config_activerest {
  display: flex;
  flex-wrap: nowrap;
  flex-direction: row;
  gap: 1rem;
  padding: 0.8rem;
  justify-content: space-evenly;
}

.plusminus_btns {
  justify-content: space-evenly;
  border: 1px solid;
  border-radius: var(--radius);
  background-color: #1e3250;
}

.plusbtn {
  padding-left: 15px;
}

.minusbtn {
  padding-right: 15px;
}

#total_duration_hidden {
  display: none;
}

/*===========================*/
/*Moves labels*/
/*===========================*/
#moves_selection {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.move_label {
  display: flex;
  gap: 1rem;
  border: 1px solid;
  padding: 7px 10px;
  width: 16rem;
  justify-content: space-between;
  border-radius: 50px;
  background: rgba(18, 25, 38, 0.6);
  flex: 1 1 calc(50% - 0.75rem);
  height: 2.4rem;
  min-width: 22rem;
}

.move_label:hover {
  border-color: rgba(45, 212, 191, 0.55);
  box-shadow: 0 0 0 3px rgba(45, 212, 191, 0.12);
}

div.okselection {
  background-color: rgba(45, 212, 190, 0.2);
}

.noselection {
  background-color: rgba(255, 187, 0, 0.2);
}

div.noselection:hover {
  border-color: rgba(255, 174, 0, 0.644);
  box-shadow: 0 0 0 3px rgba(45, 212, 191, 0.12);
}

.move_dropdown {
  outline: none;
  background-color: transparent;
  color: var(--main-font-color);
  border: none;
  width: 10rem;
}

.move_dropdown:focus {
  background-color: rgba(18, 25, 38, 0.6);
}

.move_right {
  display: flex;
  gap: 1rem;
}

.move_dropdown optgroup {
  background-color: #1e3250;
  color: #a6accd;
  font-style: normal;
  font-weight: bold;
}

.move_dropdown optgroup option {
  background-color: rgb(33, 37, 41);
  font-weight: normal;
  padding-left: 1rem;
}

/*===========================*/
/*Form buttons styling*/
/*===========================*/

#form_buttons {
  margin: auto;
  margin-bottom: 70px;
}

.add_btn {
  background: rgba(18, 25, 38, 0.6);
}

.play_btn {
  background-color: #856120;
  color: #f5d69b;
  border: 1px solid #f5d69b;
}

.play_btn:hover {
  border-color: rgba(255, 166, 0, 0.644);
  box-shadow: 0 0 0 3px rgba(212, 159, 45, 0.12);
}

/*===========================*/
/*Draggable styling*/
/*===========================*/
.drag-ghost {
  opacity: 0.4;
}

.drag-handle {
  cursor: grab;
  color: var(--border);
  user-select: none;
}

.drag-handle:active {
  cursor: grabbing;
}

/*================================*/
/*================================*/
/* READY SET GO SCREEN */
/*================================*/
/*================================*/

#readysetgo_overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--main-background-color);
}

#readysetgo_text {
  font-size: 5rem;
  font-weight: 700;
  color: #72ddfd;
  letter-spacing: 0.1em;
}

/*================================*/
/*================================*/
/* PLAY SCREEN */
/*================================*/
/*================================*/
#workout_play_card {
  padding: 20px;
  margin: auto;
  border-radius: var(--radius);
  width: 80%;
  height: 12rem;
  border: 1px solid;
  background-color: #a87f331f;
  color: lightgray;
}

#workout_play_card > .flex-column {
  width: 6rem;
}

#workout_playcard_title {
  font-size: 1.5rem;
  text-align: center;
  max-height: 4rem;
  line-height: 1.1;
}

#workout_playcard_subtitle {
  font-size: 0.8rem;
  text-align: center;
}

#workout_playcard_content {
  font-size: 3rem;
  margin: auto;
}

#workout_play_card.rest_styling {
  border: 1px solid;
  background-color: #a87f331f;
  color: #fe7601;
}

#workout_play_card.play_styling {
  border: 1px solid;
  background-color: #337ba81f;
  color: #72ddfd;
}

#workout_playcard_img {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  height: 400px;
  width: 225px;
  margin: 1rem auto;
}

#workout_playcard_img img {
  max-height: 400px;
  border-radius: var(--radius);
}

#volume_control {
  margin: auto;
}

#session-duration-progress {
  justify-content: center;
}

/*================================*/
/*================================*/
/* MOVE OVERVIEW SCREEN */
/*================================*/
/*================================*/

.move_overview {
  font-family: "Fira Code";
}

.move_overview_header {
  border: 1px solid #00f9ffb3;
  padding: 7px 15px;
  border-radius: 5px;
  display: flex;
  justify-content: space-between;
  background-color: #04595b69;
  color: #00f9ffb3;
}

.move_overview_content {
  padding: 1rem;
  border: 1px solid;
  margin: 0 1rem 0 2rem;
  border-top: none;
  border-bottom-left-radius: 5px;
  border-bottom-right-radius: 5px;
  background-color: black;
  color: white;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-evenly;
}
.move_overview_content_media {
  height: 400px;
  width: 225px;
  display: flex;
}

.move_overview_content_nomedia {
  background-color: #80808066;
  border-radius: 10px;
  width: 100%;
  height: 100%;
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  text-align: center;
  justify-content: center;
  font-size: large;
  font-weight: bold;
  position: relative; /* ← add */
  overflow: hidden;
}

.move_overview_content_nomedia::before,
.move_overview_content_nomedia::after {
  content: "";
  position: absolute;
  width: 200%;
  height: 0;
  border-top: 2px dashed #ffffff4f;
  top: 50%;
  left: 50%;
}

.move_overview_content_nomedia::before {
  transform: translate(-50%, -50%) rotate(60deg);
}

.move_overview_content_nomedia::after {
  transform: translate(-50%, -50%) rotate(-60deg);
}

.move_overview_content_description {
  padding: 0.5rem 1rem;
  max-width: 23rem;
}

.move_overview_cat {
  padding-right: 1rem;
}

.move_overview_index {
  color: gray;
}

/*================================*/
/*================================*/
/* SAVED SESSIONS SCREEN */
/*================================*/
/*================================*/

.saved_session {
  margin: 1rem 2rem;
  max-width: 90%;
}

.saved_session_header {
  border: 1px solid;
  padding: 7px 10px;
  border-radius: 5px;
  background-color: #72562769;
  color: orange;
  font-family: "Fira Code";
  display: flex;
}

.saved_session_bin {
  padding-right: 10px;
}

.saved_session_index {
  color: gray;
}

.saved_session_header_right {
  display: flex;
  justify-content: space-between;
  width: 100%;
}

.saved_session_content {
  font-family: "Fira Code";
  border: 1px solid;
  padding: 7px 10px;
  margin-left: 2rem;
  margin-right: 1rem;
  border-top: none;
  background-color: black;
  border-bottom-left-radius: 5px;
  border-bottom-right-radius: 5px;
  word-break: break-word;
}

.saved_session_content div {
  display: flex;
  flex-wrap: wrap;
}

.saved_session_content_json {
  border-bottom: 1px solid #ffffff5c;
  margin-bottom: 1rem;
}

.saved_session_content_left {
  width: 4rem;
}

.saved_session_content_right {
  color: white;
  font-family: "Fira Code";
  font-size: 14px;
  cursor: pointer;
}

.saved_session_content_base64string:hover {
  color: orange;
}

.nosavedsession_window {
  font-family: "Fira Code";
  border: 1px solid;
  margin: 1rem;
  padding: 3rem;
  text-align: center;
  border-radius: 10px;
  font-size: 1.5rem;
  background-color: #7524246e;
  color: #f7a543;
}

.no-loading-data {
  text-align: center;
  font-size: 2rem;
  font-weight: bold;
}

/*================================*/
/*================================*/
/* PROGRAMME BASED TRAINING STYLE */
/*================================*/
/*================================*/

/* =========================================
   PROGRAMME SECTION - PROFESSIONAL UI
   ========================================= */

.programme_import_screen {
  min-height: calc(100vh - 110px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 110px 20px 32px;
}

.programme_import_panel {
  width: min(980px, 100%);
  background: rgba(17, 24, 39, 0.8);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 28px;
  padding: clamp(20px, 2vw, 36px);
  box-shadow: 0 24px 60px rgba(2, 6, 23, 0.45);
  backdrop-filter: blur(10px);
}

.programme_import_panel h1 {
  margin: 0 0 18px;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.1;
  letter-spacing: -0.05em;
  color: #f8fafc;
  font-weight: 800;
}

.programme_import_box {
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 18px;
  padding: 18px 18px 16px;
  margin-top: 16px;
}

.programme_import_box label {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #7dd3fc;
  margin-bottom: 10px;
}

.programme_import_box textarea {
  width: 100%;
  min-height: 120px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(2, 6, 23, 0.45);
  color: #f8fafc;
  border-radius: 14px;
  padding: 14px 16px;
  resize: vertical;
  font-size: 0.96rem;
  line-height: 1.5;
}

.programme_import_box textarea:focus {
  outline: none;
  border-color: rgba(110, 231, 183, 0.8);
  box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.12);
}

.programme_import_box button {
  margin-top: 14px;
  min-width: 180px;
}

.programme_settings {
  position: sticky;
  top: 88px;
  z-index: 4;
  background: rgba(15, 23, 42, 0.92);
  border: 1px solid rgba(148, 163, 184, 0.15);
  border-radius: 22px;
  padding: 18px 20px;
  margin: 18px auto 18px;
  max-width: 1100px;
  box-shadow: 0 18px 38px rgba(2, 6, 23, 0.24);
}

.programme_title_wrapper h2 {
  margin: 0;
  font-size: clamp(1.7rem, 2.8vw, 2.5rem);
  line-height: 1.1;
  letter-spacing: -0.04em;
  font-weight: 800;
  color: #f8fafc;
}

.programme_info {
  margin-top: 12px;
  color: rgba(226, 232, 240, 0.82);
  font-size: 0.97rem;
}

.programme_total_count_box {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  background: rgba(14, 165, 233, 0.1);
  border: 1px solid rgba(125, 211, 252, 0.26);
  border-radius: 999px;
  padding: 8px 14px;
  color: #dbeafe;
  font-weight: 700;
}

.programme_total_count_box strong {
  font-size: 1.1rem;
  color: #f8fafc;
}

.programme_state_buttons {
  display: flex;
  gap: 10px;
  margin-top: 18px;
  flex-wrap: wrap;
}

.programme_state_buttons .btn {
  min-width: 110px;
}

#programme_moves_selection {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 6px 0 18px;
}

.programme_move_label {
  display: grid;
  grid-template-columns:
    38px minmax(220px, 1.4fr) 120px minmax(180px, 1.4fr)
    42px;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(148, 163, 184, 0.12);
  box-shadow: 0 14px 30px rgba(2, 6, 23, 0.12);
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.programme_move_label:hover {
  transform: translateY(-1px);
  border-color: rgba(125, 211, 252, 0.32);
  box-shadow: 0 18px 32px rgba(2, 6, 23, 0.18);
}

.programme_drag_handle {
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(226, 232, 240, 0.75);
  font-size: 1.15rem;
  cursor: grab;
  user-select: none;
}

.programme_select {
  width: 100%;
}

.programme_move_dropdown {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  background: rgba(2, 6, 23, 0.48);
  color: #f8fafc;
  font-weight: 600;
}

.programme_move_dropdown:focus {
  outline: none;
  border-color: rgba(110, 231, 183, 0.8);
  box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.12);
}

.programme_counter {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 12px;
  padding: 8px 10px;
}

.programme_minus_btn,
.programme_plus_btn,
.programme_remove_btn {
  border: none;
  background: transparent;
  color: #f8fafc;
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
  opacity: 0.9;
}

.programme_move_count {
  min-width: 24px;
  text-align: center;
  font-weight: 800;
  color: #f8fafc;
}

.programme_move_comment {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  background: rgba(2, 6, 23, 0.48);
  color: #f8fafc;
  font-size: 0.94rem;
}

.programme_move_comment::placeholder {
  color: rgba(226, 232, 240, 0.52);
}

.programme_move_comment:focus {
  outline: none;
  border-color: rgba(14, 165, 233, 0.8);
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.12);
}

.programme_remove_btn {
  color: #fda4af;
  font-size: 1.2rem;
}

.programme_move_label.okselection {
  border-color: rgba(52, 211, 153, 0.42);
  box-shadow: 0 16px 28px rgba(16, 185, 129, 0.12);
}

.programme_move_label.noselection {
  border-color: rgba(148, 163, 184, 0.12);
}

.form_buttons {
  max-width: 1100px;
  margin: 0 auto 18px;
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}

.form_buttons .btn {
  min-width: 180px;
}

.programme_training_wrapper {
  max-width: 1200px;
  margin: 20px auto 0;
  padding: 0 20px 30px;
}

.programme_training_wrapper h2 {
  margin: 0 0 18px;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  letter-spacing: -0.05em;
  color: #f8fafc;
  font-weight: 800;
}

.programme_training_grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}

.programme_exercise_card {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  background: rgba(15, 23, 42, 0.76);
  border: 1px solid rgba(148, 163, 184, 0.14);
  box-shadow: 0 22px 40px rgba(2, 6, 23, 0.26);
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.programme_exercise_card:hover {
  transform: translateY(-3px);
  border-color: rgba(125, 211, 252, 0.34);
  box-shadow: 0 24px 45px rgba(2, 6, 23, 0.32);
}

.programme_card_media {
  position: relative;
  height: 190px;
  overflow: hidden;
  background: rgba(15, 23, 42, 0.8);
}

.programme_card_media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition:
    transform 0.25s ease,
    filter 0.25s ease;
}

.programme_exercise_card:hover .programme_card_media img {
  transform: scale(1.02);
}

.programme_exercise_card.programme_completed .programme_card_media img {
  filter: brightness(0.45) grayscale(0.7);
}

.programme_check_wrap {
  position: absolute;
  right: 12px;
  top: 12px;
  z-index: 2;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.programme_check_wrap input {
  accent-color: #34d399;
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.programme_card_body {
  padding: 16px 16px 18px;
}

.programme_card_body h3 {
  margin: 0 0 8px;
  color: #f8fafc;
  font-size: 1.08rem;
  font-weight: 800;
  line-height: 1.35;
}

.programme_card_subtitle {
  margin: 0 0 8px;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #7dd3fc;
  font-weight: 700;
}

.programme_card_comment {
  margin: 0;
  color: rgba(226, 232, 240, 0.8);
  font-size: 0.92rem;
  line-height: 1.5;
}

.programme_fallback_image {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(14, 165, 233, 0.28),
    rgba(15, 23, 42, 0.9)
  );
  color: #e2e8f0;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ----------------------------
   responsive adjustments
---------------------------- */

@media (max-width: 767px) {
  .programme_import_screen {
    padding-top: 96px;
  }

  .programme_settings {
    top: 74px;
    padding: 16px 16px;
  }

  .programme_move_label {
    grid-template-columns: 28px minmax(0, 1fr) 96px minmax(0, 1fr) 32px;
    gap: 8px;
    padding: 10px 10px;
  }

  .programme_move_dropdown,
  .programme_move_comment {
    padding: 10px 12px;
    font-size: 0.92rem;
  }

  .programme_counter {
    gap: 8px;
    padding: 7px 9px;
  }

  .form_buttons {
    justify-content: stretch;
  }

  .form_buttons .btn {
    flex: 1 1 100%;
    min-width: 0;
  }
}

@media (max-width: 560px) {
  .programme_move_label {
    grid-template-columns: 28px 1fr;
    grid-template-areas:
      "drag select"
      "counter comment"
      "counter remove";
  }

  .programme_drag_handle {
    grid-area: drag;
  }

  .programme_select {
    grid-area: select;
  }

  .programme_counter {
    grid-area: counter;
  }

  .programme_move_comment {
    grid-area: comment;
  }

  .programme_remove_btn {
    grid-area: remove;
    justify-self: end;
  }

  .programme_training_wrapper {
    padding-left: 12px;
    padding-right: 12px;
  }

  .programme_card_media {
    height: 180px;
  }
}

/*================================*/
/*================================*/
/* FOOTER */
/*================================*/
/*================================*/

#paddingCopyright {
  display: block;
  padding: 20px;
  height: 60px;
  width: 100%;
  background-color: transparent;
}

#copyright {
  background-color: rgb(32, 32, 32, 0.1);
  border-top: 1px solid rgb(63, 63, 63);
  text-align: center;
  padding: 20px;
  height: 60px;
  width: 100%;
  color: white;
  position: sticky; /* ← */
  bottom: 0;
  /*   left: 0px;
  bottom: 0px; */
}

#copyright a {
  text-decoration: none;
}
