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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: #eef0f8;
    min-height: 100vh;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.app-container {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    max-width: 1200px;
    width: 100%;
    padding: 40px;
}

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

header h1 {
    color: #202020;
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.2;
}

.subtitle {
    color: #5c5c5c;
    font-size: 18px;
    font-weight: 400;
}

.chart-container {
    position: relative;
    width: 100%;
}

.background-image {
    width: 100%;
    height: auto;
    display: block;
    opacity: 1;
}

.bar {
    position: absolute;
    border-radius: 10px;
    transition: height 0.6s cubic-bezier(0.4, 0.0, 0.2, 1);
    opacity: 0.6;
    border: 2px solid #fff;
    cursor: pointer;
}

.bar:hover {
    opacity: 0.8;
}

.bar.selected {
    opacity: 1;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6),
                0 4px 12px rgba(0, 0, 0, 0.4),
                0 0 0 2px rgba(255, 255, 255, 0.3);
}

.bar-label {
    color: white;
    font-size: clamp(10px, 1.2vw, 14px);
    font-weight: 700;
    text-align: center;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
    white-space: nowrap;
    pointer-events: none;
    transition: opacity 0.3s ease;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.bar-label-emoji {
    font-size: clamp(12px, 1.4vw, 16px);
    line-height: 1;
}

.controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    margin-top: 30px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.tabs-container {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 4px;
    background: #f1f5f9;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.tab {
    position: relative;
    padding: 8px 16px;
    border: none;
    background: transparent;
    color: #64748b;
    font-size: 14px;
    font-weight: 500;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: inherit;
    white-space: nowrap;
}

.tab:hover {
    color: #334155;
}

.tab.active {
    background: white;
    color: #0f172a;
    font-weight: 600;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1),
                0 1px 2px rgba(0, 0, 0, 0.06);
}

footer {
    margin-top: 40px;
    padding: 30px;
    background: #f8f9fa;
    border-radius: 12px;
    text-align: center;
}

.footer-title {
    font-size: 18px;
    font-weight: 700;
    color: #202020;
    margin-bottom: 12px;
}

.footer-text {
    color: #5c5c5c;
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 16px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.footer-text strong {
    color: #202020;
    font-weight: 600;
}

.footer-link {
    margin-top: 16px;
}

.footer-link a {
    display: inline-block;
    color: #1c57dc;
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    padding: 10px 20px;
    background: white;
    border-radius: 8px;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.footer-link a:hover {
    background: #1c57dc;
    color: white;
    box-shadow: 0 4px 8px rgba(28, 87, 220, 0.2);
    transform: translateY(-1px);
}
