/* ==========================
   COMPONENTS
   Buttons • Inputs • Cards • Tables • Progress Bars • Helpers
   ========================== */

/* ----- Buttons (global) ----- */
button,
.btn,
input[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  background: radial-gradient(circle at top left, #22c55e, #16a34a);
  color: #f9fafb;

  font-size: var(--font-size-md);
  font-weight: 600;

  border: none;
  border-radius: var(--radius-pill);

  padding: 0.7rem 1.6rem;
  cursor: pointer;

  box-shadow: 0 14px 28px rgba(34, 197, 94, 0.45);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast),
    background var(--transition-fast), filter var(--transition-fast);
}

button:hover,
.btn:hover,
input[type="submit"]:hover {
  transform: translateY(-1px) translateZ(0);
  box-shadow: 0 18px 36px rgba(34, 197, 94, 0.55);
  filter: brightness(1.03);
}

button:active,
.btn:active,
input[type="submit"]:active {
  transform: translateY(1px) scale(0.98);
  box-shadow: 0 10px 20px rgba(34, 197, 94, 0.35);
}

button:disabled,
.btn:disabled,
input[type="submit"]:disabled {
  background: #4b5563;
  box-shadow: none;
  cursor: not-allowed;
}

.btn-outline,
.hero-btn.secondary,
.actions .btn-primary[href] {
  background: transparent;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(148, 163, 184, 0.8);
  color: var(--color-text);
  box-shadow: none;
}

.btn-outline:hover,
.hero-btn.secondary:hover,
.actions .btn-primary[href]:hover {
  background: rgba(148, 163, 184, 0.12);
  color: #f9fafb;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.75);
}

.btn-danger {
  background: radial-gradient(circle at top, #ef4444, #b91c1c);
  box-shadow: 0 14px 28px rgba(239, 68, 68, 0.5);
}
.btn-danger:hover {
  box-shadow: 0 18px 36px rgba(248, 113, 113, 0.6);
}

/* Hero buttons */
.hero-buttons {
  display: flex;
  justify-content: flex-start;
  gap: 0.9rem;
  margin-top: 1.7rem;
  flex-wrap: wrap;
}

.hero-btn {
  text-decoration: none;
  border-radius: var(--radius-pill);
  padding: 0.7rem 1.7rem;
  font-weight: 600;
}

.hero-btn.primary {
  background: radial-gradient(circle at top left, #22c55e, #15803d);
  color: #f9fafb;
}

.hero-btn.secondary {
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(148, 163, 184, 0.6);
  color: var(--color-text-soft);
}

/* ----- Inputs & Selects ----- */
input[type="text"],
input[type="number"],
select {
  width: 100%;
  padding: 0.65rem 0.8rem;
  margin-top: 0.25rem;

  font-size: var(--font-size-md);
  color: var(--color-text);
  background: radial-gradient(circle at top, rgba(15, 23, 42, 0.96), rgba(15, 23, 42, 0.9));
  border-radius: var(--radius-md);
  border: 1px solid rgba(148, 163, 184, 0.4);
  outline: none;

  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.7);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast),
    background var(--transition-fast), transform var(--transition-fast);
}
/* κρύβουμε το default βελάκι σε παλιότερα IE/Edge */
select::-ms-expand {
  display: none;
}

/* τα options μέσα στο drop-down */
select option {
  background-color: #020617;             /* σκούρο, όπως η κάρτα */
  color: var(--color-text);              /* φωτεινό γκρι */
}

/* επιλεγμένο / hover option – πράσινο σαν το υπόλοιπο UI */
select option:checked,
select option:hover {
  background-color: rgba(34, 197, 94, 0.3);
  color: #f9fafb;
}
input::placeholder {
  color: var(--color-muted);
}

input:focus,
select:focus {
  background: radial-gradient(circle at top, rgba(15, 23, 42, 0.96), rgba(15, 23, 42, 0.96));
  border-color: var(--color-primary);
  box-shadow: 0 0 0 1px rgba(34, 197, 94, 0.5), 0 0 0 10px rgba(34, 197, 94, 0.12);
  transform: translateY(-1px);
}

