/* Modern Search Box Styles */
.search-input {
    width: 100%;
    height: 60px;
    padding: 0 20px 0 60px;
    font-size: 18px;
    font-weight: 500;
    color: #2d3748;
    background: #ffffff;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    outline: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.search-input:focus {
    border-color: #4299e1;
    box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.1), 0 4px 12px rgba(0, 0, 0, 0.1);
    background: #ffffff;
}

.search-input::placeholder {
    color: #a0aec0;
    font-weight: 400;
}

.search-icon {
    position: absolute;
    top: 50%;
    left: 20px;
    transform: translateY(-50%);
    color: #a0aec0;
    pointer-events: none;
    z-index: 10;
    transition: color 0.3s ease;
}

.search-input:focus + .search-icon,
.search-input:not(:placeholder-shown) + .search-icon {
    color: #4299e1;
}

.search-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #ffffff;
    border: 2px solid #e2e8f0;
    border-top: none;
    border-radius: 0 0 12px 12px;
    max-height: 320px;
    overflow-y: auto;
    z-index: 10000;
    display: none;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    margin-top: -2px;
}

.search-dropdown::-webkit-scrollbar {
    width: 6px;
}

.search-dropdown::-webkit-scrollbar-track {
    background: #f7fafc;
}

.search-dropdown::-webkit-scrollbar-thumb {
    background: #cbd5e0;
    border-radius: 3px;
}

.search-dropdown::-webkit-scrollbar-thumb:hover {
    background: #a0aec0;
}

/* Dropdown items */
.search-dropdown .autocomplete-item {
    padding: 16px 20px;
    cursor: pointer;
    border-bottom: 1px solid #f7fafc;
    transition: all 0.2s ease;
    font-size: 16px;
    line-height: 1.4;
}

.search-dropdown .autocomplete-item:hover,
.search-dropdown .autocomplete-item.selected {
    background: #f7fafc;
    border-left: 4px solid #4299e1;
    padding-left: 16px;
}

.search-dropdown .autocomplete-item:last-child {
    border-bottom: none;
    border-radius: 0 0 10px 10px;
}

/* Project-specific styling */
.search-dropdown .project-name {
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 4px;
}

.search-dropdown .issue-subject {
    color: #4a5568;
    font-size: 14px;
}

.search-dropdown .issue-id {
    color: #718096;
    font-size: 12px;
    font-weight: 500;
}

/* Loading state */
.search-input.loading {
    background-image: url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12,1A11,11,0,1,0,23,12,11,11,0,0,0,12,1Zm0,19a8,8,0,1,1,8-8A8,8,0,0,1,12,20Z' opacity='.25'/%3E%3Cpath d='M12,4a8,8,0,0,1,7.89,6.7A1.53,1.53,0,0,0,21.38,12h0a1.5,1.5,0,0,0,1.48-1.75,11,11,0,0,0-21.72,0A1.5,1.5,0,0,0,2.62,12h0a1.53,1.53,0,0,0,1.49-1.3A8,8,0,0,1,12,4Z'%3E%3CanimateTransform attributeName='transform' dur='0.75s' repeatCount='indefinite' type='rotate' values='0 12 12;360 12 12'/%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 20px center;
    background-size: 20px;
}

/* Container styling */
#project-autocomplete-container {
    position: relative;
    max-width: 700px;
    margin: 0 auto;
}

/* Modal adjustments */
.modal-field {
    margin-bottom: 24px;
}

.modal-card {
    padding: 32px;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.modal-header {
    font-size: 24px;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 24px;
    text-align: center;
}

/* Issues list modal styles */
.issues-list {
    max-height: 60vh;
    overflow-y: auto;
}

.issues-list::-webkit-scrollbar {
    width: 8px;
}

.issues-list::-webkit-scrollbar-track {
    background: #f7fafc;
}

.issues-list::-webkit-scrollbar-thumb {
    background: #cbd5e0;
    border-radius: 4px;
}

.issues-list::-webkit-scrollbar-thumb:hover {
    background: #a0aec0;
}
