/**
 * Modivira Hospital System - Cyber Obsidian UI Toastr
 * Modern Glassmorphic Clinical Alert Theme
 */

.toast-title {
  font-weight: 700;
  font-size: 13.5px;
  letter-spacing: 0.2px;
  margin-bottom: 3px;
}

.toast-message {
  -ms-word-wrap: break-word;
  word-wrap: break-word;
  font-size: 13px;
  line-height: 1.45;
  font-weight: 500;
  color: #e2e8f0;
}

.toast-message a,
.toast-message label {
  color: #38bdf8;
}

.toast-message a:hover {
  color: #00f2fe;
  text-decoration: underline;
}

.toast-close-button {
  position: absolute;
  right: 12px;
  top: 10px;
  font-size: 18px;
  font-weight: 400;
  color: #94a3b8;
  background: transparent;
  border: none;
  cursor: pointer;
  opacity: 0.7;
  transition: all 0.2s ease;
  line-height: 1;
  padding: 0;
}

.toast-close-button:hover,
.toast-close-button:focus {
  color: #ffffff;
  opacity: 1;
  transform: scale(1.15);
  text-decoration: none;
  outline: none;
}

button.toast-close-button {
  padding: 0;
  cursor: pointer;
  background: transparent;
  border: 0;
  -webkit-appearance: none;
}

#toast-container {
  position: fixed;
  z-index: 9999999;
  pointer-events: none;
}

#toast-container * {
  -moz-box-sizing: border-box;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
}

#toast-container > div {
  pointer-events: auto;
  position: relative;
  overflow: hidden;
  margin: 0 0 10px;
  padding: 14px 16px 14px 52px;
  width: 360px;
  max-width: 92vw;
  border-radius: 12px;
  background-position: 16px 15px;
  background-repeat: no-repeat;
  background-size: 22px 22px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background-color: rgba(15, 23, 42, 0.94);
  color: #f8fafc;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Inter", "Helvetica Neue", sans-serif;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.6), 0 8px 10px -6px rgba(0, 0, 0, 0.6);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  animation: modiviraToastIn 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

#toast-container > :hover {
  box-shadow: 0 25px 30px -5px rgba(0, 0, 0, 0.7), 0 12px 14px -6px rgba(0, 0, 0, 0.7);
  transform: translateY(-2px);
}

@keyframes modiviraToastIn {
  0% {
    opacity: 0;
    transform: translateY(-12px) scale(0.96);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Position Classes */
.toast-top-right {
  top: 18px;
  right: 18px;
}

.toast-top-left {
  top: 18px;
  left: 18px;
}

.toast-bottom-right {
  bottom: 18px;
  right: 18px;
}

.toast-bottom-left {
  bottom: 18px;
  left: 18px;
}

.toast-top-full-width {
  top: 12px;
  right: 0;
  width: 100%;
}

.toast-bottom-full-width {
  bottom: 12px;
  right: 0;
  width: 100%;
}

#toast-container.toast-top-full-width > div,
#toast-container.toast-bottom-full-width > div {
  width: 95%;
  margin: 6px auto;
}

/* Success - Emerald */
#toast-container > .toast-success {
  background-color: rgba(10, 25, 22, 0.95);
  border: 1px solid rgba(16, 185, 129, 0.45);
  box-shadow: 0 12px 30px -5px rgba(0, 0, 0, 0.6), 0 0 20px rgba(16, 185, 129, 0.22);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%2310b981'%3E%3Cpath fill-rule='evenodd' d='M2.25 12c0-5.385 4.365-9.75 9.75-9.75s9.75 4.365 9.75 9.75-4.365 9.75-9.75 9.75S2.25 17.385 2.25 12zm13.36-1.814a.75.75 0 10-1.22-.872l-3.236 4.53L9.53 12.22a.75.75 0 00-1.06 1.06l2.25 2.25a.75.75 0 001.14-.094l3.74-5.25z' clip-rule='evenodd' /%3E%3C/svg%3E") !important;
}
#toast-container > .toast-success .toast-title {
  color: #34d399;
}

/* Error - Ruby */
#toast-container > .toast-error {
  background-color: rgba(28, 12, 17, 0.95);
  border: 1px solid rgba(239, 68, 68, 0.45);
  box-shadow: 0 12px 30px -5px rgba(0, 0, 0, 0.6), 0 0 20px rgba(239, 68, 68, 0.22);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23ef4444'%3E%3Cpath fill-rule='evenodd' d='M12 2.25c-5.385 0-9.75 4.365-9.75 9.75s4.365 9.75 9.75 9.75 9.75-4.365 9.75-9.75S17.385 2.25 12 2.25zm-1.72 6.97a.75.75 0 10-1.06 1.06L10.94 12l-1.72 1.72a.75.75 0 101.06 1.06L12 13.06l1.72 1.72a.75.75 0 101.06-1.06L13.06 12l1.72-1.72a.75.75 0 10-1.06-1.06L12 10.94l-1.72-1.72z' clip-rule='evenodd' /%3E%3C/svg%3E") !important;
}
#toast-container > .toast-error .toast-title {
  color: #f87171;
}

/* Info - Cyan */
#toast-container > .toast-info {
  background-color: rgba(10, 22, 34, 0.95);
  border: 1px solid rgba(6, 182, 212, 0.45);
  box-shadow: 0 12px 30px -5px rgba(0, 0, 0, 0.6), 0 0 20px rgba(6, 182, 212, 0.22);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%2306b6d4'%3E%3Cpath fill-rule='evenodd' d='M2.25 12c0-5.385 4.365-9.75 9.75-9.75s9.75 4.365 9.75 9.75-4.365 9.75-9.75 9.75S2.25 17.385 2.25 12zm11.378-3.917c-.076-.056-.168-.083-.264-.083H10.5a.75.75 0 000 1.5h1.168l-2.022 6.066a.75.75 0 00.712.984h2.642a.75.75 0 000-1.5H11.83l2.022-6.066a.75.75 0 00-.224-.901zM12 6.75a.75.75 0 100-1.5.75.75 0 000 1.5z' clip-rule='evenodd' /%3E%3C/svg%3E") !important;
}
#toast-container > .toast-info .toast-title {
  color: #22d3ee;
}

/* Warning - Amber */
#toast-container > .toast-warning {
  background-color: rgba(28, 20, 10, 0.95);
  border: 1px solid rgba(245, 158, 11, 0.45);
  box-shadow: 0 12px 30px -5px rgba(0, 0, 0, 0.6), 0 0 20px rgba(245, 158, 11, 0.22);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23f59e0b'%3E%3Cpath fill-rule='evenodd' d='M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z' clip-rule='evenodd' /%3E%3C/svg%3E") !important;
}
#toast-container > .toast-warning .toast-title {
  color: #fbbf24;
}

/* Toast Progress Bar */
.toast-progress {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 3px;
  background-color: rgba(255, 255, 255, 0.3);
  opacity: 0.6;
}
.toast-success .toast-progress {
  background-color: #10b981;
}
.toast-error .toast-progress {
  background-color: #ef4444;
}
.toast-info .toast-progress {
  background-color: #06b6d4;
}
.toast-warning .toast-progress {
  background-color: #f59e0b;
}

/* Mobile Media Queries */
@media (max-width: 480px) {
  #toast-container > div {
    width: calc(100vw - 28px);
    margin: 0 14px 8px 14px;
    font-size: 12.5px;
  }
  .toast-top-right,
  .toast-top-left {
    top: 10px;
    right: 0;
    left: 0;
  }
}