/* Label */
label {
  display: block;
  margin-top: 0.75rem;
  font-size: 0.9rem;
  color: var(--color-text-soft);
}

/* ----- Cards ----- */
.card {
  background: var(--color-card);
  padding: var(--space-xl);
  border-radius: var(--radius-xl);
  border: 1px solid rgba(148, 163, 184, 0.32);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(var(--blur-strong));
  transform-origin: center;
  transition: transform 0.25s ease-out, box-shadow 0.25s ease-out,
    border-color 0.25s ease-out, background 0.25s ease-out;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-strong);
  border-color: rgba(148, 163, 184, 0.6);
}

/* ----- Styled Tables (JS uses .styled-table) ----- */
.styled-table,
table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.styled-table thead tr,
.styled-table tr:nth-child(1),
table tr:nth-child(1) {
  background: radial-gradient(circle at top left, #22c55e, #16a34a);
  color: #f9fafb;
}

.styled-table th,
.styled-table td,
table th,
table td {
  padding: 0.75rem 0.6rem;
  text-align: center;
  font-size: 0.9rem;
  border-bottom: 1px solid rgba(31, 41, 55, 0.9);
}

.styled-table tr:nth-child(even),
table tr:nth-child(even) {
  background: rgba(15, 23, 42, 0.9);
}

.styled-table tr:nth-child(odd),
table tr:nth-child(odd) {
  background: rgba(15, 23, 42, 0.86);
}

.table-wrapper {
  width: 100%;
  margin-top: 1rem;
  overflow-x: auto;
}

/* Small delete button in tables */
.small-del {
  background: rgba(239, 68, 68, 0.15) !important;
  border: 1px solid rgba(239, 68, 68, 0.45);
  padding: 0.25rem 0.55rem !important;
  border-radius: 999px;
  color: #fca5a5 !important;
  font-size: 0.75rem;
  line-height: 1;
  transition: 0.15s ease;
}

.small-del:hover {
  background: rgba(239, 68, 68, 0.25) !important;
  border-color: rgba(239, 68, 68, 0.75);
  color: #fecaca !important;
  transform: translateY(-1px);
}


/* ----- Suggestions dropdown (Meals) ----- */
.suggestions {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;

  background: #020617;
  border-radius: var(--radius-lg);
  border: 1px solid transparent;   /* 🔹 default: ΧΩΡΙΣ ορατό border */
  box-shadow: var(--shadow-soft);
  max-height: 260px;
  overflow-y: auto;
  margin-top: 0.4rem;
  z-index: 30;
}

/* Όταν είναι ανοιχτό το dropdown */
.suggestions.is-open {
  border-color: rgba(148, 163, 184, 0.6);
}


.suggestion {
  padding: 0.55rem 0.8rem;
  font-size: 0.9rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--color-text-soft);
}

.suggestion:hover,
.suggestion.active {
  background: rgba(34, 197, 94, 0.12);
  color: #e5e7eb;
}

/* ----- Progress bars ----- */
.progress-section {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.progress-row {
  display: grid;
  grid-template-columns: minmax(90px, 130px) minmax(0, 1fr) 180px;
  align-items: center;
  gap: 0.7rem;
}

.progress-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-text);
}

.progress-bar-container {
  position: relative;
  height: 12px;
  border-radius: 999px;
  overflow: hidden;
  background: linear-gradient(90deg, #020617, #020617);
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.8);
}

.progress-bar {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #22c55e, #38bdf8);
  box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.4);
}

.progress-values {
  text-align: right;
  font-size: 0.8rem;
  color: var(--color-muted);
}

/* Section title */
.section-title {
  margin-bottom: 0.6rem;
  font-size: 1rem;
  font-weight: 600;
  color: #e5e7eb;
}

/* Helper link style */
.link {
  color: var(--color-accent);
  text-decoration: none;
  border-bottom: 1px dashed rgba(56, 189, 248, 0.6);
}

.link:hover {
  color: #f9fafb;
  border-bottom-style: solid;
}

