@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

* {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

html, body {
    margin: 0;
    padding: 0;
    height: 100%;
}

body {
    background: #F8FAFC;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    letter-spacing: -0.01em;
    color: #1E293B;
}

h1 {
    font-size: 2.5rem;
    line-height: 1.2;
}

h2 {
    font-size: 2rem;
    line-height: 1.3;
}

h3 {
    font-size: 1.75rem;
    line-height: 1.4;
}

h4 {
    font-size: 1.5rem;
    line-height: 1.4;
}

h5 {
    font-size: 1.25rem;
    line-height: 1.5;
}

h6 {
    font-size: 1.125rem;
    line-height: 1.5;
}

p {
    line-height: 1.7;
    color: #64748B;
    font-weight: 400;
}

/* Modern button styles */
.mud-button-root {
    border-radius: 10px !important;
    font-weight: 500 !important;
    text-transform: none !important;
    transition: all 0.2s ease !important;
    font-family: 'Poppins', sans-serif !important;
}

.mud-button-root:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2) !important;
}

/* Modern card styles */
.mud-card {
    border-radius: 12px !important;
    border: 1px solid #E2E8F0 !important;
    transition: all 0.3s ease !important;
}

.mud-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08) !important;
    border-color: #CBD5E1 !important;
}

/* Modern chip styles */
.mud-chip {
    border-radius: 8px !important;
    font-weight: 500 !important;
    font-family: 'Poppins', sans-serif !important;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Modern focus states */
*:focus-visible {
    outline: 2px solid #006678;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #F1F5F9;
}

::-webkit-scrollbar-thumb {
    background: #CBD5E1;
    border-radius: 4px;
}

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

/* Modern divider */
.mud-divider {
    border-color: #006678 !important;
}

/* App bar improvements */
.mud-appbar {
    transition: all 0.3s ease !important;
}

/* Image styles */
img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
}

/* Blazor error UI - Modern styling */
#blazor-error-ui {
    background: #EF4444;
    color: white;
    border-radius: 0;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    padding: 1rem 1.5rem;
    font-weight: 500;
    bottom: 0;
    left: 0;
    position: fixed;
    width: 100%;
    z-index: 1000;
    display: none;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 6px;
    transition: all 0.2s;
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
}

#blazor-error-ui .dismiss:hover {
    background: rgba(255, 255, 255, 0.2);
}

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

/* Loading progress - Modern style */
.loading-progress {
    position: relative;
    width: 5rem;
    height: 5rem;
}

    .loading-progress circle {
        fill: none;
        stroke: #E2E8F0;
        stroke-width: 0.5rem;
        transform-origin: 50% 50%;
        transform: rotate(-90deg);
    }

        .loading-progress circle:last-child {
            stroke: #006678;
            stroke-linecap: round;
            stroke-dasharray: calc(3.141 * var(--blazor-load-percentage, 0%) * 0.8), 500%;
            transition: stroke-dasharray 0.05s ease-in-out;
        }

.loading-progress-text {
    font-weight: 600;
    color: #64748B;
    font-size: 0.875rem;
}

    .loading-progress-text:after {
        content: var(--blazor-load-percentage-text, "Loading");
    }

/* Responsive typography */
@media (max-width: 768px) {
    h1 {
        font-size: 1.875rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    h3 {
        font-size: 1.25rem;
    }
    
    h4 {
        font-size: 1.125rem;
    }
}

/* Animation utilities */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* Code blocks */
code {
    background: #F1F5F9;
    color: #2563EB;
    padding: 0.2rem 0.4rem;
    border-radius: 6px;
    font-size: 0.875em;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
}

pre {
    background: #1E293B;
    color: #F1F5F9;
    padding: 1.5rem;
    border-radius: 10px;
    overflow-x: auto;
    line-height: 1.6;
}

pre code {
    background: transparent;
    color: inherit;
    padding: 0;
}

/* Hover card effect */
.hover-card {
    transition: all 0.3s ease;
}

.hover-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(37, 99, 235, 0.12) !important;
}