html, body {
    font-family: var(--font-ui);
    font-size: var(--fs-md);
    line-height: var(--lh-body);
    height: 100%;
    margin: 0;
    background-color: var(--bg-app);
    color: var(--text-primary);
    position: relative;
}

html::before, body::before {
    display: none;
}

/* Dashboard nested building preview — avoid collision with Buildings page .building-card */
.dashboard-tile {
    background: var(--cg-surface-bg) !important;
    border: 1px solid var(--cg-surface-border) !important;
    border-radius: var(--cg-surface-radius) !important;
    box-shadow: var(--cg-surface-shadow) !important;
    transition: transform var(--dur-base) var(--ease), border-color var(--dur-base) var(--ease), box-shadow var(--dur-base) var(--ease);
}

.dashboard-tile:hover {
    transform: translateY(-2px);
    border-color: var(--cg-surface-border-hover) !important;
    box-shadow: var(--cg-surface-shadow-hover) !important;
}

#app {
    height: 100%;
    background-color: transparent;
    position: relative;
    z-index: 1;
}

/* Mobile-first responsive design */
@media (max-width: 768px) {
    .container {
        padding: 0.5rem;
    }
}

/* Loading spinner */
.spinner-border {
    width: 3rem;
    height: 3rem;
}

/* Card styles — align with HUD tokens */
.card {
    box-shadow: none;
    border: 1px solid var(--border-subtle);
    margin-bottom: var(--s-4);
    background: var(--bg-surface-1);
    backdrop-filter: blur(8px);
    border-radius: var(--r-md);
    color: var(--text-primary);
}

.card-header {
    background: linear-gradient(180deg, var(--accent-primary-wash) 0%, transparent 100%);
    border-bottom: 1px solid var(--border-subtle);
    font-weight: 600;
    color: var(--text-primary);
}

/* Resource badges */
.resource-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    margin: 0.25rem;
    border-radius: 0.375rem;
    font-weight: 500;
    font-size: 0.875rem;
}

.resource-food {
    background-color: #d4edda;
    color: #155724;
}

.resource-ore {
    background-color: #d1ecf1;
    color: #0c5460;
}

.resource-wood {
    background-color: #fff3cd;
    color: #856404;
}

.resource-petrol {
    background-color: #f8d7da;
    color: #721c24;
}

/* Building cards */
.building-card {
    transition: transform 0.2s;
    cursor: pointer;
}

.building-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

/* Navigation */
.navbar-brand {
    font-weight: bold;
    font-size: 1.5rem;
}

/* Buttons */
.btn {
    border-radius: 0.375rem;
    font-weight: 500;
}

/* Toast notifications */
.blazored-toast {
    border-radius: 0.5rem;
}

/* Error UI */
#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}

/* Country status badge (Mały/Neutralny/Duży Kraj) */
.country-status-badge {
    width: 32px;
    height: 32px;
    object-fit: contain;
    margin-left: 0.25rem;
    cursor: help;
}

