/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */
 .footer {
    background-color: #333;
    color: white;
    padding: 20px 0;
  }
  .footer a {
    color: #ddd;
  }
  .footer a:hover {
    color: #fff;
    text-decoration: none;
  }

  /* Basic styling for flash messages */
  #flash-message-container {
    position: fixed;
    top: 55px;
    right: 0px;
    z-index: 9999; /* Ensure it stays on top of other elements */
  }
  
  .floating-alert {
    background-color: #4CAF50; /* Green for success */
    color: white;
    padding: 15px;
    border-radius: 5px;
    font-size: 16px;
    margin-bottom: 10px;
    width: auto;
    min-width: 200px;
    max-width: 300px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    position: relative;
    transition: opacity 0.5s ease-out;
    padding-right: 40px; /* Make room for the close button */
  }
  
  .floating-alert.notice {
    background-color: #5bc0de; /* Blue for info */
  }
  
  .floating-alert.alert {
    background-color: #f8d7da; /* Red for errors */
  }
  
  .floating-alert .close-btn {
    background: none;
    border: none;
    font-size: 24px;
    color: white;
    position: absolute;
    top: 5px; /* Space from the top */
    right: 10px; /* Space from the right */
    cursor: pointer;
    opacity: 0.7;
  }
  
  .floating-alert .close-btn:hover {
    opacity: 1;
  }
  
  .gradient-custom {
    /* fallback for old browsers */
    background: #fccb90;
    
    /* Chrome 10-25, Safari 5.1-6 */
    background: -webkit-linear-gradient(to bottom right, rgba(252, 203, 144, 1), rgba(213, 126, 235, 1));
    
    /* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */
    background: linear-gradient(to bottom right, rgba(252, 203, 144, 1), rgba(213, 126, 235, 1))
    }
    
    .mask-custom {
    background: rgba(24, 24, 16, .2);
    border-radius: 2em;
    backdrop-filter: blur(15px);
    border: 2px solid rgba(255, 255, 255, 0.05);
    background-clip: padding-box;
    box-shadow: 10px 10px 10px rgba(46, 54, 68, 0.03);
    }

   /*AI Chat*/
   /* Chat bubble styles */
.message-bubble {
  max-width: 75%;
  padding: 10px;
  border-radius: 20px;
  font-size: 1rem;
  word-wrap: break-word;
}

.user-bubble {
  background-color: #007bff;
  color: white;
  text-align: right;
}

.ai-bubble {
  background-color: #f1f1f1;
  color: #333;
  text-align: left;
}

/* Flexbox setup for better alignment */
.d-flex.align-items-start {
  display: flex;
  align-items: flex-start;
}

.card-body p {
  margin-bottom: 0;
}

.card-header {
  font-weight: bold;
  color: #007bff;
}

/* Form and Button */
.form-outline {
  margin-bottom: 10px;
}

.message-input {
  border-radius: 20px;
  resize: none;
}

.send-btn {
  border-radius: 20px;
  padding: 10px 20px;
  font-size: 1rem;
  background-color: #007bff;
  color: white;
  border: none;
  cursor: pointer;
}

.send-btn:hover {
  background-color: #0056b3;
}

/* Center pagination links */
.pagination {
  display: flex;
  justify-content: center;
  margin-top: 20px;
}

.pagination li {
  margin: 0 5px;
}

.pagination a, .pagination span {
  text-decoration: none;
  padding: 10px 15px;
  background-color: #007bff;
  color: white;
  border-radius: 5px;
}

.pagination a:hover, .pagination span:hover {
  background-color: #0056b3;
}


.form-label {
  margin-bottom: .5rem;
  text-decoration: underline;
}


.badge {
  padding: 0.25em 0.6em;
  border-radius: 20px;
  font-size: 0.75em;
  font-weight: bold;
  margin-left: 10px;
  color: rgb(252, 17, 17);
}

.badge-success {
  background-color: #28a745;
  color: rgb(252, 17, 17);
}

.badge-secondary {
  background-color: #6c757d;
  color: rgb(255, 8, 8);
}

.turbo-progress-bar {
  position: fixed;
  display: block;
  top: 0;
  left: 0;
  height: 3px;
  z-index: 2147483647;
  transition:
    width 300ms ease-out,
    opacity 150ms 150ms ease-in;
  transform: translate3d(0, 0, 0);
  background: linear-gradient(to right, #6366f1, #a855f7, #ec4899);
}