/* ===== NOTIFICATION BELL COMPONENT ===== */

.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.notification-bell-container {
    position: relative;
    display: inline-block;
}

.notification-bell-btn {
    position: relative;
    background: transparent;
    border: 2px solid var(--border-color);
    border-radius: 50%;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    color: var(--text-color);
    font-size: 18px;
}

.notification-bell-btn:hover {
    background-color: var(--primary-light);
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-1px);
}

.notification-bell-btn:active {
    transform: translateY(0);
}

/* Notification Badge (Facebook-style) */
.notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ff3040;
    color: white;
    border-radius: 10px;
    min-width: 20px;
    height: 20px;
    font-size: 11px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #fff;
    box-shadow: 0 2px 4px rgba(255, 48, 64, 0.3);
    transform: scale(0);
    transition: transform 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.notification-badge.show {
    transform: scale(1);
}

.notification-badge.pulse {
    animation: badgePulse 2s infinite;
}

@keyframes badgePulse {
    0% {
        transform: scale(1);
        box-shadow: 0 2px 4px rgba(255, 48, 64, 0.3);
    }
    50% {
        transform: scale(1.1);
        box-shadow: 0 2px 8px rgba(255, 48, 64, 0.5);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 2px 4px rgba(255, 48, 64, 0.3);
    }
}

/* Notification Dropdown */
.notification-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    width: 380px;
    max-height: 500px;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px) scale(0.95);
    transition: all 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.notification-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.notification-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid var(--border-color);
    background: var(--light-color);
}

.notification-header h4 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-color);
}

.notification-actions {
    display: flex;
    gap: 10px;
}

.notification-actions .btn-text {
    background: none;
    border: none;
    color: var(--primary-color);
    cursor: pointer;
    padding: 5px;
    border-radius: 4px;
    transition: var(--transition);
}

.notification-actions .btn-text:hover {
    background: rgba(0, 123, 255, 0.1);
}

.notification-list {
    max-height: 300px;
    overflow-y: auto;
}

.notification-empty {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-light);
}

.notification-empty i {
    font-size: 32px;
    margin-bottom: 10px;
    opacity: 0.5;
}

.notification-empty p {
    margin: 0;
    font-size: 14px;
}

/* Individual Notification Item */
.notification-item {
    padding: 15px 20px;
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.notification-item:hover {
    background-color: rgba(0, 123, 255, 0.05);
}

.notification-item.unread {
    background-color: rgba(0, 123, 255, 0.02);
    border-left: 3px solid var(--primary-color);
}

.notification-item.unread::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    background: var(--primary-color);
    border-radius: 50%;
}

.notification-icon {
    flex-shrink: 0;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: white;
}

.notification-icon.entrevista {
    background: var(--primary-color);
}

.notification-icon.crear {
    background: var(--success-color);
}

.notification-icon.eliminar {
    background: var(--danger-color);
}

.notification-icon.actualizar {
    background: var(--warning-color);
}

.notification-content {
    flex: 1;
    min-width: 0;
}

.notification-title {
    font-weight: 600;
    font-size: 14px;
    color: var(--text-color);
    margin: 0 0 4px 0;
    line-height: 1.3;
}

.notification-message {
    font-size: 13px;
    color: var(--text-light);
    margin: 0 0 6px 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.notification-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: var(--text-light);
}

.notification-time {
    font-style: italic;
}

.notification-actions-item {
    display: flex;
    gap: 8px;
}

.notification-actions-item button {
    background: none;
    border: none;
    padding: 2px 4px;
    cursor: pointer;
    color: var(--text-light);
    font-size: 12px;
    border-radius: 3px;
    transition: var(--transition);
}

.notification-actions-item button:hover {
    color: var(--primary-color);
    background: rgba(0, 123, 255, 0.1);
}

.notification-footer {
    padding: 12px 20px;
    border-top: 1px solid var(--border-color);
    text-align: center;
    background: var(--light-color);
}

.notification-footer .btn-text {
    background: none;
    border: none;
    color: var(--primary-color);
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    padding: 5px 10px;
    border-radius: 4px;
    transition: var(--transition);
}

.notification-footer .btn-text:hover {
    background: rgba(0, 123, 255, 0.1);
}

/* Animation for new notifications */
.notification-item.new-notification {
    animation: slideInNotification 0.3s ease-out;
}

@keyframes slideInNotification {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Loading state */
.notification-loading {
    text-align: center;
    padding: 20px;
    color: var(--text-light);
}

.notification-loading i {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Dark mode adjustments */
body.dark-mode .notification-dropdown {
    background: var(--light-color);
    border-color: var(--border-color);
}

body.dark-mode .notification-header {
    background: rgba(255, 255, 255, 0.05);
}

body.dark-mode .notification-footer {
    background: rgba(255, 255, 255, 0.05);
}

body.dark-mode .notification-item:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

body.dark-mode .notification-item.unread {
    background-color: rgba(0, 123, 255, 0.1);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .notification-dropdown {
        width: 320px;
        right: -10px;
    }

    .notification-item {
        padding: 12px 15px;
    }

    .notification-header,
    .notification-footer {
        padding: 12px 15px;
    }
}