.header-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.header-content i {
    color: var(--scanner-color);
}

.global-search-container {
    max-width: 800px;
    margin: 0 auto;
}

.search-container {
    margin-bottom: 32px;
}

/* Keep the enhanced search bar styles */
.search-bar {
    position: relative;
    margin-bottom: 8px;
}

.search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
    font-size: 1.2rem;
}

#searchInput {
    width: 100%;
    padding: 16px 48px;
    border: 2px solid rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    background-color: white;
    color: var(--text-color);
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

#searchInput:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.search-info {
    color: #666;
    font-size: 0.9rem;
    margin: 8px 16px;
}

/* Everything below matches scan-history.css exactly */
.scans-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.scan-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background-color: white;
    border-radius: 12px;
    transition: transform 0.3s ease, background-color 0.3s ease;
    cursor: pointer;
}

.scan-item:hover {
    transform: translateX(8px);
}

.scan-image-container {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    background-color: #f0f0f0;
}

.scan-image-container.loading {
    display: flex;
    align-items: center;
    justify-content: center;
}

.loading-spinner {
    width: 24px;
    height: 24px;
    border: 2px solid #ddd;
    border-top-color: var(--secondary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

.scan-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.scan-details {
    flex: 1;
}

.scan-title {
    font-size: 1.1rem;
    font-weight: 500;
    margin: 0 0 8px 0;
    color: var(--text-color);
}

.scan-date {
    font-size: 0.9rem;
    color: #666;
    margin: 0;
}

.nova-score {
    color: black;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
    min-width: 80px;
    text-align: center;
    text-shadow: none;
}

.loading-indicator,
.no-scans-message {
    text-align: center;
    padding: 40px;
    color: #666;
}

.loading-indicator i,
.no-scans-message i {
    font-size: 2rem;
    margin-bottom: 16px;
}

.hidden {
    display: none;
}

.clear-search-icon {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
    cursor: pointer;
    transition: color 0.2s ease;
}

.clear-search-icon:hover {
    color: var(--secondary-color);
}

/* Modal styles - keeping consistent with scan-history.css */
.scan-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.scan-modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background-color: white;
    border-radius: 16px;
    max-width: 90%;
    width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    transform: translateY(20px);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.scan-modal.active .modal-content {
    transform: translateY(0);
    opacity: 1;
}

.modal-close {
    position: absolute;
    top: 50%;
    right: 16px;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #888;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 8px;
    transition: color 0.3s ease;
    z-index: 2;
}

.modal-close:hover {
    color: var(--result-color);
}

.modal-content .result {
    padding: 20px 0 20px 0;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
}

#modalTimestamp {
    color: #888;
    font-size: 0.9rem;
    margin-right: 48px;
}

.modal-content .nova-image-container {
    margin-bottom: 25px;
    position: relative;
    z-index: 1;
    border-radius: 10px;
    width: 80%;
    max-width: 300px;
    margin-left: auto;
    margin-right: auto;
}

.modal-content .nova-background {
    position: absolute;
    top: 1%;
    left: 1%;
    width: 98%;
    height: 98%;
    border-radius: 11px;
    z-index: 0;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4), inset 0 0 15px rgba(0, 0, 0, 0.1);
}

.modal-content .nova-image {
    display: inline-block;
    border-radius: 10px;
    background-color: transparent;
    position: relative;
}

.modal-content .nova-image img {
    width: 100%;
    height: auto;
    display: block;
    filter: drop-shadow(0 0 4px rgba(0, 0, 0, 0));
    border-radius: 10px;
}

.modal-content .nova-text {
    font-size: 1.1rem;
    color: black;
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: 1px;
    margin-bottom: 20px;
    margin-top: 10px;
    text-align: center;
}

.modal-content .nova-group-text {
    font-size: 1.1rem;
    color: black;
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: 1px;
    margin-bottom: 20px;
    text-align: center;
}

.scan-preview-container {
    width: 100%;
    max-width: 300px;
    margin: 20px auto 40px auto;
}

.scan-preview-image {
    width: 100%;
    max-width: 300px;
    height: auto;
    border-radius: 10px;
    margin: 20px auto;
    margin-bottom: 40px;
    display: block;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 2;
}

#modalReasoning {
    padding: 0 15px;
}

.scale-labels {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
}

.scale-label {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--result-text-color);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.scale-label.left {
    text-align: left;
}

.scale-label.right {
    text-align: right;
}

@media (max-width: 600px) {
    .modal-content {
        width: 100%;
        max-width: 100%;
        height: 100%;
        max-height: 100%;
        border-radius: 0;
    }
}

.modal-content #modalNovaScoreValue {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.restricted-content {
    text-align: center;
    max-width: 400px;
    margin: 5px auto 0;
    background-color: white;
    padding: 40px 20px;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
    margin-bottom: 80px
}

.restricted-content i.fa-lock {
    font-size: 3em;
    color: black;
    margin-bottom: 20px;
}

.restricted-content h2 {
    font-size: 24px;
    font-weight: 600;
    margin: 20px 0;
    color: black;
}

.restricted-content p {
    font-size: 16px;
    line-height: 1.5;
    color: #666; /* Changed to gray */
    margin: 8px 0;
}

.restricted-content .upgrade-button {
    background-color: #FFCD00;
    color: black;
    border: none;
    border-radius: 1rem;
    padding: 0.75rem 1.25rem; /* Made button larger */
    font-size: 1rem; /* Made button text larger */
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-top: 24px; /* Added better vertical spacing */
}

.restricted-content .upgrade-button:hover {
    transform: translateY(-1px);
}