/* ============================================================
   CUSTOM MODAL STYLING (Replaces Tailwind)
   ============================================================ */

/* Modal Backdrop - Full screen overlay */
#custom-modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(17, 24, 39, 0.75);
    z-index: 999999;
    display: none !important;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

#custom-modal-backdrop[style*="display: flex"] {
    display: flex !important;
}

/* Modal Content Box */
#custom-modal-content {
    background-color: #ffffff;
    padding: 24px;
    border-radius: 15px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    width: 300px;
    transform: scale(0.95);
    opacity: 0;
    transition: all 300ms ease;
}

#custom-modal-content.scale-100 {
    transform: scale(1);
    opacity: 1;
}

#custom-modal-content.scale-95 {
    transform: scale(0.95);
    opacity: 0;
}

#custom-modal-content.opacity-100 {
    opacity: 1;
}

#custom-modal-content.opacity-0 {
    opacity: 0;
}

/* Modal Title */
#modal-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: #000000;
}

/* Modal Message */
#modal-message {
    margin-bottom: 24px;
    color: #374151;
    word-wrap: break-word;
}

/* Buttons Container */
#modal-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

/* Modal Buttons */
#modal-buttons button {
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 150ms ease;
    font-size: 14px;
}

/* Button Variants */
#modal-buttons .bg-indigo-600 {
    background-color: #4f46e5;
    color: white;
}

#modal-buttons .bg-indigo-600:hover {
    background-color: #4338ca;
}

#modal-buttons .bg-gray-200 {
    background-color: #e5e7eb;
    color: #1f2937;
}

#modal-buttons .bg-gray-200:hover {
    background-color: #d1d5db;
}

#modal-buttons .bg-red-600 {
    background-color: #dc2626;
    color: white;
}

#modal-buttons .bg-red-600:hover {
    background-color: #b91c1c;
}

#modal-buttons .bg-blue-600 {
    background-color: #2563eb;
    color: white;
}

#modal-buttons .bg-blue-600:hover {
    background-color: #1d4ed8;
}

/* ============================================================
   LEGACY MODAL STYLES (from before)
   ============================================================ */

.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.modal-content {
  background: #fff;
  padding: 20px;
  border-radius: 12px;
  width: 350px;
  max-width: 90%;
  text-align: center;
  position: relative;
}

.close-btn {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 22px;
  cursor: pointer;
}

.hidden {
  display: none;
}

.error {
  color: red;
  font-size: 14px;
  margin-top: 5px;
}
