/* Toast Notifications */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
}

.toast {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 8px;
    padding: 12px 24px;
    margin-bottom: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    animation: toast-slide-in 0.3s ease forwards;
    max-width: 300px;
}

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

.toast.info {
    border-left: 4px solid #17a2b8;
}

@keyframes toast-slide-in {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Animated Badges */
.attempts-badge {
    display: inline-flex;
    align-items: center;
    color: white;
    border-radius: 12px;
    padding: 4px 8px;
    font-size: 0.9em;
    margin-left: 8px;
    animation: bounce 1s ease-in-out;
}

.attempts-badge.success {
    background-color: #28a745 !important;
}

.attempts-badge.danger {
    background-color: #dc3545 !important;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* Hint arrow styles */
.hint-arrow {
  display: inline-block;
  font-size: 30px;
  font-weight: bold;
  animation-duration: 0.8s;
  animation-iteration-count: infinite;
  margin: 0 8px;
  vertical-align: middle;
}

.hint-arrow-up {
  color: #28a745;
  animation-name: bounce-up;
}

.hint-arrow-down {
  color: #dc3545;
  animation-name: bounce-down;
}

@keyframes bounce-up {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-15px);
  }
}

@keyframes bounce-down {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(15px);
  }
}

/* Modal animations */
.modal.fade .modal-dialog {
    transform: scale(0.7);
    opacity: 0;
    transition: all 0.3s ease-in-out;
}

.modal.show .modal-dialog {
    transform: scale(1);
    opacity: 1;
}

/* Round advancement modal specific styles */
#roundAdvanceModal .modal-content {
    border-radius: 15px;
    border: none;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    background: var(--bs-body-bg);
    color: var(--bs-body-color);
}

#roundAdvanceModal .modal-header {
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
    padding: 1.5rem;
    background: #28a745;
    color: white;
    border-bottom: none;
}

#roundAdvanceModal .modal-body {
    padding: 2rem;
}

#roundAdvanceModal .next-round-info {
    background: rgba(40, 167, 69, 0.1);
    border-radius: 10px;
    padding: 1.5rem;
    margin: 1rem 0;
    border: 2px solid rgba(40, 167, 69, 0.2);
}

/* Light mode specific styles */
[data-bs-theme="light"] #roundAdvanceModal .modal-content {
    background: white;
    color: #212529;
}

[data-bs-theme="light"] #roundAdvanceModal .next-round-info {
    background: rgba(40, 167, 69, 0.05);
    border-color: rgba(40, 167, 69, 0.1);
}

[data-bs-theme="light"] #roundAdvanceModal .modal-header {
    background: linear-gradient(135deg, #28a745, #34ce57);
}

/* Dark mode specific styles */
[data-bs-theme="dark"] #roundAdvanceModal .modal-content {
    background: #212529;
    color: #fff;
}

[data-bs-theme="dark"] #roundAdvanceModal .next-round-info {
    background: rgba(40, 167, 69, 0.2);
    border-color: rgba(40, 167, 69, 0.3);
}

[data-bs-theme="dark"] #roundAdvanceModal .modal-header {
    background: #28a745;
}

#roundAdvanceModal .modal-footer {
    border-top: none;
    padding: 1.5rem;
}

#roundAdvanceModal .modal-footer .btn-success {
    padding: 0.5rem 2rem;
    font-size: 1.1rem;
    border-radius: 25px;
    background: #28a745;
    border: none;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

#roundAdvanceModal h3,
#roundAdvanceModal h4,
#roundAdvanceModal p {
    color: inherit;
    margin-bottom: 1rem;
}

#roundAdvanceModal .lead {
    font-size: 1.25rem;
    font-weight: 500;
}