/* Main container */
.vp-combined-search-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

h3.main-heading{
    text-align: center;
    font-weight: 500;
    font-size: 22px;
    color: #272727;
}
/* Search form */
.vp-combined-search-form {
    margin-bottom: 30px;
}

.vp-combined-search-input-wrapper {
    display: flex;
    gap: 0;
    width: 100%;
}

/* Dropdown */
.vp-combined-search-dropdown {
    position: relative;
}

.vp-search-type-select {
    padding: 14px 18px;
    font-size: 16px;
    border: 1px solid #e0e0e0;
    border-right: none;
    border-radius: 0;
    background: #f9fafb;
    color: #374151;
    font-weight: 600;
    cursor: pointer;
    min-height: 75px;
    min-width: 140px;
    transition: all 0.3s ease;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 20px;
    padding-right: 40px;
}

.vp-search-type-select:focus {
    outline: none;
    border-color: #2a9d54;
    background: white;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 20px;
}

.vp-search-type-select:hover {
    background: white;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 20px;
}

/* Input field */
#vp-combined-search-input {
    flex: 1;
    padding: 14px 18px;
    font-size: 16px;
    border: 1px solid #e0e0e0;
    border-radius: 0;
    min-height: 75px;
    transition: all 0.3s ease;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

#vp-combined-search-input:focus {
    outline: none;
    border-color: #2a9d54;
}

#vp-combined-search-input::placeholder {
    color: #9ca3af;
}

/* Search button */
.vp-combined-search-btn {
    padding: 14px 32px;
    background: #2d2d2d !important;
    color: white !important;
    border: none;
    border-radius: 0 !important;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.vp-combined-search-btn:hover:not(:disabled) {
    background: #1FD18E !important;
}

.vp-combined-search-btn:active:not(:disabled) {
    transform: translateY(0);
}

.vp-combined-search-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Loader spinner */
.vp-combined-loader {
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: vp-combined-spin 0.8s linear infinite;
}

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

/* Results container */
.vp-combined-results-container {
    animation: vp-combined-fadeIn 0.3s ease;
}

@keyframes vp-combined-fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Success results */
.vp-combined-results-success {
    background: white;
    overflow: hidden;
}

.vp-combined-results-header {
    background: #1FD18E;
    color: white;
    padding: 20px 24px;
}

.vp-combined-results-header h3 {
    margin: 0 0 6px 0;
    font-size: 20px;
    font-weight: 600;
    color: #FFF;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.vp-combined-results-subtitle {
    margin: 0;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

.vp-combined-results-content {
    padding: 24px;
}

/* Batch result rows (for single batch search) */
.vp-combined-result-row {
    display: flex;
    justify-content: space-between;
    padding: 14px 0;
    border-bottom: 1px solid #f3f4f6;
}

.vp-combined-result-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.vp-combined-result-label {
    font-weight: 600;
    color: #374151;
    font-size: 15px;
}

.vp-combined-result-value {
    color: #6b7280;
    font-size: 15px;
    text-align: right;
    font-weight: 500;
}

/* Download button for batch search */
.vp-combined-result-actions {
    margin-top: 24px;
    padding-top: 24px;
}

.vp-combined-download-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: #1FD18E;
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s ease;
}

.vp-combined-download-btn:hover {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(31, 209, 142, 0.4);
}

.vp-combined-download-btn svg {
    width: 18px;
    height: 18px;
}

/* Grid layout for peptide search results */
.vp-combined-results-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    padding: 24px;
}

/* Batch cards for peptide search */
.vp-combined-batch-card {
    background: white;
    border: 1px solid #e5e7eb;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.vp-combined-batch-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    border-color: #1FD18E;
    transform: translateY(-4px);
}

.vp-combined-card-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.vp-combined-batch-number {
    margin: 0 0 16px 0;
    font-size: 16px;
    font-weight: 600;
    color: #111827;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    word-break: break-word;
}

/* Batch info */
.vp-combined-batch-info {
    flex: 1;
    margin-bottom: 16px;
}

.vp-combined-info-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 10px 0;
    gap: 8px;
    border-bottom: 1px solid #f3f4f6;
}

.vp-combined-info-item:last-child {
    border-bottom: none;
}

.vp-combined-info-label {
    font-weight: 600;
    color: #6b7280;
    font-size: 13px;
    white-space: nowrap;
}

.vp-combined-info-value {
    color: #374151;
    font-size: 13px;
    font-weight: 500;
    text-align: right;
    word-break: break-word;
}

/* Download button for peptide search */
.vp-combined-coa-download-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 16px;
    background: #1FD18E;
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    margin-top: auto;
}

.vp-combined-coa-download-btn:hover {
    background: #1bc074;
    color: white;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(31, 209, 142, 0.4);
}

.vp-combined-coa-download-btn svg {
    width: 18px;
    height: 18px;
}

/* Error state */
.vp-combined-results-error {
    background: #fef2f2;
    border: 2px solid #fecaca;
    border-radius: 8px;
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.vp-combined-results-error svg {
    flex-shrink: 0;
    color: #ef4444;
    width: 24px;
    height: 24px;
}

.vp-combined-results-error p{
    margin: 0;
}

@media screen and (max-width: 768px) {
    .vp-combined-search-input-wrapper{
        flex-direction: column;
    }
    .vp-search-type-select{
        border-right: 1px solid #e0e0e0;
    }
    .vp-combined-search-btn{
        min-height: 75px !important;
    }
}



/* PDF view CSS */

/* PDF Viewer Section Styles */
.vp-combined-pdf-section {
    margin-top: 24px;
}

.vp-combined-pdf-title {
    font-size: 18px;
    font-weight: 600;
    color: #1f2937;
    margin: 0 0 16px 0;
}

.vp-combined-pdf-viewer {
    margin-bottom: 16px;
    background: #f9fafb;
    padding: 8px;
    border-radius: 6px;
}

.vp-combined-pdf-viewer iframe {
    display: block;
    width: 100%;
    min-height: 600px;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    background: white;
}

/* Responsive adjustments for PDF viewer */
@media (max-width: 768px) {
    .vp-combined-pdf-viewer iframe {
        min-height: 400px;
    }
}

@media (max-width: 480px) {
    .vp-combined-pdf-viewer iframe {
        min-height: 300px;
    }
    
    .vp-combined-pdf-title {
        font-size: 16px;
    }
}