/**
 * Part of LinkMyGoals.com project.
 * GitHub: https://github.com/ChadsCode/LinkMyGoals
 * License: MIT Open-Source
 * Website: https://www.linkmygoals.com/
 *
 * Copyright (c) 2025 Chad Wigington
 * LinkedIn: https://www.linkedin.com/in/chadwigington/
 */

/* Notification Toast */
.notification {
    position: fixed;
    top: 80px;
    right: 20px;
    padding: 12px 20px;
    background: var(--surface);
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    font-size: 14px;
    font-weight: 500;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s;
    z-index: 300;
    border-left: 4px solid var(--linkedin-blue);
}

.notification.show {
    opacity: 1;
    transform: translateY(0);
}

.notification.success {
    border-left-color: var(--success);
    color: var(--success);
}

.notification.warning {
    border-left-color: var(--warning);
    color: var(--warning);
}

.notification.error {
    border-left-color: var(--danger);
    color: var(--danger);
}

/* Loading States */
.typing-indicator {
    display: flex;
    gap: 4px;
    padding: 8px 0;
}

.typing-indicator span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--silver);
    animation: typing 1.4s infinite ease-in-out;
}

.typing-indicator span:nth-child(1) {
    animation-delay: 0s;
}

.typing-indicator span:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-indicator span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typing {

    0%,
    60%,
    100% {
        transform: translateY(0);
        opacity: 0.4;
    }

    30% {
        transform: translateY(-8px);
        opacity: 1;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus Styles */
:focus-visible {
    outline: 2px solid var(--linkedin-blue);
    outline-offset: 2px;
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    :root {
        --border: rgba(0, 0, 0, 0.3);
        --border-strong: rgba(0, 0, 0, 0.5);
    }
}

/* Confirmation Modal */
.confirm-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 20px;
}

.confirm-modal-content {
    background: var(--surface);
    border-radius: 12px;
    padding: 24px;
    max-width: 360px;
    width: 100%;
    box-shadow: var(--shadow-lg);
}

.confirm-modal-content h3 {
    margin: 0 0 12px 0;
    font-size: 18px;
    color: var(--text-primary);
}

.confirm-modal-content p {
    margin: 0 0 20px 0;
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.5;
}

.confirm-modal-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.confirm-btn {
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
}

.confirm-btn.cancel {
    background: var(--pearl);
    color: var(--text-secondary);
}

.confirm-btn.cancel:hover {
    background: var(--border);
}

.confirm-btn.confirm {
    background: var(--danger);
    color: white;
}

.confirm-btn.confirm:hover {
    background: #9a3520;
}