* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

header {
    background-color: white;
    color: black;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    border-bottom: 1px solid #e0e0e0;
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
}

.search {
    display: flex;
    width: 40%;
}

.search input {
    width: 100%;
    padding: 0.5rem;
    border: none;
    border-radius: 4px 0 0 4px;
}

.search button {
    background-color: #c9151e;
    color: white;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
}

nav {
    display: flex;
    gap: 1rem;
}

nav a {
    color: black;
    text-decoration: none;
    padding: 0.5rem;
    border-radius: 4px;
    transition: background-color 0.3s;
}

nav a:hover {
    background-color: #f0f0f0;
}

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

.ticker-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.ticker-info h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.ticker-price {
    font-size: 2rem;
    font-weight: bold;
}

.price-change {
    margin-left: 1rem;
    font-size: 1.2rem;
}

.price-positive {
    color: #27ae60;
}

.price-negative {
    color: #e74c3c;
}

.main-content {
    display: grid;
    grid-template-columns: 7fr 3fr;
    gap: 2rem;
}

.chart-container {
    background-color: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.chart-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.chart-title {
    font-size: 1.5rem;
    font-weight: bold;
}

.chart-options {
    display: flex;
    gap: 0.5rem;
}

.chart-option {
    padding: 0.5rem 1rem;
    background-color: #ecf0f1;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.chart-option:hover, .chart-option.active {
    background-color: #c9151e;
    color: white;
}

.chart {
    width: 100%;
    height: 400px;
    background-color: #f9f9f9;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.chart-line {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: flex-end;
}

.chart {
    position: relative;
    width: 100%;
    height: 400px;
    background-color: #f9f9f9;
    border-radius: 4px;
    overflow: hidden;
}

.chart-line {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: 20px;
}

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

.chart-curve svg {
    width: 100%;
    height: 100%;
}

.chart-curve path {
    fill: none;
    stroke: #c9151e;
    stroke-width: 2;
}

.chart-curve circle {
    fill: #c9151e;
    r: 4;
}

.chart-selection {
    position: absolute;
    background-color: rgba(201, 21, 30, 0.1);
    border: 1px dashed #c9151e