/* Scoped CSS for 6G TDoc Search - All styles prefixed with tdoc-search- */

.tdoc-search-container {
    margin: 20px 0;
    font-family: Verdana, Arial, sans-serif;
    max-width: 800px;
}

.tdoc-search-form {
    background-color: #f5f5f5;
    padding: 20px;
    border-radius: 5px;
    border: 1px solid #ddd;
}

.tdoc-search-row {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.tdoc-search-row:last-child {
    margin-bottom: 0;
    justify-content: center;
}

.tdoc-search-label {
    min-width: 120px;
    font-size: 12pt;
    font-weight: bold;
    color: #333;
    margin-right: 10px;
}

.tdoc-search-input-wrapper {
    flex: 1;
    min-width: 200px;
    display: flex;
    align-items: center;
    gap: 8px;
    max-width: 100%;
}

.tdoc-search-input {
    flex: 1;
    padding: 8px 12px;
    font-size: 11pt;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-family: Verdana, Arial, sans-serif;
}

.tdoc-search-input:focus {
    outline: none;
    border-color: #4a90e2;
    box-shadow: 0 0 5px rgba(74, 144, 226, 0.3);
}

.tdoc-clear-button {
    padding: 8px 16px;
    font-size: 10pt;
    font-family: Verdana, Arial, sans-serif;
    background-color: #6c757d;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    white-space: nowrap;
    transition: background-color 0.3s;
    flex-shrink: 0;
}

.tdoc-clear-button:hover {
    background-color: #5a6268;
}

.tdoc-clear-button:active {
    background-color: #484f54;
}

.tdoc-search-select {
    flex: 1;
    min-width: 200px;
    padding: 8px 12px;
    font-size: 11pt;
    border: 1px solid #ccc;
    border-radius: 4px;
    background-color: white;
    font-family: Verdana, Arial, sans-serif;
    cursor: pointer;
}

.tdoc-search-select[multiple] {
    height: 120px;
    overflow-y: auto;
}

.tdoc-search-select[multiple] option {
    padding: 3px 0;
}

.tdoc-search-select:focus {
    outline: none;
    border-color: #4a90e2;
    box-shadow: 0 0 5px rgba(74, 144, 226, 0.3);
}

.tdoc-filter-dropdown {
    flex: 1;
    min-width: 200px;
    position: relative;
    font-family: Verdana, Arial, sans-serif;
}

.tdoc-filter-toggle {
    width: 100%;
    padding: 8px 12px;
    font-size: 11pt;
    border: 1px solid #ccc;
    border-radius: 4px;
    background-color: white;
    color: #333;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-align: left;
    font-family: Verdana, Arial, sans-serif;
}

.tdoc-filter-toggle:focus {
    outline: none;
    border-color: #4a90e2;
    box-shadow: 0 0 5px rgba(74, 144, 226, 0.3);
}

.tdoc-filter-summary {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    padding-right: 10px;
}

.tdoc-filter-arrow {
    font-size: 9pt;
    color: #666;
    flex-shrink: 0;
}

.tdoc-filter-menu {
    display: none;
    position: absolute;
    top: calc(100% + 2px);
    left: 0;
    right: 0;
    z-index: 20;
    max-height: 240px;
    overflow-y: auto;
    background-color: white;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    padding: 6px 0;
}

.tdoc-filter-open .tdoc-filter-menu {
    display: block;
}

.tdoc-filter-option {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 6px 10px;
    font-size: 10pt;
    line-height: 1.35;
    color: #333;
    cursor: pointer;
}

.tdoc-filter-option:hover {
    background-color: #f5f8fc;
}

.tdoc-filter-option input {
    margin-top: 2px;
    flex-shrink: 0;
}

.tdoc-search-button {
    padding: 10px 20px;
    font-size: 11pt;
    font-family: Verdana, Arial, sans-serif;
    background-color: #4a90e2;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin-right: 10px;
    transition: background-color 0.3s;
}

.tdoc-search-button:hover {
    background-color: #357abd;
}

.tdoc-search-button:active {
    background-color: #2a5f8f;
}

.tdoc-reset-button {
    background-color: #6c757d;
}

.tdoc-reset-button:hover {
    background-color: #5a6268;
}

.tdoc-reset-button:active {
    background-color: #484f54;
}

.tdoc-search-message {
    font-size: 11pt;
    color: #666;
    margin: 10px 0;
    font-weight: bold;
}

.tdoc-result-header {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.tdoc-export-button {
    padding: 6px 14px;
    font-size: 10pt;
    margin-right: 0;
    background-color: #2e8b57;
}

.tdoc-export-button:hover {
    background-color: #26734a;
}

.tdoc-export-button:active {
    background-color: #1e5b3a;
}

.tdoc-search-error {
    color: #d32f2f;
    font-size: 11pt;
    padding: 10px;
    background-color: #ffebee;
    border: 1px solid #ffcdd2;
    border-radius: 4px;
}

.tdoc-results-list {
    margin-top: 20px;
}

.tdoc-result-item {
    background-color: #ffffff;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 15px;
    margin-bottom: 15px;
    transition: box-shadow 0.3s;
}

.tdoc-result-item:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.tdoc-result-title {
    margin-bottom: 10px;
}

.tdoc-result-link {
    font-size: 12pt;
    font-weight: bold;
    color: #1976d2;
    text-decoration: none;
}

.tdoc-result-link:hover {
    text-decoration: underline;
    color: #1565c0;
}

.tdoc-result-link:visited {
    color: #7b1fa2;
}

.tdoc-result-details {
    font-size: 10pt;
    margin: 5px 0;
    color: #555;
    line-height: 1.5;
}

.tdoc-result-label {
    font-weight: bold;
    color: #333;
    margin-right: 5px;
}

.tdoc-result-value {
    color: #666;
}

/* Responsive design for smaller screens */
@media (max-width: 768px) {
    .tdoc-search-row {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .tdoc-search-label {
        min-width: auto;
        margin-bottom: 5px;
        margin-right: 0;
    }
    
    .tdoc-search-input-wrapper {
        width: 100%;
        min-width: auto;
    }
    
    .tdoc-search-input,
    .tdoc-search-select {
        width: 100%;
        min-width: auto;
    }

    .tdoc-filter-dropdown {
        width: 100%;
        min-width: auto;
    }
    
    .tdoc-clear-button {
        width: auto;
        flex-shrink: 0;
    }
    
    .tdoc-search-button {
        width: 100%;
        margin-bottom: 10px;
        margin-right: 0;
    }

    .tdoc-export-button {
        width: auto;
        margin-bottom: 0;
    }
}

