/* Typography - Poppins for headlines, Roboto for body */
/* Base: Roboto for all body text */
body, 
.mud-typography, 
.mud-text,
.mud-typography-body1,
.mud-typography-body2,
.mud-typography-caption,
.mud-typography-overline,
.mud-input,
.mud-select,
.mud-textarea,
.mud-select-item,
.mud-menu-item {
    font-family: 'Roboto', sans-serif !important;
}

/* Headlines - Poppins (higher specificity) */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif !important;
}

/* MudBlazor Typography Headlines - Poppins */
.mud-typography-h1, 
.mud-typography-h2, 
.mud-typography-h3, 
.mud-typography-h4, 
.mud-typography-h5, 
.mud-typography-h6 {
    font-family: 'Poppins', sans-serif !important;
}

/* MudText with Typo.h* - Poppins */
.mud-text.mud-typography-h1,
.mud-text.mud-typography-h2,
.mud-text.mud-typography-h3,
.mud-text.mud-typography-h4,
.mud-text.mud-typography-h5,
.mud-text.mud-typography-h6 {
    font-family: 'Poppins', sans-serif !important;
    font-weight: 600;
}

/* MudText with Typo.body* - Roboto */
.mud-text.mud-typography-body1,
.mud-text.mud-typography-body2,
.mud-text.mud-typography-caption,
.mud-text.mud-typography-overline {
    font-family: 'Roboto', sans-serif !important;
}

/* Subtitle - can be either, but typically Roboto for body-like text */
.mud-typography-subtitle1,
.mud-typography-subtitle2,
.mud-text.mud-typography-subtitle1,
.mud-text.mud-typography-subtitle2 {
    font-family: 'Roboto', sans-serif !important;
}

/* UI Elements - Poppins for emphasis */
.mud-card-title, 
.mud-chip-label,
.mud-button,
.mud-button-label {
    font-family: 'Poppins', sans-serif !important;
}

/* Additional selectors for MudBlazor class variations */
[class*="mud-typography-h1"],
[class*="mud-typography-h2"],
[class*="mud-typography-h3"],
[class*="mud-typography-h4"],
[class*="mud-typography-h5"],
[class*="mud-typography-h6"] {
    font-family: 'Poppins', sans-serif !important;
}

[class*="mud-typography-body"],
[class*="mud-typography-subtitle"] {
    font-family: 'Roboto', sans-serif !important;
}

