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

body {
    font-family: 'Arial', sans-serif;
    background: #f0f2f5;
    color: #333;
}

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

h1 {
    text-align: center;
    margin-bottom: 2rem;
    color: #2c3e50;
}

.search-container {
    position: relative;
    max-width: 600px;
    margin: 0 auto;
}

#searchInput {
    width: 100%;
    padding: 1rem;
    font-size: 1.1rem;
    border: 2px solid #ddd;
    border-radius: 8px;
    outline: none;
    transition: border-color 0.3s;
}

#searchInput:focus {
    border-color: #3498db;
}

.suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    z-index: 1000;
    max-height: 300px;
    overflow-y: auto;
    display: none;
}

.suggestion-item {
    padding: 0.8rem 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.suggestion-item:hover {
    background: #f5f6fa;
}

.suggestion-item img {
    width: 24px;
    height: 24px;
}

.crypto-info {
    margin-top: 2rem;
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.hidden {
    display: none;
}

.crypto-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.crypto-header img {
    width: 48px;
    height: 48px;
}

.price-container {
    display: flex;
    justify-content: space-between;
    margin-bottom: 2rem;
}

.current-price, .price-change {
    text-align: center;
}

.current-price span, .price-change span {
    color: #7f8c8d;
    font-size: 0.9rem;
}

.market-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.info-item {
    text-align: center;
}

.info-item span {
    color: #7f8c8d;
    font-size: 0.9rem;
}

.chart-container {
    width: 100%;
    height: 400px;
    margin-top: 2rem;
}

.positive {
    color: #2ecc71;
}

.negative {
    color: #e74c3c;
}

.selected-cryptos {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 1rem 0;
}

.crypto-tag {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.crypto-tag img {
    width: 24px;
    height: 24px;
}

.crypto-tag button {
    background: none;
    border: none;
    color: #e74c3c;
    cursor: pointer;
    padding: 0 0.5rem;
}

.comparison-table {
    margin-top: 2rem;
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

th, td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

th {
    background-color: #f8f9fa;
    font-weight: bold;
}

.remove-crypto {
    background: none;
    border: none;
    color: #e74c3c;
    cursor: pointer;
    padding: 0.5rem;
}

.remove-crypto:hover {
    color: #c0392b;
}

.date-range-controls {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.date-input {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.date-input input {
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.date-update-btn {
    padding: 0.5rem 1rem;
    background: #3498db;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s;
}

.date-update-btn:hover {
    background: #2980b9;
}