/* Portfolio Optimizer Styles */
* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: #e2e8f0;
    min-height: 100vh;
    padding: 20px;
}

.widget {
    max-width: 900px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
}

header {
    padding: 20px;
    background: linear-gradient(90deg, #3b82f6, #1d4ed8);
    color: white;
}

header h1 {
    margin: 0 0 8px 0;
    font-size: 1.8rem;
}

header p {
    margin: 0;
    opacity: 0.9;
}

main {
    padding: 20px;
}

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

button {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    background: #3b82f6;
    color: white;
    transition: background 0.2s;
}

button:hover {
    background: #2563eb;
}

.chart-container {
    position: relative;
    height: 300px;
    margin-bottom: 20px;
}

.results {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
}

.metric {
    background: rgba(255, 255, 255, 0.05);
    padding: 15px;
    border-radius: 8px;
    text-align: center;
}

.metric .label {
    display: block;
    font-size: 12px;
    color: #94a3b8;
    margin-bottom: 5px;
}

.metric .value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #10b981;
}

footer {
    padding: 15px;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 12px;
    color: #64748b;
}