/* ================== VARIABLES ================== */
:root {
    --terra: #f3771d;
    --terra-light: #f9a67a;
    --terra-dark: #d95b00;
}

/* ================== THUMBNAILS ================== */
/* New classes for images moved from inline styles */
.thumbnail {
    width: 75px;
    height: 75px;
    box-sizing: border-box; // added for consistent sizing
}
.thumbnail-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px; /* adjust spacing as needed */
}

/* ================== TYPOGRAPHY ================== */
body, h1, h2, h3, h4, h5, h6 {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    margin: 0;
    padding: 0;
}

/* ================== LINKS & TOOLTIP ================== */
a[data-wheel] {
    position: relative;
}
a[data-wheel]:hover::after {
    content: attr(data-wheel);
    position: absolute;
    bottom: 110%; /* adjust as needed */
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 2px 5px;
    border-radius: 3px;
    max-width: 200px;
    white-space: normal;
    overflow-wrap: break-word;
    font-size: 12px;
    z-index: 10;
}

/* ================== HEADINGS & COVER IMAGE ================== */
.main-heading {
    margin-left: 30px;
}
.cover {
    object-fit: cover;
}

/* ================== COLOR SWATCHES ================== */
.color-swatch[data-color="Snow"] {
    background-color: #F5F5F5;
}
.color-swatch[data-color="Magnesium"] {
    background-color: #BFC2C3;
}
.color-swatch[data-color="Jupiter"] {
    background-color: #D3C8C9;
}
.color-swatch[data-color="Moon"] {
    background-color: #928E81;
}
.color-swatch[data-color="Thunder"] {
    background-color: #606163;
}
.color-swatch[data-color="Midnight"] {
    background-color: #183A50;
}
.color-swatch[data-color="Space"],
.color-swatch[data-color="Void"] {
    background-color: #000000;
}
.color-swatch {
    border: 2px solid transparent;
    cursor: pointer;
    position: relative; /* added for tooltip positioning */
}
.color-swatch:hover::after {
    content: attr(data-color);
    position: absolute;
    bottom: 110%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 2px 5px;
    border-radius: 3px;
    max-width: 200px;
    white-space: normal;
    overflow-wrap: break-word;
    font-size: 12px;
    z-index: 10;
}
.selected {
    border: 2px solid var(--terra);
}



/* ================== CONTAINERS & LAYOUT ================== */
/* Updated container styling to use flexbox instead of .my-row */
.my-container {
    display: flex;
    flex-direction: row; /* changed from column to row for side-by-side layout */
    flex-wrap: nowrap; /* changed from wrap to nowrap to keep items side-by-side */
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px;
}
.my-sidebar {
    display: flex;
    flex-direction: column;
    padding: 15px;
    border-right: 1px solid #ccc; /* custom border styling */
    width: 250px;

}
.my-main {
    padding: 15px;
    overflow-x: auto;
}

/* Ensure tables within .my-main remain within its width */
.my-main table {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    table-layout: fixed; /* optionally, forces columns to be of equal width */
}

.filter-section {
    display: flex;
    flex-direction: column;
    gap: 10px 10px 10px 0;
    margin-bottom: 1rem;
    width: auto;
}

.filter-subsection {
    margin-bottom: 1rem;
}

.thumbnail-container {
    display: flex;
    flex-direction: row;    
    flex-wrap: wrap;


}

.statistics-panel {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 1rem;
}


/* ================== FORMS ================== */
.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 20px;
}

.sub-label {
    font-size: 0.875rem;
    color: #666;
}   

.form-select, .form-control {
    width: auto;
    padding: 8px;
    margin-bottom: 1rem;
    border: 1px solid #ddd;
    border-radius: 4px;
}



@media screen and (max-width: 768px) {
    .form-select, .form-control {
        width: 100%;
    }
}