/* Empty state */
.no-userdata {
  padding: 1rem 1.2rem;
  background: rgba(15, 23, 42, 0.92);
  border-radius: var(--radius-lg);
  border: 1px dashed rgba(148, 163, 184, 0.6);
  font-size: 0.9rem;
  color: var(--color-text-soft);
}

/* A11y hidden text */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  clip: rect(0 0 0 0);
  overflow: hidden;
}

/* Remove number spinners */
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
  appearance: none;
  margin: 0;
}
/* ==========================
   Metab-all Dialog (Alerts / Confirms)
   ========================== */

.mb-dialog {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.mb-dialog.is-open {
  display: flex;
}

.mb-dialog__backdrop {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top, rgba(15, 23, 42, 0.95), rgba(15, 23, 42, 0.85));
  backdrop-filter: blur(18px);
}

.mb-dialog__panel {
  position: relative;
  max-width: 480px;
  width: 100%;
  border-radius: var(--radius-xl);
  background: linear-gradient(145deg, rgba(15, 23, 42, 0.96), rgba(15, 23, 42, 0.92));
  border: 1px solid rgba(148, 163, 184, 0.5);
  box-shadow:
    0 20px 60px rgba(15, 23, 42, 0.9),
    0 0 40px rgba(34, 197, 94, 0.18);
  padding: 1.4rem 1.5rem 1.3rem;
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  grid-template-areas:
    "icon title"
    "icon actions";
  column-gap: 1rem;
  row-gap: 0.75rem;
  transform: translateY(10px) scale(0.97);
  opacity: 0;
  transition:
    opacity var(--transition-normal),
    transform var(--transition-normal),
    border-color var(--transition-normal),
    box-shadow var(--transition-normal);
}

.mb-dialog.is-open .mb-dialog__panel {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.mb-dialog__accent {
  grid-area: icon;
  align-self: flex-start;
  width: 2.8rem;
  height: 2.8rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  box-shadow: 0 0 0 3px rgba(15, 23, 42, 0.96);
}

.mb-dialog__title {
  grid-area: title;
  margin: 0;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  color: var(--color-text-strong);
}

.mb-dialog__message {
  margin-top: 0.3rem;
  margin-bottom: 0;
  font-size: 0.95rem;
  color: var(--color-text-soft);
}

.mb-dialog__body {
  display: flex;
  flex-direction: column;
}

.mb-dialog__actions {
  grid-area: actions;
  display: flex;
  justify-content: flex-end;
  gap: 0.8rem;
  margin-top: 0.3rem;
}

.mb-dialog__btn-confirm,
.mb-dialog__btn-cancel {
  min-width: 6.3rem;
  font-size: 0.9rem;
  padding-inline: 1rem;
}

/* Variants */
.mb-dialog--info .mb-dialog__accent {
  background: var(--color-accent-soft);
  color: var(--color-accent);
}

.mb-dialog--success .mb-dialog__accent {
  background: var(--color-primary-soft);
  color: var(--color-primary);
}

.mb-dialog--warning .mb-dialog__accent {
  background: rgba(250, 204, 21, 0.16);
  color: #facc15;
}

.mb-dialog--danger .mb-dialog__accent {
  background: rgba(248, 113, 113, 0.12);
  color: #f97373;
}

/* Small screens */
@media (max-width: 600px) {
  .mb-dialog__panel {
    padding: 1.15rem 1.1rem 1rem;
    grid-template-columns: auto 1fr;
  }

  .mb-dialog__title {
    font-size: 1rem;
  }

  .mb-dialog__message {
    font-size: 0.9rem;
  }
}
/* ==========================
   Metab-all Dialog (ALL alerts / confirms / prompts)
   ========================== */
/* full-screen overlay, κέντρο με flex */
.mb-dialog {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: none;
  padding: 0;
  display: none;
}

.mb-dialog.is-open {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}



.mb-dialog__backdrop {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top, rgba(15, 23, 42, 0.95), rgba(15, 23, 42, 0.9));
  backdrop-filter: blur(18px);
}