/* Company Theme Background Pattern - Dark Blue, Light Blue, Yellow, White */
.blue-pattern {
    position: relative;
    width: 100%;
    min-height: 100vh;

    /* Pattern background with random squares and rectangles in company colors */
    background: 
        /* Row 1 - Dark Blue (#1E3A8A) */
        linear-gradient(rgba(30, 58, 138, 0.6), rgba(30, 58, 138, 0.6)) 5% 8% / 18% 22%,
        linear-gradient(rgba(30, 58, 138, 0.6), rgba(30, 58, 138, 0.6)) 22% 5% / 27% 30%,
        /* Row 1 - Light Blue (#3B82F6) */
        linear-gradient(rgba(59, 130, 246, 0.6), rgba(59, 130, 246, 0.6)) 45% 10% / 15% 18%,
        linear-gradient(rgba(59, 130, 246, 0.6), rgba(59, 130, 246, 0.6)) 60% 3% / 22% 27%,
        /* Row 1 - White */
        linear-gradient(rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.5)) 80% 7% / 18% 21%,
        
        /* Row 2 - Dark Blue */
        linear-gradient(rgba(30, 58, 138, 0.6), rgba(30, 58, 138, 0.6)) 3% 28% / 21% 24%,
        /* Row 2 - Light Blue */
        linear-gradient(rgba(59, 130, 246, 0.6), rgba(59, 130, 246, 0.6)) 25% 30% / 30% 18%,
        linear-gradient(rgba(59, 130, 246, 0.6), rgba(59, 130, 246, 0.6)) 50% 25% / 16% 25%,
        /* Row 2 - Yellow (#FBBF24) */
        linear-gradient(rgba(251, 191, 36, 0.2), rgba(251, 191, 36, 0.6)) 70% 32% / 24% 19%,
        /* Row 2 - White */
        linear-gradient(rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.5)) 90% 28% / 12% 28%,
        
        /* Row 3 - Light Blue */
        linear-gradient(rgba(59, 130, 246, 0.6), rgba(59, 130, 246, 0.6)) 8% 48% / 28% 16%,
        /* Row 3 - Dark Blue */
        linear-gradient(rgba(30, 58, 138, 0.6), rgba(30, 58, 138, 0.6)) 30% 50% / 19% 22%,
        /* Row 3 - Yellow */
        linear-gradient(rgba(251, 191, 36, 0.6), rgba(251, 191, 36, 0.6))55% 45% / 25% 27%,
        /* Row 3 - Light Blue */
        linear-gradient(rgba(59, 130, 246, 0.6), rgba(59, 130, 246, 0.6)) 75% 48% / 15% 21%,
        /* Row 3 - White */
        linear-gradient(rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.5)) 92% 52% / 22% 18%,
        
        /* Row 4 - Dark Blue */
        linear-gradient(rgba(30, 58, 138, 0.6), rgba(30, 58, 138, 0.6)) 5% 68% / 16% 24%,
        /* Row 4 - Yellow */
        linear-gradient(rgba(251, 191, 36, 0.6), rgba(251, 191, 36, 0.6)) 28% 70% / 27% 19%,
        /* Row 4 - Light Blue */
        linear-gradient(rgba(59, 130, 246, 0.6), rgba(59, 130, 246, 0.6)) 52% 65% / 21% 25%,
        /* Row 4 - White */
        linear-gradient(rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.5)) 72% 72% / 18% 16%,
        /* Row 4 - Dark Blue */
        linear-gradient(rgba(30, 58, 138, 0.6), rgba(30, 58, 138, 0.6)) 88% 68% / 24% 22%,
        
        /* Row 5 - Yellow */
        linear-gradient(rgba(251, 191, 36, 0.6), rgba(251, 191, 36, 0.6)) 10% 88% / 22% 15%,
        /* Row 5 - Light Blue */
        linear-gradient(rgba(59, 130, 246, 0.6), rgba(59, 130, 246, 0.6)) 32% 90% / 18% 21%,
        /* Row 5 - White */
        linear-gradient(rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.5)) 58% 85% / 28% 18%,
        /* Row 5 - Dark Blue */
        linear-gradient(rgba(30, 58, 138, 0.6), rgba(30, 58, 138, 0.6)) 78% 88% / 16% 24%,
        /* Row 5 - Yellow */
        linear-gradient(rgba(251, 191, 36, 0.6), rgba(251, 191, 36, 0.6)) 95% 92% / 19% 12%,
        
        /* Base background */
        linear-gradient(135deg, rgba(245, 247, 250, 0.1) 0%, rgba(240, 245, 250, 0.1) 100%);
    
    background-repeat: no-repeat;
}

/* Additional yellow squares pattern overlay */
.blue-pattern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        /* Randomly positioned yellow squares */
        linear-gradient(#FBBF24, #FBBF24),
        linear-gradient(#FBBF24, #FBBF24),
        linear-gradient(#FBBF24, #FBBF24),
        linear-gradient(#FBBF24, #FBBF24),
        linear-gradient(#FBBF24, #FBBF24),
        linear-gradient(#FBBF24, #FBBF24),
        linear-gradient(#FBBF24, #FBBF24),
        linear-gradient(#FBBF24, #FBBF24),
        linear-gradient(#FBBF24, #FBBF24),
        linear-gradient(#FBBF24, #FBBF24),
        linear-gradient(#FBBF24, #FBBF24),
        linear-gradient(#FBBF24, #FBBF24),
        linear-gradient(#FBBF24, #FBBF24),
        linear-gradient(#FBBF24, #FBBF24),
        linear-gradient(#FBBF24, #FBBF24);
    background-size: 
        /* Various square sizes */
        60px 60px,
        45px 45px,
        75px 75px,
        52px 52px,
        67px 67px,
        37px 37px,
        60px 60px,
        45px 45px,
        75px 75px,
        52px 52px,
        60px 60px,
        67px 67px,
        45px 45px,
        75px 75px,
        52px 52px;
    background-position: 
        /* Random positions */
        12% 18%,
        35% 8%,
        58% 25%,
        78% 12%,
        22% 42%,
        65% 38%,
        88% 52%,
        15% 68%,
        45% 72%,
        72% 65%,
        30% 88%,
        85% 82%,
        5% 55%,
        95% 35%,
        52% 95%;
    background-repeat: no-repeat;
    opacity: 0.5;
    pointer-events: none;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .blue-pattern {
        background-size: 
            /* Smaller sizes for mobile */
            12% 15%,
            18% 20%,
            10% 12%,
            15% 18%,
            12% 15%,
            16% 18%,
            20% 15%,
            14% 20%,
            12% 15%,
            18% 12%,
            10% 15%,
            16% 18%,
            14% 20%,
            12% 15%,
            18% 10%;
    }
}

