/**
 * Notification System Styles
 * 
 * @package Technician_Management
 * @since 1.0.0
 */

/* Notification Container */
.tech-manager-notifications-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    max-width: 400px;
    width: 100%;
}

/* Individual Notifications */
.tech-manager-notification {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    margin-bottom: 10px;
    overflow: hidden;
    transform: translateX(100%);
    transition: all 0.3s ease;
    border-left: 4px solid;
    position: relative;
}

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

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

/* Notification Types */
.tech-manager-notification-success {
    border-left-color: #10b981;
}

.tech-manager-notification-error {
    border-left-color: #ef4444;
}

.tech-manager-notification-warning {
    border-left-color: #f59e0b;
}

.tech-manager-notification-info {
    border-left-color: #3b82f6;
}

/* Notification Content */
.notification-content {
    display: flex;
    align-items: flex-start;
    padding: 16px;
    gap: 12px;
}

.notification-icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-top: 2px;
}

.tech-manager-notification-success .notification-icon {
    background: #d1fae5;
    color: #065f46;
}

.tech-manager-notification-error .notification-icon {
    background: #fee2e2;
    color: #991b1b;
}

.tech-manager-notification-warning .notification-icon {
    background: #fef3c7;
    color: #92400e;
}

.tech-manager-notification-info .notification-icon {
    background: #dbeafe;
    color: #1e40af;
}

.notification-icon .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

.notification-message {
    flex: 1;
    font-size: 14px;
    line-height: 1.5;
    color: #374151;
}

.notification-message p {
    margin: 0;
}

.notification-message strong {
    font-weight: 600;
    color: #111827;
}

/* Dismiss Button */
.notification-dismiss {
    flex-shrink: 0;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    color: #6b7280;
    transition: all 0.2s ease;
    margin-top: -2px;
}

.notification-dismiss:hover {
    background: #f3f4f6;
    color: #374151;
}

.notification-dismiss .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

/* Progress Bar for Auto-dismiss */
.tech-manager-notification.auto-dismiss::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: currentColor;
    opacity: 0.3;
    animation: notification-progress 5s linear forwards;
}

@keyframes notification-progress {
    from {
        width: 100%;
    }
    to {
        width: 0%;
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .tech-manager-notifications-container {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
    }
    
    .tech-manager-notification {
        margin-bottom: 8px;
    }
    
    .notification-content {
        padding: 12px;
        gap: 8px;
    }
    
    .notification-message {
        font-size: 13px;
    }
}

/* Admin Notifications */
.tech-manager-admin-notifications {
    margin: 20px 0;
}

.tech-manager-admin-notifications .tech-manager-notification {
    position: static;
    transform: none;
    margin-bottom: 15px;
    border: 1px solid;
    border-radius: 4px;
}

.tech-manager-admin-notifications .tech-manager-notification-success {
    border-color: #10b981;
    background: #f0fdf4;
}

.tech-manager-admin-notifications .tech-manager-notification-error {
    border-color: #ef4444;
    background: #fef2f2;
}

.tech-manager-admin-notifications .tech-manager-notification-warning {
    border-color: #f59e0b;
    background: #fffbeb;
}

.tech-manager-admin-notifications .tech-manager-notification-info {
    border-color: #3b82f6;
    background: #eff6ff;
}

/* Form Integration */
.tech-manager-form-notifications {
    margin-bottom: 20px;
}

.tech-manager-form-notifications .tech-manager-notification {
    position: static;
    transform: none;
    margin-bottom: 10px;
}

/* Inline Notifications */
.tech-manager-inline-notification {
    display: inline-block;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 500;
    margin: 5px 0;
}

.tech-manager-inline-notification-success {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #10b981;
}

.tech-manager-inline-notification-error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #ef4444;
}

.tech-manager-inline-notification-warning {
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #f59e0b;
}

.tech-manager-inline-notification-info {
    background: #dbeafe;
    color: #1e40af;
    border: 1px solid #3b82f6;
}

/* Loading States */
.tech-manager-notification.loading {
    opacity: 0.7;
}

.tech-manager-notification.loading .notification-message::after {
    content: '...';
    animation: loading-dots 1.5s infinite;
}

@keyframes loading-dots {
    0%, 20% { content: ''; }
    40% { content: '.'; }
    60% { content: '..'; }
    80%, 100% { content: '...'; }
}

/* Accessibility */
.tech-manager-notification:focus-within {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

.notification-dismiss:focus {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .tech-manager-notification {
        border: 2px solid;
    }
    
    .tech-manager-notification-success {
        border-color: #000;
        background: #fff;
    }
    
    .tech-manager-notification-error {
        border-color: #000;
        background: #fff;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .tech-manager-notification {
        transition: none;
    }
    
    .tech-manager-notification.auto-dismiss::after {
        animation: none;
    }
}
