/* ==========================================================================
   CoCo Platform Layout Styles (shared across web apps)
   - Use MudBlazor components and utility classes when possible
   - All custom classes use 'coco-' prefix
   - Colors coordinate with CoCoTheme.cs
   ========================================================================== */

/* --------------------------------------------------------------------------
   CSS Custom Properties (Brand Colors)
   -------------------------------------------------------------------------- */
:root {
    --coco-primary: #e86825;
    --coco-primary-dark: #b84f1d;
    --coco-primary-light: #f5a66d;
    --coco-accent: #f5f1e1;
    --coco-primary-rgb: 232, 104, 37;
    --coco-text-primary: #212529;
    --coco-text-secondary: #6c757d;
    --coco-text-muted: #adb5bd;
    --coco-border-color: #dee2e6;
    --coco-bg-subtle: #f8f9fa;
    --coco-white: #fff;
    --coco-black: #000;
    --coco-info: #0dcaf0;
    --coco-success: #198754;
    --coco-warning: #ffc107;
    --coco-error: #dc3545;
    --coco-skeleton-bg: #fff;
    --coco-skeleton-header-bg: #f5f5f5;
    --coco-skeleton-alt-bg: #fafafa;
    --coco-skeleton-border: #e0e0e0;
    --coco-skeleton-border-light: #e8e8e8;
    --coco-skeleton-border-medium: #ddd;
    --coco-border-radius: 0.375rem;
}

/* --------------------------------------------------------------------------
   Base Typography
   -------------------------------------------------------------------------- */
html, body {
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* --------------------------------------------------------------------------
   Link Styling (Content Area Only)
   -------------------------------------------------------------------------- */
.mud-main-content a:not(.mud-button-root):not(.mud-nav-link):not(.mud-link) {
    color: var(--coco-primary);
    text-decoration: none;
}

.mud-main-content a:not(.mud-button-root):not(.mud-nav-link):not(.mud-link):hover {
    color: var(--coco-primary-dark);
    text-decoration: underline;
}

/* --------------------------------------------------------------------------
   Main Content Area
   -------------------------------------------------------------------------- */
.coco-main-content {
    padding-top: 80px;
    padding-left: 16px;
    padding-right: 16px;
    padding-bottom: 16px;
}

/* --------------------------------------------------------------------------
   Blazor Error UI (connection lost indicator)
   -------------------------------------------------------------------------- */
#blazor-error-ui {
    color-scheme: light only;
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
    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;
}
