/* MHA Theme Colors */
/* WCAG AA Compliant Color System (4.5:1+ contrast ratio) */
/* This file contains ONLY color definitions - no component styling */

:root {
    /* Brand Colors */
    --primary-blue: #0078d4;
    --focus-blue: #0072cc;
    --white: #ffffff;
    --black: #000000;
    
    /* WCAG AA Compliant Text Colors (4.5:1+ contrast on white) */
    --text-primary: #323130;        /* 12.6:1 contrast - primary text */
    --text-secondary: #605e5c;      /* 7.4:1 contrast - secondary text */
    --text-tertiary: #737373;       /* 4.54:1 contrast - tertiary/muted text */
    --text-content-block: #626266;  /* 6.4:1 contrast - content blocks */
    
    /* Link Colors - WCAG AA Compliant */
    --link-default: #005a9e;        /* 4.53:1 contrast - default links */
    --link-active: #0071f2;         /* 4.51:1 contrast - active/selected links */
    --link-visited: #004578;        /* 5.74:1 contrast - visited links */
    --link-hover: var(--primary-blue); /* Existing brand color for hover */
    
    /* Background Colors */
    --background-gray: #f5f5f5;
    --background-light-gray: #eaeaea;
    --background-lighter-gray: #f3f2f1;
    --command-bar-gray: #f4f4f4;
    
    /* Border Colors */
    --border-gray: #ccc;
    --border-light-gray: #e1e1e1;
    
    /* Dialog Colors - WCAG AA Compliant */
    --dialog-header-bg: #006FCC;    /* 4.51:1 contrast for white text */
    --dialog-text-on-primary: var(--white);
    
    /* Framework7 Overrides - WCAG AA Compliant */
    --text-dark-grey: var(--text-primary);     /* was #444 - now 12.6:1 */
    --text-medium-grey: var(--text-secondary); /* was #555555 - now 7.4:1 */
    --text-gray: var(--border-light-gray);     /* Keep as border color, not text */
    
    /* Interactive States */
    --hover-blue: color-mix(in srgb, var(--primary-blue) 10%, transparent);
    --active-blue: color-mix(in srgb, var(--primary-blue) 20%, transparent);
    
    /* Progress Bar Colors */
    --progress-track-bg: #f3f2f1;        /* Light gray background */

    /* Status Colors */
    --success-green: #107c10;
    --success-green-bg: rgba(240, 248, 240, 0.9);
}
/* Shared Fluent UI Web Components Styling */
/* This file contains common styles used across multiple frames */

/*
 * MHA Button System Documentation:
 * 
 * PRIMARY BUTTONS: Use appearance="accent" - Blue background, white text
 * SECONDARY BUTTONS: Use default (no appearance) - White background, black border, blue hover
 * TOOLBAR BUTTONS: Use appearance="subtle" - Transparent, square, content-aware labels
 * SPECIAL BUTTONS: Maintain unique styling as needed (e.g., Original Headers)
 */

