/*
 * 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.
 */

/* Toast notifications styles */
#toast-container {
  position: fixed;
  z-index: 999999;
  pointer-events: none;
}

/* Glassmorphism utility for sticky action bars */
.glass-panel {
  /* From https://css.glass */
  background: rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.3);
}


#toast-container.toast-top-right {
  top: 12px;
  right: 12px;
  left: auto;
}

/* Mobile responsive adjustments */
@media (max-width: 640px) {
  #toast-container.toast-top-right {
    top: 8px;
    right: 8px;
    left: 8px;
  }
}

.toast {
  position: relative;
  pointer-events: auto;
  overflow: hidden;
  margin: 0 0 6px;
  padding: 8px 10px;
  width: 100%;
  max-width: 300px;
  border-radius: 8px;
  background-position: 15px center;
  background-repeat: no-repeat;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  color: #FFFFFF;
  opacity: 0;
  transform: translateX(400px);
  transition: all 0.3s ease-in-out;
  font-size: 14px;
  line-height: 1.4;
}

/* Mobile responsive toast */
@media (max-width: 640px) {
  .toast {
    max-width: 100%;
    font-size: 13px;
    padding: 10px 12px;
    margin: 0 0 8px;
  }
}

.toast-success {
  background-color: #51A351;
}

.toast-error {
  background-color: #BD362F;
}

.toast-info {
  background-color: #2F96B4;
}

.toast-message {
  word-wrap: break-word;
}

/* Gentle pop-in for newly added service cards */
.service-card-appear {
  animation: service-card-appear 1s ease-out;
}

@keyframes service-card-appear {
  from {
    opacity: 0;
    transform: translateY(-6px) scale(1);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.service-card-new {
  border-color: rgba(245, 158, 11, 0.5);
  box-shadow: 0 6px 18px rgba(245, 158, 11, 0.16);
}

.service-card-existing {
  border-color: rgba(148, 163, 184, 0.6);
}

