/* Notifications System Styling */
.notifications-container {
    position: relative;
}

/* Notification Panel Styles */
.notification-panel {
    position: fixed !important;
    top: 0 !important;
    right: -400px !important;
    width: 350px !important;
    height: 100vh !important;
    background: var(--notification-bg) !important;
    box-shadow: -5px 0 25px var(--shadow) !important;
    z-index: 10000 !important;
    transition: right 0.3s ease, background 0.3s ease, box-shadow 0.3s ease !important;
    display: flex !important;
    flex-direction: column !important;
    visibility: visible !important;
    overflow-y: hidden !important;
}

.notification-panel.active {
    right: 0 !important;
}

.notification-container {
    position: relative;
}

.notification-icon-btn {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.9) !important;
    font-size: 1.3rem !important;
    cursor: pointer;
    padding: 10px 16px !important;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    position: relative;
    border-radius: 8px;
}

.notification-icon-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff !important;
}

.notification-badge {
    background-color: #ff5252;
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: 0.7rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 6px;
    right: 6px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    font-weight: bold;
}

/* Notification Panel Content Styles */
.notification-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
    background-color: var(--card-bg);
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.notification-panel-header h6 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-accent);
    transition: color 0.3s ease;
}

.notification-panel-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.mark-all-read-btn {
    background: transparent !important;
    border: none;
    color: var(--text-secondary) !important;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 8px 12px;
    border-radius: 4px;
}

.mark-all-read-btn:hover {
    background: var(--hover-bg) !important;
    color: var(--text-primary) !important;
}

.notification-panel-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.notification-panel-close:hover {
    color: #ef5350;
    background: var(--hover-bg);
}

.notification-panel-body {
    flex: 1;
    overflow-y: auto;
    padding: 0;
    -webkit-overflow-scrolling: touch;
}

.notification-item {
    display: flex;
    align-items: flex-start;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
    transition: background-color 0.2s ease, border-color 0.3s ease;
    position: relative;
    cursor: pointer;
    background-color: var(--card-bg);
}

.notification-item:hover {
    background-color: var(--bg-secondary);
}

.notification-item.unread {
    background-color: rgba(44, 85, 48, 0.05);
}

.notification-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    flex-shrink: 0;
    box-shadow: 0 3px 8px rgba(0,0,0,0.1);
}

.notification-icon.message {
    background-color: rgba(59, 130, 246, 0.15);
    color: #3b82f6;
}

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

.notification-title {
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--text-primary);
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.notification-message {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-bottom: 6px;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.notification-time {
    color: var(--text-secondary);
    font-size: 0.75rem;
    opacity: 0.7;
    transition: color 0.3s ease;
}

.notification-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-left: 10px;
    flex-shrink: 0;
}

.notification-action-btn {
    background: none !important;
    border: none !important;
    color: var(--text-secondary) !important;
    font-size: 1rem !important;
    cursor: pointer;
    padding: 4px !important;
    border-radius: 4px !important;
    transition: all 0.2s ease !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 24px !important;
    height: 24px !important;
    min-width: 24px !important;
    min-height: 24px !important;
}

.notification-action-btn:hover {
    background-color: var(--hover-bg) !important;
    transform: scale(1.1) !important;
}

.notification-action-btn.mark-read-btn {
    color: #38a169 !important;
}

.notification-action-btn.mark-read-btn:hover {
    background-color: rgba(56, 161, 105, 0.15) !important;
}

.notification-action-btn.dismiss-btn {
    color: #e53e3e !important;
}

.notification-action-btn.dismiss-btn:hover {
    background-color: rgba(229, 62, 62, 0.15) !important;
}

.notification-panel-footer {
    padding: 15px;
    text-align: center;
    border-top: 1px solid var(--border-color);
    background-color: var(--card-bg);
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.view-all-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-accent);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s ease;
    padding: 10px 20px;
    border-radius: 6px;
    background-color: rgba(44, 85, 48, 0.1);
}

.view-all-link:hover {
    background-color: rgba(44, 85, 48, 0.2);
    color: var(--text-accent);
}

