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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.container {
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 600px;
    width: 100%;
    padding: 40px;
}

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

h1 {
    color: #333;
    font-size: 32px;
    margin-bottom: 8px;
}

.subtitle {
    color: #666;
    font-size: 14px;
}

.dashboard-link {
    display: inline-block;
    margin-top: 12px;
    color: #667eea;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
}

.dashboard-link:hover {
    text-decoration: underline;
}

.search-section {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
}

.quick-select {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.quick-label {
    color: #666;
    font-size: 13px;
}

.quick-btn {
    padding: 6px 12px;
    background: #f0f0f0;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
}

.quick-btn:hover {
    background: #e0e0e0;
    border-color: #ccc;
}

#fundCodeInput {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s;
}

#fundCodeInput:focus {
    outline: none;
    border-color: #667eea;
}

#searchBtn {
    padding: 12px 32px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

#searchBtn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

#searchBtn:active {
    transform: translateY(0);
}

.fund-info {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 24px;
}

.fund-info h2 {
    color: #333;
    font-size: 24px;
    margin-bottom: 8px;
}

.fund-code {
    color: #666;
    font-size: 14px;
    margin-bottom: 20px;
}

.price-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 16px;
    margin-top: 20px;
}

.price-item {
    background: white;
    padding: 16px;
    border-radius: 8px;
    text-align: center;
}

.price-item .label {
    display: block;
    color: #666;
    font-size: 12px;
    margin-bottom: 8px;
}

.price-item .value {
    display: block;
    color: #333;
    font-size: 20px;
    font-weight: 700;
}

.value.positive {
    color: #ef4444;
}

.value.negative {
    color: #22c55e;
}

.meta-info {
    display: flex;
    align-items: center;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #e0e0e0;
    font-size: 13px;
}

.meta-label {
    color: #666;
}

.meta-value {
    color: #333;
    margin-left: 4px;
}

.actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 16px;
}

.refresh-btn {
    padding: 8px 16px;
    background: #f0f0f0;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
}

.refresh-btn:hover {
    background: #e0e0e0;
}

.refresh-btn:active {
    transform: scale(0.95);
}

.loading {
    text-align: center;
    color: #667eea;
    padding: 20px;
    font-weight: 500;
}

.error {
    background: #fee;
    color: #c33;
    padding: 12px 16px;
    border-radius: 8px;
    margin-top: 16px;
    font-size: 14px;
}

footer {
    text-align: center;
    margin-top: 30px;
    color: #999;
    font-size: 12px;
}

@media (max-width: 480px) {
    .container {
        padding: 24px;
    }

    h1 {
        font-size: 24px;
    }

    .search-section {
        flex-direction: column;
    }

    #searchBtn {
        width: 100%;
    }
}
