/* Card styles */
.card {
    border: none;
    box-shadow: var(--shadow-sm);
    margin-bottom: 1rem;
    background-color: var(--background);
}

.card-body {
    padding: 1.5rem;
}

.hover-card {
    transition: var(--transition-base);
}

.hover-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

/* Message styles */
.message-thread {
    padding: 15px;
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
    transition: var(--transition-base);
}

.message-thread:hover {
    background-color: var(--background-alt);
}

.message-thread.unread {
    background-color: rgba(38, 166, 154, 0.1);
}

.message-sender {
    font-weight: 600;
    color: var(--text-primary);
}

/* Tag styles */
.message-tags {
    margin-top: 8px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.tag {
    padding: 2px 8px;
    border-radius: var(--border-radius-lg);
    background-color: var(--background-alt);
    color: var(--primary);
    font-size: 0.85em;
}

/* Profile styles */
.ally-profile-image {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    background-color: var(--background-alt);
}

.ally-name {
    font-weight: 500;
    color: var(--text-primary);
}

.ally-status {
    font-size: 0.85em;
    color: var(--text-secondary);
}

/* Utility classes */
.text-truncate {
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.min-width-0 {
    min-width: 0;
}

/* User email/account styles */
.user-email,
.navbar-nav .nav-link.dropdown-toggle {
    color: var(--text-primary) !important;
}

.user-email:hover,
.navbar-nav .nav-link.dropdown-toggle:hover {
    color: var(--primary) !important;
}

/* Badge styles */
.badge.bg-primary {
    background-color: var(--primary) !important;
}

/* Other badge variations if needed */
.badge.bg-secondary {
    background-color: var(--text-secondary) !important;
}

.badge.bg-success {
    background-color: var(--success) !important;
}

.input-group {
    position: relative;
}

.suggestions-container {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #ddd;
    border-top: none;
    border-radius: 0 0 4px 4px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.suggestion-item {
    padding: 8px 12px;
    cursor: pointer;
}

.suggestion-item:hover {
    background-color: #f8f9fa;
}

.search-form {
    position: relative;
}



.input-group .btn-outline-secondary {
    border-left: 0;
}

/* If you need to adjust the advanced search button */
.input-group .btn-outline-secondary:hover {
    background-color: #f8f9fa;
}

/* Add only these minimal styles to your search.css */
.search-form .input-group {
    /* Just structure, no colors */
    position: relative;
}

.search-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 1000;
    /* Use your existing card/component styles for appearance */
}

.suggestion-group {
    padding: 8px 0;
}

/* Add to your existing navigation styles */
.input-group .form-select {
    border-right: 0;
    background-color: #fff;
}

.input-group .form-control:focus + .btn-outline-primary {
    border-color: var(--primary);  /* Use your existing primary color variable */
}

#quickSearchResults {
    margin-top: 2px;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    max-height: 400px;
    overflow-y: auto;
    width: 100%;
    position: absolute;
    z-index: 1000;
}

.suggestion-group {
    border-bottom: 1px solid #e2e8f0;
}

.suggestion-group:last-child {
    border-bottom: none;
}

.suggestion-header {
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    color: #64748b;
    font-weight: 600;
    background-color: #f8fafc;
    display: flex;
    align-items: center;
}

.suggestion-item {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    color: #334155;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
}

.suggestion-item:hover {
    background-color: #f1f5f9;
    color: var(--primary);
}

.suggestion-item i {
    margin-right: 0.75rem;
    color: #64748b;
    font-size: 1rem;
}

.suggestion-item span {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.no-results {
    padding: 1rem;
    text-align: center;
    color: #64748b;
    font-style: italic;
}

/* Make sure the search input's parent has positioning */
.category-group {
    margin-bottom: 0.5rem;
}

.input-group {
    position: relative;
}

.category-toggle {
    background: none;
    border: none;
    padding: 0;
    width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.subcategories {
    margin-left: 1.5rem;
    padding-top: 0.5rem;
    transition: all 0.3s ease-in-out;
}

.form-check-label {
    transition: all 0.2s ease;
}



.category-group .subcategories {
    display: none;
    margin-left: 1.5rem;
    margin-top: 0.5rem;
}

.category-toggle:focus {
    outline: none;
}

.category-group .form-check {
    margin-bottom: 0.5rem;
}

/* Selected category highlighting */
.form-check-input:checked + .form-check-label {
    color: var(--primary);
    font-weight: 500;
}

/* Platform modal styles */
.platform-list {
    max-height: 400px;
    overflow-y: auto;
}

.show-all-platforms {
    font-size: 0.9em;
    text-decoration: none;
}

.show-all-platforms:hover {
    text-decoration: underline;
}

.platform-section-header {
    color: var(--text-secondary);
}  

.platforms-container {
    position: relative;
}

.additional-platforms {
    margin-top: 0.5rem;
    transition: all 0.3s ease;
}

.see-more-platforms {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9em;
}

.see-more-platforms:hover {
    color: var(--primary);
    text-decoration: none;
}

.platform-item {
    margin-bottom: 0.5rem;
}

/* Platform modal styles */

/* Filter dropdowns */
.filter-section {
    margin-bottom: 2rem;
}

.filter-dropdown {
    min-width: 200px;
}

/* Contract card styles */
.contract-card {
    transition: transform 0.2s;
    border: none;
    background: white;
}

.contract-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.contract-image {
    height: 200px;
    object-fit: cover;
    border-radius: 8px 8px 0 0;
}

.ally-profile {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 10px 0;
}

.ally-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.contract-badges {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.status-badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
}

/* specific page search box */
.search-container {
    max-width: 600px;
    margin: 0 auto;
}

.search-container .input-group {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.search-container .form-control {
    border: 1px solid #ddd;
    padding: 12px 20px;
    font-size: 16px;
}

.search-container .form-control:focus {
    box-shadow: none;
    border-color: #0d6efd;
}

.search-container .btn {
    padding: 0 25px;
}