/* ui/styles.css */
.pw-hidden {
    display: none !important;
}

/* Highlights */
.pw-hover {
    outline: 2px dashed #4da6ff !important;
    background-color: rgba(77, 166, 255, 0.15) !important;
    cursor: crosshair !important;
}

.pw-selected {
    outline: 2px solid #09ff00 !important;
    background-color: rgba(0, 255, 157, 0.2) !important;
    box-shadow: 0 0 10px rgba(0, 255, 157, 0.3) !important;
}

.pw-predicted {
    outline: 2px dashed #a855f7 !important;
    background-color: rgba(168, 85, 247, 0.15) !important;
}

/* Container */
#pw-ui {
    position: fixed !important;
    top: 20px !important;
    right: 20px !important;
    width: 340px !important;
    background: rgba(20, 20, 23, 0.95) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 12px !important;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5) !important;
    z-index: 2147483647 !important;
    font-family: system-ui, -apple-system, sans-serif !important;
    color: #fff !important;
    backdrop-filter: blur(20px) !important;
}

#pw-ui-header {
    padding: 14px 16px !important;
    background: rgba(255, 255, 255, 0.03) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
    cursor: grab !important;
    display: flex !important;
    justify-content: space-between !important;
}

#pw-ui-header:active {
    cursor: grabbing !important;
}

#pw-ui h2 {
    margin: 0 !important;
    font-size: 14px !important;
    color: #888 !important;
}

#pw-category-name {
    color: #fff !important;
    margin-left: 8px !important;
}

#pw-ui-body {
    padding: 16px !important;
}

.pw-stat-row {
    display: flex !important;
    justify-content: space-between !important;
    margin-bottom: 12px !important;
    font-size: 13px !important;
    color: #aaa !important;
}

#pw-count-badge {
    color: #00ff9d !important;
    background: rgba(0, 255, 157, 0.1) !important;
    padding: 2px 6px !important;
    border-radius: 4px;
}

#pw-predicted-badge {
    color: #a855f7 !important;
    background: rgba(168, 85, 247, 0.1) !important;
    padding: 2px 6px !important;
    border-radius: 4px;
}

#pw-selector-box {
    background: #000 !important;
    border: 1px solid #333 !important;
    color: #00ff9d !important;
    padding: 10px !important;
    font-family: monospace !important;
    font-size: 11px !important;
    margin-bottom: 16px !important;
    word-break: break-all !important;
    min-height: 40px !important;
    max-height: 80px !important;
    overflow-y: auto !important;
    border-radius: 6px;
}

/* Buttons */
.pw-btn-group {
    display: flex !important;
    gap: 8px !important;
}

.pw-btn-group-top {
    display: flex !important;
    gap: 6px !important;
    margin-bottom: 12px !important;
}

.pw-btn {
    flex: 1 !important;
    padding: 8px 10px !important;
    border: none !important;
    border-radius: 6px !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: 0.2s !important;
    white-space: nowrap !important;
}

.pw-btn:disabled {
    opacity: 0.5 !important;
    cursor: not-allowed !important;
    filter: grayscale(1) !important;
}

.pw-btn:hover:not(:disabled) {
    filter: brightness(1.1) !important;
}

.pw-btn-secondary {
    background: rgba(255, 255, 255, 0.1) !important;
    color: #fff !important;
}

.pw-btn-primary {
    background: #007aff !important;
    color: white !important;
}

.pw-btn-success {
    background: #00b341 !important;
    color: white !important;
}

/* AI Toggle */
.pw-btn-ai {
    background: #a855f7 !important;
    color: white !important;
}

.pw-btn-ai.is-unselect {
    background: transparent !important;
    border: 1px solid #a855f7 !important;
    color: #a855f7 !important;
}

/* Class Toggle */
.pw-btn-smart {
    background: #f59e0b !important;
    color: #000 !important;
}

.pw-btn-smart.is-unselect {
    background: #ef4444 !important;
    color: white !important;
}

/* Red for unselect */

.pw-hint {
    text-align: center !important;
    margin-top: 12px !important;
    font-size: 10px !important;
    color: #555 !important;
    line-height: 1.4 !important;
}