/* =====================================================
   ROOT VARIABLES – ACRONIS THEME
===================================================== */
:root {
  --acronis-radius: 16px;

  --color-text: #0f172a;
  --color-white: #fff;

  --shadow-soft: 0 8px 26px rgba(0,0,0,0.08);
  --shadow-active: 0 14px 36px rgba(0,0,0,0.14);

  --shadow-btn: 0 5px 16px rgba(0,0,0,0.15);
  --shadow-btn-hover: 0 8px 24px rgba(0,0,0,0.25);
}

/* =====================================================
   WRAPPER
===================================================== */
.acronis-accordion {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

/* =====================================================
   ITEM
===================================================== */
.acc-item {
  border-radius: var(--acronis-radius);
  overflow: hidden;
  background: var(--color-white);
  box-shadow: var(--shadow-soft);
  transition: box-shadow .25s ease, transform .25s ease;
  will-change: transform, box-shadow;
}

.acc-item.active {
  box-shadow: var(--shadow-active);
  transform: translateY(-2px);
}

/* =====================================================
   HEADER
===================================================== */
.acc-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  cursor: pointer;
  user-select: none;
  transition: filter .2s ease, transform .2s ease;
}

.acc-header:hover {
  filter: brightness(.98);
  transform: translateY(-1px);
}

/* =====================================================
   LEFT ICON
===================================================== */
.acc-icon {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,.92);
  box-shadow: 0 3px 12px rgba(0,0,0,.14);
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
  flex-shrink: 0;
  backdrop-filter: blur(3px);
}

/* =====================================================
   MAIN CONTENT
===================================================== */
.acc-main {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
}

.acc-title {
  font-weight: 700;
  font-size: 16px;
  line-height: 1.25;
  color: var(--color-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* =====================================================
   BADGE
===================================================== */
.acc-badge {
  font-size: 12px;
  padding: 4px 9px;
  border-radius: 999px;
  font-weight: 700;
  white-space: nowrap;
}

.acc-badge--active {
  background: rgba(34,197,94,.2);
  color: #065f46;
}

.acc-badge--new {
  background: rgba(249,115,22,.2);
  color: #7c2d12;
}

/* =====================================================
   TOGGLE BUTTON (RIGHT)
   hỗ trợ width/height riêng (từ PHP)
===================================================== */
.acc-toggle {
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  background: var(--toggle-bg, #22c55e);
  box-shadow: var(--shadow-btn);
  transition: transform .25s ease, box-shadow .25s ease, filter .25s ease;
  will-change: transform, box-shadow;
  flex-shrink: 0;
  overflow: hidden;
}

.acc-toggle:hover {
  transform: scale(1.08);
  box-shadow: var(--shadow-btn-hover);
  filter: brightness(1.05);
}

.acc-toggle__symbol {
  font-size: 22px;
  font-weight: 800;
  line-height: 1;
  color: #fff;
  transition: transform .25s ease;
}

.acc-item.active .acc-toggle__symbol {
  transform: rotate(180deg);
}

/* =====================================================
   CONTENT
===================================================== */
.acc-content {
  height: 0;
  opacity: 0;
  overflow: hidden;
  background: var(--color-white);
  transition:
    height .32s cubic-bezier(.4,0,.2,1),
    opacity .22s ease;
  will-change: height, opacity;
}

.acc-content__inner {
  padding: 14px 16px 18px;
  color: var(--color-text);
  font-size: 14.5px;
  line-height: 1.6;
}

/* =====================================================
   MOBILE OPTIMIZATION
===================================================== */
@media (max-width: 600px) {

  .acronis-accordion {
    padding: 0 10px;
  }

  .acc-header {
    align-items: flex-start;
  }

  .acc-main {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .acc-title {
    white-space: normal;
    overflow: visible;
    text-overflow: initial;
  }

  .acc-toggle {
    width: 34px !important;
    height: 34px !important;
  }
}