.notifications-icon {
    position: relative;
    cursor: pointer;
    font-size: 1.25rem;
    color: #4A5568;
}

.notifications-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: #e53e3e;
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: 0.7rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.notifications-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    width: 350px;
    max-height: 500px;
    overflow-y: auto;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    display: none;
}

.notifications-dropdown.show {
    display: block;
}

.notifications-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid #e2e8f0;
}

.notifications-title {
    font-weight: bold;
    font-size: 1.1rem;
    margin: 0;
}

.mark-all-read {
    font-size: 0.8rem;
    color: #4299e1;
    cursor: pointer;
    background: none;
    border: none;
    padding: 5px;
    border-radius: 4px;
}

.mark-all-read:hover {
    text-decoration: underline;
    background-color: #ebf8ff;
}

.notifications-body {
    padding: 0;
}

.notification-item {
    padding: 12px 15px;
    border-bottom: 1px solid #e2e8f0;
    cursor: pointer;
    transition: background-color 0.2s;
    display: flex;
    align-items: flex-start;
}

.notification-item:hover {
    background-color: #f7fafc;
}

.notification-item.unread {
    background-color: #ebf8ff;
}

.notification-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #e9d8fd;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    flex-shrink: 0;
    color: #805ad5;
}

.notification-icon.event {
    background-color: #e9d8fd;
    color: #805ad5;
}

.notification-icon.alert {
    background-color: #fed7d7;
    color: #e53e3e;
}

.notification-icon.reminder {
    background-color: #feebc8;
    color: #dd6b20;
}

.notification-icon.confirmation {
    background-color: #c6f6d5;
    color: #38a169;
}

.notification-content {
    flex: 1;
}

.notification-title {
    font-weight: 600;
    font-size: 0.9rem;
    margin: 0 0 4px 0;
    line-height: 1.3;
}

.notification-message {
    font-size: 0.85rem;
    margin: 0 0 6px 0;
    color: #4a5568;
    line-height: 1.4;
}

.notification-time {
    font-size: 0.75rem;
    color: #718096;
    display: flex;
    justify-content: space-between;
}

.notification-item .dismiss-btn {
    opacity: 0;
    transition: opacity 0.2s;
    background: none;
    border: none;
    color: #a0aec0;
    padding: 0;
    margin-left: 8px;
    cursor: pointer;
    font-size: 0.8rem;
}

.notification-item:hover .dismiss-btn {
    opacity: 1;
}

.dismiss-btn:hover {
    color: #e53e3e;
}

.notifications-footer {
    padding: 12px 15px;
    text-align: center;
    border-top: 1px solid #e2e8f0;
}

.view-all-link {
    color: #4299e1;
    text-decoration: none;
    font-size: 0.9rem;
}

.view-all-link:hover {
    text-decoration: underline;
}

.no-notifications {
    padding: 30px 15px;
    text-align: center;
    color: #718096;
    font-size: 0.9rem;
}

/* Preferences section */
.notification-preferences {
    padding: 15px;
    border-top: 1px solid #e2e8f0;
}

.preference-title {
    font-weight: 600;
    margin-bottom: 12px;
    font-size: 0.9rem;
}

.preference-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
    padding: 8px 0;
}

.preference-item label {
    font-size: 0.85rem;
    color: #4a5568;
}

.toggle-group {
    display: flex;
    gap: 10px;
}

.toggle-label {
    font-size: 0.75rem;
    color: #718096;
}

/* Toast/Alert Styling */
.notification-toast {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    padding: 15px;
    max-width: 350px;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(-20px);
}

.notification-toast.show {
    opacity: 1;
    transform: translateY(0);
}

.notification-toast-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
}

.notification-toast-title {
    font-weight: bold;
    margin: 0;
}

.notification-toast-close {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
    color: #a0aec0;
}

.notification-toast-body {
    font-size: 0.9rem;
    color: #4a5568;
}

/* Responsive adjustments */
@media (max-width: 576px) {
    .notifications-dropdown {
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        width: 100%;
        max-height: calc(100vh - 60px);
        border-radius: 0;
    }
} 