/* ------------------------------------------------------------
   startpage style.css - (c) Matthijs Aveskamp 2025
   Licensed onder niets! Ja echt, doe ermee wat je wilt.
   ------------------------------------------------------------ */

:root {
  --gap: 20px;
  --card-bg: #fff;
  --shadow: 0 3px 10px rgba(0, 0, 0, .09);
  --base-font: 22px;
  --accent: #3b82f6;
}

* {
  box-sizing: border-box;
}

body {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, 'Noto Sans', sans-serif;
  margin: 0;
  background: #f5f7fb;
  color: #111;
  padding: 20px;
  padding-top: calc(20px + 64px);
  font-size: var(--base-font);
  overflow-x: hidden;
}

header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--card-bg);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  z-index: 50;
}

header h1 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 600;
  text-align: center;
}

/* small version text under the header title */
.header-version{
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 46px; /* moved up 3px */
  font-size: 7pt;
  color: #6b7280;
  font-weight: 600;
  letter-spacing: 0.2px;
}

/* mobile version is hidden by default on larger screens */
.mobile-version{ display:none }

@media (max-width:480px){
  /* hide header version on mobile and show inline mobile-version under the cards */
  .header-version{ display:none }
  .mobile-version{
    display:block;
    text-align:center;
    font-size:7px;
    color:#6b7280;
    font-weight:600;
    margin: 12px auto 20px;
  }
}

.header-avatar {
  position: absolute;
  right: 20px;
  bottom: -14px;
  width: 68px;
  height: 68px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid #fff;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .12);
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  transition: transform .12s ease, box-shadow .12s ease;
}

.header-avatar:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(59, 130, 246, 0.14);
}

.header-avatar:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.12), 0 10px 28px rgba(2, 6, 23, 0.16);
}

.header-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.header-avatar .placeholder {
  font-weight: 700;
  color: #475569;
  font-size: 1rem;
}

/* Responsief grid: 1 kolom standaard, 2 kolommen op kleine tablets, max 3 op desktop */
.grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gap);
  margin-top: 4px; /* nudge cards 4px down */
}

@media (min-width: 600px) {
  .grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1000px) {
  .grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 480px) {
  /* mobiel: compacte items behouden */
  .grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 12px;
  }
}

.card {
  display: flex;
  align-items: center;
  padding: 18px;
  background: var(--card-bg);
  border-radius: 22px;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow);
  transition: transform .16s ease, box-shadow .16s ease;
  overflow: hidden;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .12);
}

.thumb {
  width: 96px;
  height: 96px;
  flex: 0 0 96px;
  border-radius: 18px;
  overflow: hidden;
  background: linear-gradient(180deg, #f7f9fc, #eef3ff);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 20px;
  transition: transform .16s ease;
}

.card:hover .thumb {
  transform: scale(1.02);
}

.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.placeholder {
  font-weight: 700;
  color: #475569;
  font-size: 1.3rem;
}

.meta {
  flex: 1;
  min-width: 0;
}

.meta strong {
  font-size: 1.18rem;
  font-weight: 600;
  color: #0f172a;
  display: block;
  overflow-wrap: break-word;
  word-break: break-word;
}

.meta small {
  display: block;
  color: #6b7280;
  font-size: 1rem;
  overflow-wrap: break-word;
}

footer {
  margin-top: 22px;
}

/* Index categorieën balk */
.categories-bar {
  display: flex;
  gap: 8px;
  padding: 10px 20px;
  background: transparent;
  align-items: center;
  overflow: auto;
  white-space: nowrap;
  margin-top: -16px; /* moved 4px down */
}

.cat-btn {
  background: #fff;
  border: 1px solid #e6e9ef;
  padding: 8px 12px;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 600;
}

.cat-btn.active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

@media (max-width: 600px) {
  .categories-bar {
    padding: 8px;
  }
}

@media (max-width: 480px) {
  /* Stapel kaartinhoud om horizontale overflow op zeer kleine schermen te voorkomen */
  .card {
    padding: 16px;
    flex-direction: column;
    align-items: flex-start;
  }

  .thumb {
    width: 100%;
    height: auto;
    max-height: 160px;
    border-radius: 12px;
    margin-right: 0;
    margin-bottom: 12px;
  }

  header {
    height: 72px;
  }

  body {
    padding-top: calc(20px + 72px);
  }

  /* Verberg titel en centreer avatar op kleine schermen */
  header h1 {
    display: none;
  }

  .header-avatar {
    position: static;
    right: auto;
    bottom: auto;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin: 12px auto 0; /* push 12px down so full circle is visible on mobile */
    display: flex;
    align-items: center;
    justify-content: center;
    border: 4px solid #fff;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
    transition: transform .12s ease, box-shadow .12s ease;
  }

  .header-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .header-avatar:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(59, 130, 246, 0.14);
  }

  .header-avatar:focus-visible {
    outline: none;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.18), 0 10px 28px rgba(2, 6, 23, 0.16);
  }

  .card .meta {
    width: 100%;
  }

  .meta strong {
    font-size: 1rem;
  }

  .meta small {
    font-size: 0.95rem;
  }
}

