/* Toast Notification Styles */
.toast-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 400px;
    max-width: 90vw;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    z-index: 9999;
    animation: slideInRight 0.3s ease-out;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.toast-notification .toast-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid #e5e7eb;
    background: #f9fafb;
    border-radius: 8px 8px 0 0;
}

.toast-notification .toast-header strong {
    font-weight: 600;
    color: #111827;
    font-size: 14px;
}

.toast-notification .toast-header .btn-close {
    background: none;
    border: none;
    font-size: 18px;
    color: #6b7280;
    cursor: pointer;
    padding: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.toast-notification .toast-header .btn-close:hover {
    background: #e5e7eb;
    color: #374151;
}

.toast-notification .toast-body {
    padding: 16px;
    color: #374151;
    font-size: 14px;
    line-height: 1.5;
}

/* Match score badges */
.match-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.match-badge.perfect {
    background: #dcfce7;
    color: #166534;
}

.match-badge.good {
    background: #dbeafe;
    color: #1e40af;
}

.match-badge.acceptable {
    background: #fef3c7;
    color: #92400e;
}

.match-badge.poor {
    background: #fee2e2;
    color: #991b1b;
}

/* Action buttons */
.toast-actions {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}

.toast-actions .btn {
    font-size: 12px;
    padding: 6px 12px;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.toast-actions .btn-outline-primary {
    border-color: #007bff;
    color: #007bff;
}

.toast-actions .btn-outline-primary:hover {
    background-color: #007bff;
    color: white;
}

.toast-actions .btn-outline-danger {
    border-color: #dc3545;
    color: #dc3545;
}

.toast-actions .btn-outline-danger:hover {
    background-color: #dc3545;
    color: white;
}

/* Animation */
@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

.toast-notification.removing {
    animation: slideOutRight 0.3s ease-in forwards;
}

/* Responsive */
@media (max-width: 768px) {
    .toast-notification {
        width: calc(100vw - 40px);
        right: 20px;
        left: 20px;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .toast-notification {
        background: #1f2937;
        border-color: #374151;
        color: #f9fafb;
    }

    .toast-notification .toast-header {
        background: #111827;
        border-color: #374151;
    }

    .toast-notification .toast-header strong {
        color: #f9fafb;
    }

    .toast-notification .toast-body {
        color: #d1d5db;
    }
}

/* Notification badge styling */
#notification-badge,
.badge-notifications {
    background-color: #007bff !important;
    color: white !important;
    border-color: #007bff !important;
    font-weight: 600;
    min-width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 12px;
    line-height: 1;
}

#notification-badge:hover,
.badge-notifications:hover {
    background-color: #0056b3 !important;
    border-color: #0056b3 !important;
}