.mb-dialog__panel {
  position: relative;      /* ΟΧΙ fixed, ΟΧΙ top/left */
  width: 100%;
  max-width: 320px;
  max-height: 90vh;
  overflow-y: auto;
  margin: 0;              /* να μην έχει margin-top κτλ */

  border-radius: 18px;
  background: linear-gradient(145deg, rgba(15, 23, 42, 0.97), rgba(15, 23, 42, 0.94));
  border: 1px solid rgba(148, 163, 184, 0.5);
  box-shadow:
    0 20px 50px rgba(15, 23, 42, 0.9),
    0 0 35px rgba(34, 197, 94, 0.22);
  padding: 0.9rem 1.1rem 0.8rem;

  display: flex;
  flex-direction: column;
  align-items: stretch;

  opacity: 0;
  transform: scale(0.96);   /* μόνο scale για animation */
  transition:
    opacity 0.18s ease-out,
    transform 0.18s ease-out;
}

.mb-dialog.is-open .mb-dialog__panel {
  opacity: 1;
  transform: scale(1);
}



/* icon */
.mb-dialog__accent {
  align-self: flex-start;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: 0 0 0 3px rgba(15, 23, 42, 0.96);
  margin-bottom: 0.45rem;
}

/* text */
.mb-dialog__title {
  margin: 0;
  font-size: 0.98rem;
  letter-spacing: 0.02em;
  color: var(--color-text-strong);
}

.mb-dialog__message {
  margin: 0.2rem 0 0;
  font-size: 0.9rem;
  color: var(--color-text-soft);
}

/* body wrapper */
.mb-dialog__body {
  display: flex;
  flex-direction: column;
}

/* input (prompt) */
.mb-dialog__field {
  margin-top: 0.7rem;
}

.mb-dialog__input {
  width: 100%;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.6);
  background: rgba(15, 23, 42, 0.96);
  color: var(--color-text-strong);
  padding: 0.45rem 0.9rem;
  font-size: 0.9rem;
  outline: none;
}

.mb-dialog__input::placeholder {
  color: rgba(148, 163, 184, 0.9);
}

.mb-dialog__input:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 1px rgba(34, 197, 94, 0.7);
}

/* actions – κουμπιά δεξιά */
.mb-dialog__actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  margin-top: 0.8rem;
}

.mb-dialog__btn-confirm,
.mb-dialog__btn-cancel {
  min-width: 4.8rem;
  font-size: 0.85rem;
  padding-inline: 0.8rem;
}

/* color variants */
.mb-dialog--info .mb-dialog__accent {
  background: var(--color-accent-soft);
  color: var(--color-accent);
}

.mb-dialog--success .mb-dialog__accent {
  background: var(--color-primary-soft);
  color: var(--color-primary);
}

.mb-dialog--warning .mb-dialog__accent {
  background: rgba(250, 204, 21, 0.16);
  color: #facc15;
}

.mb-dialog--danger .mb-dialog__accent {
  background: rgba(248, 113, 113, 0.12);
  color: #f97373;
}
/* ===== Meals delete button (red glow, same shape as workout) ===== */
.meal-del {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  font-size: 1.2rem;
  color: #ff6b6b;
  background: rgba(255, 0, 0, 0.18);
  box-shadow: 0 0 16px rgba(255, 0, 0, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.2s ease;
}

.meal-del:hover {
  background: rgba(255, 0, 0, 0.28);
  box-shadow: 0 0 22px rgba(255, 0, 0, 0.6);
  color: #ff9a9a;
  transform: translateY(-1px);
}

/* Mobile – ίδια λογική, απλά λίγο πιο σφιχτό */
@media (max-width: 600px) {
  .mb-dialog {
    padding: 1rem;
    align-items: center;
    justify-content: center;
  }

  .mb-dialog__panel {
    max-width: 300px;
    padding: 0.85rem 1rem 0.75rem;
  }

  .mb-dialog__title {
    font-size: 0.95rem;
  }

  .mb-dialog__message {
    font-size: 0.85rem;
  }

  .mb-dialog__btn-confirm,
  .mb-dialog__btn-cancel {
    min-width: 0;
    font-size: 0.8rem;
    padding-inline: 0.7rem;
  }
}
/* Reduce horizontal scrollbar height */
.table-wrapper::-webkit-scrollbar {
  height: 5px !important;
}

.table-wrapper::-webkit-scrollbar-thumb {
  background: rgba(148,163,184,0.45);
  border-radius: 999px;
}

.table-wrapper::-webkit-scrollbar-track {
  background: transparent;
}

/* Floating profile bubble */
#profileBubble {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.65);
    box-shadow: 0 0 22px rgba(0,255,180,0.65), 0 0 50px rgba(0,140,255,0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    backdrop-filter: blur(6px);
    z-index: 9999;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

#profileBubble:hover {
    transform: scale(1.07);
    box-shadow: 0 0 30px rgba(0,255,180,0.85), 0 0 70px rgba(0,140,255,0.7);
}

#profileBubble img {
    width: 60px;
    height: 60px;
}