.admin {
  max-width: 1100px;
  margin: 0 auto;
  background: #fff;
  padding: 22px;
  border-radius: 10px;
  box-shadow: var(--shadow);
  font-size: 13px;
}

.avatar-box {
  width: 220px;
  margin: 0 0 12px 0;
}

.avatar-preview {
  width: 200px;
  height: 200px;
  overflow: hidden;
  border-radius: 8px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #e6e9ef;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
}

.avatar-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.avatar-preview.placeholder {
  font-weight: 700;
  color: #475569;
  font-size: 1.2rem;
}

.admin input,
.admin button,
.admin select {
  display: block;
  margin: 8px 0;
  padding: 10px;
  width: 100%;
  font-size: 13px;
}

.admin label {
  display: block;
  margin-top: 8px;
  font-size: 12px;
  color: #475569;
  font-weight: 600;
}

/* Checkbox / radio alignment inside admin forms */
.admin input[type="checkbox"],
.admin input[type="radio"] {
  vertical-align: middle;
  transform: translateY(1px);
  margin-right: 8px;
}

.admin label.checkbox-inline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* Aangepaste select-styling voor admin */
.admin select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-color: #fff;
  border: 1px solid #e6e9ef;
  padding: 10px 40px 10px 12px;
  border-radius: 8px;
  color: #0f172a;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 20 20'%3E%3Cpath fill='%23475569' d='M5.5 7.5l4.5 4 4.5-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  transition: box-shadow .12s ease, border-color .12s ease;
}

.admin select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 6px 18px rgba(59, 130, 246, 0.12);
}

.err {
  color: #b00;
}

/* Admin menu layout */
.admin-shell {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  margin-top: 12px;
}

.admin-menu {
  width: 200px;
  flex: 0 0 200px;
  background: #fff;
  border: 1px solid #e6e9ef;
  border-radius: 8px;
  padding: 12px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: width .16s ease;
}

.admin-menu .menu-panel {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.admin-menu > hr {
  margin: 8px 0 !important;
}

.admin-menu .menu-item {
  background: transparent;
  border: 1px solid #e6e9ef;
  color: #0f172a;
  padding: 10px;
  border-radius: 8px;
  text-align: left;
  cursor: pointer;
  transition: background .12s ease, color .12s ease;
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: flex-start;
}

.admin-menu .menu-item .menu-icon {
  order: 0;
}

.admin-menu .menu-item .menu-label {
  order: 1;
  flex: 0 1 auto;
  text-align: left;
}

.admin-menu .menu-item .menu-label {
  line-height: 1;
}

.admin-menu .menu-item.active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.admin-menu .menu-item button {
  background: transparent;
  border: 1px solid #e6e9ef;
  color: #0f172a;
  padding: 10px;
  border-radius: 8px;
  text-align: left;
  cursor: pointer;
  transition: background .12s ease, color .12s ease;
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: flex-start;
  width: 100%;
  font: inherit;
}

.admin-menu form button {
  background: transparent;
  border: 1px solid #e6e9ef;
  color: #0f172a;
  padding: 10px;
  border-radius: 8px;
  text-align: left;
  cursor: pointer;
  transition: background .12s ease, color .12s ease;
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: flex-start;
  width: 100%;
  font: inherit;
}

.admin-menu form button:hover {
  background: #ef4444;
  color: #fff;
  border-color: #ef4444;
}

.admin-content {
  flex: 1;
}

.panel {
  display: block;
}

.panel[hidden] {
  display: none;
}

/* Collapsible menu */
.menu-top {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 8px;
}

.menu-toggle {
  background: #fff;
  border: 1px solid #e6e9ef;
  border-radius: 6px;
  padding: 6px 8px;
  cursor: pointer;
  font-size: 16px;
}

.menu-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  min-width: 24px;
  margin-right: 8px;
  color: #475569;
  line-height: 0;
  flex-shrink: 0;
}

