/* Custom Properties */
:root {
    --primary-color: #007bff;
    --primary-hover-color: #0056b3;
    --background-color: #f8f9fa;
    --jumbotron-color: #e9ecef;
    --footer-color: #343a40;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --card-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --card-hover-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

/* Bildquelle Gallery Styles */
#bildquelleGallery .card {
    transition: transform 0.2s, box-shadow 0.2s;
    border: none;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

#bildquelleGallery .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

#bildquelleGallery .card-img-top {
    height: 200px;
    object-fit: cover;
}

#bildquelleGallery .card-body {
    padding: 1.5rem;
}

#bildquelleGallery .list-group-item {
    border-left: none;
    border-right: none;
}

#bildquelleGallery .list-group-item:first-child {
    border-top: none;
}

#bildquelleGallery .list-group-item:last-child {
    border-bottom: none;
}

.status-ja {
    color: #28a745;
    font-weight: bold;
}

.status-nein {
    color: #dc3545;
    font-weight: bold;
}

/* Global Styles */
body {
    font-family: 'Arial', sans-serif;
    background-color: var(--background-color);
}

.navbar-brand {
    font-weight: bold;
    font-size: 1.5rem;
}

.jumbotron {
    background-color: var(--jumbotron-color);
    padding: 2rem;
    margin-bottom: 2rem;
    border-radius: 0.3rem;
}

/* Card Styles */
.card {
    transition: transform 0.2s, box-shadow 0.2s;
    border: none;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--card-hover-shadow);
}

.card-img-top {
    height: 200px;
    object-fit: cover;
}

.card-body {
    padding: 1.5rem;
}

/* Button Styles */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--primary-hover-color);
    border-color: var(--primary-hover-color);
}

/* Footer Styles */
footer {
    margin-top: 3rem;
    padding: 1.5rem 0;
    background-color: var(--footer-color);
    color: #fff;
}

/* Chart Styles */
#colorChart svg,
#compositionChart svg {
    max-width: 100%;
    height: auto;
}

/* Legend Styles */
#colorLegend ul {
    columns: 2;
    -webkit-columns: 2;
    -moz-columns: 2;
}

#colorLegend li {
    margin-bottom: 5px;
}

#colorLegend span {
    display: inline-block;
    width: 20px;
    height: 20px;
    margin-right: 5px;
    vertical-align: middle;
}

/* Tooltip Styles */
.tooltip {
    position: absolute;
    display: none;
    background-color: rgba(255, 255, 255, 0.9);
    border: 1px solid #ddd;
    padding: 10px;
    pointer-events: none;
    z-index: 1000;
    border-radius: 5px;
    font-size: 14px;
}

/* Detail Sections */
#colorDetails,
#sampleDetails {
    border: 1px solid #ddd;
    padding: 15px;
    border-radius: 5px;
}

/* Bar Chart Styles */
.bar {
    fill: #69b3a2;
}

.bar:hover {
    fill: #40a3a1;
}

/* Pearl Characteristic Analyzer Styles */
.stat-box {
    background-color: var(--background-color);
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    height: 100%;
    box-shadow: var(--card-shadow);
}

.stat-box h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.stat-box .display-4 {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--primary-color);
}

#pearlGallery .list-group-item {
    border-left: none;
    border-right: none;
}

#pearlGallery .list-group-item:first-child {
    border-top: none;
}

#pearlGallery .list-group-item:last-child {
    border-bottom: none;
}

.status-ja {
    color: var(--success-color);
    font-weight: bold;
}

.status-nein {
    color: var(--danger-color);
    font-weight: bold;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333;
}
.navbar {
    margin-bottom: 20px;
}
.bildquelle-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}
.bildquelle-card {
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}
.bildquelle-card:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}
.bildquelle-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}
.bildquelle-info {
    padding: 15px;
}
.bildquelle-info h5 {
    margin-top: 0;
    font-size: 1.1em;
}
.bildquelle-info p {
    margin-bottom: 5px;
    font-size: 0.9em;
}
.stat-box {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    text-align: center;
}
.filter-section {
    background-color: #e9ecef;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}
.filter-section h4 {
    margin-bottom: 15px;
}
.reset-button {
    margin-top: 10px;
}
.status-ja {
    color: #28a745;
    font-weight: bold;
}
.status-nein {
    color: #dc3545;
    font-weight: bold;
}
#mediumTreemap {
    width: 100%;
    height: 500px;
    overflow: hidden;
}
#mediumTreemap rect {
    stroke: #fff;
}
#mediumTreemap text {
    font-size: 12px;
    fill: #fff;
    pointer-events: none;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .stat-box {
        margin-bottom: 20px;
    }
    
    .stat-box .display-4 {
        font-size: 2rem;
    }
}