/* Notification Dropdown Styles */
.notification-dropdown {
    width: 350px;
    max-width: 90vw;
    padding: 0;
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
    border: none;
    border-radius: 8px;
}

.notification-header {
    padding: 15px 20px 10px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8f9fa;
    border-radius: 8px 8px 0 0;
}

.notification-header h6 {
    margin: 0;
    font-weight: 600;
    color: #333;
}

/* Notification Body - Scrollable Container */
.notification-body {
    max-height: 350px;
    overflow-y: auto;
    min-height: 100px;
    position: relative;
}

/* Custom Scrollbar Styling */
.notification-body::-webkit-scrollbar {
    width: 8px;
}

.notification-body::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.notification-body::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

.notification-body::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

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

.notification-item {
    padding: 15px 20px;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    transition: background-color 0.3s ease;
    position: relative;
}

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

.notification-item.unread {
    background-color: #fff3cd;
    border-left: 4px solid #ffc107;
}

.notification-item.unread:before {
    content: '';
    position: absolute;
    top: 50%;
    right: 15px;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    background: #007bff;
    border-radius: 50%;
}

.notification-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    font-size: 18px;
    color: white;
}

.notification-icon.notice { background: #17a2b8; }
.notification-icon.event { background: #28a745; }
.notification-icon.fee { background: #dc3545; }
.notification-icon.exam { background: #fd7e14; }
.notification-icon.assignment { background: #6f42c1; }
.notification-icon.holiday { background: #20c997; }
.notification-icon.leave { background: #6c757d; }
.notification-icon.attendance { background: #e83e8c; }
.notification-icon.grade { background: #007bff; }

.notification-content {
    flex: 1;
}

.notification-title {
    font-weight: 600;
    color: #333;
    font-size: 14px;
    line-height: 1.4;
    margin-bottom: 4px;
}

.notification-message {
    color: #666;
    font-size: 13px;
    line-height: 1.4;
    margin-bottom: 4px;
}

.notification-time {
    color: #999;
    font-size: 12px;
}

.notification-footer {
    padding: 12px 20px;
    text-align: center;
    border-top: 1px solid #eee;
    background: #f8f9fa;
    border-radius: 0 0 8px 8px;
}

.notification-footer a {
    color: #007bff;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
}

.notification-footer a:hover {
    text-decoration: underline;
}

/* Notification Badge */
#notification-count {
    position: absolute;
    top: -8px;
    right: -8px;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: bold;
    background: #dc3545;
    color: white;
    border: 2px solid white;
}

/* Loading and Empty States */
.notification-loading,
.notification-empty {
    padding: 30px 20px;
    text-align: center;
    color: #666;
}

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

.notification-loading i {
    font-size: 20px;
    margin-bottom: 10px;
}

/* Animation for new notifications */
@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.notification-item.new {
    animation: slideIn 0.3s ease-out;
}

/* Responsive Design */
@media (max-width: 768px) {
    .notification-dropdown {
        width: 300px;
        right: 0 !important;
        left: auto !important;
    }
    
    .notification-item {
        padding: 12px 15px;
    }
    
    .notification-header {
        padding: 12px 15px 8px;
    }
    
    .notification-footer {
        padding: 10px 15px;
    }
}

/* Toast Notification Styles */
.toast-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    min-width: 300px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
    transform: translateX(100%);
    transition: transform 0.3s ease;
}

.toast-notification.show {
    transform: translateX(0);
}

.toast-notification .toast-header {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    border-bottom: 1px solid #eee;
}

.toast-notification .toast-body {
    padding: 15px;
}

.toast-notification .toast-close {
    background: none;
    border: none;
    font-size: 18px;
    color: #999;
    cursor: pointer;
    margin-left: auto;
}

.toast-notification .toast-close:hover {
    color: #666;
}
