/* Notification Bell Styles */
.notification-bell {
    position: relative;
    display: inline-block;
}

.notification-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: rgb(var(--danger));
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: 11px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    min-width: 18px;
}

.notification-panel {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 8px;
    width: 320px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
    z-index: 50;
    max-height: 400px;
    overflow: hidden;
}

.notification-item {
    display: flex;
    padding: 12px 16px;
    border-bottom: 1px solid #f3f4f6;
    text-decoration: none;
    color: inherit;
    transition: background-color 0.2s;
}

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

.notification-item:last-child {
    border-bottom: none;
}

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

/* Bid Generation Modal Styles */
.bid-generation-modal .modal-content {
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
}

.bid-checklist-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    margin-bottom: 8px;
    transition: all 0.2s;
}

.bid-checklist-item.available {
    background-color: #f0fdf4;
    border-color: #bbf7d0;
}

.bid-checklist-item.missing {
    background-color: #fef2f2;
    border-color: #fecaca;
}

.bid-questionnaire textarea,
.bid-questionnaire input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.2s;
}

.bid-questionnaire textarea:focus,
.bid-questionnaire input:focus {
    outline: none;
    border-color: rgb(var(--primary));
    box-shadow: 0 0 0 3px rgba(var(--primary), 0.1);
}

.bid-declarations label {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    cursor: pointer;
    padding: 8px 0;
}

.bid-declarations input[type="checkbox"] {
    margin-top: 2px;
    flex-shrink: 0;
}

/* User Menu Dropdown */
.user-menu-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 8px;
    width: 200px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
    z-index: 50;
    overflow: hidden;
}

.user-menu-item {
    display: block;
    width: 100%;
    padding: 12px 16px;
    text-align: left;
    color: #374151;
    text-decoration: none;
    transition: background-color 0.2s;
    border: none;
    background: none;
    font-size: 14px;
}

.user-menu-item:hover {
    background-color: #f9fafb;
    color: rgb(var(--primary));
}

.user-menu-divider {
    height: 1px;
    background-color: #e5e7eb;
    margin: 4px 0;
}

/* Header User Info */
.header-user-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgb(var(--primary));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
}

.header-user-name {
    font-weight: 500;
    color: #374151;
    font-size: 14px;
}

/* Mobile notification styles */
@media (max-width: 768px) {
    .notification-panel {
        width: 280px;
        right: -20px;
    }
    
    .user-menu-dropdown {
        width: 180px;
        right: -10px;
    }
    
    .bid-generation-modal .modal-content {
        max-width: 95vw;
        margin: 10px;
    }
}

/* Animation for notification bell */
@keyframes bellRing {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(15deg); }
    75% { transform: rotate(-15deg); }
}

.notification-bell.has-new {
    animation: bellRing 0.5s ease-in-out;
}

/* Pulse animation for notification count */
@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.notification-count.new {
    animation: pulse 1s ease-in-out infinite;
}