body {
    font-family: 'Inter', sans-serif;
    background-color: #1a1a1a;
    color: #e0e0e0;
    margin: 0;
    padding: 0;
    min-height: 100vh;
}

.container {
    width: 95%;
    max-width: 1200px;
    padding: 10px;
    box-sizing: border-box;
    margin: 0 auto;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    border-bottom: 1px solid #333;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 12px;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

h1 {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.8em;
    color: #ffd700;
    margin: 0;
    white-space: nowrap;
}

.header-right {
    margin-left: auto;
    text-align: right;
    min-width: 140px;
}

#current-time {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1em;
    color: #aaa;
}

#latest-price {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.2em;
    color: #ffd700;
    margin-top: 4px;
}

main {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

section {
    background-color: #2a2a2a;
    border: 1px solid #333;
    padding: 10px;
    border-radius: 0px;
    width: 100%;
    box-sizing: border-box;
}

h2 {
    font-family: 'JetBrains Mono', monospace;
    color: #ffd700;
    border-bottom: 1px solid #444;
    padding-bottom: 8px;
    margin-top: 0;
    margin-bottom: 16px;
    font-size: 1.1em;
}

/* Chart */
#chart-section {
    position: relative;
    height: 350px;
    padding: 10px 10px 50px 10px;
    background-color: #2a2a2a;
    border: 1px solid #333;
    width: 100%;
    box-sizing: border-box;
}

#gold-chart {
    height: 100% !important;
    width: 100% !important;
}

/* News */
#news-section {
    max-height: 600px;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 10px;
}

#news-section::-webkit-scrollbar {
    height: 8px;
}
#news-section::-webkit-scrollbar-track {
    background: #1a1a1a;
}
#news-section::-webkit-scrollbar-thumb {
    background-color: #555;
    border-radius: 4px;
    border: 2px solid #1a1a1a;
}

#news-feed {
    display: flex;
    flex-direction: row;
    gap: 15px;
}

.news-item {
    border: 1px solid #444;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: #2a2a2a;
    width: 260px;
    min-width: 260px;
    max-width: 260px;
    flex: 0 0 auto;
}

.news-item img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border: 1px solid #555;
}

.news-content h3 {
    font-family: 'Inter', sans-serif;
    font-size: 1.1em;
    margin: 0;
}

.news-content a {
    color: #ffd700;
    text-decoration: none;
}

.news-content p {
    font-size: 0.85em;
    color: #aaa;
    margin: 0;
}

/* Provider */
.filter-buttons {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.filter-btn {
    background-color: #333;
    color: #e0e0e0;
    border: 1px solid #555;
    padding: 8px 15px;
    cursor: pointer;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9em;
    transition: background-color 0.3s ease;
    border-radius: 0px;
}

.filter-btn:hover {
    background-color: #555;
}

.filter-btn.active {
    background-color: #ffd700;
    color: #1a1a1a;
    border-color: #ffd700;
}

#provider-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.provider-card {
    background-color: #333;
    border: 1px solid #444;
    padding: 15px;
    border-radius: 0px;
}

.provider-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
    font-size: 0.85em;
}

.provider-table th, .provider-table td {
    border: 1px solid #444;
    padding: 5px;
    text-align: center;
}

.provider-table th {
    background-color: #444;
    color: #ffd700;
}

.provider-card h3 {
    font-family: 'Inter', sans-serif;
    color: #ffd700;
    margin-top: 0;
    margin-bottom: 10px;
}

.provider-card p {
    margin: 5px 0;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9em;
}

.provider-card .buy-price {
    color: #4CAF50;
}

.provider-card .sell-price {
    color: #F44336;
}

footer {
    text-align: center;
    padding: 20px 0;
    margin-top: 30px;
    border-top: 1px solid #333;
    color: #777;
    font-size: 0.9em;
}

@media (min-width: 768px) {
    main {
        grid-template-columns: 1fr;
    }

    #provider-section {
        grid-column: 1 / -1;
    }
}
