#gen_reply_modal .wrapper {
    display: flex;
    align-items: center;
    padding: 0px 10px;
  }

  #gen_reply_modal .modal-dialog {
    width: 900px;
  }

  .ql-editor {
    padding-bottom: 52px !important;
    padding-right: 64px !important;
  }

  .ql-editor p {
    margin-left: 1rem !important;
  }
  
  .ql-editor p:not(:first-child):not(:last-child) {
    margin-bottom: 5px !important;
    margin-top: 5px !important;
  }

  #gen_reply_modal .wrapper input {
    border: none;
    outline: none;
    margin-left: 20px;
  }
  
  #gen_reply_modal .wrapper input:focus,
  #gen_reply_modal .wrapper input:active {
    outline: none;
    box-shadow: none;
  }


  .animated-border {
    position: relative;
    background: linear-gradient(90deg, #ff0000, #ff7300, #fffb00, #48ff00, #00ffd5, #002bff, #7a00ff, #ff00c8, #ff0000);
    background-size: 200% 100%;
    animation: gradient 3s linear infinite;
    border-radius: 8px;
    padding: 2px;
  }
  
  .animated-border::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 8px;
    padding: 2px;
    background: linear-gradient(90deg, #ff0000, #ff7300, #fffb00, #48ff00, #00ffd5, #002bff, #7a00ff, #ff00c8, #ff0000);
    background-size: 200% 100%;
    animation: gradient 3s linear infinite;
    -webkit-mask: 
      linear-gradient(#fff 0 0) content-box, 
      linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
  }
  
  .animated-border-blue {
    position: relative;
    background: linear-gradient(90deg, #1e40af, #3b82f6, #60a5fa, #93c5fd, #dbeafe, #93c5fd, #60a5fa, #3b82f6, #1e40af);
    background-size: 200% 100%;
    animation: gradient 3s linear infinite;
    border-radius: 8px;
    padding: 2px;
  }
  
  .animated-border-blue::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 8px;
    padding: 2px;
    background: linear-gradient(90deg, #1e40af, #3b82f6, #60a5fa, #93c5fd, #dbeafe, #93c5fd, #60a5fa, #3b82f6, #1e40af);
    background-size: 200% 100%;
    animation: gradient 3s linear infinite;
    -webkit-mask: 
      linear-gradient(#fff 0 0) content-box, 
      linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
  }

  .animated-border-violet {
    position: relative;
    background: linear-gradient(90deg, #581c87, #7c3aed, #a855f7, #c084fc, #e9d5ff, #c084fc, #a855f7, #7c3aed, #581c87);
    background-size: 200% 100%;
    animation: gradient 3s linear infinite;
    border-radius: 8px;
    padding: 2px;
  }
  
  .animated-border-violet::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 8px;
    padding: 2px;
    background: linear-gradient(90deg, #581c87, #7c3aed, #a855f7, #c084fc, #e9d5ff, #c084fc, #a855f7, #7c3aed, #581c87);
    background-size: 200% 100%;
    animation: gradient 3s linear infinite;
    -webkit-mask: 
      linear-gradient(#fff 0 0) content-box, 
      linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
  }

  .animated-border-green {
    position: relative;
    background: linear-gradient(90deg, #14532d, #16a34a, #22c55e, #4ade80, #dcfce7, #4ade80, #22c55e, #16a34a, #14532d);
    background-size: 200% 100%;
    animation: gradient 3s linear infinite;
    border-radius: 8px;
    padding: 2px;
  }
  
  .animated-border-green::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 8px;
    padding: 2px;
    background: linear-gradient(90deg, #14532d, #16a34a, #22c55e, #4ade80, #dcfce7, #4ade80, #22c55e, #16a34a, #14532d);
    background-size: 200% 100%;
    animation: gradient 3s linear infinite;
    -webkit-mask: 
      linear-gradient(#fff 0 0) content-box, 
      linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
  }
  
  @keyframes gradient {
    0% {
      background-position: 0% 50%;
    }
    50% {
      background-position: 100% 50%;
    }
    100% {
      background-position: 0% 50%;
    }
  }
    
  
  #gen_reply_modal .actions {
    margin-top: 20px;
    display: flex;
    gap: 20px;
    justify-content: space-between;
  }
  
  #gen_reply_modal .reply-icon {
    margin-right: 15px;
  }
  
  #gen_reply_modal .modal-header {
    border-bottom: none;
  }
  
  #gen_reply_modal #quillEditor {
    border: none;
    background-color: white;
  }
  
  .ql-container {
    display: flex;
    flex-direction: column;
  }
  
  #gen_reply_modal .actions button.send-btn img {
    margin-right: 15px;
  }
  
  #gen_reply_modal .actions button.delete-btn:hover {
    color: white;
    background: #e7e7e7;
  }
  
  #gen_reply_modal .actions button img {
    width: 30px;
    filter: contrast(230deg);
  }
  
  #gen_reply_modal .close-btn {
    transition: 300ms all;
  }
  
  #gen_reply_modal .close-btn:hover {
    color: #575757;
    text-shadow: #e4e4e4 1px 1px 4px;
  }
  
  /* Modal */
  #emailModal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
  }
  
  h4 {
    font-weight: 500;
  }
  
  h4.modal-title {
    color: #333333;
  }
  
  .modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
    border-radius: 12px;
    font-weight: 700;
    color: #717171;
    padding: 25px;
  }
  
  .modal-body {
    padding: 18px !important;
  }
  
  .modal-content {
    border-radius: 12px !important;
    border: none !important;
    box-shadow: 0px 1px 3px rgba(16, 24, 40, 0.1), 0px 1px 2px rgba(16, 24, 40, 0.06) !important;
  }
  
  .modal-header h2 {
    margin: 0;
  }
  
  .close-btn {
    color: #727272;
    cursor: pointer;
    background-color: transparent;
    border: none;
  }
  
  .modal-footer {
    display: flex;
    justify-content: space-between;
  }
  
  .modal-footer img {
    margin-right: 10px;
  }
  
  /* Modal Loading Spinner */
  .modal-loading {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 84px;
    /* Adjust based on your modal height */
  }
  
  .modal-loading-spinner {
    width: 50px;
    height: 50px;
    margin-bottom: 10px;
    border: 5px solid rgba(0, 123, 255, 0.3);
    border-radius: 50%;
    border-top-color: #007bff;
    animation: spin 1s ease-in-out infinite;
  }
  
  @keyframes spin {
    0% {
      transform: rotate(0deg);
    }
  
    100% {
      transform: rotate(360deg);
    }
  }
  
  #loadingGif {
    position: absolute;
    margin-left: 8px;
  }

  .button-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    margin-right: 8px;
    border: 2px solid rgba(0, 0, 0, 0.2);
    border-radius: 50%;
    border-top-color: #333;
    animation: spin 1s ease-in-out infinite;
    vertical-align: middle;
  }

  .button-disabled {
    opacity: 0.7;
    cursor: not-allowed !important;
  }
  
  .send-btn {
    background-color: #28A745;
    color: white;
    border-radius: 8px;
    border: none;
    padding: 8px 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    font-size: 16px;
    cursor: pointer;
  }

  .send-btn:disabled {
    background-color: #6c757d;
    /* Optional: Disabled button color */
    cursor: not-allowed;
  }

  .cancel-btn {
    background-color: #f8f9fa;
    /* Very light gray */
    color: #6c757d;
    /* Muted text color */
    border-radius: 8px;
    border: none;
    padding: 8px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    cursor: pointer;
  }

  .cancel-btn:hover {
    background-color: #e9ecef;
    color: #495057;
  }

  .delete-btn {
    background-color: #dc3545;
    /* Danger/Red color */
    color: white;
    border-radius: 8px;
    border: none;
    padding: 8px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.2s ease;
  }

  .delete-btn:hover {
    background-color: #c82333;
    /* Slightly darker red on hover */
  }

  .delete-btn:disabled {
    background-color: #6c757d;
    cursor: not-allowed;
  }

  .save-btn {
    background-color: #0a730b;
    /* Green color, similar to send button */
    color: white;
    border-radius: 8px;
    border: none;
    padding: 8px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.2s ease;
  }

  .save-btn:hover {
    background-color: #218838;
    /* Slightly darker green on hover */
  }

  .save-btn:disabled {
    background-color: #6c757d;
    cursor: not-allowed;
  }
  .form-group {
    margin-bottom: 10px !important;
  }

  #quillEditor {
    max-height: 500px;
    border-radius: 4px;
  }

  .ql-blank::before {
    margin: 1rem 0;
  }

  .ql-toolbar {
    position: absolute;
    display: flex;
    bottom: 0px;
    left: 0px;
    width: fit-content;
    justify-content: center;
    border-top: 1px solid #EBEBEB !important;
    border-right: 1px solid #EBEBEB !important;
    border-bottom: none !important;
    border-left: none !important;
    background-color: white;
    border-radius: 0 8px 0 8px;
    z-index: 20;
  }
  