.menu-icon svg {
  display: block;
  width: 16px;
  height: 16px;
}

.admin-shell.collapsed .admin-menu {
  width: 56px;
  flex: 0 0 56px;
}

.admin-shell.collapsed .menu-label {
  display: none;
}

.admin-shell.collapsed .menu-item {
  padding: 10px 8px;
  text-align: center;
  justify-content: center;
}

.admin-shell.collapsed .menu-top {
  justify-content: center;
}

.admin-shell.collapsed .menu-toggle {
  padding: 6px;
}

.admin-shell.collapsed .menu-icon {
  margin-right: 0;
}

@media (max-width: 720px) {
  .admin-shell {
    flex-direction: column;
  }

  /* Default: hide menu on mobile until user opens it */
  .admin-menu {
    display: none;
  }

  .menu-bar {
    display: flex;
    justify-content: flex-start;
    padding-bottom: 8px;
    position: relative;
    z-index: 61;
  }

  .menu-toggle {
    position: relative;
    z-index: 62;
  }

  /* Overlay mode when menu-open */
  .admin-shell.menu-open .admin-menu {
    display: flex !important;
    position: fixed;
    inset: 0;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    width: 100% !important;
    z-index: 1200;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.45);
  }

  .admin-shell.menu-open .admin-menu .menu-panel {
    min-width: 280px;
    max-width: 95%;
    width: 360px;
  }

  .admin-menu .menu-panel {
    width: 360px;
    max-width: 95%;
    background: #fff;
    padding: 18px;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(2, 6, 23, 0.4);
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .admin-menu .menu-item {
    width: 100%;
    padding: 12px 14px;
    border-radius: 8px;
  }

  /* When collapsed (user forced collapsed on mobile) keep menu hidden unless explicitly opened */
  .admin-shell.collapsed .admin-menu {
    display: none;
  }

  .admin-shell.menu-open .menu-label {
    display: inline;
  }

  .admin-shell.menu-open .menu-icon {
    margin-right: 8px;
  }

  /* prevent body scroll when overlay is open */
  body.no-scroll {
    overflow: hidden;
    height: 100vh;
  }
}

@media (min-width: 721px) {
  /* Place the toggle inside the menu area on desktop and center it above items */
  .admin-menu {
    position: relative;
  }

  .admin-menu .menu-toggle {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 12px;
    z-index: 62;
    background: transparent;
    border: 0;
    padding: 6px 8px;
    cursor: pointer;
  }

  .menu-bar {
    display: none;
  }

  .admin-menu .menu-panel {
    padding-top: 52px;
  }
}

/* Categorie-indeling (donkerder thema en bredere panelen) */
.categories {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 12px;
}

.category {
  position: relative;
  background: linear-gradient(180deg, #071024, #0f172a);
  color: #fff;
  border-radius: 12px;
  padding: 20px;
  min-width: 0;
  width: 100%;
  max-width: 520px;
  box-shadow: 0 12px 40px rgba(2, 6, 23, .08);
  border: 1px solid rgba(255, 255, 255, 0.03);
  overflow: hidden;
}

.category::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 6px;
  background: linear-gradient(180deg, var(--accent), #2563eb);
  border-top-left-radius: 12px;
  border-bottom-left-radius: 12px;
}

.category-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  gap: 12px;
}

