@import '/_content/Microsoft.FluentUI.AspNetCore.Components/css/reboot.css';

html, body {
    margin: 0;
    min-height: 100%;
    background: #4d3112; /* page background */
}

body {
    --body-font: "Segoe UI Variable", "Segoe UI", sans-serif;
    font-family: var(--body-font);
    font-size: var(--type-ramp-base-font-size);
    line-height: var(--type-ramp-base-line-height);
    margin: 0;
    background: #fff !important;
    z-index: 100;
}

/* covers area below the viewport so we can have a footer 
color below the page content that matches the footer color */
.body-after {
    position: fixed;
    display: block;
    height: 100vh;
    width: 100%;
    top: 50vh;
    background: #334155; 
    z-index: -100;
}

.navmenu-icon {
    display: none;
}

.main {
    color: var(--neutral-foreground-rest);
    align-items: stretch !important;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.body-content {
    align-self: stretch;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.content {
    padding: 0.5rem 1.5rem;
    align-self: stretch !important;
    width: 100%;
}

.manage {
    width: 100dvw;
}


.alert {
    border: 1px dashed var(--accent-fill-rest);
    padding: 5px;
}


#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
    margin: 20px 0;
}

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

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

    .blazor-error-boundary::before {
        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: #1b6ec2;
            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;
}


/* Override Fluent UI Header to use new blue theme */
.fui-FluentHeader {
    background: linear-gradient(135deg, #677eea 0%, #4DBBFF 100%) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* ===== AUTH PAGES STYLING ===== */
:root {
    --auth-bg-gradient: linear-gradient(135deg, #677eea 0%, #0ba2ff 100%);
    --auth-header-gradient: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    --auth-card-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --auth-font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --auth-text-primary: #374151;
    --auth-text-secondary: #666;
    --auth-border-color: #d1d5db;
    --auth-error-color: #ef4444;
    --auth-error-bg: #fef2f2;
    --auth-error-border: #fecaca;
    --auth-button-bg: #FF914D;
    --auth-button-hover: #e67e22;
    --auth-input-height: 40px;
    --auth-input-padding: 10px 12px;
    --auth-border-radius: 6px;
    --auth-card-radius: 12px;
}

/* Auth Page Layout */
.auth-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    background: var(--auth-bg-gradient);
    overflow-y: auto;
}

.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--auth-bg-gradient);
    padding: 20px;
    font-family: var(--auth-font-family);
}

.auth-card {
    background: white;
    border-radius: var(--auth-card-radius);
    box-shadow: var(--auth-card-shadow);
    width: 100%;
    max-width: 420px;
    overflow: hidden;
}

.auth-header {
    text-align: center;
    padding: 40px 30px 20px;
    background: var(--auth-header-gradient);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.auth-logo {
    height: auto;
    max-width: 100%;
    max-height: 120px;
    width: auto;
    display: block;
    margin: 0 auto;
    object-fit: contain;
}

.auth-title {
    color: var(--auth-text-primary);
    font-size: 18px;
    font-weight: 500;
    margin: 12px 0 0 0;
    text-align: center;
    display: block;
    width: 100%;
}

.auth-content {
    padding: 40px 32px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 32px;
}

/* Form Elements */
.auth-field {
    margin-bottom: 20px;
    width: 100%;
    display: block;
}

.auth-label {
    display: block;
    font-weight: 500;
    color: var(--auth-text-primary);
    font-size: 14px;
    margin-bottom: 4px;
    line-height: 1.2;
}

.auth-input {
    width: 100% !important;
    height: var(--auth-input-height);
    padding: var(--auth-input-padding);
    border: 1px solid var(--auth-border-color);
    border-radius: var(--auth-border-radius);
    font-size: 14px;
    font-family: inherit;
    background-color: #ffffff;
    transition: all 0.2s ease;
    box-sizing: border-box;
    display: block;
}

.auth-input:focus {
    outline: none;
    border-color: var(--auth-button-bg);
    box-shadow: 0 0 0 3px rgba(255, 145, 77, 0.1);
}

.auth-error {
    color: var(--auth-error-color);
    font-size: 12px;
    margin-top: 4px;
    font-weight: 500;
}

.auth-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border: none;
    border-radius: var(--auth-border-radius);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease, transform 0.1s ease-in-out;
    text-decoration: none;
    outline: none;
    padding: 10px 20px;
    background-color: var(--auth-button-bg);
    color: #ffffff;
    width: 100%;
    min-height: var(--auth-input-height);
    font-family: inherit;
    margin-top: 8px;
}

.auth-button:hover {
    background-color: var(--auth-button-hover);
    transform: translateY(-1px);
}

.auth-button:active {
    transform: translateY(0);
}

.auth-error-alert {
    padding: 12px 16px;
    border-radius: var(--auth-border-radius);
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 16px;
    background-color: var(--auth-error-bg);
    color: var(--auth-error-color);
    border: 1px solid var(--auth-error-border);
}

.auth-message {
    margin-top: 16px;
    margin-bottom: 16px;
    color: var(--auth-text-secondary);
    font-size: 14px;
    line-height: 1.5;
    text-align: center;
}

/* Custom Checkbox Toggle Styling - Required for functionality */
.checkbox-field {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin: 16px 0;
}

.custom-checkbox {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: var(--auth-text-primary);
    user-select: none;
}

.custom-checkbox input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 48px;
    height: 24px;
    background-color: #d1d5db;
    border-radius: 12px;
    position: relative;
    margin-right: 12px;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.checkmark::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background-color: white;
    border-radius: 50%;
    top: 2px;
    left: 2px;
    transition: transform 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.custom-checkbox input[type="checkbox"]:checked + .checkmark {
    background-color: #0ba2ff;
}

.custom-checkbox input[type="checkbox"]:checked + .checkmark::after {
    transform: translateX(24px);
}

.custom-checkbox:hover .checkmark {
    background-color: #9ca3af;
}

.custom-checkbox input[type="checkbox"]:checked:hover + .checkmark {
    background-color: #2563eb;
}

/* ===== MANAGE ACCOUNT PAGES STYLING ===== */
.manage-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    background: var(--auth-bg-gradient);
    overflow-y: auto;
}

