/* iOS Style Custom Alert */
.custom-alert {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.4);
  width: 100%;
  height: 100%;
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}


/* iOS Style Custom Alert */
.custom-alert {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.4);
  width: 100%;
  height: 100%;
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.alert-content {
  background: rgba(255, 255, 255, 0.9);
  padding: 1.25rem;
  border-radius: 14px;
  width: 290px;
  text-align: center;
  animation: scaleIn 0.3s ease-out;
  box-shadow: 0 4px 23px rgba(0, 0, 0, 0.1);
}

.alert-title {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #000;
}

.alert-message {
  font-size: 13px;
  color: #666;
  margin-bottom: 1rem;
  line-height: 1.4;
  padding: 0 0.5rem;
}

.alert-buttons {
  display: flex;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  margin: 0 -1.25rem -1.25rem;
}

.alert-button {
  flex: 1;
  border: none;
  background: none;
  padding: 0.75rem;
  font-size: 17px;
  font-weight: 500;
  /* color: #007AFF; */
  color: orange;
  cursor: pointer;
  transition: background-color 0.2s;
}

.alert-button:not(:first-child) {
  border-left: 1px solid rgba(0, 0, 0, 0.1);
}

.alert-button:active {
  background-color: rgba(0, 0, 0, 0.1);
}

.alert-button.cancel {
  font-weight: 400;
  color: #666;
}

@keyframes scaleIn {
  from {
    transform: scale(1.2);
    opacity: 0;
  }

  to {
    transform: scale(1);
    opacity: 1;
  }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
  .alert-content {
    background: rgba(58, 58, 60, 0.9);
  }

  .alert-title {
    color: #fff;
  }

  .alert-message {
    color: #98989f;
  }

  .alert-buttons {
    border-top-color: rgba(255, 255, 255, 0.1);
  }

  .alert-button {
    /* color: #0A84FF; */
    color: orange;
  }

  .alert-button:not(:first-child) {
    border-left-color: rgba(255, 255, 255, 0.1);
  }

  .alert-button.cancel {
    color: #98989f;
  }
}

/* 기존 스타일에 추가 */
.alert-button.confirm {
  /* color: #007AFF; */
  color: orange;
  font-weight: 600;
}

.alert-button.cancel {
  color: #666;
  font-weight: 400;
}

/* Dark mode */
@media (prefers-color-scheme: dark) {
  .alert-button.cancel {
    color: #98989f;
  }
}

/* 기존 스타일에 추가 */
.alert-button.confirm {
  /* color: #007AFF; */
  color: orange;
  font-weight: 600;
}

.alert-button.cancel {
  color: #666;
  font-weight: 400;
}

/* Dark mode */
@media (prefers-color-scheme: dark) {
  .alert-button.cancel {
    color: #98989f;
  }
}