.pds-project-search {
    position: relative;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
}

/* Tabs container */
.pds-tabs {
    display: flex;
    margin-bottom: -1px;
    border-radius: 8px 8px 0 0;
    overflow: hidden;
    background: var(--pds-bg-primary);
    transition: background var(--pds-transition-base);
}

/* Individual tab */
.pds-tab {
    flex: 1;
    padding: 12px;
    text-align: center;
    cursor: pointer;
    border: 1px solid var(--pds-border-medium);
    border-bottom: none;
    background: var(--pds-bg-tertiary);
    color: var(--pds-text-primary);
    font-weight: bold;
    transition: all var(--pds-transition-base);
}

.pds-tab.active {
    background: var(--pds-brand-blue);
    color: #ffffff;
    border-bottom: 1px solid var(--pds-brand-blue);
}

.pds-tab:hover {
    background: var(--pds-brand-blue-hover);
    color: #ffffff;
}

/* Search input */
#pds-search-input {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--pds-border-medium);
    border-radius: 0 0 8px 8px;
    font-size: 16px;
    background: var(--pds-bg-primary);
    color: var(--pds-text-primary);
    box-shadow: var(--pds-shadow-sm);
    box-sizing: border-box;
    transition: all var(--pds-transition-base);
}

#pds-search-input:focus {
    outline: none;
    border-color: var(--pds-brand-blue);
}

/* Search input placeholder text */
#pds-search-input::placeholder {
    color: var(--pds-text-secondary);
    opacity: 1;
}

#pds-search-input::-webkit-input-placeholder {
    color: var(--pds-text-secondary);
    opacity: 1;
}

#pds-search-input::-moz-placeholder {
    color: var(--pds-text-secondary);
    opacity: 1;
}

#pds-search-input:-ms-input-placeholder {
    color: var(--pds-text-secondary);
    opacity: 1;
}

/* Search results container */
#pds-search-results {
    position: absolute;
    width: 100%;
    max-height: 400px;
    overflow-y: auto;
    background: var(--pds-bg-primary);
    z-index: 9999;
    border: 1px solid var(--pds-border-medium);
    border-top: none;
    border-radius: 0 0 8px 8px;
    box-shadow: var(--pds-shadow-md);
    transition: background var(--pds-transition-base), border-color var(--pds-transition-base);
}

/* Search result links */
#pds-search-results a {
    display: block;
    padding: 10px;
    text-decoration: none;
    color: var(--pds-text-primary);
    border-bottom: 1px solid var(--pds-border-light);
    transition: all var(--pds-transition-base);
}

#pds-search-results a:hover {
    background-color: var(--pds-bg-secondary);
    color: var(--pds-brand-blue);
}

/* Highlight matching text */
.highlight {
    background-color: var(--pds-highlight-bg);
    color: var(--pds-highlight-text);
    font-weight: bold;
}

/* Loading state */
.searching {
    padding: 20px;
    text-align: center;
    color: var(--pds-text-secondary);
    font-style: italic;
}

.searching:before {
    content: "";
    display: inline-block;
    width: 16px;
    height: 16px;
    margin-right: 8px;
    border: 2px solid var(--pds-border-light);
    border-top-color: var(--pds-brand-blue);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    vertical-align: middle;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* No results message */
.no-results {
    padding: 20px;
    text-align: center;
    color: var(--pds-text-tertiary);
}

/* Login/Logout Button Styles */

/* Login state container */
.pds-login-container {
    text-align: center;
    padding: 20px 0;
}

/* Login button */
.pds-login-button {
    display: inline-block;
    padding: 14px 40px;
    background: var(--pds-brand-blue);
    color: #ffffff;
    text-decoration: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    transition: all var(--pds-transition-base);
    box-shadow: var(--pds-shadow-md);
}

.pds-login-button:hover {
    background: var(--pds-brand-blue-hover);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: var(--pds-shadow-lg);
}

/* Logout container */
.pds-logout-container {
    text-align: center;
    margin-top: 15px;
    padding: 10px 0;
}

/* Logout button */
.pds-logout-button {
    display: inline-block;
    padding: 8px 24px;
    background: var(--pds-bg-tertiary);
    color: var(--pds-text-primary);
    text-decoration: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    transition: all var(--pds-transition-base);
    border: 1px solid var(--pds-border-medium);
}

.pds-logout-button:hover {
    background: var(--pds-brand-blue);
    color: #ffffff;
    border-color: var(--pds-brand-blue);
}