.cat-handle {
  cursor: grab;
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  color: rgba(255, 255, 255, 0.95);
  font-size: 16px;
  margin-right: 8px;
  border: 1px solid rgba(255, 255, 255, 0.02);
}

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

.category-title {
  font-weight: 700;
  color: #fff;
  flex: 1;
  font-size: 1.06rem;
  letter-spacing: 0.2px;
}

.category-actions .btn {
  min-width: 96px;
}

.links {
  list-style: none;
  padding: 0;
  margin: 0;
  min-height: 60px;
}

.links .link-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px;
  border-radius: 8px;
  margin-bottom: 8px;
  background: #fff;
  border: 1px solid #e6e9ef;
  color: #0f172a;
}

.links .link-item.dragging {
  opacity: .5;
}

.links.drag-over {
  outline: 2px dashed rgba(255, 255, 255, 0.06);
  padding: 6px;
  border-radius: 8px;
}

/* Markering voor nieuwe link */
.link-item.newly-added {
  animation: new-link-highlight 2s ease;
}

@keyframes new-link-highlight {
  0% {
    background: linear-gradient(90deg, #dbeafe, #fff);
  }

  100% {
    background: #fff;
  }
}

.link-date {
  color: rgba(255, 255, 255, 0.8);
  background: rgba(255, 255, 255, 0.04);
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 12px;
}

.links .link-item .link-date {
  background: transparent;
  color: #6b7280;
  padding: 0;
  font-size: 12px;
}

.card .card-date {
  display: block;
  color: #6b7280;
  margin-top: 6px;
  font-size: 0.95rem;
}

/* Sleep-plaatsvervangers */
.cat-placeholder {
  border: 2px dashed rgba(255, 255, 255, 0.12);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.01));
  height: 48px;
  border-radius: 8px;
  margin-bottom: 8px;
}

.link-placeholder {
  border: 2px dashed #cbd5e1;
  background: linear-gradient(180deg, #fbfdff, #f8fbff);
  height: 44px;
  border-radius: 6px;
  margin-bottom: 6px;
}

/* Knoppen */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 14px;
  border-radius: 8px;
  border: 0;
  color: #fff;
  text-decoration: none;
  cursor: pointer;
  font-weight: 600;
  min-width: 110px;
  height: 40px;
  line-height: 1;
  vertical-align: middle;
}

@media (max-width: 480px) {
  .btn,
  .btn-edit {
    min-width: 64px;
    padding: 0 8px;
    height: 36px;
    font-size: 13px;
  }

  .category {
    padding: 12px;
  }
}

/* Maak de bewerk knop iets compacter (gelijke hoogte) */
.btn-edit {
  background: #22c55e;
  padding: 0 10px;
  min-width: 88px;
  height: 40px;
}

.btn-delete {
  background: #ef4444;
  padding: 0 14px;
  height: 40px;
}

.btn-cancel {
  background: #94a3b8;
  color: #fff;
  border-radius: 8px;
  padding: 0 12px;
  height: 40px;
  background: #64748b;
}

.btn-confirm {
  background: #ef4444;
}

.link-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.link-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid #f0f2f6;
}

.link-title {
  font-weight: 600;
  color: #0f172a;
  flex: 1;
  margin-right: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.actions > * {
  align-self: center;
}

/* Snackbar */
.snackbar {
  position: fixed;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  bottom: 18px;
  background: #111;
  color: #fff;
  padding: 12px 16px;
  border-radius: 10px;
  display: flex;
  gap: 12px;
  align-items: center;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.18);
  opacity: 0;
  visibility: hidden;
  transition: opacity .18s ease, transform .18s ease;
}

.snackbar.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .snackbar {
    transition: none;
  }
}

/* Admin-specific mobile fixes */
@media (max-width: 720px) {
  .admin {
    max-width: 100%;
    margin: 0 12px;
    padding: 16px;
  }

  .avatar-box {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-bottom: 12px;
  }

  .avatar-preview {
    width: 140px;
    height: 140px;
  }

  .categories-toolbar {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
  }

  .categories-toolbar input#new-category-title {
    flex: 1 1 100%;
    min-width: 0;
  }
}

