/* Notification System Styles */

/* Admin Notification Bell */
.notification-bell {
    position: relative;
    border: none !important;
    background: transparent !important;
    color: white !important;
    transition: all 0.3s ease;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.notification-bell:hover {
    background: rgba(255, 255, 255, 0.15) !important;
    color: white !important;
    transform: scale(1.1);
}

.notification-bell.active {
    background: rgba(255, 255, 255, 0.2) !important;
    color: #ffc107 !important;
    transform: scale(1.05);
}

.notification-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #dc3545;
    color: white;
    border-radius: 50%;
    min-width: 18px;
    height: 18px;
    font-size: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

/* Candidate Notification Bell */
.notification-bell-candidate {
    position: relative;
    border: none !important;
    background: transparent !important;
    color: var(--nav-color) !important;
    padding: 8px 12px;
    text-decoration: none !important;
    transition: all 0.3s ease;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.notification-bell-candidate:hover {
    color: var(--accent-color) !important;
    background: rgba(0, 123, 191, 0.1) !important;
    border-radius: 8px;
    transform: scale(1.05);
}

.notification-bell-candidate.active {
    color: var(--accent-color) !important;
    background: rgba(0, 123, 191, 0.15) !important;
    border-radius: 8px;
    transform: scale(1.02);
}

.notification-badge-candidate {
    position: absolute;
    top: 2px;
    right: 5px;
    background: #dc3545;
    color: white;
    border-radius: 50%;
    min-width: 16px;
    height: 16px;
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.notification-link {
    position: relative;
}

.notification-dropdown {
    position: relative;
    display: inline-block;
}

.pulse-animation {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { 
        transform: scale(1); 
    }
    50% { 
        transform: scale(1.1); 
    }
    100% { 
        transform: scale(1); 
    }
}

.notification-dropdown-menu {
    min-width: 380px;
    max-height: 450px;
    overflow-y: auto;
    border: 1px solid #dee2e6;
    border-radius: 12px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.95);
    animation: slideDown 0.3s ease-out;
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    z-index: 1000;
}

.notification-dropdown-menu.show {
    display: block;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInFromLeft {
    from {
        opacity: 0;
        transform: translateX(-100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInFromRight {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.notification-content {
    padding: 16px 20px !important;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    animation: slideInFromLeft 0.5s ease-out;
}

.notification-content:hover {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    transform: translateX(5px);
    border-left: 3px solid #007bff;
}

.notification-content:last-child {
    border-bottom: none;
}

.notification-icon {
    font-size: 1.4em;
    padding: 8px;
    border-radius: 50%;
    background: rgba(0, 123, 191, 0.1);
    transition: all 0.3s ease;
}

.notification-content:hover .notification-icon {
    transform: scale(1.1);
    background: rgba(0, 123, 191, 0.2);
}

.notification-dot {
    width: 10px;
    height: 10px;
    background: linear-gradient(45deg, #007bff, #0056b3);
    border-radius: 50%;
    margin-top: 5px;
    flex-shrink: 0;
    animation: pulse 2s infinite;
    box-shadow: 0 0 10px rgba(0, 123, 191, 0.5);
}

.notification-text h6 {
    font-size: 0.95em;
    margin-bottom: 0.3rem;
    line-height: 1.3;
    font-weight: 600;
    color: #2c3e50;
}

.notification-text p {
    font-size: 0.85em;
    margin-bottom: 0.3rem;
    line-height: 1.4;
    color: #6c757d;
}

.notification-text small {
    color: #adb5bd;
    font-size: 0.75em;
}

.text-truncate {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

/* No notifications state */
.no-notifications {
    text-align: center;
    padding: 30px 20px !important;
    color: #6c757d;
}

.no-notifications i {
    font-size: 2.5em;
    margin-bottom: 15px;
    opacity: 0.5;
}

.no-notifications p {
    margin: 0;
    font-size: 0.9em;
    font-weight: 500;
}

/* Loading state */
.notification-loading {
    text-align: center;
    padding: 20px !important;
}

.notification-loading .spinner-border {
    color: #007bff;
}

/* Header styling */
.notification-header {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: white;
    padding: 15px 20px;
    border-radius: 12px 12px 0 0;
    margin: -1px -1px 0 -1px;
    animation: slideInFromRight 0.5s ease-out;
}

.notification-header h6 {
    margin: 0;
    font-weight: 600;
    font-size: 1em;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .notification-dropdown-menu {
        min-width: 320px;
        margin-right: 10px;
    }
    
    .notification-content {
        padding: 12px 16px !important;
    }
    
    .notification-icon {
        font-size: 1.2em;
        padding: 6px;
    }
}
