/* Force remove borders from all Syncfusion e-card elements - GLOBAL OVERRIDE */
.e-card,
.e-card.card,
div.e-card {
    border: 0 !important;
    border-width: 0 !important;
    border-style: none !important;
    border-color: transparent !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* Hover animation - subtle grow effect */
.e-card:hover {
    border: 0 !important;
    border-width: 0 !important;
    border-style: none !important;
    border-color: transparent !important;
    transform: scale(1.01);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
}

.e-card:focus,
.e-card:active {
    border: 0 !important;
    border-width: 0 !important;
    border-style: none !important;
    border-color: transparent !important;
}

/* Gallagher (AJG) Brand Palette — variable names preserved from Iswara for backwards compat */
:root {
    --iswara-primary-gradient: linear-gradient(135deg, #002a44 0%, #1A4A8A 100%); /* Gallagher navy gradient */
    --iswara-primary: #002a44; /* Gallagher deep navy — primary brand */
    --iswara-navy: #002a44; /* Gallagher deep navy */
    --iswara-navy-dark: #001F4D; /* Deeper navy for emphasis */
    --iswara-gold: #E66A2A; /* Gallagher coral — accent (was gold) */
    --iswara-gold-light: #F4A57E; /* Light coral */
    --iswara-white: #FFFFFF; /* Pure white */
    --iswara-light-green: #A9BFD8; /* Slate-blue (was sage) */
    --iswara-light-gray: #E2E6EA;
    --iswara-sage: #A9BFD8; /* Slate-blue (was sage) */
    --iswara-teal: #1A4A8A; /* Mid-navy (was teal) */

    /* Native AJG aliases (use these in new code) */
    --ajg-navy: #002a44;
    --ajg-navy-dark: #001F4D;
    --ajg-navy-light: #1A4A8A;
    --ajg-coral: #E66A2A;
    --ajg-coral-light: #F4A57E;
    --ajg-slate: #A9BFD8;
    --ajg-bg: #F0F4F8;
    --ajg-text: #1A1A1A;
    --ajg-text-muted: #6C757D;
}

/* Import Employer DataGrid Styles */
@import url('../Features/Employer/_Shared/EmployerDataGrid.css');
@import url('../Features/Employer/_Shared/EmployerSyncfusionGrid.css');

html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    background-color: var(--iswara-white);
    color: var(--iswara-navy); /* Navy text color */
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

/* Modal open state - prevent background scrolling while preserving scroll position */
body.modal-open {
    overflow: hidden;
}


/* Custom scrollbar styling - minimal, transparent track */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb {
    background: rgba(230, 106, 42, 0.4); /* Iswara gold, subtle */
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(230, 106, 42, 0.6);
}

/* Firefox scrollbar styling - transparent track */
* {
    scrollbar-width: thin;
    scrollbar-color: rgba(230, 106, 42, 0.4) transparent;
}

h1:focus {
    outline: none;
}

a, .btn-link {
    color: var(--iswara-gold);
    font-weight: 500;
}

.btn-primary {
    color: white;
    background: var(--iswara-navy);
    border: none;
    box-shadow: 0 2px 4px rgba(0, 42, 68, 0.15);
}

.btn-primary:hover {
    background: var(--iswara-gold);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(230, 106, 42, 0.25);
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem rgba(230, 106, 42, 0.5);
}

.content {
    padding-top: 1.1rem;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid var(--iswara-sage);
}

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}

#blazor-error-ui {
    color-scheme: light only;
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
    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;
    }

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTY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zEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.loading-progress {
    position: relative;
    display: block;
    width: 8rem;
    height: 8rem;
    margin: 20vh auto 1rem auto;
}

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

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

.loading-progress-text {
    position: absolute;
    text-align: center;
    font-weight: bold;
    inset: calc(20vh + 3.25rem) 0 auto 0.2rem;
}

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

code {
    color: #c02d76;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
    text-align: start;
}

/* Shared CSS styles for all hazard pages to ensure consistent styling */
/* Based on Iswara color palette and design system */

.content-page {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-color: transparent;
    font-family: 'Titillium Web', sans-serif;
}

.content-header {
    background: linear-gradient(135deg, #F0F4F8 0%, #ffffff 100%);
    color: #002a44;
    padding: 2.5rem 2rem;
    position: relative;
    border-radius: 12px;
    margin: 20px 20px 0 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    text-align: center;
}

.content-header h1 {
    margin: 0;
    font-weight: 600;
    font-size: 2.4rem;
    color: #002a44;
}

.back-button {
    position: absolute;
    left: 2rem;
    top: 50%;
    transform: translateY(-50%);
    background-color: #002a44;
    border: none;
    color: white;
    padding: 0.6rem 1.2rem;
    border-radius: 30px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(0, 42, 68, 0.2);
}

.back-button:hover {
    background-color: #E66A2A;
    transform: translateY(-50%) translateX(-2px);
    box-shadow: 0 6px 15px rgba(230, 106, 42, 0.3);
}

.content-container {
    max-width: none;
    margin: 0;
    padding: 30px;
    width: 100%;
}

.content-section {
    margin-bottom: 3rem;
    background-color: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 6px 18px rgba(0,0,0,0.06);
}

.content-section h2 {
    color: #002a44;
    font-weight: 600;
    font-size: 1.8rem;
    margin-top: 0;
    margin-bottom: 1.2rem;
    padding-bottom: 10px;
    position: relative;
}

.content-section h2:after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    height: 3px;
    width: 60px;
    background-color: #E66A2A;
    border-radius: 2px;
}