.manage-container {
    min-height: 100vh;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    background: var(--auth-bg-gradient);
    padding: 20px;
    font-family: var(--auth-font-family);
}

.manage-card {
    background: white;
    border-radius: var(--auth-card-radius);
    box-shadow: var(--auth-card-shadow);
    width: 100%;
    max-width: 1200px;
    overflow: hidden;
}

.manage-header {
    text-align: center;
    padding: 40px 30px 20px;
    background: var(--auth-header-gradient);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.manage-title {
    color: var(--auth-text-primary);
    font-size: 24px;
    font-weight: 600;
    margin: 12px 0 0 0;
    text-align: center;
    display: block;
    width: 100%;
}

.manage-content {
    padding: 40px 32px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 24px;
}

.manage-section {
    margin-bottom: 24px;
}

.manage-section-title {
    color: var(--auth-text-primary);
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid #e5e7eb;
}

.manage-field {
    margin-bottom: 20px;
    width: 100%;
    display: block;
}

.manage-label {
    display: block;
    font-weight: 500;
    color: var(--auth-text-primary);
    font-size: 14px;
    margin-bottom: 4px;
    line-height: 1.2;
}

.manage-input {
    width: 100% !important;
    height: var(--auth-input-height);
    padding: var(--auth-input-padding);
    border: 1px solid var(--auth-border-color);
    border-radius: var(--auth-border-radius);
    font-size: 14px;
    font-family: inherit;
    background-color: #ffffff;
    transition: all 0.2s ease;
    box-sizing: border-box;
    display: block;
}

.manage-input:focus {
    outline: none;
    border-color: var(--auth-button-bg);
    box-shadow: 0 0 0 3px rgba(255, 145, 77, 0.1);
}

.manage-input:disabled {
    background-color: #f9fafb;
    color: #6b7280;
    cursor: not-allowed;
}

.manage-error {
    color: var(--auth-error-color);
    font-size: 12px;
    margin-top: 4px;
    font-weight: 500;
}

.manage-button {
    display: block !important;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border: none;
    border-radius: var(--auth-border-radius);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease, transform 0.1s ease-in-out;
    text-decoration: none;
    outline: none;
    padding: 10px 20px;
    background-color: var(--auth-button-bg);
    color: #ffffff;
    width: 100% !important;
    max-width: 300px !important;
    min-height: var(--auth-input-height);
    font-family: inherit;
    margin: 8px auto 0 auto !important;
}

.manage-button:hover {
    background-color: var(--auth-button-hover);
    transform: translateY(-1px);
}

.manage-button:active {
    transform: translateY(0);
}

.manage-button-secondary {
    background-color: #6b7280;
    color: #ffffff;
    width: 200px !important;
    margin: 8px auto 0 auto !important;
}

.manage-button-secondary:hover {
    background-color: #4b5563;
}

.manage-success {
    padding: 12px 16px;
    border-radius: var(--auth-border-radius);
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 16px;
    background-color: #f0fdf4;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.manage-info {
    padding: 12px 16px;
    border-radius: var(--auth-border-radius);
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 16px;
    background-color: #eff6ff;
    color: #1e40af;
    border: 1px solid #bfdbfe;
}

.manage-back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--auth-text-primary);
    text-decoration: none;
    font-weight: 500;
    margin-bottom: 20px;
    transition: color 0.2s ease;
    padding: 8px 12px;
    border-radius: var(--auth-border-radius);
    max-width: fit-content;
    white-space: nowrap;
}

.manage-back-link:hover {
    color: var(--auth-button-bg);
    background-color: #f8fafc;
}

.manage-verification-status {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
    font-size: 14px;
    color: var(--auth-text-secondary);
}

.manage-verification-status.verified {
    color: #059669;
}

.manage-verification-status.unverified {
    color: #dc2626;
}

/* Responsive Design */
@media (max-width: 480px) {
    .auth-container, .manage-container {
        padding: 16px;
    }
    
    .auth-content, .manage-content {
        padding: 32px 24px;
        gap: 24px;
    }
    
    .auth-header, .manage-header {
        padding: 32px 24px 16px;
    }
    
    .manage-card {
        max-width: 100%;
    }
}




@media (max-width: 600px) {
    .header-gutters {
        margin: 0.5rem 3rem 0.5rem 1.5rem !important;
    }

    [dir="rtl"] .header-gutters {
        margin: 0.5rem 1.5rem 0.5rem 3rem !important;
    }

    .main {
        flex-direction: column !important;
        row-gap: 0 !important;
    }

    nav.sitenav {
        width: 100%;
        height: 100%;
    }

    #main-menu {
        width: 100% !important;
    }

        #main-menu > div:first-child:is(.expander) {
            display: none;
        }

    .navmenu {
        width: 100%;
    }

    #navmenu-toggle {
        appearance: none;
    }

        #navmenu-toggle ~ nav {
            display: none;
        }

        #navmenu-toggle:checked ~ nav {
            display: block;
        }

    .navmenu-icon {
        cursor: pointer;
        z-index: 10;
        display: block;
        position: absolute;
        top: 15px;
        left: unset;
        right: 20px;
        width: 20px;
        height: 20px;
        border: none;
    }

    [dir="rtl"] .navmenu-icon {
        left: 20px;
        right: unset;
    }
}
