
.display_text{
    display: none;
    animation: blink 1s linear infinite;
}
/* Add this to the end of your home.css file */
@keyframes blink {
    0% { opacity: 1; }
    50% { opacity: 0; }
    100% { opacity: 1; }
  }
  
  .blink {
    animation: blink 1s linear infinite;
  }
.loading-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none; /* Hidden by default */
    align-items: center;
    justify-content: center;
    z-index: 40000;
    pointer-events: none; /* Allows clicks to pass through to the backdrop if needed, or keep it true to block */
  }
  
  .loading-modal.show {
    display: flex;
  }
  
  .modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(2px);
  }
  
  .modal-content {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    z-index: 10000;
    min-width: 200px;
  }
  
  /* Spinner Styles */
  .cover-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 10px;
  }
  
  .loading-text {
    color: #333;
    font-size: 16px;
    font-weight: 500;
  }
  
  .spinner {
    display: none;
    width: 16px;
    height: 16px;
    border: 2px solid black;
    border-top: 2px solid #fff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-left: 8px;
}

/* Container: Center it at the top */
.user_message {
    display: none; /* Changed from 'none' for previewing */
    justify-content: center;
    width: 100%;
    position: fixed;
    top: 25px;
    left: 0;
    z-index: 50000;
    pointer-events: none; /* Allows clicking things 'under' the transparent area */
    opacity: 0;
    transform: translateY(-50px) scale(0.9);
    transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.user_message.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* The actual toast notification */
.message_content {
    pointer-events: auto; /* Re-enable clicks for the badge itself */
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 10px 20px;
    border-radius: 12px;
    font-family: 'Segoe UI', Roboto, sans-serif;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    
    /* The Glass Effect */
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    
    /* Prevent text wrapping */
    white-space: nowrap;
}

/* State Colors */
.success { background-color: rgba(34, 197, 94, 0.85); color: #fff; }
.warning { background-color: rgba(245, 158, 11, 0.85); color: #fff; }
.error   { background-color: rgba(239, 68, 68, 0.85); color: #fff; }

/* The Close Button */
.close_button {
    width: 22px;
    height: 22px;
    background-color: rgba(0, 0, 0, 0.2);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 16px;
    transition: background 0.2s;
}

.close_button:hover {
    background-color: rgba(0, 0, 0, 0.4);
}

  @keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
  }