/* Search Widget CSS for Published XHTML Pages */

/* Overlay */
#search-widget-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Panel */
#search-widget-panel {
    background: #0b1040;
    border: 2px solid #1e88e5;
    border-radius: 8px;
    padding: 20px;
    width: 90%;
    max-width: 700px;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 8px 32px rgba(0,0,0,0.6);
    color: #fff;
    display: flex;
    flex-direction: column;
}

/* Header */
#search-widget-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    border-bottom: 1px solid #334;
    padding-bottom: 10px;
}

#search-widget-header h3 {
    margin: 0;
    color: #1e88e5;
    font-size: 18px;
}

#search-widget-close {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 28px;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    line-height: 28px;
    text-align: center;
}

#search-widget-close:hover {
    color: #ff5555;
}

/* Input */
#search-widget-input-container {
    margin-bottom: 15px;
}

#search-widget-input {
    width: 100%;
    box-sizing: border-box;
    padding: 10px 12px;
    border-radius: 4px;
    border: 1px solid #445;
    background: #0b1040;
    color: #fff;
    font-size: 16px;
}

#search-widget-input:focus {
    outline: none;
    border-color: #1e88e5;
}

/* Status */
#search-widget-status {
    font-size: 12px;
    color: #aaa;
    margin-bottom: 10px;
    min-height: 18px;
}

/* Results */
#search-widget-results {
    flex: 1;
    overflow-y: auto;
    min-height: 200px;
    margin-top: 10px;
    padding-right: 5px;
}

.search-widget-result-item {
    padding: 12px;
    margin-bottom: 10px;
    background: rgba(255,255,255,0.08);
    border-radius: 4px;
    border-left: 3px solid #1e88e5;
    cursor: pointer;
    transition: background 0.2s;
    display: block;
}

.search-widget-result-item:hover {
    background: rgba(30,136,229,0.2);
}

.search-widget-result-title {
    font-weight: bold;
    color: #1e88e5;
    margin-bottom: 6px;
    font-size: 14px;
    line-height: 1.4;
}

.search-widget-result-excerpt {
    font-size: 12px;
    color: #ccc;
    margin-top: 4px;
    line-height: 1.5;
}

.search-widget-highlight {
    background: #1e88e5;
    padding: 2px 4px;
    border-radius: 2px;
}

/* No results message */
.search-widget-no-results {
    text-align: center;
    padding: 20px;
    color: #888;
}

/* Loading indicator */
.search-widget-loading {
    text-align: center;
    padding: 20px;
    color: #1e88e5;
}
