#regulatory-page .showfile-regulatory-info div:nth-child(1) {
    background-color: var(--Gray-Gray-400);
}

.dark-page #regulatory-page .showfile-regulatory-info div:nth-child(1) {
    background-color: var(--Gray-Gray-500);
}

#regulatory-page .showfile-regulatory-info div:nth-child(1) p {
    color: var(--Gray-Not-White);
}

#regulatory-page .showfile-regulatory {
    background-color: var(--Primary-Blue-50);
    border: 1px solid var(--Primary-Blue-100);
    border-radius: 8px;
}

.dark-page #regulatory-page .showfile-regulatory {
    background-color: var(--Primary-Blue-100);
    border: 1px solid var(--Primary-Blue-200);
    border-radius: 8px;
}

#regulatory-page .showfile-regulatory-btns button {
    border: 2px solid var(--Primary-Blue-500);
    color: var(--Primary-Blue-500);
}

.dark-page #regulatory-page .showfile-regulatory-btns button {
    border: 2px solid var(--Primary-Blue-400);
    color: var(--Primary-Blue-400);
}

/* tabs */
#regulatory-tabs .tab {
    overflow: hidden;
    border-bottom: 1px solid var(--Gray-Gray-200);
}

#regulatory-tabs .tab button {
    background-color: inherit;
    float: left;
    border: none;
    outline: none;
    cursor: pointer;
    padding: 8px 7px;
    transition: 0.3s;
    font-weight: 500;
    color: var(--Gray-Gray-600);
}

.dark-page #regulatory-tabs .tab button {
    background-color: inherit;
    float: left;
    border: none;
    outline: none;
    cursor: pointer;
    padding: 8px 7px;
    transition: 0.3s;
    font-weight: 400;
    color: var(--Gray-Gray-400);
}

#regulatory-tabs .tab button:hover {
    color: var(--Gray-Gray-850);
}

.dark-page #regulatory-tabs .tab button:hover {
    color: var(--Gray-Gray-300);
}

#regulatory-tabs .tab button.active {
    color: var(--Gray-Not-Black);
    font-weight: 600;
}

.dark-page #regulatory-tabs .tab button.active {
    color: var(--Gray-Not-White);
    font-weight: 600;
}

#regulatory-tabs .tab button.active::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--Primary-Blue-500);
}

#regulatory-tabs .tabcontent {
    display: none;
}

#regulatory-tabs .card-main h6:before {
    content: "";
    position: absolute;
    top: -4px;
    left: -9px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    z-index: -1;
    background-color: var(--Secondary-Yellow-400);
}

.dark-page #regulatory-tabs .card-main h6::before {
    content: "";
    position: absolute;
    top: -4px;
    left: -9px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    z-index: 1;
    background-color: var(--Secondary-Yellow-100);
}


/* Style for selected dropdown items */
.selected {
    background-color: var(--Primary-Blue-100);
    color: var(--Gray-Not-White);

}
.dropdown-button-selected {
  background-color: #007bff !important; /* or any color you want */
  color: white;
  border: none;
  border-radius: 5px;
  padding: 0.5rem 1rem;
  cursor: pointer;
}

/* Waiting indicator for assessment rows */
.assessment-waiting {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--Primary-500);
    font-size: 14px;
    font-weight: 500;
}

.assessment-waiting::before {
    content: '';
    width: 16px;
    height: 16px;
    border: 2px solid var(--Primary-500);
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    -webkit-animation: spin 1s linear infinite;
}

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

/* Processing indicator styles */
.processing-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
}

.processing-indicator::before {
    content: '';
    width: 20px;
    height: 20px;
    border: 2px solid #FFC000;
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    -webkit-animation: spin 1s linear infinite;
}

/* Search UX improvements */
#search-icon.spinning {
    animation: spin 1s linear infinite;
    -webkit-animation: spin 1s linear infinite;
}

#search-status {
    display: block; /* reserve space to avoid layout shift */
    font-size: 12px;
    color: var(--Primary-Blue-500);
    margin-top: 6px;
    min-height: 16px; /* consistent height */
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity .2s ease, transform .2s ease, visibility .2s linear;
}

#search-status.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.highlight-pulse {
    box-shadow: 0 0 0 2px rgba(43, 171, 51, 0.25) inset;
    animation: pulse 1.2s ease-out 2;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(43, 171, 51, 0) inset;
    }
    30% {
        box-shadow: 0 0 0 3px rgba(43, 171, 51, 0.5) inset;
    }
    100% {
        box-shadow: 0 0 0 0 rgba(43, 171, 51, 0) inset;
    }
}
