/* Minimal custom styles for Point Cloud Viewer */

/* API Status indicator */
#apiStatus {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 1000;
    padding: 0.5rem;
}

.hero {
    overflow: hidden;
}

.particle-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    /* Behind content */
    pointer-events: auto;
    /* Allow mouse interaction */
}

.hero .content-blocks {
    position: relative;
    z-index: 10;
    /* Above particles */
    pointer-events: none;
    /* Allow mouse to pass through to particles */
}

.hero .content-blocks h1,
.hero .content-blocks p {
    pointer-events: auto;
    /* Re-enable text selection */
}

#statusText {
    display: none;
    /* Hide text, show only dot */
}

.status-dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 0.5rem;
}

.status-connected {
    background-color: #48c774;
}

.status-disconnected {
    background-color: #f14668;
}

.status-loading {
    background-color: #ffdd57;
}

/* Grid Layout */
#sequenceGrid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
    margin-top: 20px;
}



/* Minimal Card Style - Enhanced for clickability */
.sequence-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    height: fit-content;
    cursor: pointer;
    /* Added for clickability */
}


.sequence-card .thumbnail {
    width: 100%;
    height: 140px;
    background: linear-gradient(45deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 14px;
    position: relative;
    overflow: hidden;
}

.sequence-card .thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease;
    /* Added smooth zoom on hover */
}

/* Hover effect for thumbnail images */
.sequence-card:hover .thumbnail img {
    transform: scale(1.05);
}

/* Hide the fallback text when image loads */
.sequence-card .thumbnail img:not([style*="display: none"])+* {
    display: none;
}

.sequence-card .content {
    padding: 16px;
}

.sequence-card .title {
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 8px;
    /* Carrot titles for energy */
}

.sequence-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(251, 106, 59, 0.15);
    /* Carrot glow */
}

.sequence-card .meta {
    color: #666;
    font-size: 14px;
    margin-bottom: 0;
    /* Removed bottom margin since no actions */
}

.sequence-card .actions {
    display: flex;
    gap: 8px;
}


/* Actions container */
.sequence-card .actions {
    display: flex;
    gap: 8px;
    margin-top: 16px;
}

/* Loading states */
.loading-spinner {
    display: inline-block;
    width: 1rem;
    height: 1rem;
    border: 2px solid #dbdbdb;
    border-top: 2px solid #3273dc;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

    100% {
        transform: rotate(360deg);
    }
}

/* Responsive adjustments */
@media (min-width: 1400px) {
    #sequenceGrid {
        grid-template-columns: repeat(5, 1fr);
    }
}

@media (min-width: 1024px) and (max-width: 1399px) {
    #sequenceGrid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    #sequenceGrid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 767px) {
    #sequenceGrid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .sequence-card .thumbnail {
        height: 150px;
    }

    .sequence-card .content {
        padding: 12px;
    }

    .sequence-card .title {
        font-size: 14px;
    }

    .sequence-card .meta {
        font-size: 13px;
    }
}