body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: #121212;
    color: #e0e0e0;
    margin: 0;
    padding: 20px;
    line-height: 1.6;
}

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

h1 {
    color: #ffffff;
    font-size: 2.5em;
    margin-bottom: 10px;
    background: linear-gradient(to right, #bb86fc, #03dac6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

header p {
    color: #a0a0a0;
    font-size: 1.1em;
}

#dashboard {
    max-width: 1200px;
    margin: 0 auto;
}

.source-container {
    margin-bottom: 50px;
}

.source-container h2 {
    color: #bb86fc;
    font-size: 1.8em;
    border-bottom: 2px solid #333;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

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

.news-card {
    background-color: #1e1e1e;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    transition: transform 0.2s, box-shadow 0.2s, background-color 0.2s;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    border: 1px solid #333;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.4);
    background-color: #252525;
    border-color: #bb86fc;
}

.news-content {
    padding: 15px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.news-card h3 {
    margin: 0 0 10px 0;
    font-size: 1.1em;
    font-weight: 500;
    color: #f0f0f0;
}

.news-footer {
    margin-top: auto;
    display: flex;
    justify-content: flex-end;
}

.news-time {
    font-size: 0.85em;
    color: #888;
}

.copy-button {
    background-color: #bb86fc;
    color: #000000;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s;
}

.copy-button:hover {
    background-color: #d7b7fd;
    transform: scale(1.05);
}

.copy-button:active {
    transform: scale(0.95);
}

.generating {
    color: #bb86fc;
    font-weight: 500;
    text-align: center;
    padding: 20px;
}

.loading {
    text-align: center;
    padding: 40px;
    font-size: 1.2em;
    color: #bb86fc;
}

.error-message {
    background-color: #3e2723;
    color: #ff8a65;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    border: 1px solid #d84315;
}

@media (max-width: 768px) {
    h1 {
        font-size: 2em;
    }
    .articles-grid {
        grid-template-columns: 1fr;
    }
}
