/**
 * Notification Styles
 * Custom styles for notification system
 */

/* Notification Badge */
.notification-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: #ef4444;
    color: white;
    border-radius: 50%;
    min-width: 18px;
    height: 18px;
    font-size: 11px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    border: 2px solid white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Notification Dropdown */
.notification-dropdown {
    min-width: 320px;
    max-width: 400px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    border: 1px solid #e5e7eb;
    border-radius: 8px;
}

/* Notification Item */
.notification-item {
    transition: all 0.2s ease;
    border-radius: 6px;
    margin-bottom: 8px;
}

.notification-item:hover {
    background-color: #f8fafc;
    transform: translateX(2px);
}

.notification-item.unread {
    border-left: 3px solid #3b82f6;
}

/* File Upload Enhancement */
.file-upload-zone {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.file-upload-zone:hover {
    border-color: #6366f1;
    background-color: #f8fafc;
}

.file-upload-zone.drag-over {
    border-color: #4f46e5;
    background: linear-gradient(135deg, #eef2ff 0%, #e0e7ff 100%);
    transform: scale(1.02);
    box-shadow: 0 10px 25px rgba(79, 70, 229, 0.15);
}

.file-upload-zone.drag-over::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(79, 70, 229, 0.1), rgba(99, 102, 241, 0.1));
    border-radius: inherit;
    pointer-events: none;
    z-index: 1;
}

.file-upload-zone.drag-over > * {
    position: relative;
    z-index: 2;
}

.file-preview-container {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-radius: 8px;
    padding: 16px;
    border: 1px solid #e2e8f0;
    margin-top: 16px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.file-preview-item {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    margin-bottom: 8px;
    position: relative;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.file-preview-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.file-preview-item:last-child {
    margin-bottom: 0;
}

.file-icon-container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 8px;
    background-color: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.file-remove-btn {
    position: absolute;
    top: -6px;
    right: -6px;
    width: 20px;
    height: 20px;
    background: #ef4444;
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: all 0.2s ease;
    z-index: 10;
}

.file-remove-btn:hover {
    background: #dc2626;
    transform: scale(1.15);
    box-shadow: 0 4px 8px rgba(220, 38, 38, 0.3);
}

.file-remove-btn:active {
    transform: scale(0.95);
}

.file-type-legend {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 8px;
    padding: 12px 16px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.file-type-legend .flex {
    gap: 16px;
}

.file-type-legend .flex > div {
    padding: 4px 8px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.7);
    transition: all 0.2s ease;
}

.file-type-legend .flex > div:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-1px);
}

/* Upload Animation */
@keyframes uploadPulse {
    0% { 
        transform: scale(1);
        opacity: 1;
    }
    50% { 
        transform: scale(1.02);
        opacity: 0.8;
    }
    100% { 
        transform: scale(1);
        opacity: 1;
    }
}

.upload-animation {
    animation: uploadPulse 2s infinite ease-in-out;
}

/* Responsive Design */
@media (max-width: 768px) {
    .file-type-legend .flex {
        flex-direction: column;
        gap: 8px;
    }
    
    .file-type-legend .flex > div {
        justify-content: center;
    }
    
    .file-upload-zone {
        padding: 24px 16px;
    }
    
    .file-preview-container {
        padding: 12px;
    }
}

/* Focus States for Accessibility */
.file-upload-zone:focus-within {
    outline: 2px solid #4f46e5;
    outline-offset: 2px;
}

.file-remove-btn:focus {
    outline: 2px solid #4f46e5;
    outline-offset: 2px;
}

/* File Type Icons */
.file-icon-image {
    color: #10b981;
}

.file-icon-document {
    color: #3b82f6;
}

.file-icon-pdf {
    color: #ef4444;
}

.file-icon-default {
    color: #6b7280;
}

.notification-item.unread .card-body {
    background-color: #eff6ff;
    border-radius: 6px;
}

/* Notification Content */
.notification-content {
    max-height: 400px;
    overflow-y: auto;
}

.notification-content::-webkit-scrollbar {
    width: 4px;
}

.notification-content::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 2px;
}

.notification-content::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 2px;
}

.notification-content::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Notification Header */
.notification-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 16px 20px;
    border-radius: 8px 8px 0 0;
}

.notification-header h6 {
    margin: 0;
    font-weight: 600;
    font-size: 16px;
}

/* Notification Footer */
.notification-footer {
    background-color: #f8fafc;
    border-top: 1px solid #e5e7eb;
    padding: 12px 20px;
    border-radius: 0 0 8px 8px;
}

.notification-footer .btn {
    font-size: 13px;
    padding: 6px 12px;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.notification-footer .btn-primary {
    background-color: #3b82f6;
    color: white;
    border: 1px solid #3b82f6;
}

.notification-footer .btn-primary:hover {
    background-color: #2563eb;
    border-color: #2563eb;
}

.notification-footer .btn-outline {
    background-color: transparent;
    color: #6b7280;
    border: 1px solid #d1d5db;
}

.notification-footer .btn-outline:hover {
    background-color: #f3f4f6;
    color: #374151;
}

/* Notification Icon */
.notification-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: white;
    flex-shrink: 0;
}

.notification-icon.bg-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.notification-icon.bg-info {
    background: linear-gradient(135deg, #36d1dc 0%, #5b86e5 100%);
}

.notification-icon.bg-success {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
}

.notification-icon.bg-warning {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.notification-icon.bg-danger {
    background: linear-gradient(135deg, #ff416c 0%, #ff4b2b 100%);
}

/* Notification Time */
.notification-time {
    font-size: 11px;
    color: #9ca3af;
    font-weight: 500;
}

/* Unread Indicator */
.unread-indicator {
    width: 8px;
    height: 8px;
    background-color: #3b82f6;
    border-radius: 50%;
    display: inline-block;
    margin-left: 8px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.7;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Empty State */
.notification-empty {
    text-align: center;
    padding: 40px 20px;
    color: #6b7280;
}

.notification-empty-icon {
    width: 48px;
    height: 48px;
    background-color: #f3f4f6;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 20px;
    color: #9ca3af;
}

/* Loading State */
.notification-loading {
    text-align: center;
    padding: 32px 20px;
    color: #6b7280;
}

.notification-loading-spinner {
    width: 32px;
    height: 32px;
    border: 3px solid #f3f4f6;
    border-top: 3px solid #3b82f6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 16px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .notification-dropdown {
        min-width: 280px;
        max-width: 320px;
    }
    
    .notification-header {
        padding: 12px 16px;
    }
    
    .notification-footer {
        padding: 10px 16px;
    }
    
    .notification-item .card-body {
        padding: 12px;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .notification-dropdown {
        background-color: #1f2937;
        border-color: #374151;
    }
    
    .notification-item:hover {
        background-color: #374151;
    }
    
    .notification-item.unread .card-body {
        background-color: #1e3a8a;
    }
    
    .notification-footer {
        background-color: #374151;
        border-color: #4b5563;
    }
    
    .notification-empty,
    .notification-loading {
        color: #d1d5db;
    }
    
    .notification-empty-icon {
        background-color: #374151;
        color: #6b7280;
    }
}