/* ================================================
   Einfach Bewirtungsbeleg - Base App Styles
   MudBlazor focused with modern enhancements
   ================================================ */

html, body {
    font-family: 'Poppins', 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    min-height: 100vh;
}

body {
    background: #FAFAFA;
}

/* Main layout - flex for sticky footer */
.main-layout {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* 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;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Better text rendering */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Selection color */
::selection {
    background: rgba(25, 118, 210, 0.2);
    color: inherit;
}

/* Focus visible for accessibility */
:focus-visible {
    outline: 2px solid #1976D2;
    outline-offset: 2px;
}

/* Link base styles */
a {
    text-decoration: none;
    transition: color 0.2s ease;
}

/* Image handling */
img {
    max-width: 100%;
    height: auto;
}

/* Box sizing */
*, *::before, *::after {
    box-sizing: border-box;
}

/* Custom utility classes */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.generating {
    opacity: 0.7;
    pointer-events: none;
}

/* Signature pad styling */
#signature-pad-container {
    border: 2px dashed var(--mud-palette-lines-default);
    border-radius: 8px;
    padding: 15px;
    background-color: var(--mud-palette-background-grey);
    text-align: center;
}

#signature-pad-container canvas {
    border: 1px solid var(--mud-palette-text-primary);
    border-radius: 4px;
    background: white;
    max-width: 100%;
    cursor: crosshair;
}