@media (max-width: 480px) {
  .links .link-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .link-title {
    white-space: normal;
    overflow: visible;
  }

  .categories {
    flex-direction: column;
  }

  .categories-toolbar input#new-category-title {
    flex: 1 1 100%;
    width: 100%;
  }

  .categories-toolbar .btn {
    min-width: 64px;
  }
}

/* Voettekst actieknoppen (uitloggen / terug) */
.footer-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  align-items: center;
  margin-top: 18px;
}

.footer-actions .inline-form {
  margin: 0;
}

@media (max-width: 480px) {
  .footer-actions {
    flex-direction: column;
    gap: 10px;
  }

  .footer-actions .btn {
    width: 100%;
  }

  /* Footer version block (below action buttons) */
  .footer-version{
    display:flex;
    flex-direction:column; /* stack button above version */
    gap:6px;
    align-items:center;
    justify-content:center;
    margin-top:12px;
  }
  .footer-version .version-text{
    color:#475569;
    font-weight:600;
    font-size:7pt;
    text-align:center;
  }
  @media (max-width:480px){
    .footer-version{display:flex;flex-direction:column;gap:6px}
    .footer-version .version-text{font-size:10px}
  }
}

/* Import/Export meldingen */
.notice {
  border-radius: 8px;
  padding: 10px;
  margin: 10px 0;
}

.notice.err {
  background: #fff5f5;
  color: #b91c1c;
  border: 1px solid #fca5a5;
}

.notice.success {
  background: #f0fdf4;
  color: #166534;
  border: 1px solid #86efac;
}

/* Trash list */
.trash-list {
  list-style: none;
  padding: 0;
  margin: 12px 0;
}

.trash-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border: 1px solid #eef2f7;
  border-radius: 8px;
  margin-bottom: 10px;
  background: #fff;
}

.trash-thumb img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 8px;
}

.trash-thumb .placeholder {
  width: 64px;
  height: 64px;
  border-radius: 8px;
  background: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #475569;
}

.trash-meta {
  flex: 1;
}

.trash-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

@media (max-width: 480px) {
  .trash-item {
    flex-direction: column;
    align-items: flex-start;
  }

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

/* Succes Modal */
.success-modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  z-index: 2000;
}

.success-modal.show {
  opacity: 1;
  visibility: visible;
}

.success-modal-content {
  background: #fff;
  border-radius: 12px;
  padding: 40px 30px;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: modal-pop 0.3s ease;
  max-width: 400px;
  width: 90%;
}

@keyframes modal-pop {
  0% {
    transform: scale(0.95);
    opacity: 0;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.success-modal-content h3 {
  margin: 0 0 20px 0;
  font-size: 1.3rem;
  color: #22c55e;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.success-modal-content p {
  margin: 0 0 30px 0;
  color: #475569;
  font-size: 1rem;
}

.success-modal-content .btn-ok {
  background: #22c55e;
  color: #fff;
  border: 0;
  padding: 12px 32px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  font-size: 1rem;
  transition: background 0.2s ease;
}

.success-modal-content .btn-ok:hover {
  background: #16a34a;
}

.success-check {
  width: 50px;
  height: 50px;
  margin: 0 auto 10px;
}
/* Succes Modal */
.success-modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  z-index: 2000;
}

.success-modal.show {
  opacity: 1;
  visibility: visible;
}

.success-modal-content {
  background: #fff;
  border-radius: 12px;
  padding: 40px 30px;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: modal-pop 0.3s ease;
  max-width: 400px;
  width: 90%;
}

@keyframes modal-pop {
  0% {
    transform: scale(0.95);
    opacity: 0;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.success-modal-content h3 {
  margin: 0 0 20px 0;
  font-size: 1.3rem;
  color: #22c55e;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.success-modal-content p {
  margin: 0 0 30px 0;
  color: #475569;
  font-size: 1rem;
}

.success-modal-content .btn-ok {
  background: #22c55e;
  color: #fff;
  border: 0;
  padding: 12px 32px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  font-size: 1rem;
  transition: background 0.2s ease;
}

.success-modal-content .btn-ok:hover {
  background: #16a34a;
}

.success-check {
  width: 50px;
  height: 50px;
  margin: 0 auto 10px;
}