/* Slide-out Profile Panel */
#profilePanel {
    position: fixed;
    bottom: 120px;
    right: 24px;
    width: 260px;
    padding: 18px;
    border-radius: 18px;
    background: rgba(10, 20, 35, 0.88);
    box-shadow: 0 8px 35px rgba(0,0,0,0.45);
    backdrop-filter: blur(12px);
    color: white;
    display: none;
    flex-direction: column;
    gap: 10px;
    z-index: 9998;
    animation: fadeIn 0.25s ease;
}

#profilePanel button {
    padding: 6px 10px;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.2);
    background: rgba(255,255,255,0.05);
    color: white;
    cursor: pointer;
    transition: 0.2s;
}

#profilePanel button:hover {
    background: rgba(255,255,255,0.15);
}

/* Name Modal */
#nameModal {
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.65);
    display: none;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(6px);
    z-index: 99999;
}

#nameModal .modal-content {
    padding: 24px;
    background: rgba(20, 30, 45, 0.95);
    border-radius: 18px;
    text-align: center;
    box-shadow: 0 0 25px rgba(0,255,180,0.5);
}

#nameModal input {
    width: 80%;
    padding: 10px;
    border-radius: 10px;
    border: none;
    margin-top: 10px;
    background: #fff;
}

#saveName {
    margin-top: 14px;
    padding: 8px 16px;
    border-radius: 10px;
    background: #22c55e;
    color: #000;
    border: none;
    cursor: pointer;
}
#nameModal input {
    width: 80%;
    padding: 10px;
    border-radius: 10px;
    border: none;
    margin-top: 10px;

    background: #ffffff;
    color: #111;                    /* ΚΕΙΜΕΝΟ ΜΑΥΡΟ */
    font-size: 1rem;
}

#nameModal input::placeholder {
    color: #777 !important;         /* placeholder γκρι */
    opacity: 1 !important;
}
#confirmModal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    backdrop-filter: blur(5px);
}

#confirmModal .modal-content {
    background: rgba(20, 30, 45, 0.95);
    padding: 24px;
    border-radius: 18px;
    width: 300px;
    text-align: center;
    color: #fff;
    box-shadow: 0 0 25px rgba(0,255,180,0.5);
}

.confirm-row {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 18px;
}

#confirmYes {
    background: #ef4444;
    padding: 8px 14px;
    border-radius: 10px;
    border: none;
    color: #fff;
    cursor: pointer;
}

#confirmNo {
    background: #444;
    padding: 8px 14px;
    border-radius: 10px;
    border: none;
    color: #fff;
    cursor: pointer;
}
/* Floating bubble container */
#profileBubble {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 9999;
    transition: 0.25s;
    box-shadow:
        0 0 25px rgba(0,255,180,0.55),
        0 0 55px rgba(0,140,255,0.55);
}

#profileBubble:hover {
    transform: scale(1.08);
}

/* NEW CSS NEON AVATAR */
.neon-avatar {
    position: relative;
    width: 48px;
    height: 48px;
}

/* Head */
.neon-avatar::before {
    content: "";
    position: absolute;
    top: 4px;
    left: 50%;
    transform: translateX(-50%);
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 3px solid #00ffd5;
    box-shadow:
        0 0 8px #00ffd5,
        0 0 14px #00d0ff;
}

