/* General Styles */
body {
  background-color: #f8f9fa;
}

/* Card Styles */
.card {
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
  margin-bottom: 1.5rem;
}

/* Table Styles */
.table th {
  background-color: #f8f9fa;
}

/* Status Indicators */
.badge {
  font-size: 0.85rem;
  padding: 0.35em 0.65em;
}

/* Warning Styles */
.table-warning {
  --bs-table-bg: rgba(255, 193, 7, 0.2);
  --bs-table-striped-bg: rgba(255, 193, 7, 0.25);
  --bs-table-active-bg: rgba(255, 193, 7, 0.3);
  --bs-table-hover-bg: rgba(255, 193, 7, 0.25);
}

/* Warning Flashing Animation */
@keyframes warning-flash {
  0% { background-color: rgba(255, 193, 7, 0.2); }
  50% { background-color: rgba(255, 193, 7, 0.4); }
  100% { background-color: rgba(255, 193, 7, 0.2); }
}

.warning-flash {
  animation: warning-flash 1.5s infinite;
}

/* Countdown Styles */
.countdown {
  font-family: monospace;
  font-weight: bold;
}

/* Disabled Start Button */
.start-btn[disabled] {
  cursor: not-allowed;
  position: relative;
}

.start-btn[disabled]::after {
  content: "Coming Soon";
  font-size: 0.6rem;
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  color: #6c757d;
}

/* Error Styles */
.table-error {
  --bs-table-bg: rgba(220, 53, 69, 0.2);
  --bs-table-striped-bg: rgba(220, 53, 69, 0.25);
  --bs-table-active-bg: rgba(220, 53, 69, 0.3);
  --bs-table-hover-bg: rgba(220, 53, 69, 0.25);
}

/* Error Flashing Animation */
@keyframes error-flash {
  0% { background-color: rgba(220, 53, 69, 0.2); }
  50% { background-color: rgba(220, 53, 69, 0.4); }
  100% { background-color: rgba(220, 53, 69, 0.2); }
}

.error-flash {
  animation: error-flash 1.5s infinite;
}

/* Started Status */
.badge.bg-info {
  background-color: #17a2b8 !important;
}

/* Auto-start Toggle */
.form-check.form-switch.small {
  margin-top: 0.5rem;
  font-size: 0.75rem;
}

.form-check.form-switch.small .form-check-input {
  height: 1rem;
  width: 1.75rem;
}

/* Notification Area */
#notification-area {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9999;
  max-width: 350px;
  width: auto;
}

.toast-container {
  display: flex;
  flex-direction: column-reverse;
}

.toast {
  margin-top: 10px;
  box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.1);
  opacity: 1;
  border-radius: 6px;
  overflow: hidden;
}

.toast.success {
  border-left: 4px solid #198754;
}

.toast.info {
  border-left: 4px solid #0d6efd;
}

.toast.warning {
  border-left: 4px solid #ffc107;
}

.toast.danger {
  border-left: 4px solid #dc3545;
}

.toast-header {
  display: flex;
  align-items: center;
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.toast-header .toast-icon {
  margin-right: 8px;
}

.toast-body {
  padding: 0.75rem;
}

/* Toast animation */
@keyframes toast-in-right {
  from { transform: translateX(100%); }
  to { transform: translateX(0); }
}

@keyframes toast-out-right {
  from { transform: translateX(0); }
  to { transform: translateX(100%); }
}

.toast-in {
  animation: toast-in-right 0.3s ease-in-out;
}

.toast-out {
  animation: toast-out-right 0.3s ease-in-out;
  animation-fill-mode: forwards;
} 