/* Job Application Notifications */
.uwp-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    max-width: 400px;
    background-color: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    opacity: 0;
    transform: translateX(100%) scale(0.95);
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    font-family: inherit;
}

.uwp-notification.uwp-notification-show {
    opacity: 1;
    transform: translateX(0) scale(1);
}

.uwp-notification.uwp-notification-hide {
    opacity: 0;
    transform: translateX(100%) scale(0.95);
}

.uwp-notification-content {
    display: flex;
    align-items: flex-start;
    padding: 16px 20px;
    gap: 12px;
}

.uwp-notification-message {
    flex: 1;
    font-size: 14px;
    line-height: 1.5;
    color: #1976d2;
    margin: 0;
}

.uwp-notification-close {
    background: none;
    border: none;
    font-size: 20px;
    line-height: 1;
    color: #9ca3af;
    cursor: pointer;
    padding: 0;
    margin-left: auto;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s;
    flex-shrink: 0;
}

.uwp-notification-close:hover {
    background-color: #f3f4f6;
    color: #dc2626;
}

/* Success notification */
.uwp-notification-success {
    border-left: 4px solid #10b981;
}

.uwp-notification-success .uwp-notification-message {
    color: #059669;
}

/* Error notification */
.uwp-notification-error {
    border-left: 4px solid #ef4444;
}

.uwp-notification-error .uwp-notification-message {
    color: #dc2626;
}

/* Info notification (for admin and already applied) */
.uwp-notification-info {
    border-left: 4px solid #2196f3;
}

.uwp-notification-info .uwp-notification-message {
    color: #1976d2;
}

/* Register notification */
.uwp-notification-register {
    border-left: 4px solid #ff9800;
    background: linear-gradient(135deg, #fff3e0 0%, #ffffff 100%);
}

.uwp-notification-register .uwp-notification-message {
    color: #f57c00;
    font-weight: 500;
}

/* ADDED: Notification links container */
.uwp-notification-links {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 8px;
}

.uwp-notification-link {
    color: #1976d2;
    text-decoration: none;
    font-weight: 600;
    border-bottom: 1px solid transparent;
    transition: all 0.2s;
    display: inline-block;
    padding: 6px 12px;
    background: rgba(33, 150, 243, 0.1);
    border-radius: 6px;
    font-size: 13px;
}

.uwp-notification-link:hover {
    border-bottom-color: #1976d2;
    background: rgba(33, 150, 243, 0.2);
    opacity: 1;
    transform: translateY(-1px);
}

/* Different colors for register vs login links */
.uwp-register-link {
    background: rgba(76, 175, 80, 0.1);
    color: #388e3c;
}

.uwp-register-link:hover {
    background: rgba(76, 175, 80, 0.2);
    border-bottom-color: #388e3c;
}

.uwp-login-link {
    background: rgba(33, 150, 243, 0.1);
    color: #1976d2;
}

.uwp-login-link:hover {
    background: rgba(33, 150, 243, 0.2);
    border-bottom-color: #1976d2;
}

/* Apply button states */
.uwp-apply-button.applying {
    opacity: 0.6;
    pointer-events: none;
}

.uwp-apply-button.applying .uwp-apply-link {
    cursor: not-allowed;
}

.uwp-apply-button.applied {
    opacity: 0.7;
}

.uwp-apply-button.applied .uwp-apply-link {
    cursor: default;
    background: #6b7280;
}

.uwp-apply-button.applied .uwp-apply-link:hover {
    background: #6b7280;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .uwp-notification {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
    }
    
    .uwp-notification-content {
        padding: 14px 16px;
    }
    
    .uwp-notification-message {
        font-size: 13px;
    }
    
    .uwp-notification-links {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }
    
    .uwp-notification-link {
        font-size: 12px;
        padding: 5px 10px;
    }
}

/* Animation for multiple notifications */
.uwp-notification:nth-child(n+2) {
    top: calc(20px + (80px * var(--notification-index, 1)));
}

@media (max-width: 768px) {
    .uwp-notification:nth-child(n+2) {
        top: calc(10px + (70px * var(--notification-index, 1)));
    }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
    .uwp-notification {
        transition: opacity 0.2s;
        transform: none;
    }
    
    .uwp-notification.uwp-notification-show {
        transform: none;
    }
    
    .uwp-notification.uwp-notification-hide {
        transform: none;
    }
    
    .uwp-notification-link:hover {
        transform: none;
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    .uwp-notification {
        border-width: 2px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    }
    
    .uwp-notification-close {
        border: 1px solid #9ca3af;
    }
}

/* Loading animation for apply button */
@keyframes uwp-applying {
    0% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
    100% {
        opacity: 1;
    }
}

.uwp-apply-button.applying {
    animation: uwp-applying 1.5s ease-in-out infinite;
}