/* Layout and Typography Variables */
:root {
    /* Typography */
    --font-monospace: "Consolas", "Monaco", "Courier New", monospace;
    --font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, "Roboto", "Helvetica Neue", sans-serif;
    
    /* Layout */
    --border-radius: 4px;
    --spacing-small: 8px;
    --spacing-medium: 12px;
    --focus-outline: 2px solid var(--focus-blue);
    --button-height: 44px;
    
    /* Shadows */
    --overlay-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Secondary Button Styling - Default black border, blue highlight */
fluent-button:is(:not([appearance]), [appearance="neutral"]):not([disabled]),
fluent-button:is(:not([appearance]), [appearance="neutral"])::part(control) {
    border: 1px solid var(--black);
}

fluent-button:is(:not([appearance]), [appearance="neutral"]):hover {
    background-color: var(--hover-blue);
}

fluent-button:is(:not([appearance]), [appearance="neutral"]):focus,
fluent-button:is(:not([appearance]), [appearance="neutral"])::part(control):focus {
    border: 1px solid var(--primary-blue);
    outline: none;
}

.toolbar {
    display: flex;
    gap: 0;
    align-items: flex-start;
}

fluent-button[appearance="subtle"] {
    width: var(--button-height);
    height: var(--button-height);
    min-width: var(--button-height);
    min-height: var(--button-height);
    border-radius: 0;
    margin: 0;
    padding: 0;
    color: var(--primary-blue);
    cursor: pointer;
    outline: none;
    display: inline-flex;
    font-family: var(--font-family);
}

fluent-button[appearance="subtle"]::part(control) {
    background: transparent;
    padding: 6px;
    height: 100%;
    display: flex;
}

fluent-button[appearance="subtle"]::part(control):focus {
    outline: var(--focus-outline);
    outline-offset: -2px;
}

fluent-button[appearance="subtle"]:is(:hover, :active, .is-active) {
    background: var(--hover-blue);
}

fluent-button[appearance="subtle"]:is(:active, .is-active) {
    background: transparent;
    border-bottom: 3px solid var(--primary-blue);
}

/* Navigation buttons with labels need flexible width when label shows */
fluent-button[appearance="subtle"]:is(:hover, .is-active):has(.button-label:not([style*="display: none"])) {
    width: auto;
    min-width: var(--button-height);
    padding-inline: var(--spacing-small);
}

/* Modern Fluent Icon Styling */
.fluent-icon {
    font-size: 20px;
    font-style: normal;
    color: var(--primary-blue);
}

/* Modern Fluent Icon Classes */
.fluent-icon--info::before {
    content: "\24D8"; /* Unicode ⓘ icon */
}

.fluent-icon--stopwatch::before {
    content: "\23F1"; /* Unicode stopwatch ⏱ */
}

.fluent-icon--mail-alert {
    position: relative;
    display: inline-block;
}

.fluent-icon--mail-alert::before {
    content: "\2709"; /* Unicode Mail icon ✉ */
    position: relative;
    z-index: 1;
}

.fluent-icon--mail-alert::after {
    content: "\24D8"; /* Unicode Info icon ⓘ */
    position: absolute;
    bottom: -2px;
    right: -4px;
    font-size: 8px;
    color: var(--primary-blue);
    background: white;
    border-radius: 50%;
    z-index: 2;
    width: 10px;
    height: 10px;
    display: flex;
    align-items: center;
}

.fluent-icon--cake::before {
    content: "\1F370\FE0E"; /* Unicode cake slice with text presentation */
}

.fluent-icon--add::before {
    content: "\2295"; /* Unicode circled plus ⊕ */
}

.fluent-icon--remove::before {
    content: "\2296"; /* Unicode circled minus ⊖ */
}

.fluent-icon--copy::before {
    content: "\1F5D0"; /* Unicode 🗐 icon */
}

.fluent-icon--settings::before {
    content: "\2699"; /* Unicode ⚙ gear icon */
    font-weight: bolder;
}

.fluent-icon--arrow-circle-down::before {
    content: "\2B07"; /* Unicode ⬇ down arrow */
}

/* High contrast mode support - modern and legacy combined */
@media (prefers-contrast: high), (forced-colors: active), screen and (-ms-high-contrast: active) {
    .fluent-icon {
        color: ButtonText;
        forced-color-adjust: none;
    }
    
    fluent-button {
        border: 1px solid ButtonText !important;
        forced-color-adjust: none;
    }
    
    fluent-button:focus,
    fluent-button:focus-visible {
        outline: 2px solid ButtonText !important;
        outline-offset: 2px;
    }
    
    fluent-button[appearance="accent"] {
        background-color: ButtonFace !important;
        color: ButtonText !important;
        border: 2px solid ButtonText !important;
    }
}

/* Focus styles for accessibility */
fluent-button:focus-visible,
fluent-checkbox:focus-visible,
fluent-radio:focus-visible {
    outline: var(--focus-outline);
    outline-offset: 2px;
}

/* Enhanced focus with modern CSS */
@supports (outline-style: auto) {
    fluent-button:focus-visible {
        outline: 2px auto Highlight;
        outline-offset: 2px;
    }
}

/* Dialog Common Styling */
.dialog-header {
    padding: 16px 20px 12px 20px;
    border-bottom: 1px solid var(--dialog-header-bg);
    margin: -1px -1px 0 -1px;
    background: var(--dialog-header-bg);
    border-radius: 8px 8px 0 0;
}

.dialog-header h2 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: var(--dialog-text-on-primary); 
}

