/* sweetalert-buttons.css */

    /* Responsive & compact modal */
    /*.swal2-popup {*/
    /*  max-width: 40vw; */
     /* width: auto !important;     /* shrink to content size */
     /* padding: 1.2rem 1.5rem !important; /* adjust padding */
    /*  border-radius: 0.5rem !important;*/
    /*  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);*/
    /*  box-sizing: border-box;*/
    /*}*/
    
    /* Confirm button (primary: Save, Confirm) */
    .swal-confirm-btn {
      background-color: #0d6efd;
      color: #fff;
      border: none;
      border-radius: 0.5rem;
      padding: 0.45em 1.1em;
      margin-right: 10px;
      font-family: 'Segoe UI', sans-serif;
      font-size: 0.95rem;
      font-weight: 500;
      box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
      transition: all 0.2s ease-in-out;
    }
    .swal-confirm-btn:hover {
      background-color: #0b5ed7;
      box-shadow: 0 3px 10px rgba(0, 0, 0, 0.12);
    }
    
    /*Outline primary cancel button*/
    .swal-cancel-btn {
      background-color: transparent;
      color: #0d6efd;
      border: 1px solid #0d6efd;
      color: #0d6efd;           /* Blue text */
      border: 1px solid #0d6efd; /* Blue border */
      border-radius: 0.5rem;
      padding: 0.45em 1.1em;
      margin-right: 10px;
      font-family: 'Segoe UI', sans-serif;
      font-size: 0.95rem;
      font-weight: 500;
      box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
          transition: background-color 0.3s ease, color 0.3s ease;
    }
    .swal-cancel-btn:hover {
      background-color: #e7f1ff;
      box-shadow: 0 3px 10px rgba(0, 0, 0, 0.12);
    }
    
    /* Confirm button (danger: Delete, Deactivate) */
    .swal-confirm-danger-btn {
      background-color: #dc3545;
      color: #fff;
      border: none;
      border-radius: 0.5rem;
      padding: 0.45em 1.1em;
      margin-right: 10px;
      font-family: 'Segoe UI', sans-serif;
      font-size: 0.95rem;
      font-weight: 500;
      box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
      transition: all 0.2s ease-in-out;
    }
    .swal-confirm-danger-btn:hover {
      background-color: #bb2d3b;
      box-shadow: 0 3px 10px rgba(0, 0, 0, 0.12);
    }
    
    .swal-cancel-danger-btn {
      background-color: transparent;
      color: #dc3545; /* Red text */
      border: 1px solid #dc3545; /* Red border */
      border-radius: 0.5rem;
      padding: 0.45em 1.1em;
      margin-right: 10px;
      font-family: 'Segoe UI', sans-serif;
      font-size: 0.95rem;
      font-weight: 500;
      box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
      transition: background-color 0.3s ease, color 0.3s ease;
    }
    
    .swal-cancel-danger-btn:hover {
      background-color: #f8d7da; /* Light red background on hover */
      box-shadow: 0 3px 10px rgba(0, 0, 0, 0.12);
    }
    
    /* Archive Confirm button (secondary) */
    .swal-archive-btn {
      background-color: #6c757d; /* Bootstrap secondary */
      color: #fff;
      border: none;
      border-radius: 0.5rem;
      padding: 0.45em 1.1em;
      margin-right: 10px;
      font-family: 'Segoe UI', sans-serif;
      font-size: 0.95rem;
      font-weight: 500;
      box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
      transition: all 0.2s ease-in-out;
    }
    
    .swal-archive-btn:hover {
      background-color: #5c636a; /* darker secondary */
      box-shadow: 0 3px 10px rgba(0, 0, 0, 0.12);
    }
    
    /* Archive Cancel button (outlined secondary) */
    .swal-cancel-archive-btn {
      background-color: transparent;
      color: #6c757d;
      border: 1px solid #6c757d;
      border-radius: 0.5rem;
      padding: 0.45em 1.1em;
      margin-right: 10px;
      font-family: 'Segoe UI', sans-serif;
      font-size: 0.95rem;
      font-weight: 500;
      box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
      transition: background-color 0.3s ease, color 0.3s ease;
    }
    
    .swal-cancel-archive-btn:hover {
      background-color: #f1f3f5; /* light grey for hover */
      box-shadow: 0 3px 10px rgba(0, 0, 0, 0.12);
    }

    
    /* Shared base style for button width */
    .swal-btn {
      min-width: 120px; /* or width: 120px for fixed width */
      text-align: center;
    }
    
    .swal-title-with-danger {
      font-weight: 600;
      font-size: 1.1rem;
    }
    .text-danger-emphasis {
      color: #dc3545; /* or Bootstrap’s red */
    }

    
    /*===============*/
    /*toast appear at the top center */
    .swal2-toast-center {
      left: 50% !important;
      transform: translateX(-50%) !important;
      right: auto !important;
    }
    
    .swal2-toast {
      width: auto !important;
      max-width: none !important;
      white-space: nowrap !important;
    }
    
    .swal2-toast {
      background-color: #1e1e2f !important;
      color: #fff !important;
      border-radius: 8px !important;
      box-shadow: 0 4px 14px rgba(0,0,0,0.25) !important;
      font-size: 0.95rem !important;
      padding: 0.75rem 1.25rem !important;
      min-width: 260px;
      max-width: 400px;
      white-space: nowrap;
    }
    .swal2-toast .swal2-title {
      font-weight: 500;
    }
    .swal2-toast .swal2-icon {
      margin-right: 10px;
    }
    
    /* SweetAlert2 error toast override */
    .swal2-toast-error {
      background-color: #2b0d0e !important; /* Very dark red background */
      color: #f8d7da !important;           /* Soft red text */
      border-left: 6px solid #dc3545 !important;
      border-radius: 6px;
      font-size: 0.95rem;
      box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
      padding: 1rem 1.5rem !important;
      min-width: 280px;
      max-width: 480px;
      text-align: center;
    }
    
    .swal2-toast-error .swal2-title {
      color: #f8d7da !important;
      font-weight: 600;
    }
    
    .swal2-toast-error .swal2-icon {
      color: #dc3545 !important;
      margin-right: 0.5rem;
    }
    
    /* Optional: Slide Down Animation */
    @keyframes slideDown {
      0% {
        transform: translateY(-100%);
        opacity: 0;
      }
      100% {
        transform: translateY(0);
        opacity: 1;
      }
    }
    
    .slide-down {
      animation: slideDown 0.4s ease-out;
    }
    
    .swal-gradient-btn {
        background: linear-gradient(to right, rgb(1, 184, 170), rgb(1, 106, 184));
        color: #fff;
        border: none;
        border-radius: 5px;
        padding: 10px 20px;
        font-weight: bold;
    }
    
    .swal2-small-loader {
      width: 250px !important;
      padding: 1rem !important;
      font-size: 0.9rem !important;
    }


