/**
 * Notification System CSS
 * Modern toast notifications for JobsKini
 */

/* Notification Container */
.notification-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    max-width: 400px;
    width: 100%;
    pointer-events: none;
}

/* Base Notification Styles */
.notification {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    margin-bottom: 16px;
    padding: 16px 20px;
    position: relative;
    transform: translateX(100%);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: auto;
    border-left: 4px solid #e9ecef;
    max-width: 100%;
    word-wrap: break-word;
}

.notification.show {
    transform: translateX(0);
}

.notification.hide {
    transform: translateX(100%);
    opacity: 0;
}

/* Notification Types */
.notification.success {
    border-left-color: #28a745;
    background: linear-gradient(135deg, #f8fff9 0%, #ffffff 100%);
}

.notification.error {
    border-left-color: #dc3545;
    background: linear-gradient(135deg, #fff8f8 0%, #ffffff 100%);
}

.notification.warning {
    border-left-color: #ffc107;
    background: linear-gradient(135deg, #fffdf7 0%, #ffffff 100%);
}

.notification.info {
    border-left-color: #17a2b8;
    background: linear-gradient(135deg, #f7fcfd 0%, #ffffff 100%);
}

/* Notification Header */
.notification-header {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
}

.notification-icon {
    width: 24px;
    height: 24px;
    margin-right: 12px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
    color: #fff;
}

.notification.success .notification-icon {
    background: #28a745;
}

.notification.error .notification-icon {
    background: #dc3545;
}

.notification.warning .notification-icon {
    background: #ffc107;
    color: #212529;
}

.notification.info .notification-icon {
    background: #17a2b8;
}

.notification-title {
    font-weight: 600;
    font-size: 16px;
    color: #212529;
    margin: 0;
    flex: 1;
}

/* Close Button */
.notification-close {
    background: none;
    border: none;
    font-size: 18px;
    color: #6c757d;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
    margin-left: 12px;
}

.notification-close:hover {
    background: rgba(0, 0, 0, 0.1);
    color: #495057;
}

/* Notification Body */
.notification-body {
    color: #495057;
    font-size: 14px;
    line-height: 1.5;
    margin: 0;
}

/* Progress Bar */
.notification-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 0 0 12px 12px;
    overflow: hidden;
}

.notification-progress-bar {
    height: 100%;
    width: 100%;
    transform-origin: left;
    transition: transform linear;
}

.notification.success .notification-progress-bar {
    background: #28a745;
}

.notification.error .notification-progress-bar {
    background: #dc3545;
}

.notification.warning .notification-progress-bar {
    background: #ffc107;
}

.notification.info .notification-progress-bar {
    background: #17a2b8;
}

/* Responsive Design */
@media (max-width: 768px) {
    .notification-container {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
    }
    
    .notification {
        margin-bottom: 12px;
        padding: 14px 16px;
    }
    
    .notification-title {
        font-size: 15px;
    }
    
    .notification-body {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .notification-container {
        top: 5px;
        right: 5px;
        left: 5px;
    }
    
    .notification {
        padding: 12px 14px;
        border-radius: 8px;
    }
    
    .notification-icon {
        width: 20px;
        height: 20px;
        font-size: 12px;
        margin-right: 10px;
    }
    
    .notification-title {
        font-size: 14px;
    }
    
    .notification-body {
        font-size: 12px;
    }
}

/* Animation Keyframes */
@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;
    }
}

/* Accessibility */
.notification:focus {
    outline: 2px solid #007bff;
    outline-offset: 2px;
}

.notification-close:focus {
    outline: 2px solid #007bff;
    outline-offset: 1px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .notification {
        border: 2px solid #000;
    }
    
    .notification-title,
    .notification-body {
        color: #000;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .notification {
        transition: none;
    }
    
    .notification-progress-bar {
        transition: none;
    }
}