.content-section p {
    color: #555;
    line-height: 1.7;
    font-size: 1.05rem;
}

.content-section h3 {
    color: #002a44;
    font-weight: 600;
    font-size: 1.4rem;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
}

.content-section ul {
    padding-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.content-section li {
    margin-bottom: 0.7rem;
    color: #555;
    line-height: 1.6;
}

.content-section strong {
    color: #002a44;
    font-weight: 600;
}

.info-card {
    display: flex;
    background-color: #F0F4F8;
    border-radius: 10px;
    padding: 1.2rem;
    margin: 1.5rem 0;
    align-items: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.info-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.08);
}

.info-icon {
    background-color: #E66A2A;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    flex-shrink: 0;
}

.info-icon span {
    color: white;
    font-size: 1.5rem;
}

.info-content p {
    margin: 0;
    color: #002a44;
    font-weight: 500;
}

.examples-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.example-item {
    display: flex;
    align-items: flex-start;
    padding: 1.2rem;
    background-color: #f9f9ff;
    border-radius: 10px;
    border-left: 4px solid #E66A2A;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.example-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.08);
}

.example-icon {
    flex: 0 0 60px;
    height: 60px;
    border-radius: 50%;
    background-color: rgba(230, 106, 42, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    flex-shrink: 0;
}

.example-icon span {
    color: #E66A2A;
    font-size: 1.5rem;
}

.example-content h3 {
    margin: 0 0 0.5rem 0;
    color: #002a44;
    font-size: 1.2rem;
    font-weight: 600;
}

.example-content p {
    margin: 0;
    font-size: 1rem;
    color: #555;
}

.strategies-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.strategy-card {
    background-color: #f9f9ff;
    border-radius: 10px;
    padding: 1.5rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.strategy-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.08);
}

.strategy-card h3 {
    color: #002a44;
    font-weight: 600;
    font-size: 1.2rem;
    margin-top: 0;
    margin-bottom: 1rem;
    border-bottom: 1px solid #F0F4F8;
    padding-bottom: 0.5rem;
}

.strategy-card ul {
    padding-left: 1.5rem;
    margin-bottom: 0;
}

.strategy-card li {
    margin-bottom: 0.7rem;
    color: #555;
    line-height: 1.5;
}

.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.resource-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: white;
    border: 1px solid #F0F4F8;
    border-radius: 10px;
    padding: 1.5rem 1rem;
    text-align: center;
    text-decoration: none;
    color: #002a44;
    transition: all 0.3s ease;
    gap: 0.8rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.resource-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
    border-color: #E66A2A;
}

.resource-card span.oi {
    font-size: 1.8rem;
    color: #E66A2A;
}

.content-footer {
    background-color: #002a44;
    color: white;
    padding: 1.5rem;
    margin-top: auto;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.copyright {
    font-size: 0.9rem;
    opacity: 0.9;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
}

.footer-links a {
    color: white;
    text-decoration: none;
    font-size: 0.9rem;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.footer-links a:hover {
    opacity: 1;
    text-decoration: underline;
}

/* Responsive Design for Hazard Pages */
@media (max-width: 768px) {
    .content-header {
        padding: 2rem 1rem;
        margin: 15px 15px 0 15px;
    }

    .content-header h1 {
        font-size: 2rem;
        padding-top: 2rem;
    }

    .back-button {
        top: 1rem;
        transform: none;
        left: 1rem;
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }

    .content-container {
        padding: 1.5rem 1rem;
    }

    .content-section {
        padding: 1.5rem;
    }

    .examples-grid, .strategies-container {
        grid-template-columns: 1fr;
    }

    .resources-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }

    .example-item {
        padding: 1rem;
    }

    .info-icon, .example-icon {
        width: 50px;
        height: 50px;
    }

    .example-content h3 {
        font-size: 1.1rem;
    }

    .footer-links {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
}

/* Modern card styles to match Layout Style.jpg */
.card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(248, 250, 252, 0.85) 100%);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1), 0 4px 16px rgba(26, 74, 138, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.3);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15), 0 6px 20px rgba(26, 74, 138, 0.1);
}

.card-header {
    background: var(--iswara-navy);
    color: white;
    border: none;
    padding: 1.5rem;
    font-weight: 600;
    font-size: 1.1rem;
    box-shadow: 0 4px 15px rgba(0, 42, 68, 0.3);
}

.card-body {
    padding: 2rem;
}

/* Modern button styles */
.btn {
    border-radius: 8px;
    font-weight: 500;
    padding: 0.375rem 0.85rem;
    font-size: 0.875rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.12);
}

.btn-secondary {
    background-color: var(--iswara-light-green);
    border-color: var(--iswara-light-green);
    color: var(--iswara-navy);
}

.btn-secondary:hover {
    background-color: var(--iswara-navy);
    border-color: var(--iswara-navy);
    color: white;
}

.btn-success {
    background-color: var(--iswara-light-green);
    border-color: var(--iswara-light-green);
    color: var(--iswara-navy);
}

.btn-warning {
    background: var(--iswara-gold);
    border: none;
    color: white;
    box-shadow: 0 4px 15px rgba(230, 106, 42, 0.3);
}

/* Form styling */
.form-control {
    border-radius: 12px;
    border: 1px solid rgba(226, 230, 234, 0.6);
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--iswara-gold);
    box-shadow: 0 0 0 0.2rem rgba(230, 106, 42, 0.25), 0 4px 12px rgba(191, 216, 184, 0.1);
    background: rgba(255, 255, 255, 0.95);
}


