Loading files
This file is pinned to the selected release. Download the original to open it in your design tool.
/* ==========================================================================
OWL Dashboard - Notifications
Notification bell, panel, items, and toast messages
========================================================================== */
/* --------------------------------------------------------------------------
Notification Bell (Header)
-------------------------------------------------------------------------- */
.notification-bell {
position: relative;
cursor: pointer;
padding: 0.5rem;
margin-right: 1rem;
border-radius: 50%;
transition: all 0.2s;
display: flex;
align-items: center;
justify-content: center;
}
.notification-bell:hover {
background: rgba(255, 255, 255, 0.1);
}
.notification-bell.has-notifications {
animation: bellShake 0.5s ease-in-out;
}
.bell-icon {
width: 24px;
height: 24px;
color: white;
}
.notification-count {
position: absolute;
top: -2px;
right: -2px;
background: var(--danger);
color: white;
border-radius: 50%;
width: 20px;
height: 20px;
font-size: 0.7rem;
font-weight: bold;
display: flex;
align-items: center;
justify-content: center;
border: 2px solid var(--primary);
animation: pulse 2s infinite;
}
.notification-count.hidden {
display: none !important;
}
@keyframes bellShake {
0%, 100% { transform: rotate(0deg); }
25% { transform: rotate(-10deg); }
75% { transform: rotate(10deg); }
}
/* --------------------------------------------------------------------------
Notification Overlay
-------------------------------------------------------------------------- */
.notification-overlay {
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: rgba(0, 0, 0, 0.3);
z-index: 1999;
opacity: 0;
transition: opacity 0.3s ease;
}
.notification-overlay.visible {
opacity: 1;
}
/* --------------------------------------------------------------------------
Notification Panel (Slide-in from right)
-------------------------------------------------------------------------- */
.notification-panel {
position: fixed;
top: 0;
right: 0;
width: 100%;
max-width: 400px;
height: 100vh;
background: white;
z-index: 2000;
transform: translateX(100%);
transition: transform 0.3s ease;
display: flex;
flex-direction: column;
box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15);
}
.notification-panel.visible {
transform: translateX(0);
}
.notification-panel-header {
display: flex;
justify-content: space-between;
align-items: center;
padding: 1rem 1.5rem;
background: var(--primary);
color: white;
flex-shrink: 0;
}
.notification-panel-header h3 {
margin: 0;
font-size: 1.2rem;
}
.notification-panel-controls {
display: flex;
gap: 0.5rem;
align-items: center;
}
.clear-btn {
background: rgba(255, 255, 255, 0.2);
color: white;
border: none;
padding: 0.4rem 0.8rem;
border-radius: 15px;
font-size: 0.8rem;
cursor: pointer;
transition: background 0.2s;
}
.clear-btn:hover {
background: rgba(255, 255, 255, 0.3);
}
.close-btn {
background: none;
color: white;
border: none;
font-size: 1.8rem;
cursor: pointer;
width: 35px;
height: 35px;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
transition: background 0.2s;
line-height: 1;
}
.close-btn:hover {
background: rgba(255, 255, 255, 0.2);
}
.notification-panel-content {
flex: 1;
overflow-y: auto;
padding: 0;
}
/* --------------------------------------------------------------------------
Notification Items (in panel)
-------------------------------------------------------------------------- */
.notification-item {
padding: 1rem 1.5rem;
border-bottom: 1px solid #f0f0f0;
display: flex;
gap: 1rem;
align-items: flex-start;
transition: background 0.2s;
}
.notification-item:hover {
background: #f8f9fa;
}
.notification-item:last-child {
border-bottom: none;
}
.notification-icon {
flex-shrink: 0;
width: 28px;
height: 28px;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
font-size: 0.9rem;
font-weight: bold;
margin-top: 0.1rem;
}
.notification-icon.success {
background: var(--success);
color: white;
}
.notification-icon.error {
background: var(--danger);
color: white;
}
.notification-icon.warning {
background: var(--warning);
color: white;
}
.notification-icon.info {
background: var(--accent);
color: white;
}
.notification-content {
flex: 1;
}
.notification-title {
font-weight: 600;
margin-bottom: 0.25rem;
color: var(--primary);
font-size: 0.95rem;
}
.notification-message {
color: #666;
font-size: 0.85rem;
line-height: 1.4;
margin-bottom: 0.25rem;
}
.notification-time {
color: #999;
font-size: 0.7rem;
}
.no-notifications {
text-align: center;
color: #999;
padding: 3rem 2rem;
font-style: italic;
font-size: 0.9rem;
}
/* --------------------------------------------------------------------------
Legacy Toast Notifications (Fixed position)
-------------------------------------------------------------------------- */
#notifications {
position: fixed;
bottom: 1.5rem;
right: 1.5rem;
z-index: 1000;
max-width: 350px;
}
.notification {
padding: 1rem;
background-color: white;
border-radius: 8px;
box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
margin-bottom: 0.75rem;
animation: slide-in 0.3s ease-out forwards;
position: relative;
border-left: 4px solid var(--accent);
}
.notification.success {
border-color: var(--success);
}
.notification.error {
border-color: var(--danger);
}
.notification .notification-title {
font-weight: 600;
margin-bottom: 0.25rem;
padding-right: 1.5rem;
}
.notification .notification-message {
font-size: 0.9rem;
color: var(--secondary);
}
.notification-close {
position: absolute;
top: 0.75rem;
right: 0.75rem;
background: none;
border: none;
color: var(--secondary);
cursor: pointer;
font-size: 1.2rem;
font-weight: bold;
}
/* --------------------------------------------------------------------------
Quick Toast (Bottom center)
-------------------------------------------------------------------------- */
.quick-toast {
position: fixed;
bottom: 20px;
left: 50%;
transform: translateX(-50%);
background: rgba(0, 0, 0, 0.85);
color: white;
padding: 0.75rem 1.5rem;
border-radius: 25px;
font-size: 0.9rem;
z-index: 2500;
backdrop-filter: blur(10px);
animation: toastSlideUp 0.3s ease-out;
max-width: 90vw;
text-align: center;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}
.quick-toast.success {
background: rgba(46, 204, 113, 0.9);
}
.quick-toast.error {
background: rgba(231, 76, 60, 0.9);
}
.quick-toast.warning {
background: rgba(243, 156, 18, 0.9);
}
.quick-toast.info {
background: rgba(52, 152, 219, 0.9);
}
@keyframes toastSlideUp {
from {
transform: translateX(-50%) translateY(100px);
opacity: 0;
}
to {
transform: translateX(-50%) translateY(0);
opacity: 1;
}
}
/* --------------------------------------------------------------------------
Notifications - Responsive
-------------------------------------------------------------------------- */
@media (max-width: 768px) {
.notification-panel {
width: 100%;
max-width: none;
}
.notification-item {
padding: 1rem;
}
.notification-panel-header {
padding: 1rem;
}
.notification-bell {
padding: 0.25rem;
margin-right: 0.5rem;
}
.bell-icon {
width: 20px;
height: 20px;
}
.notification-count {
width: 18px;
height: 18px;
font-size: 0.6rem;
}
.no-notifications {
padding: 2rem 1rem;
}
}
@media (max-width: 480px) {
.notification-panel-header h3 {
font-size: 1rem;
}
.notification-item {
padding: 0.75rem;
}
.notification-panel-controls {
gap: 0.25rem;
}
.clear-btn {
padding: 0.3rem 0.6rem;
font-size: 0.7rem;
}
#notifications {
left: 1rem;
right: 1rem;
max-width: none;
}
}
75080141dThis file is pinned to the selected release. Download the original to open it in your design tool.