/**
 * Ambulance Sales Tool - Public Styles
 * Apple-inspired design system
 */

/* CSS Custom Properties */
:root {
    --ast-text-primary: #1d1d1f;
    --ast-text-secondary: #86868b;
    --ast-bg-primary: #ffffff;
    --ast-bg-secondary: #f5f5f7;
    --ast-accent: #0071e3;
    --ast-accent-hover: #0077ed;
    --ast-success: #34c759;
    --ast-warning: #ff9500;
    --ast-error: #ff3b30;
    --ast-border: #d2d2d7;
    --ast-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    --ast-shadow-hover: 0 4px 20px rgba(0, 0, 0, 0.12);
    --ast-radius: 12px;
    --ast-radius-sm: 8px;
    --ast-font: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    --ast-transition: 200ms ease;
}

/* Reset within plugin containers */
#ast-configurator-root,
#ast-catalog-root,
#ast-compare-root,
#ast-product-root {
    font-family: var(--ast-font);
    color: var(--ast-text-primary);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Loading state */
#ast-configurator-root:empty::after,
#ast-catalog-root:empty::after {
    content: '';
    display: block;
    width: 40px;
    height: 40px;
    margin: 80px auto;
    border: 3px solid var(--ast-bg-secondary);
    border-top-color: var(--ast-accent);
    border-radius: 50%;
    animation: ast-spin 0.8s linear infinite;
}

@keyframes ast-spin {
    to { transform: rotate(360deg); }
}
