/* Global Styles */
body {
    font-family: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: #f5f7fa;
}

/* Card Styles */
.card {
    border: none;
    border-radius: 8px;
    /* box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05); */
    /* transition: transform 0.2s, box-shadow 0.2s; */
}

/* .card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(255, 0, 0, 1.0);
} */

.card-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid #eaeaea;
}

/* Navigation */
.navbar {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    font-weight: 600;
}

/* Form Controls */
.form-control:focus, .form-select:focus {
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.15);
    border-color: #80bdff;
}

.form-container {
    border: 1px solid #eaeaea;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.form-label {
    font-weight: 500;
}

/* Buttons */
.btn {
    border-radius: 6px;
    font-weight: 500;
}

.btn-primary {
    background-color: #0d6efd;
    border-color: #0d6efd;
}

.btn-primary:hover {
    background-color: #0b5ed7;
    border-color: #0b5ed7;
}

/* Utility Classes */
/* .shadow {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05) !important;
} */

/* Footer */
footer {
    border-top: 1px solid #eaeaea;
}

/* Plot Container */
#heatmapContainer, #distributionContainer, #metadataContainer {
    background-color: #fff;
}

/* Loading Spinner */
.spinner-border {
    width: 3rem;
    height: 3rem;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .card-deck {
        flex-direction: column;
    }
}

/* Scrollable tables */
.table-responsive {
    max-height: 500px;
    overflow-y: auto;
}

/* Stats Cards */
.stats-card {
    transition: transform 0.2s;
}

.stats-card:hover {
    transform: translateY(-3px);
}

/* PGS Autocomplete */
.pgs-autocomplete-wrap {
    position: relative;
}

.pgs-autocomplete-dropdown {
    display: none;
    position: absolute;
    z-index: 1050;
    width: 100%;
    max-height: 260px;
    overflow-y: auto;
    border: 1px solid #ced4da;
    border-top: none;
    border-radius: 0 0 0.25rem 0.25rem;
    background: #fff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.pgs-autocomplete-dropdown .pgs-item {
    padding: 0.4rem 0.75rem;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
    line-height: 1.3;
}

.pgs-autocomplete-dropdown .pgs-item:last-child {
    border-bottom: none;
}

.pgs-autocomplete-dropdown .pgs-item:hover,
.pgs-autocomplete-dropdown .pgs-item.active {
    background-color: #0d6efd;
    color: #fff;
}

.pgs-autocomplete-dropdown .pgs-item .pgs-id {
    font-weight: 600;
    font-size: 0.875rem;
}

.pgs-autocomplete-dropdown .pgs-item .pgs-trait {
    font-size: 0.8rem;
    opacity: 0.85;
}

.pgs-autocomplete-dropdown .pgs-no-match {
    padding: 0.5rem 0.75rem;
    color: #6c757d;
    font-size: 0.875rem;
    cursor: default;
}