:root {
    --bg-color: #0f172a;
    --card-bg: #1e293b;
    --text-color: #f8fafc;
    --accent-blue: #38bdf8;
    --status-ok: #4ade80;
    --status-warn: #fbbf24;
}

body {
    font-family: system-ui, -apple-system, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    margin: 0;
    padding: 2rem;
    display: flex;
    justify-content: center;
}

.dashboard {
    width: 100%;
    max-width: 800px;
}

h1 {
    color: var(--accent-blue);
    border-bottom: 2px solid var(--card-bg);
    padding-bottom: 0.5rem;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.card {
    background-color: var(--card-bg);
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
}

.card h3 {
    margin: 0 0 0.5rem 0;
    color: #94a3b8;
    font-size: 0.9rem;
    text-transform: uppercase;
}

.metric {
    font-size: 2rem;
    font-weight: bold;
    color: var(--text-color);
}

.status-dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--alpine-color, var(--status-ok)); /* Falls back to green if empty */
    margin-right: 8px;
}


.footer {
    margin-top: 3rem;
    font-size: 0.8rem;
    color: #64748b;
    text-align: center;
}

/* This targets our new ID and sets the background using an HTML-safe CSS variable */
#alpine-status-dot {
    background-color: var(--alpine-color);
}

/* AI Gallery Grid Layout */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.gallery-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.2s ease;
}

.gallery-card:hover {
    transform: translateY(-2px);
    border-color: #00ffcc; /* Matches your hacker green accent */
}

.card-image-placeholder {
    height: 120px;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}

.card-info {
    padding: 10px;
}

.card-title {
    display: block;
    font-size: 0.85rem;
    color: #e0e0e0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 8px;
}

.card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.tag {
    background: rgba(0, 255, 220, 0.15);
    color: #00ffcc;
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Courier New', Courier, monospace;
}
