/* MenuMakker Website - Global Styles */

/* Brand CSS Variables */
:root {
    --mm-green: #2d5016;
    --mm-green-light: #3d6a1e;
    --mm-green-bg: #f0f7ed;
    --mm-orange: #e89237;
    --mm-orange-light: #f4a961;
    --mm-yellow: #ffc107;
    --mm-white: #ffffff;
    --mm-gray-light: #f8f9fa;
    --mm-gray: #6c757d;
    --mm-gray-dark: #343a40;
    --mm-success: #28a745;
    --mm-error: #dc3545;
    --mm-radius-sm: 8px;
    --mm-radius-md: 12px;
    --mm-radius-lg: 20px;
    --mm-radius-full: 9999px;
    --mm-shadow-sm: 0 1px 3px rgba(45, 80, 22, 0.1);
    --mm-shadow-md: 0 4px 12px rgba(45, 80, 22, 0.15);
    --mm-shadow-lg: 0 10px 25px rgba(45, 80, 22, 0.2);
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--mm-gray-dark);
    background-color: var(--mm-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    margin: 0;
    line-height: 1.2;
}

p {
    margin: 0;
}

a {
    color: var(--mm-green);
    text-decoration: none;
}

a:hover {
    color: var(--mm-green-light);
}

/* Focus states */
h1:focus {
    outline: none;
}

/* Loading screen */
.loading-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
    gap: 1rem;
}

.loading-spinner {
    width: 48px;
    height: 48px;
    border: 4px solid var(--mm-green);
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.loading-container p {
    color: var(--mm-green);
    font-weight: 600;
}

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

/* Error UI */
#blazor-error-ui {
    background: var(--mm-error);
    padding: 1rem;
    color: white;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    display: none;
    text-align: center;
}

#blazor-error-ui a {
    color: white;
    text-decoration: underline;
    margin-left: 0.5rem;
}

/* Blazor error boundary */
.blazor-error-boundary {
    background: var(--mm-error);
    padding: 1rem;
    color: white;
    border-radius: var(--mm-radius-md);
    margin: 1rem;
}

.blazor-error-boundary::after {
    content: "Der opstod en fejl.";
}
