/* ==========================================================================
   app.css — Time-Book App-specific Styles (uses UiKit Design Tokens)
   ========================================================================== */

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    background-color: var(--surface-canvas);
}

h1:focus {
    outline: none;
}

/* Blazor validation states */
.valid.modified:not([type=checkbox]) {
    outline: 1px solid var(--status-success);
}

.invalid {
    outline: 1px solid var(--status-danger);
}

.validation-message {
    color: var(--status-danger);
    font-size: var(--text-sm);
}

/* Blazor reconnect 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;
}

/* PWA Install Banner */
#pwa-install-banner {
    position: fixed;
    bottom: -80px;
    left: 0;
    right: 0;
    z-index: 9999;
    padding: 0 1rem 1rem;
    transition: bottom 0.3s ease;
    pointer-events: none;
}
#pwa-install-banner.pwa-install-visible {
    bottom: 0;
}
.pwa-install-content {
    max-width: 480px;
    margin: 0 auto;
    background: #fff;
    border-radius: 1rem;
    padding: 0.875rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    box-shadow: 0 -2px 16px rgba(0,0,0,0.12);
    pointer-events: auto;
}
.pwa-install-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    flex-shrink: 0;
}
.pwa-install-text {
    flex: 1;
    min-width: 0;
}
.pwa-install-text strong {
    display: block;
    font-size: 0.9375rem;
    color: #1e293b;
}
.pwa-install-text span {
    font-size: 0.8125rem;
    color: #64748b;
}
.pwa-install-accept {
    padding: 0.5rem 1rem;
    background: #2563eb;
    color: #fff;
    border: none;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
}
.pwa-install-accept:hover { background: #1d4ed8; }
.pwa-install-dismiss {
    background: none;
    border: none;
    font-size: 1.25rem;
    color: #94a3b8;
    cursor: pointer;
    padding: 0.25rem;
    line-height: 1;
    flex-shrink: 0;
}
.pwa-install-dismiss:hover { color: #64748b; }

/* PWA Update Banner */
#pwa-update-banner {
    position: fixed;
    top: -72px;
    left: 0;
    right: 0;
    z-index: 9999;
    padding: 0.75rem 1rem 0;
    transition: top 0.3s ease;
    pointer-events: none;
}
#pwa-update-banner.pwa-update-visible {
    top: 0;
}
.pwa-update-content {
    max-width: 520px;
    margin: 0 auto;
    background: #1e293b;
    border-radius: 0 0 1rem 1rem;
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
    pointer-events: auto;
}
.pwa-update-text {
    flex: 1;
    min-width: 0;
}
.pwa-update-text strong {
    display: block;
    font-size: 0.875rem;
    color: #fff;
}
.pwa-update-text span {
    font-size: 0.8125rem;
    color: #94a3b8;
}
.pwa-update-accept {
    padding: 0.4rem 0.875rem;
    background: #2563eb;
    color: #fff;
    border: none;
    border-radius: 0.5rem;
    font-size: 0.8125rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
}
.pwa-update-accept:hover { background: #1d4ed8; }
.pwa-update-dismiss {
    background: none;
    border: none;
    font-size: 1.25rem;
    color: #64748b;
    cursor: pointer;
    padding: 0.25rem;
    line-height: 1;
    flex-shrink: 0;
}
.pwa-update-dismiss:hover { color: #94a3b8; }
