/* Upwork Bullet Points System - Dropdown Menu Styles */

/* Bullet Button */
.upw-bullet-btn {
    position: relative !important;
}

.upw-bullet-btn-icon {
    font-size: 18px !important;
    font-weight: bold !important;
    line-height: 1 !important;
}

.upw-bullet-btn.active {
    background: #10b981 !important;
    border-color: #059669 !important;
    color: white !important;
}

.upw-bullet-btn.active .upw-bullet-btn-icon {
    color: white !important;
}

/* Bullet Dropdown Menu */
.upw-bullet-menu {
    position: absolute !important;
    z-index: 1000 !important;
    background: white !important;
    border: 2px solid #e5e7eb !important;
    border-radius: 12px !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15) !important;
    min-width: 220px !important;
    opacity: 0 !important;
    transform: translateY(-10px) scale(0.95) !important;
    pointer-events: none !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.upw-bullet-menu-open {
    opacity: 1 !important;
    transform: translateY(0) scale(1) !important;
    pointer-events: all !important;
}

/* Menu Header */
.upw-bullet-menu-header {
    padding: 12px 16px !important;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    border-radius: 10px 10px 0 0 !important;
    color: white !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    text-align: center !important;
    letter-spacing: 0.3px !important;
}

/* Menu Items Container */
.upw-bullet-menu-items {
    padding: 8px !important;
    max-height: 320px !important;
    overflow-y: auto !important;
}

/* Menu Footer */
.upw-bullet-menu-footer {
    padding: 8px !important;
    border-top: 1px solid #f3f4f6 !important;
    background: #f9fafb !important;
    border-radius: 0 0 10px 10px !important;
}

.upw-bullet-menu-footer .upw-bullet-menu-item {
    margin-bottom: 0 !important;
    background: white !important;
    border: 1px solid #e5e7eb !important;
}

.upw-bullet-menu-footer .upw-bullet-menu-item:hover {
    background: #fef2f2 !important;
    border-color: #fecaca !important;
}

.upw-bullet-menu-footer .upw-bullet-menu-item:hover .upw-bullet-menu-icon {
    background: #ef4444 !important;
    color: white !important;
}

.upw-bullet-menu-footer .upw-bullet-menu-item:hover .upw-bullet-menu-name {
    color: #dc2626 !important;
}

/* Individual Menu Item */
.upw-bullet-menu-item {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    width: 100% !important;
    padding: 10px 12px !important;
    border: none !important;
    background: white !important;
    border-radius: 8px !important;
    cursor: pointer !important;
    transition: all 0.15s ease !important;
    text-align: left !important;
    margin-bottom: 4px !important;
}

.upw-bullet-menu-item:last-child {
    margin-bottom: 0 !important;
}

.upw-bullet-menu-item:hover {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%) !important;
    transform: translateX(4px) !important;
}

.upw-bullet-menu-item:active {
    transform: translateX(2px) scale(0.98) !important;
}

/* Bullet Icon in Menu */
.upw-bullet-menu-icon {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 28px !important;
    height: 28px !important;
    background: #f3f4f6 !important;
    border-radius: 6px !important;
    font-size: 16px !important;
    font-weight: bold !important;
    color: #374151 !important;
    transition: all 0.15s ease !important;
}

.upw-bullet-menu-item:hover .upw-bullet-menu-icon {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    color: white !important;
    transform: scale(1.1) !important;
}

/* Bullet Name in Menu */
.upw-bullet-menu-name {
    font-size: 13px !important;
    font-weight: 500 !important;
    color: #374151 !important;
    flex: 1 !important;
}

.upw-bullet-menu-item:hover .upw-bullet-menu-name {
    color: #667eea !important;
    font-weight: 600 !important;
}

/* Custom Scrollbar for Menu */
.upw-bullet-menu-items::-webkit-scrollbar {
    width: 6px !important;
}

.upw-bullet-menu-items::-webkit-scrollbar-track {
    background: #f3f4f6 !important;
    border-radius: 3px !important;
}

.upw-bullet-menu-items::-webkit-scrollbar-thumb {
    background: #d1d5db !important;
    border-radius: 3px !important;
}

.upw-bullet-menu-items::-webkit-scrollbar-thumb:hover {
    background: #9ca3af !important;
}

/* Animation for menu appearance */
@keyframes upw-bullet-menu-slide {
    from {
        opacity: 0 !important;
        transform: translateY(-10px) scale(0.95) !important;
    }
    to {
        opacity: 1 !important;
        transform: translateY(0) scale(1) !important;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .upw-bullet-menu {
        min-width: 200px !important;
        max-width: 90vw !important;
    }
    
    .upw-bullet-menu-items {
        max-height: 260px !important;
    }
    
    .upw-bullet-menu-item {
        padding: 8px 10px !important;
    }
    
    .upw-bullet-menu-icon {
        min-width: 26px !important;
        height: 26px !important;
        font-size: 14px !important;
    }
    
    .upw-bullet-menu-name {
        font-size: 12px !important;
    }
}

@media (max-width: 480px) {
    .upw-bullet-menu {
        min-width: 180px !important;
    }
    
    .upw-bullet-menu-header {
        padding: 10px 12px !important;
        font-size: 12px !important;
    }
    
    .upw-bullet-menu-items {
        padding: 6px !important;
        max-height: 220px !important;
    }
}

/* Accessibility */
.upw-bullet-menu-item:focus {
    outline: 2px solid #667eea !important;
    outline-offset: -2px !important;
}

/* Prevent text selection */
.upw-bullet-menu-item,
.upw-bullet-menu-header {
    user-select: none !important;
    -webkit-user-select: none !important;
    -moz-user-select: none !important;
}

/* Special styling for number and letter items */
.upw-bullet-menu-item[data-style="number"] .upw-bullet-menu-icon,
.upw-bullet-menu-item[data-style="letter"] .upw-bullet-menu-icon {
    font-family: 'Courier New', monospace !important;
    font-size: 14px !important;
    font-weight: 600 !important;
}

/* Active bullet indicator on button */
.upw-bullet-btn.active::after {
    content: '' !important;
    position: absolute !important;
    bottom: -2px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: 6px !important;
    height: 6px !important;
    background: #10b981 !important;
    border-radius: 50% !important;
    animation: pulse-bullet 1.5s ease-in-out infinite !important;
}

@keyframes pulse-bullet {
    0%, 100% { opacity: 1; transform: translateX(-50%) scale(1); }
    50% { opacity: 0.5; transform: translateX(-50%) scale(1.2); }
}