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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

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

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    border-bottom: 1px solid #ddd;
}

header h1 {
    font-size: 24px;
    color: #0066cc;
}

.search-form {
    display: flex;
    gap: 10px;
}

.search-form input[type="text"] {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    width: 200px;
}

.search-form button {
    padding: 8px 15px;
    background-color: #0066cc;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

nav {
    margin: 20px 0;
}

nav ul {
    display: flex;
    list-style: none;
}

nav li {
    padding: 10px 20px;
    background-color: #eee;
    border-radius: 4px 4px 0 0;
    margin-right: 10px;
    cursor: pointer;
}

nav li.active {
    background-color: #0066cc;
    color: white;
}

main {
    background-color: white;
    border-radius: 4px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.fund-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.fund-card {
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 15px;
    background-color: #f9f9f9;
}

.fund-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.fund-code {
    font-weight: bold;
    color: #0066cc;
}

.fund-name {
    color: #666;
}

.fund-body {
    margin-bottom: 10px;
}

.fund-value {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5px 10px;
}

.value {
    font-weight: bold;
}

.positive {
    color: #e74c3c;
}

.negative {
    color: #2ecc71;
}

.fund-footer {
    display: flex;
    justify-content: space-between;
}

.fund-footer button {
    padding: 5px 10px;
    background-color: #0066cc;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.remove-btn {
    background-color: #e74c3c;
}

.add-hold-btn {
    background-color: #2ecc71;
}

.market-section {
    margin-bottom: 20px;
}

.market-table {
    width: 100%;
    border-collapse: collapse;
}

.market-table th, .market-table td {
    padding: 10px;
    border: 1px solid #ddd;
    text-align: left;
}

.market-table th {
    background-color: #f2f2f2;
}

.chart-container {
    height: 300px;
    background-color: #f2f2f2;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chart-placeholder {
    color: #666;
    font-style: italic;
}

.no-funds {
    text-align: center;
    padding: 40px;
    color: #666;
}

footer {
    text-align: center;
    margin-top: 20px;
    color: #666;
}