.dashboard-confirm {
    display: flex;
    flex: 1;
    justify-content: center;
    width: 100%;
    padding: 0 1rem;
}


.message-box {
    /* Ukuran relatif */
    /* width: 90%; 90% dari parent */
    min-width: min(610px, 60vw); /* Minimal 300px atau 90% viewport (mana yang lebih kecil) */
    max-width: 80vw; /* Maksimal tetap 640px */
    text-align: center;
    padding: 2rem 2rem;
    background-color: white;
    border-radius: var(--border-radius);
    margin: 2rem auto;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    box-sizing: border-box; /* Pastikan padding termasuk dalam perhitungan width */
}

.message-box i {
    font-size: 4rem;
    margin-bottom: 1rem;
    /* display: block; */
}

.message-box p {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.message-box button {
    font-size: 1.2rem;
    font-weight: bold;
    margin: 0.5rem;
    padding: 1.2rem 2.5rem;
    border: none;
    border-radius: var(--border-radius);
    color: white;
    cursor: pointer;
}

.message-box button i {
    font-size: 1.2rem;
    margin-bottom: 0rem;
    font-weight: bolder;
}

/* Tombol alternatif berwarna abu */
.message-box .alt-button {
    background-color: #efefef;
    color: #333;
}

/* Warna utama per box */
.message-box.error {
    border: 2px solid #f5c6cb;
    color: #721c24;
}

.message-box.error i {
    color: #f19494;
}

.message-box.error button:not(.alt-button) {
    background-color: #f19494;
}

.message-box.success {
    border: 2px solid #c3e6cb;
    color: #155724;
}

.message-box.success i {
    color: #91e6a6;
}

.message-box.success button:not(.alt-button) {
    background-color: #91e6a6;
}

.message-box.info {
    border: 2px solid #bee5eb;
    color: #0c5460;
}

.message-box.info i {
    color: #7cd2f4;
}

.message-box.info button:not(.alt-button) {
    background-color: #7cd2f4;
}

.message-box.confirm {
    border: 2px solid #ffe5b4;
    color: #856404;
}

.message-box.confirm i {
    color: #ffbb66;
}

.message-box.confirm button:not(.alt-button) i{
    color: white;
}

.message-box.confirm button:not(.alt-button) {
    background-color: #ffbb66;
}

.message-box.choice {
    border: 2px solid #e2d6f9;
    color: #4b2e83;
}

.message-box.choice i {
    color: #b29dd9;
}

.message-box.choice button:not(.alt-button) {
    background-color: #b29dd9;
}

.message-box.notify {
    border: 2px solid #fff3cd;
    color: #856404;
}

.message-box.notify i {
    color: #ffe066;
}

.message-box.notify button:not(.alt-button) {
    background-color: #ffe066;
    color: black;
}

.error-message {
  background: #f8f8f8;
  border: 1px solid var(--pastel-red-dark);
  color: var(--pastel-purple);
  padding: 20px;
  border-radius: 8px;
  text-align: center;
}

.error-message img {
  max-width: min(640px, 40vw);
  margin-bottom: 10px;
  filter: brightness(1.05) saturate(0.85) blur(0.3px);
  opacity: 0.65;
}

.error-message::after {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(255, 255, 255, 0.2);
  pointer-events: none;
  border-radius: 8px;
}

.error-message button {
  background: var(--pastel-blue-dark);
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 4px;
  cursor: pointer;
}

.error-message button:hover {
  background: var(--pastel-green-dark);
}
