.voice-search-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 600px;
    margin: 20px auto;
    padding: 1px 45px;
    border: 1px solid #ccc;
    border-radius: 30px;
    background: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: relative;
    transition: all 0.3s ease;
    z-index: 1;
}

.voice-search-bar.focused {
    z-index: 9999;
}

.voice-search-bar input {
    flex: 1;
    padding: 10px 15px;
    font-size: 16px;
    border: none;
    outline: none;
    border-radius: 30px;
    background: transparent;
}

.search-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border-radius: 0 0 30px 30px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    margin-top: 5px;
    display: none;
    z-index: 1001;
    max-height: 300px;
    overflow-y: auto;
}

.search-suggestions.active {
    display: block;
}

.suggestion-item {
    padding: 10px 20px;
    cursor: pointer;
    transition: background 0.2s ease;
    display: flex;
    align-items: center;
}

.suggestion-item:hover {
    background: #f5f5f5;
}

.suggestion-item .search-icon {
    margin-right: 10px;
    color: #666;
}

.suggestion-item .suggestion-text {
    flex: 1;
}

.suggestion-item .search-count {
    color: #666;
    font-size: 12px;
    margin-left: 10px;
    background: #f0f0f0;
    padding: 2px 8px;
    border-radius: 10px;
}

.mic-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    color: #666;
    transition: color 0.3s ease;
}

.mic-btn:hover {
    color: #000;
}

#voiceOverlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.88);
    color: white;
    z-index: 9999;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-align: center;
}

#voiceOverlay.active {
    display: flex;
}

.mic-anim {
    width: 60px;
    height: 60px;
    margin-bottom: 20px;
    animation: pulse 1.2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 0.6; }
    50% { transform: scale(1.2); opacity: 1; }
    100% { transform: scale(1); opacity: 0.6; }
}

#voiceText {
    font-size: 18px;
    margin-top: 15px;
}

/* Mobile and tablet styles */
@media screen and (max-width: 768px) {
    .voice-search-bar {
        max-width: 90%;
    }
    
    .voice-search-bar.focused {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        margin: 10px !important;
        background: #fff !important;
        box-shadow: 0 4px 10px rgba(0,0,0,0.2) !important;
        z-index: 9999 !important;
    }
    
    .search-suggestions {
        position: fixed !important;
        top: auto !important;
        left: 10px !important;
        right: 10px !important;
        border-radius: 0 0 15px 15px;
        z-index: 9999 !important;
    }
    
    body.search-focused {
        overflow: hidden;
    }
    
    #search-overlay {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0,0,0,0.5);
        z-index: 9998;
    }
    
    /* Ensure Elementor compatibility */
    .elementor-widget-wrap .voice-search-bar,
    .elementor-widget-container .voice-search-bar {
        position: relative;
        z-index: 1;
    }
    
    .elementor-widget-wrap .voice-search-bar.focused,
    .elementor-widget-container .voice-search-bar.focused {
        position: fixed !important;
        z-index: 9999 !important;
    }
    
    .elementor-widget-wrap .search-suggestions,
    .elementor-widget-container .search-suggestions {
        position: absolute;
        z-index: 1001;
    }
    
    .elementor-widget-wrap .search-suggestions.active,
    .elementor-widget-container .search-suggestions.active {
        position: fixed !important;
        z-index: 9999 !important;
    }
}

/* Admin styles */
.wp-list-table .column-search-term {
    width: 40%;
}

.wp-list-table .column-status {
    width: 15%;
}

.wp-list-table .column-date {
    width: 20%;
}

.wp-list-table .column-actions {
    width: 15%;
}

.wp-list-table .row-actions {
    visibility: hidden;
    color: #666;
    font-size: 12px;
    margin-top: 4px;
}

.wp-list-table tr:hover .row-actions {
    visibility: visible;
}

.wp-list-table .row-actions span {
    padding: 0;
}

.wp-list-table .row-actions span:not(:last-child)::after {
    content: " | ";
    padding: 0 3px;
}

.wp-list-table .mark-done {
    background: #2271b1;
    color: white;
    border: none;
    padding: 5px 10px;
    cursor: pointer;
    border-radius: 3px;
}

.wp-list-table .mark-done:hover {
    background: #135e96;
}

.wp-list-table .status-pending {
    color: #f0b849;
    font-weight: 500;
}

.wp-list-table .status-done {
    color: #46b450;
    font-weight: 500;
}

.wp-list-table .delete-search {
    color: #dc3232;
    text-decoration: none;
}

.wp-list-table .delete-search:hover {
    color: #b32d2e;
}

.wp-list-table .edit-search {
    color: #2271b1;
    text-decoration: none;
}

.wp-list-table .edit-search:hover {
    color: #135e96;
}

/* Bulk actions */
.tablenav.top {
    margin: 6px 0 4px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.tablenav-pages {
    float: right;
    margin: 0 0 9px;
}

.tablenav-pages .page-numbers {
    display: inline-block;
    min-width: 30px;
    height: 30px;
    margin: 0 4px 0 0;
    padding: 0 4px;
    font-size: 16px;
    line-height: 1.625;
    text-align: center;
    text-decoration: none;
    border-radius: 3px;
    border: 1px solid #2271b1;
    color: #2271b1;
}

.tablenav-pages .page-numbers.current {
    background: #2271b1;
    color: #fff;
    border-color: #2271b1;
}

.tablenav-pages .page-numbers:hover {
    background: #f6f7f7;
    border-color: #0a4b78;
    color: #0a4b78;
}

.tablenav-pages .page-numbers.current:hover {
    background: #2271b1;
    color: #fff;
}

/* Checkbox column */
.check-column {
    width: 2.2em;
    text-align: center;
    vertical-align: top;
}

.check-column input[type="checkbox"] {
    margin: 0;
    vertical-align: middle;
}

/* Empty state */
.wp-list-table td[colspan="5"] {
    text-align: center;
    padding: 20px;
    color: #666;
    font-style: italic;
} 