
/* ===== Wrap ===== */
.cgr-study-plan-wrap{
  margin:0 auto;
  background:none;
}

/* ===== Header ===== */
.cgr-study-plan-header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:1rem;
  margin-bottom:1rem;
}
.cgr-study-plan-summary{
  margin-left:auto;
  display:flex;
  flex-direction:column;
  gap:0.5rem;
  align-items:flex-end;
}
.cgr-study-plan-summary-week{  }
.cgr-study-plan-objectives{ width:280px; }
.cgr-study-plan-objectives-label{ margin-bottom:0.5rem; }
.cgr-study-plan-objectives-bar{
  height:8px; background:var(--canguro-low-grey); border-radius:999px; overflow:hidden;
}
.cgr-study-plan-objectives-bar-inner{
  height:100%; width:0%; background:var(--canguro-yellow); transition:width .25s;
}

.cgr-study-plan-header { margin-bottom:12px; }
.cgr-study-plan-week-label { font-weight:600; margin-bottom:4px; }
.cgr-study-plan-progress-wrap { font-size:12px; }
.cgr-study-plan-progress-bar {
  width:100%;
  height:6px;
  background:#eee;
  border-radius:999px;
  overflow:hidden;
  margin-bottom:2px;
}
.cgr-study-plan-progress-fill {
  height:100%;
  background:#f9b800;
}
.cgr-study-plan-progress-text { color:#666; }

/* TOTAL PROGRESS BAR */
.cgr-study-plan-total-progress-wrap {
    margin-top: 0.5rem;
}

.cgr-study-plan-total-progress-bar {
    width: 100%;
    height: 8px;
    background-color: #e0e0e0;
    border-radius: 999px;
    overflow: hidden;
}

.cgr-study-plan-total-progress-fill {
    height: 100%;
    width: 0;
    background-color: var(--canguro-yellow, #f9b800);
    border-radius: 999px;
    transition: width 0.3s ease-out;
}

.cgr-study-plan-total-progress-text {
    margin-top: 0.25rem;
    font-size: 0.9rem;
    color: #555;
    text-align: right;
}

/* ===== PLAN ITEMS ===== */
.cgr-study-plan-list {
  display: flex;
  flex-direction: column;
}

.cgr-study-plan-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-rows: auto auto;
  column-gap: 1rem;
  background: #fff;
  padding-top: 1rem;
  padding-bottom: 1rem;
}

/* Title + description: top-left */
.cgr-study-plan-main {
  grid-column: 1;
  grid-row: 1;
}

/* Complete icon */
.cgr-sp-complete-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 0.3rem;
  vertical-align: middle;
  overflow: visible; /* allows icon to grow outside the box */
    color: var(--canguro-yellow);
}

.cgr-sp-complete-icon .lucide {
  width: 1rem !important;
  height: 1rem !important;
  stroke-width: 3 !important;
  transform: scale(1.3);        /* ← makes icon bigger visually */
  transform-origin: center;     /* keep it centred */
}

/* Lock icon */
.cgr-lock-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
  margin-bottom: 0.3rem;
  overflow: visible; /* allows icon to grow outside the box */
}

.cgr-lock-icon .lucide {
    stroke-width: 3 !important;
    transform: scale(1.2);        /* ← makes icon bigger visually */
  transform-origin: center;     /* keep it centred */
}

/* Buttons: top-right */
.cgr-study-plan-actions {
  grid-column: 2;
  grid-row: 1;
  align-self: flex-start;
  display: flex;
  gap: 0.5rem;
}

/* Progress text + bar: full-width under both */
.cgr-study-plan-meta {
  grid-column: 1 / -1;
  grid-row: 2;
  margin-top: 0.5rem;
}

/* ITEM PROGRESS BAR */
.cgr-study-plan-progress-bar {
    margin-top: 0.15rem;
    width: 100%;
    height: 4px;
    background-color: #eee;
    border-radius: 999px;
    overflow: hidden;
}

.cgr-study-plan-progress-fill {
    height: 100%;
    width: 0;
    background-color: var(--canguro-yellow, #f9b800);
    border-radius: 999px;
    transition: width 0.2s ease-out;
}

.cgr-study-plan-actions button,
.cgr-study-plan-actions .button{
  cursor:pointer;
}
.cgr-study-plan-actions button:hover,
.cgr-study-plan-actions .button:hover{ }
.cgr-study-plan-actions button[aria-disabled="true"],
.cgr-study-plan-actions button:disabled{ cursor:not-allowed; }

/* bonus row */
.cgr-study-plan-bonus{ margin-top:12px; }
.cgr-study-plan-row-bonus{
  border:1px dashed var(--canguro-dark-grey);
  border-radius:12px;
  padding:12px;
  font-size:.95rem;
}
.cgr-study-plan-bonus[aria-disabled="true"]{ opacity:.6; filter:grayscale(.2); }

/* ===================================================================================== */
/* POPOVER
/* Only affects inner styles
/* ===================================================================================== */

/* each row block */
.cgr-popover-content.cgr-popover-content--study-plan{
    display:flex;
  flex-direction:column;
  gap: 16px;
}

.cgr-popover-sp__presets {
	display:flex;
  flex-direction:row;
  flex-wrap:wrap;
  gap:8px;
}

.cgr-popover-sp__actions {
  display:flex;
  flex-direction:row;
  gap:8px;
  justify-content: right;
}

.cgr-popover-sp__custom label {
  margin-bottom: 10px;
}

.cgr-popover-sp__input {
  width:100%;
}

/* Hide spinners for Chrome, Safari, Edge, and Opera */
.cgr-popover-sp__input::-webkit-outer-spin-button,
.cgr-popover-sp__input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Hide spinners for Firefox */
.cgr-popover-sp__input {
  -moz-appearance: textfield;
}