/* Body (shoulders and upper torso) */
.neon-avatar::after {
    content: "";
    position: absolute;
    bottom: 6px;
    left: 50%;
    transform: translateX(-50%);
  
    width: 32px;
    height: 22px;

    border: 3px solid #00baff;
    border-bottom: transparent;         /* ΚΑΤΩ διάφανο = σωστό U shape */
    border-radius: 20px 20px 0 0;        /* στρογγυλοί ώμοι προς τα πάνω */

    box-shadow:
        0 0 10px #00baff,
        0 0 18px #00ffd5;
}
/* ===== Unified Delete Button Style (Meals + Workout) ===== */

.table-delete-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 0, 0, 0.15);
    box-shadow: 0 0 12px rgba(255, 0, 0, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: 0.15s ease-in-out;
}

.table-delete-btn:hover {
    background: rgba(255, 0, 0, 0.28);
    box-shadow: 0 0 16px rgba(255, 0, 0, 0.55);
}

.table-delete-btn span {
    font-size: 20px;
    color: #ff4c4c;
    font-weight: bold;
}
/* Action row container */
.workout-action-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 1.2rem;
}

/* Buttons inside */
.workout-action-row button {
    padding: 0.65rem 1.2rem;
    font-size: 1rem;
    border-radius: 12px;
    min-width: 110px;
}

/* Mobile optimization */
@media (max-width: 480px) {
    .workout-action-row button {
        flex: 1 1 calc(50% - 0.75rem);
        min-width: 140px;
        text-align: center;
    }

    /* Save button stays large but full-width */
    #saveWorkoutBtn {
        width: 100%;
        margin-bottom: 0.5rem;
    }
}
.workout-save-row {
    display: flex;
    justify-content: center;
    margin-top: 1.2rem;
}
/* Centered save button row */
.workout-save-row {
    display: flex;
    justify-content: center;
    margin-top: 1.2rem;
}


/* --- ICON BUTTONS ROW --- */
.workout-actions {
    display: flex !important;   /* critical override */
    flex-direction: row !important;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 1.2rem;
    width: 100%;
}

/* --- ICON BUTTON DESIGN --- */
.icon-btn {
    all: unset;                     /* remove ALL inherited styles */
    display: flex !important;
    justify-content: center;
    align-items: center;

    width: 48px;
    height: 48px;
    border-radius: 50%;

    background: #1f2937;
    color: white;
    font-size: 1.6rem;

    cursor: pointer;
    box-shadow: 0 0 8px rgba(0,0,0,0.4);
    transition: 0.15s ease;
}

.icon-btn:hover {
    transform: scale(1.08);
    box-shadow: 0 0 12px rgba(0,255,180,0.4);
}

.icon-btn.delete {
    background: #c62828;
}

.icon-btn.delete:hover {
    box-shadow: 0 0 12px rgba(255,60,60,0.6);
}


/* --- MOBILE REFINEMENT --- */
@media (max-width: 520px) {
    .icon-btn {
        width: 44px;
        height: 44px;
        font-size: 1.5rem;
    }

    .workout-actions {
        gap: 0.8rem;
    }

    #saveWorkoutBtn {
        width: 100%;
        max-width: 320px;
    }
}
.workout-actions {
    display: flex;
    justify-content: center;
    gap: 0.8rem;
    margin-top: 1rem;
}

.action-btn {
    padding: 0.45rem 0.9rem;
    font-size: 0.95rem;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    transition: 0.15s ease-in-out;

    background: rgba(255,255,255,0.08);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.15);
}

/* Hover effect */
.action-btn:hover {
    background: rgba(255,255,255,0.16);
}

/* Variants */
.cancel-btn {
    color: #ff5e5e;
}
.delete-btn {
    color: #ff3b3b;
}
.undo-btn {
    color: #3ebeff;
}

/* Mobile sizing */
@media (max-width: 520px) {
    .action-btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.9rem;
    }
}
.action-btn {
    padding: 0.45rem 0.9rem;
    font-size: 0.95rem;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: 0.15s ease-in-out;

    background: rgba(255,255,255,0.08);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.12);

    /* REMOVE GREEN GLOW */
    box-shadow: none !important;
}

.action-btn:hover {
    background: rgba(255,255,255,0.14);
}
