/* styles.css */

/* Modal Styles */
#share-progress-modal {
    position: fixed;
    top: 20%;
    left: 50%;
    transform: translate(-50%, -20%);
    background-color: #ffffff;
    border: 2px solid #cccccc;
    padding: 20px;
    z-index: 9999;
    width: 320px;
    text-align: center;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

#share-progress-modal .modal-content h2 {
    margin-top: 0;
    color: #333;
}

#progress-bar-container {
    width: 100%;
    background-color: #e0e0e0;
    height: 20px;
    border-radius: 10px;
    margin: 20px 0;
    overflow: hidden;
}

#progress-bar {
    width: 0%;
    height: 100%;
    background-color: #76c7c0;
    border-radius: 10px;
    transition: width 0.3s ease-in-out;
}

#progress-text {
    margin-top: 10px;
    color: #555;
}

/* Highlight Effect */
.highlight-item {
    border: 2px solid #76c7c0 !important;
    box-shadow: 0 0 15px rgba(118, 199, 192, 0.6);
    transition: all 0.3s ease-in-out;
}









/* ===== Control Bar ===== */
.es-control-bar-wrap {
  display: inline-block;     /* only as wide as the bar itself */
  position: relative;        /* so it doesn’t spill over */
  z-index: 4000;             /* sit above header background */
  pointer-events: auto;      /* allow clicks */
}

.control-bar {
  display: inline-flex;      /* buttons in a row */
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 6px 8px;
  font-size: 13px;
  box-shadow: 0 2px 6px rgba(0,0,0,.08);
}

.btn {
  border: 1px solid #ccc;
  background: #fafafa;
  padding: 6px 12px;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s;
}
.btn:hover { background: #f0f0f0; }

.btn-primary {
  background: #6c2bd9;
  border-color: #6c2bd9;
  color: #fff;
}

.control-helper {
  margin-top: 4px;
  font-size: 12px;
  color: #666;
  pointer-events: none;      /* helper text never blocks clicks */
}


/* ===== Modal ===== */
.pmset-wrap {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}
.pmset-wrap.open { display: flex; }
.pmset-dim {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.4);
}
.pmset-panel {
  position: relative;
  background: #fff;
  border-radius: 10px;
  width: 420px;
  max-width: 90%;
  padding: 18px;
  box-shadow: 0 8px 24px rgba(0,0,0,.15);
  z-index: 1;
}
.pmset-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}
.pmset-title { margin: 0; font-size: 16px; font-weight: 700; }
.pmset-close {
  border: none;
  background: none;
  font-size: 20px;
  cursor: pointer;
}

.pmset-field { margin-bottom: 14px; }
.pmset-label { font-weight: 600; display: block; margin-bottom: 4px; }
.pmset-label--inline { margin: 0; font-weight: 500; }
.pmset-input {
  width: 100%;
  border: 1px solid #ccc;
  border-radius: 6px;
  padding: 6px;
  font-size: 14px;
}
.pmset-help { font-size: 12px; color: #666; margin-top: 2px; }

.pmset-toggle-row { display: flex; align-items: center; gap: 8px; }

/* Toggle switch */
.pm-switch { position: relative; width: 40px; height: 22px; }
.pm-switch__input {
  position: absolute;
  opacity: 0;
  width: 40px; height: 22px;
  cursor: pointer;
  margin: 0;
}
.pm-switch__track {
  width: 100%; height: 100%;
  background: #ccc;
  border-radius: 11px;
  transition: background .2s;
}
.pm-switch__knob {
  position: absolute;
  top: 2px; left: 2px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: #fff;
  transition: transform .2s;
  box-shadow: 0 1px 3px rgba(0,0,0,.3);
}
.pm-switch__input:checked + .pm-switch__track { background: #6c2bd9; }
.pm-switch__input:checked + .pm-switch__track .pm-switch__knob { transform: translateX(18px); }

.pmset-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 10px; }
.pm-btn {
  border: 1px solid #ccc;
  border-radius: 6px;
  padding: 6px 12px;
  background: #fafafa;
  cursor: pointer;
}
.pm-btn-primary {
  background: #6c2bd9;
  border-color: #6c2bd9;
  color: #fff;
}

/* Small note */
.small-note {
  position: fixed;
  bottom: 20px; right: 20px;
  background: #333;
  color: #fff;
  padding: 8px 12px;
  border-radius: 6px;
  opacity: 0;
  transition: opacity .2s;
  z-index: 10000;
}
.small-note.show { opacity: 1; }
.small-note.ok { background: #2d8a34; }
.small-note.error { background: #c0392b; }