/* Code Box Styling */
.code-box > pre,
.code-box > textarea {
    background-color: var(--background-gray);
    border: 1px solid var(--border-gray);
    border-radius: var(--border-radius);
    padding: 5px;
    font-size: 10.4px;
    line-height: 1.4;
    font-family: var(--font-monospace);
    margin: 0;
    overflow-x: hidden;
    overflow-y: auto;
    color: var(--black);
    text-align: left;
}

/* Pre-specific styles */
.code-box > pre {
    word-wrap: break-word;
    white-space: pre-wrap;
    min-height: 0;
    max-height: none;
}

/* Textarea-specific styles */
.code-box > textarea {
    resize: vertical;
    width: 100%;
    box-sizing: border-box;
    white-space: pre;
    height: 400px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Common Status Overlay Styles for Copy Feedback */
/* Used by both uitoggle and standalone MHA pages */
.status-overlay {
    display: none;
    color: var(--success-green); /* Dark green text for contrast */
    font-size: 14px;
    font-weight: 500;
    background-color: var(--success-green-bg); /* Pale green background with high opacity */
    border-radius: 6px;
    border: 1px solid var(--success-green); /* Solid green border for contrast */
    box-shadow: var(--overlay-shadow); /* Subtle shadow for depth */
    z-index: 9999; /* Very high z-index to appear above everything */
    white-space: nowrap;
    opacity: 0;
    transform: translateX(-8px); /* Slide-in animation from left */
    transition: opacity 0.2s ease, transform 0.2s ease;
    pointer-events: none; /* Don't interfere with clicks */
    max-width: 200px;
    padding: 4px 4px;
}

.status-overlay.show {
    display: block;
    opacity: 1;
    transform: translateX(0);
}
/* Import shared Fluent UI styles */

.content-wrap {
    background: var(--white);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    margin: 0;
    padding: 0;
}

.content-main {
    padding: 10px;
    overflow-y: auto; /* Enable scrollbars within main content section */
    height: calc(100% - var(--button-height) - 20px); /* nav bar height + padding */
}

.summary-table {
    width: 100%;
}

    .summary-table td {
        vertical-align: top;
        word-wrap: break-word;
        word-break: break-all;
        padding: 8px 0;
    }

    .summary-table tr:first-child td {
        padding-top: 4px;
    }

    .summary-table tr:last-child td {
        padding-bottom: 4px;
    }

/* Spacing for summary list items */
.summary-list .section-header {
    margin-top: 16px;
    margin-bottom: 4px;
    font-size: 14px;
    font-weight: 600;
}

.summary-list .section-header:first-child {
    margin-top: 8px;
}

.summary-list .code-box {
    margin-bottom: 8px;
}

.header-view[data-content="antispam-view"] {
    font-family: var(--font-family);
}

.header-view[data-content="antispam-view"] .page-title {
    font-size: 21px;
    font-weight: 600;
}

.header-view[data-content="antispam-view"] .section-header {
    font-size: 16px;
    font-weight: 600;
}

.header-view[data-content="antispam-view"] .fluent-table,
.header-view[data-content="antispam-view"] .fluent-table td {
    font-size: 12px;
}

.header-view[data-content="antispam-view"] .fluent-table {
    table-layout: auto;
    width: 100%;
}

.header-view[data-content="antispam-view"] .fluent-table td:first-child {
    width: max-content;
    white-space: nowrap;
    min-width: fit-content;
}

.header-view[data-content="antispam-view"] .fluent-table td:last-child {
    width: auto;
    word-break: break-word;
}

.hop-list {
    list-style: none;
    margin: 0;
    padding: 0;
    font-family: var(--font-family);
}

.hop-list-item {
    padding: 8px 16px;
    border-bottom: 1px solid var(--border-gray);
    cursor: pointer;
    position: relative;
}

.hop-list-item:hover {
    background-color: var(--background-light-gray);
    outline: 1px solid transparent;
}

.hop-primary-text {
    display: block;
    font-size: 16px;
    line-height: 1.3;
    color: #201f1e;
    margin-bottom: 4px;
}

.hop-secondary-text {
    display: block;
    font-size: 12px;
    line-height: 1.3;
    color: #323130;
}

.hop-list-selection {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.section-header {
    font-size: 12px;
    font-weight: 600;
    color: #201f1e;
    font-family: var(--font-family);
    margin-bottom: 8px;
}

/* Other view spacing */
.other-list .section-header {
    margin-top: 16px;
    margin-bottom: 4px;
}

.other-list .section-header:first-child {
    margin-top: 8px;
}

.other-list .code-box {
    margin-bottom: 8px;
}

.field-name {
    width: 15ch;
    min-width: 15ch;
    text-align: right;
}

/* Navigation button label management */
.content-header,
.nav-bar,
#nav-bar {
    background-color: var(--command-bar-gray);
}

#nav-bar .button-label {
    display: none;
}

