/* General Styles */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    line-height: 1.6;
    color: #333;
}

.viz-container {
    width: 100%;
    /* height: 500px; */
    margin: 20px 0;
    position: relative;
}

/* Map Visualization */
#map-viz {
    background-color: #f8f9fa;
}



.country:hover {
    fill: #c0c0c0;
}

/* Trade Flow Visualization */
.trade-flow {
    fill: none;
    stroke-opacity: 0.6;
}

.trade-flow:hover {
    stroke-opacity: 1;
}

/* Production & Price Charts */
.axis line,
.axis path {
    stroke: #ccc;
}

.axis text {
    font-size: 12px;
}

.line {
    fill: none;
    stroke-width: 2;
}

/* Tooltips */
.tooltip {
    position: absolute;
    padding: 10px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid #ddd;
    border-radius: 4px;
    pointer-events: none;
    font-size: 14px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Legend */
.legend {
    font-size: 12px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .viz-container {
        height: 400px;
    }
}

/* Interactive Elements */
.interactive-element {
    cursor: pointer;
    transition: all 0.2s ease;
}

.interactive-element:hover {
    opacity: 0.8;
}

/* Custom Colors */
.quality-scale-1 { fill: #fff7ec; }
.quality-scale-2 { fill: #fee8c8; }
.quality-scale-3 { fill: #fdd49e; }
.quality-scale-4 { fill: #fdbb84; }
.quality-scale-5 { fill: #fc8d59; }
.quality-scale-6 { fill: #ef6548; }
.quality-scale-7 { fill: #d7301f; }
.quality-scale-8 { fill: #990000; }

/* Controls */
.controls {
    margin: 10px 0;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 4px;
}

.control-label {
    font-weight: 600;
    margin-right: 10px;
}

/* Cards */
.card {
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: box-shadow 0.3s ease;
}

.card:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.card-body {
    padding: 1.5rem;
} 

.button {
  display: inline-block;
  padding: 6px 12px;
  font-size: 12px;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  outline: none;
  color: #464646;
  background-color: #fff;
  border: none;
  border-radius: 15px;
  box-shadow: 0 2px #999;
  margin-right:10px
}

.button:hover { background-color: #b8b9b8 }

.button:active {
  background-color: #434443;
  box-shadow: 0 5px #666;
  transform: translateY(4px);
  color: #5d2323;
}

.button.selected {
        /* Selected state - stays this color */
        background-color: #d1b19b; /* Blue */
        color: white;
        box-shadow: 0 2px #999;
        font-weight: bold;
    }

.divider {
    width:1px;
    height:auto;
    display:inline-block;
}

.country-score-name {
    font-size: 40px;
    font-weight: bolder;
}

.country-score-property {
    font-size: 20px;
    font-weight: bold;
}

#score-chart {
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: box-shadow 0.3s ease;
}

#country-score-and-ranking {
    justify-content: center;
    
}

/* Price Visualization Styles */
.price-line {
    transition: stroke-width 0.2s ease;
}

.price-area {
    transition: opacity 0.2s ease;
}

.price-tooltip {
    font-family: Arial, sans-serif;
    min-width: 120px;
}

.tooltip-date {
    font-weight: bold;
    color: #333;
    margin-bottom: 4px;
}

.tooltip-price {
    color: #2196F3;
    font-size: 1.1em;
}

.annotations text {
    font-family: Arial, sans-serif;
    font-weight: 500;
}