:root {
    --nexus-primary: #0ea5e9;
    --nexus-secondary: #1e293b;
    --nexus-bg-main: #f4f6f8;
    --nexus-bg-card: #ffffff;
    --nexus-text-main: #1e293b;
    --nexus-text-muted: #64748b;
    --nexus-border: #e2e8f0;
    --glass-bg: rgba(255, 255, 255, 0.95);
    --glass-border: rgba(226, 232, 240, 0.8);
    --transition-standard: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    box-sizing: border-box;
}

html, body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--nexus-bg-main);
    color: var(--nexus-text-main);
    margin: 0;
    padding: 0;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--nexus-bg-main);
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    margin: 0;
    font-weight: 700;
}

/* Utility Classes */
.text-gradient {
    background: linear-gradient(to right, var(--nexus-primary), var(--nexus-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Form Styles Global */
.form-control, .form-select {
    font-family: 'Outfit', sans-serif;
}

.validation-message {
    color: #f87171;
    font-size: 0.85rem;
    margin-top: 4px;
    display: block;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.animate-fade-in {
    animation: fadeIn 0.5s ease-out;
}

.animate-slide-up {
    animation: slideUp 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Bootstrap Overrides for Nexus Theme */
.row {
    --bs-gutter-x: 1.5rem;
}

/* Blazor Error UI */
#blazor-error-ui {
    background: #7f1d1d;
    color: white;
    padding: 0.5rem 1rem;
    display: none;
    position: fixed;
    bottom: 0;
    width: 100%;
    z-index: 1000;
    text-align: center;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.5);
}

#blazor-error-ui .reload {
    color: #fecaca;
    margin-left: 10px;
    text-decoration: underline;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 1rem;
}