/* Alert Base Styles */
.alert {
  position: relative;
  padding: var(--spacing-sm) var(--spacing-md);
  margin-bottom: var(--spacing-md);
  border: 1px solid transparent;
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-sm);
}

.alert-dismissible {
  padding-right: 4rem;
}

.alert-dismissible .close {
  position: absolute;
  top: 0;
  right: 0;
  padding: var(--spacing-sm) var(--spacing-md);
  color: inherit;
  background: transparent;
  border: 0;
  appearance: none;
  cursor: pointer;
}

/* Alert Types */
.alert-primary {
  color: #004085;
  background-color: #cce5ff;
  border-color: #b8daff;
}

.alert-secondary {
  color: #383d41;
  background-color: #e2e3e5;
  border-color: #d6d8db;
}

.alert-success {
  color: #155724;
  background-color: #d4edda;
  border-color: #c3e6cb;
}

.alert-danger {
  color: #721c24;
  background-color: #f8d7da;
  border-color: #f5c6cb;
}

.alert-warning {
  color: #856404;
  background-color: #fff3cd;
  border-color: #ffeeba;
}

.alert-info {
  color: #0c5460;
  background-color: #d1ecf1;
  border-color: #bee5eb;
}

.alert-light {
  color: #818182;
  background-color: #fefefe;
  border-color: #fdfdfe;
}

.alert-dark {
  color: #1b1e21;
  background-color: #d6d8d9;
  border-color: #c6c8ca;
}

/* Alert Wrapper */
.alert-wrapper {
  position: fixed;
  top: 70px;
  right: 20px;
  z-index: var(--z-fixed);
  width: auto;
  max-width: 400px;
  margin-top: var(--spacing-md);
}

.alert-wrapper .alert {
  box-shadow: var(--shadow-md);
  opacity: 0;
  transform: translateX(30px);
  animation: alert-slide-in 0.3s forwards;
}

@keyframes alert-slide-in {
  0% { opacity: 0; transform: translateX(30px); }
  100% { opacity: 1; transform: translateX(0); }
}

@keyframes alert-fade-out {
  0% { opacity: 1; transform: translateX(0); }
  100% { opacity: 0; transform: translateX(30px); }
}

/* Global Alert */
.global-alert {
  margin-bottom: var(--spacing-md);
}

/* Loading Indicator */
.loading-indicator {
  display: none !important;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: var(--z-modal);
  background-color: rgba(255, 255, 255, 0.7);
  justify-content: center;
  align-items: center;
}

.loading-indicator.active {
  display: flex !important;
}

.loading-spinner {
  width: 50px;
  height: 50px;
  border: 5px solid var(--primary-light);
  border-top: 5px solid var(--primary-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.loading-text {
  margin-top: var(--spacing-sm);
  color: var(--primary-color);
  font-weight: 600;
}

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

/* Custom Tooltips */
.tooltip {
  position: relative;
  display: inline-block;
}

.tooltip .tooltip-text {
  visibility: hidden;
  width: 120px;
  background-color: var(--dark-color);
  color: var(--bg-white);
  text-align: center;
  border-radius: var(--border-radius-sm);
  padding: var(--spacing-xs) var(--spacing-sm);
  position: absolute;
  z-index: var(--z-tooltip);
  bottom: 125%;
  left: 50%;
  margin-left: -60px;
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.tooltip:hover .tooltip-text {
  visibility: visible;
  opacity: 1;
} 