.indexed-section {
    margin: 16px;
    padding: 24px;
    width: 95%;
    max-width: 75rem;
    background-color: var(--color-card-bg);
    border-radius: 15px;
    flex: 1; 
    display: flex;
    flex-direction: column;
    align-items: center;
}

.indexed-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 75%;
}

.indexed-bar-container {
    display: flex;
    gap: 8px;
    width: 100%;
    flex-wrap: nowrap;
}

.indexed-input {
    flex: 4;
    height: 2.8rem;
    padding: 10px;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    background-color: white;
    flex-shrink: 0;
    min-width: 0;
    width: auto;
}

.indexed-btn {
    width: 3.5rem;
    height: 2.8rem;
    background-color: var(--color-btn-green);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.indexed-btn:hover {
    filter: brightness(1.2);
}

.indexed-btn img {
    width: 2rem;
    height: auto;
}

.indexed-loader-container {
    display: flex;
    justify-content: center;
    width: 75%;
    margin-top: 20px;
}

.indexed-loader-card {
    background-color: var(--color-card-middle);
    border-radius: 12px;
    padding: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.indexed-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--color-bg-main);
    border-top: 4px solid var(--color-primary-deep);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.indexed-loader-message {
    color: var(--color-base-black);
    font-weight: 700;
}

.indexed-result-container {
    width: 75%;
    margin-top: 20px;
    display: flex;
    justify-content: center;
}

.indexed-project-card {
    background-color: var(--color-card-middle);
    border-radius: 12px;
    padding: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    max-width: 380px;
}

.indexed-project-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    cursor: pointer;
}

.indexed-project-thumbnail {
    width: 100%;
    height: auto;
    aspect-ratio: 480 / 360;
    object-fit: contain;
    border-radius: 8px;
    background-color: #000;
}

.indexed-project-info {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 4px;
}

.indexed-project-profile {
    width: 36px;
    height: 36px;
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0;
}

.indexed-project-details {
    flex: 1;
    min-width: 0;
}

.indexed-project-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-base-black);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 2px;
    text-decoration: none;
}

.indexed-project-author {
    font-size: 0.8rem;
    color: var(--color-base-black);
    opacity: 0.7;
    font-weight: 600;
    text-decoration: none;
}

.project-link {
    text-decoration: none;
}

.project-link:hover .indexed-project-title,
.project-link:hover .indexed-project-author {
    text-decoration: none;
}

.indexed-project-stats {
    display: flex;
    gap: 12px;
    padding: 8px 10px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 8px;
    justify-content: space-around;
}

.indexed-stat-item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight: 700;
    color: var(--color-base-black);
    font-size: 0.85rem;
    text-decoration: none;
}

.indexed-stat-icon {
    width: 18px;
    height: 18px;
    opacity: 0.8;
}

.indexed-stat-value {
    font-size: 0.9rem;
    color: var(--color-primary-deep);
}

.indexed-status {
    text-align: center;
    padding: 6px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.85rem;
}

.indexed-status--success {
    background-color: #e8f5e9;
    color: #2e7d32;
}

.indexed-status--warning {
    background-color: var(--color-warn-bg);
    color: var(--color-warn-text);
}

html.dark-mode .indexed-project-stats {
    background-color: rgba(255, 255, 255, 0.08);
}

html.dark-mode .indexed-stat-item {
    color: #d0ddf0;
}

html.dark-mode .indexed-stat-value {
    color: #00cc88;
}

html.dark-mode .indexed-project-author {
    color: #d0ddf0;
    opacity: 0.9;
}

html.dark-mode .indexed-project-title {
    color: #ffffff;
}

html.dark-mode .indexed-status--success {
    background-color: #1a3a2a;
    color: #4caf50;
}

html.dark-mode .indexed-status--warning {
    background-color: #3a2a00;
    color: #ffb300;
}

html.dark-mode .indexed-loader-message {
    color: #d0ddf0;
}

@media (max-width: 800px) {
    .indexed-form,
    .indexed-result-container,
    .indexed-loader-container {
        width: 90%;
    }
    
    .indexed-project-stats {
        flex-wrap: wrap;
        gap: 12px;
    }
    
    .indexed-project-title {
        font-size: 1.1rem;
    }
}