/* POSBridge - Base Styles */
*, *::before, *::after {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    margin-top: 0;
}

a {
    color: #005ae0;
}

a:hover {
    color: #0044b3;
}

/* Blazor error UI */
#blazor-error-ui {
    background: #b32121;
    color: white;
    padding: 12px 24px;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    display: none;
    font-size: 14px;
}

#blazor-error-ui .reload {
    color: #ffcccc;
    margin-left: 8px;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    float: right;
    font-weight: bold;
}

.blazor-error-boundary {
    background: #b32121;
    padding: 1rem;
    color: white;
    border-radius: 8px;
    margin: 16px 0;
}

.blazor-error-boundary::after {
    content: "An error has occurred.";
}

/* Sidebar nav hover */
nav a:hover {
    color: #e2e8f0 !important;
    background: rgba(255, 255, 255, 0.05);
}

/* Focus styles */
h1:focus {
    outline: none;
}

input:focus, select:focus, textarea:focus {
    outline: 2px solid #005ae0;
    outline-offset: -1px;
}

/* Validation */
.valid.modified:not([type=checkbox]) {
    outline: 1px solid #059669;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
    font-size: 12px;
    margin-top: 4px;
}
