
/* ResumeRize Professional Notifications */

.rr-notification-container {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 999999;
    width: min(390px, calc(100vw - 32px));
    display: flex;
    flex-direction: column;
    gap: 12px;
    pointer-events: none;
    font-family: Inter, Arial, sans-serif;
}

.rr-notification {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    opacity: 0;
    transform: translateX(20px);
    transition: opacity 0.2s ease, transform 0.2s ease;
    pointer-events: auto;
}

.rr-notification-visible {
    opacity: 1;
    transform: translateX(0);
}

.rr-notification-exit {
    opacity: 0;
    transform: translateX(20px);
}

.rr-notification-icon {
    width: 30px;
    height: 30px;
    min-width: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    font-weight: 700;
}

.rr-notification-success .rr-notification-icon {
    background: #dcfce7;
    color: #15803d;
}

.rr-notification-error .rr-notification-icon {
    background: #fee2e2;
    color: #dc2626;
}

.rr-notification-warning .rr-notification-icon {
    background: #fef3c7;
    color: #b45309;
}

.rr-notification-info .rr-notification-icon {
    background: #dbeafe;
    color: #2563eb;
}

.rr-notification-loading .rr-notification-icon {
    background: #e0e7ff;
}

.rr-notification-content {
    flex: 1;
    min-width: 0;
}

.rr-notification-title {
    font-size: 14px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 5px;
}

.rr-notification-message {
    font-size: 13px;
    line-height: 1.5;
    color: #6b7280;
    overflow-wrap: anywhere;
}

.rr-notification-close {
    border: none;
    background: transparent;
    color: #9ca3af;
    font-size: 22px;
    line-height: 20px;
    cursor: pointer;
    padding: 0 2px;
}

.rr-notification-close:hover {
    color: #111827;
}

.rr-notification-spinner {
    width: 17px;
    height: 17px;
    border: 2px solid #c7d2fe;
    border-top-color: #4f46e5;
    border-radius: 50%;
    animation: rr-spin 0.7s linear infinite;
}

@keyframes rr-spin {
    to { transform: rotate(360deg); }
}

/* Download progress */

.rr-progress-wrapper {
    margin-top: 12px;
}

.rr-progress-track {
    width: 100%;
    height: 7px;
    background: #e5e7eb;
    border-radius: 20px;
    overflow: hidden;
}

.rr-progress-bar {
    height: 100%;
    width: 0;
    background: #2563eb;
    border-radius: 20px;
    transition: width 0.2s ease;
}

.rr-progress-indeterminate {
    width: 40%;
    animation: rr-progress-moving 1.2s ease-in-out infinite;
}

.rr-progress-text {
    margin-top: 6px;
    font-size: 12px;
    font-weight: 600;
    color: #374151;
    text-align: right;
}

@keyframes rr-progress-moving {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(250%); }
}

/* Confirmation dialog */

.rr-confirm-overlay {
    position: fixed;
    inset: 0;
    z-index: 1000000;
    background: rgba(15, 23, 42, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.rr-confirm-dialog {
    width: min(420px, 100%);
    background: #ffffff;
    border-radius: 14px;
    padding: 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    font-family: Inter, Arial, sans-serif;
}

.rr-confirm-dialog h3 {
    margin: 0 0 10px;
    color: #111827;
    font-size: 18px;
}

.rr-confirm-dialog p {
    margin: 0;
    color: #6b7280;
    font-size: 14px;
    line-height: 1.6;
}

.rr-confirm-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 24px;
}

.rr-confirm-actions button {
    padding: 10px 18px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

.rr-confirm-cancel {
    border: 1px solid #d1d5db;
    background: #ffffff;
    color: #374151;
}

.rr-confirm-primary {
    border: none;
    background: #2563eb;
    color: #ffffff;
}

.rr-confirm-danger {
    border: none;
    background: #dc2626;
    color: #ffffff;
}

@media (max-width: 480px) {
    .rr-notification-container {
        top: 12px;
        right: 12px;
        width: calc(100vw - 24px);
    }
}


/* Successful download progress */

.rr-notification-success .rr-progress-bar {
    background: #16a34a;
}

/* Accessibility: respect reduced motion */

@media (prefers-reduced-motion: reduce) {
    .rr-notification,
    .rr-progress-bar {
        transition: none;
    }

    .rr-notification-spinner {
        animation-duration: 2s;
    }

    .rr-progress-indeterminate {
        animation: none;
        width: 100%;
    }
}