/* Notification UI Styles */

/* Permission Banner Styles */
.notification-permission-banner {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 14px;
    line-height: 1.4;
}

.notification-permission-banner button {
    font-family: inherit;
    font-weight: 500;
    transition: all 0.2s ease;
    outline: none;
}

.notification-permission-banner button:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.notification-permission-banner button:active {
    transform: translateY(0);
}

/* Status Indicator Styles */
.notification-status-indicator {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    user-select: none;
}

.notification-status-indicator:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.2) !important;
}

.notification-status-indicator:active {
    transform: translateY(0);
}

/* Status Icon Animation */
@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

.notification-status-indicator #status-icon.pulse {
    animation: pulse 2s infinite;
}

/* Notification Toast Styles */
.notification-toast {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-weight: 500;
    line-height: 1.4;
}

/* Responsive Design */
@media (max-width: 768px) {
    .notification-permission-banner {
        padding: 10px 15px;
        font-size: 13px;
    }
    
    .notification-permission-banner > div {
        flex-direction: column;
        gap: 10px !important;
        text-align: center;
    }
    
    .notification-permission-banner button {
        padding: 10px 20px;
        font-size: 14px;
        border-radius: 25px;
        min-width: 120px;
    }
    
    .notification-status-indicator {
        bottom: 10px !important;
        right: 10px !important;
        max-width: 200px !important;
        font-size: 13px !important;
    }
}

@media (max-width: 480px) {
    .notification-permission-banner {
        position: relative;
        top: auto;
        left: auto;
        right: auto;
        transform: none !important;
        margin-bottom: 10px;
    }
    
    .notification-status-indicator {
        position: relative !important;
        bottom: auto !important;
        right: auto !important;
        margin: 10px auto;
        max-width: 100% !important;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .notification-status-indicator {
        background: #2d3748 !important;
        border-color: #4a5568 !important;
        color: #e2e8f0 !important;
    }
    
    .notification-status-indicator:hover {
        background: #374151 !important;
    }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .notification-permission-banner {
        border: 2px solid white;
    }
    
    .notification-permission-banner button {
        border-width: 2px !important;
        font-weight: bold;
    }
    
    .notification-status-indicator {
        border-width: 2px !important;
        font-weight: bold;
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    .notification-permission-banner,
    .notification-status-indicator,
    .notification-toast {
        transition: none !important;
        animation: none !important;
    }
    
    .notification-status-indicator:hover {
        transform: none !important;
    }
    
    .notification-permission-banner button:hover {
        transform: none !important;
    }
}

/* Focus Styles for Accessibility */
.notification-permission-banner button:focus,
.notification-status-indicator:focus,
.notification-status-indicator button:focus {
    outline: 2px solid #007bff;
    outline-offset: 2px;
}

/* Loading State */
.notification-status-loading {
    opacity: 0.7;
}

.notification-status-loading #status-icon {
    animation: pulse 1.5s infinite;
}

/* Error State */
.notification-status-error #status-icon {
    background: #dc3545 !important;
}

.notification-status-error #status-text {
    color: #dc3545;
}

/* Success State */
.notification-status-success #status-icon {
    background: #28a745 !important;
}

.notification-status-success #status-text {
    color: #28a745;
}

/* Warning State */
.notification-status-warning #status-icon {
    background: #ffc107 !important;
}

.notification-status-warning #status-text {
    color: #856404;
}

/* Notification Permission Modal (if needed) */
.notification-permission-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: 1002;
    padding: 20px;
}

.notification-permission-modal-content {
    background: white;
    border-radius: 12px;
    padding: 30px;
    max-width: 400px;
    width: 100%;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.notification-permission-modal h3 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 20px;
}

.notification-permission-modal p {
    margin: 0 0 25px 0;
    color: #666;
    line-height: 1.5;
}

.notification-permission-modal-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.notification-permission-modal button {
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.notification-permission-modal .btn-primary {
    background: #007bff;
    color: white;
}

.notification-permission-modal .btn-primary:hover {
    background: #0056b3;
}

.notification-permission-modal .btn-secondary {
    background: #6c757d;
    color: white;
}

.notification-permission-modal .btn-secondary:hover {
    background: #545b62;
}