@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600&display=swap');

:root {
    --bg-primary: #111111;
    --bg-secondary: #1a1a1a;
    --text-primary: #e0e0e0;
    --text-positive: #4caf50;
    --text-negative: #ff5252;
}

body, html {
    margin: 0;
    padding: 0;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
}

.dashboard-container {
    display: flex;
    height: 100vh;
    padding: 20px;
    box-sizing: border-box;
}

.stocks-container {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: auto repeat(3, 1fr);
    gap: 20px;
}

.box {
    background-color: var(--bg-secondary);
    border-radius: 1rem;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    font-size: 26px;
}

.box:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

#SPX {
    text-align: center;
    grid-column: span 3;
    background-color: #1e1e1e;
}

.index-container {
    display: flex;
    justify-content: space-between;
    width: 100%;
    gap: 2rem;
}

.index-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stock-symbol {
    font-size: 1.2rem;
    color: #888;
    margin-bottom: 0.5rem;
}

.stock-price { 
    font-size: 1.2em; 
    color: #4fc3f7; 
}

.stock-change { 
    font-size: 0.9em; 
}

.positive { 
    color: var(--text-positive); 
}

.negative { 
    color: var(--text-negative); 
}

#footer-container {
    grid-column: span 3;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--bg-secondary);
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
}

#time {
    font-size: 1.8rem;
    color: #4fc3f7;
    font-weight: 600;
}

#status {
    font-size: 1rem;
    color: #888;
}

.clear-btn {
    background-color: #333;
    color: #e0e0e0;
    border: 1px solid #555;
    border-radius: 4px;
    padding: 6px 12px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-left: 15px;
}

.clear-btn:hover {
    background-color: #444;
    border-color: #4fc3f7;
}