#nav-bar .nav-button:hover .button-label,
#nav-bar .is-active .button-label {
    display: inline-block;
}

/* Original Headers Button Styling */
#orig-header-btn {
    color: var(--primary-blue) !important;
    border: none !important;
    padding: 8px 0 !important;
    height: auto !important;
    min-height: 32px !important;
    margin: 0 !important;
    text-align: left !important;
    width: auto !important;
}

#orig-header-btn .fluent-icon--add,
#orig-header-btn .fluent-icon--remove {
    color: var(--primary-blue);
    width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 8px;
    font-size: 20px;
    vertical-align: middle;
}

#orig-header-btn::part(control) {
    background: transparent !important;
    border: none !important;
    padding: 8px 0 !important;
    display: flex !important;
    align-items: center !important;
    color: var(--primary-blue) !important;
    justify-content: flex-start !important;
    text-align: left !important;
}

#orig-header-btn::part(control):focus {
    outline: var(--focus-outline) !important;
    outline-offset: 2px !important;
    border-radius: 0 !important;
}

.status-display {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 250px;
    height: 70px;
    margin-left: -125px;
    margin-top: -35px;
    text-align: center;
}

.status-spinner {
    width: 28px;
    margin-top: 10px;
    margin-left: 111px;
}

#error-display {
    display: none;
    word-wrap: break-word;
    word-break: break-all;
}

.header-view {
    display: none;
}

.down-icon {
    float: left;
    width: 36px;
    height: 36px;
}

.progress-icon {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.progress-container {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.progress-icon .hop-progress {
    width: 100%;
    font-family: var(--font-family);
}

.progress-description {
    font-size: 12px;
    color: #323130;
    margin-top: 4px;
    text-align: left;
    font-family: var(--font-family);
}

.orig-header-ui {
    display: none;
}

#original-headers {
    display: none;
}

.hop-details-overlay.is-hidden {
    display: none !important;
}

.hop-details-overlay.is-shown {
    display: block;
    position: fixed;
    z-index: 1000;
    background: var(--white);
    border: 1px solid var(--border-gray);
    border-radius: var(--border-radius);
    box-shadow: 0 8px 16px rgba(0,0,0,0.15);
    padding: 24px 28px 12px 28px;
    width: 90vw;
    max-width: 500px;
    font-family: var(--font-family);
}

/* Arrow pointing upward at the top of the pane */
.hop-details-overlay.is-shown::before {
    content: '';
    position: absolute;
    left: 50%;
    top: -10px;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-bottom: 10px solid var(--white);
    filter: drop-shadow(0 -1px 1px rgba(0,0,0,0.1));
}

.hop-title {
    margin: 0 0 12px 0;
    font-size: 21px;
    font-weight: 600;
    font-family: var(--font-family);
}

.hop-label {
    font-weight: 600;
    font-size: 12px;
    font-family: var(--font-family);
}

.hop-details-entry {
    margin: 0 0 6px 0;
    font-size: 12px;
    font-family: var(--font-family);
}

.hop-details-entry:last-child {
    margin-bottom: 0;
}

.hop-value {
    font-weight: 400;
    word-break: break-word;
    font-size: 12px;
    font-family: var(--font-family);
}


/*# sourceMappingURL=newDesktopFrame.css.map*/