/**
 * NotificationButton Component Styles
 * 
 * Yellow button styling matching the "Add New Pupil" button colors
 * with flashing animation for unacknowledged notifications.
 */

/* Base notification button styling - yellow/gold theme */
.notification-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 16px;
    background: linear-gradient(135deg, #ffc107 0%, #ff9800 100%);
    color: #000;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(255, 193, 7, 0.3);
    min-width: 48px;
    height: 42px;
}

.notification-btn:hover {
    background: linear-gradient(135deg, #ffca28 0%, #ffa726 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 193, 7, 0.4);
}

.notification-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(255, 193, 7, 0.3);
}

.notification-btn:focus {
    outline: 2px solid #ff9800;
    outline-offset: 2px;
}

/* Notification icon */
.notification-icon {
    font-size: 18px;
    line-height: 1;
}

/* Badge for unread count */
.notification-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    background: #ec5f59;
    color: white;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(232, 114, 106, 0.5);
    animation: badge-pulse 2s ease-in-out infinite;
}

/* Flashing animation for button when there are unread notifications */
.notification-btn-flashing {
    animation: notification-flash 2s ease-in-out infinite;
}

/* Keyframes for slow flashing effect */
@keyframes notification-flash {
    0%, 100% {
        background: linear-gradient(135deg, #ffc107 0%, #ff9800 100%);
        box-shadow: 0 2px 8px rgba(255, 193, 7, 0.3);
    }
    50% {
        background: linear-gradient(135deg, #ffeb3b 0%, #ffc107 100%);
        box-shadow: 0 4px 16px rgba(255, 235, 59, 0.6);
    }
}

/* Badge pulse animation */
@keyframes badge-pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .notification-btn {
        padding: 8px 12px;
        min-width: 40px;
        height: 38px;
    }
    
    .notification-icon {
        font-size: 16px;
    }
    
    .notification-badge {
        min-width: 18px;
        height: 18px;
        font-size: 10px;
        top: -5px;
        right: -5px;
    }
}

@media (max-width: 576px) {
    .notification-btn {
        padding: 4px 8px;
        min-width: 28px;
        height: 28px;
        border-radius: 5px;
    }
    
    .notification-icon {
        font-size: 12px;
    }
    
    .notification-badge {
        min-width: 14px;
        height: 14px;
        font-size: 8px;
        top: -4px;
        right: -4px;
        padding: 0 3px;
    }
}
