* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    background-color: #f0f0f0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

header {
    text-align: center;
    margin-bottom: 30px;
}

header h1 {
    color: #e3350d;
    margin-bottom: 10px;
}

.search-section {
    margin-bottom: 20px;
    text-align: center;
}

#pokemon-search {
    padding: 10px;
    width: 300px;
    border: 2px solid #3d7dca;
    border-radius: 5px;
    font-size: 16px;
}

.pokemon-display {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 20px;
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.pokemon-info {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    margin: 15px 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.pokemon-info p {
    margin: 8px 0;
    font-size: 1rem;
    color: #333;
}

.pokemon-info strong {
    color: #2c3e50;
    font-weight: 600;
    margin-right: 8px;
}

#pokemon-sprite {
    width: 200px;
    height: 200px;
    margin: 0 auto;
    background-color: #f8f8f8;
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.pokemon-sprite-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.pokemon-sprite-img:hover {
    transform: scale(1.1);
}

.loading-indicator {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #555;
    font-size: 1.2em;
}

.sprite-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: #e0e0e0;
    color: #555;
}

.placeholder-text {
    font-size: 1.5em;
    font-weight: bold;
    text-transform: capitalize;
    margin-bottom: 10px;
}

.placeholder-id {
    font-size: 1.2em;
    color: #777;
}

#pokemon-stats {
    margin-top: 20px;
    padding: 15px;
    background-color: #f8f8f8;
    border-radius: 10px;
}

.pokemon-name {
    margin-bottom: 15px;
}

.pokemon-name h2 {
    color: #3d7dca;
    text-transform: capitalize;
    margin-bottom: 5px;
}

.japanese-name {
    font-size: 1.2em;
    color: #555;
}

.pokemon-stats-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin-bottom: 15px;
}

.stat-item {
    display: grid;
    grid-template-columns: 80px 1fr 40px;
    align-items: center;
    gap: 10px;
}

.stat-name {
    font-weight: bold;
    color: #555;
}

.stat-bar-container {
    height: 15px;
    background-color: #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
}

.stat-bar {
    height: 100%;
    background-color: #3d7dca;
    border-radius: 10px;
    transition: width 0.3s ease;
}

.stat-value {
    text-align: right;
    font-weight: bold;
}

.pokemon-types {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #ddd;
}

.visualizations {
    display: grid;
    grid-template-rows: 1fr 1fr;
    gap: 20px;
}

#stats-chart, #linguistic-chart {
    background-color: #f8f8f8;
    border-radius: 10px;
    padding: 10px;
    min-height: 300px;
}

/* Chart Controls */
.chart-controls {
    margin-bottom: 20px;
    padding: 10px;
    background-color: #f5f5f5;
    border-radius: 5px;
}

.filter-container {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.filter-container label {
    font-weight: bold;
    color: #333;
}

.filter-container select {
    padding: 5px 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: white;
    font-size: 14px;
    min-width: 120px;
}

.filter-container select:hover {
    border-color: #3d7dca;
}

.filter-container select:focus {
    outline: none;
    border-color: #3d7dca;
    box-shadow: 0 0 0 2px rgba(61, 125, 202, 0.2);
}

/* Stats Chart */
#stats-chart {
    margin-top: 20px;
    padding: 20px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

#stats-chart svg {
    width: 100%;
    height: auto;
}

#stats-chart .tooltip {
    font-size: 14px;
    line-height: 1.4;
}

#stats-chart circle {
    transition: r 0.2s, opacity 0.2s;
}

#stats-chart circle:hover {
    cursor: pointer;
}

/* Slider Container */
.slider-container {
    margin-top: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.slider-container label {
    font-weight: bold;
    color: #333;
    min-width: 150px;
}

.slider-container input[type="range"] {
    flex: 1;
    height: 8px;
    -webkit-appearance: none;
    appearance: none;
    background: #ddd;
    outline: none;
    border-radius: 4px;
}

.slider-container input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #3d7dca;
    cursor: pointer;
    transition: background 0.2s;
}

.slider-container input[type="range"]::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #3d7dca;
    cursor: pointer;
    transition: background 0.2s;
    border: none;
}

.slider-container input[type="range"]::-webkit-slider-thumb:hover {
    background: #2a5a9c;
}

.slider-container input[type="range"]::-moz-range-thumb:hover {
    background: #2a5a9c;
}

.slider-container span {
    min-width: 30px;
    text-align: center;
    font-weight: bold;
    color: #3d7dca;
}

.no-data-message {
    margin-top: 15px;
    padding: 10px;
    background-color: #f8d7da;
    color: #721c24;
    border-radius: 5px;
    text-align: center;
    font-style: italic;
} 