@import url('open-iconic/font/css/open-iconic-bootstrap.min.css');

:root {
    --t3f-font-family: "Open Sans",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol";
}

html, body {
    font-family: var(--t3f-font-family);
}

/* DevExpress Fluent themes pin the grid to their own Segoe UI stack; Bootstrap themes use
   inherit. Force inherit so a grid always matches the page it sits on. */
.dxbl-grid {
    --dxbl-grid-font-family: inherit;
}

html, body {
    height: 100%;
    overflow: hidden;
    /* Match examples layout so the root fills the viewport vertically */
    display: flex;
    flex-direction: column;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}

.button-link {
    text-decoration: unset;
}

#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;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}

.title {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding-bottom: 0.625rem;
}

.title.title-secondary {
    padding-top: 0.313rem;
    padding-bottom: 0;
    color: var(--bs-secondary-color, var(--DS-color-content-neutral-default-rest));
}

.title-header-text {
    font-size: 2.5rem;
    line-height: 3rem;
    font-weight: 600;
    letter-spacing: 0rem;
    padding: 0.3125rem 0;
}

.title-content-text {
    font-size: 1.75rem;
    font-weight: 400;
    line-height: 2.5rem;
    letter-spacing: 0rem;
}

.main-content {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    width: 100%;
}

.block-content {
    width: 31.25rem;
    height: auto;
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
    max-width: 100%;
}

/* Copied from examples/css/site.css for consistent logo behavior */
.logo {
    text-align: center;
    max-width: 100%;
    height: auto;
}

.logo img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* DevExpress DxTabs - Active tab styling to make it "pop" */
.event-tabs .dxbl-tabs-header {
    background-color: #fff;
    border-bottom: 1px solid #dee2e6;
    padding: 0 0.5rem;
}

/* Custom tab template styling */
.active-tab, .inactive-tab {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    border-radius: 8px 8px 0 0;
    transition: all 0.2s ease-in-out;
    cursor: pointer;
}

.tab-icon {
    font-size: 1rem;
}

/* Active tab - make it POP with light blue background, dark text, shadow, elevation */
.active-tab {
    background: linear-gradient(135deg, #87CEEB 0%, #6bb8db 100%) !important;
    color: #1a3a4a !important;
    font-weight: 600 !important;
    box-shadow: 0 -4px 12px rgba(135, 206, 235, 0.5), 0 2px 4px rgba(0,0,0,0.1) !important;
    transform: translateY(-3px);
    border: 2px solid #87CEEB !important;
    border-bottom: none !important;
    position: relative;
    z-index: 1;
}

.active-tab .tab-icon {
    color: #1a3a4a !important;
}

/* Inactive tabs - subtle gray */
.inactive-tab {
    background-color: #f8f9fa !important;
    color: #6c757d !important;
    font-weight: normal !important;
    border: 1px solid transparent !important;
}

.inactive-tab:hover {
    background-color: #e9ecef !important;
    color: #0d6efd !important;
    transform: translateY(-1px);
}

.inactive-tab .tab-icon {
    color: #6c757d !important;
}

.inactive-tab:hover .tab-icon {
    color: #0d6efd !important;
}

/* ──────────────────────────────────────────────────────────────
   Sort-hint icon for report grids (EventReports).
   DxGrid shows no visual cue that columns are sortable until the user
   clicks.  This adds a subtle ↕ arrow to the left of each header caption
   so users know sorting is available.
   Global CSS is required because Blazor scoped ::deep cannot reach
   into DevExpress grid's internally-rendered header cells.
   ────────────────────────────────────────────────────────────── */
.event-reports-container .dxbl-grid-header-content {
    display: inline-flex;
    align-items: center;
}

.event-reports-container .dxbl-grid-header-content::after {
    content: "\2195"; /* unicode UP DOWN ARROW ↕ */
    display: inline-flex;
    align-items: center;
    margin-left: 8px;
    margin-right: 6px;
    font-size: 1em;
    opacity: 0.45;
    pointer-events: none;
    flex-shrink: 0;
    order: 5;
}

/* Push the filter menu button to the far right, after the sort hint. */
.event-reports-container .dxbl-grid-header-content > [class*="menu"] {
    order: 10 !important;
}

/* Hide the hint once the user sorts a column (DxGrid adds a sort-glyph element). */
.event-reports-container .dxbl-grid-header-content:has(.dxbl-grid-sort-glyph)::after {
    display: none;
}

/* Also hide via aria-sort if the theme sets it on the <th>. */
.event-reports-container th[aria-sort] .dxbl-grid-header-content::after {
    display: none;
}

/* Numeric filter-row: shared borderless editor + operator selector */
.numeric-filter-editor {
    display: flex;
    align-items: center;
    gap: 0.125rem;
}

.numeric-operator-select {
    width: 1.15rem;
    min-width: 1.15rem;
    font-size: 0.62rem;
    font-weight: 600;
    color: #6c757d;
    line-height: 1;
    text-align: center;
    text-align-last: center;
    border: none;
    background: transparent;
    padding: 0;
    margin: 0;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    cursor: pointer;
}

.numeric-operator-select:focus {
    outline: none;
    color: #0d6efd;
}

.numeric-operator-select option {
    text-align: center;
}

.numeric-filter-text,
.numeric-filter-text.dxbl-text-edit {
    border: 1px solid transparent !important;
    box-shadow: none !important;
    background-color: transparent !important;
    outline: none !important;
}

.numeric-filter-text .dxbl-input,
.numeric-filter-text input.numeric-filter-input {
    border: none !important;
    background-color: transparent !important;
    box-shadow: none !important;
    outline: none !important;
}

.numeric-filter-text:focus-within,
.numeric-filter-text.dxbl-text-edit:focus-within {
    border: 1px solid #86b7fe !important;
}

/* ── Identity notice pages (/noaccess, /accessdenied) ───────────────────────────────────
   Shared chrome for the two full-page identity notices. Lives here rather than in a
   <style> block on each page: those are global, so the pages were shipping two
   near-identical stylesheets that both redefined .btn, .info-box and .text-center.
   Every rule is scoped under .identity-notice so it cannot reach Bootstrap's own
   .btn elsewhere in the app. */
.identity-notice {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    padding: 2rem;
}

.identity-notice-card {
    width: 100%;
    max-width: 600px;
    padding: 3rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.identity-notice h2 {
    color: #1a1a2e;
    margin-bottom: 1rem;
    font-weight: 700;
    font-size: 2rem;
}

.identity-notice h4 {
    color: #1a1a2e;
    margin-bottom: 1rem;
    font-weight: 600;
}

.identity-notice .icon-container {
    margin: 1.5rem 0;
    color: #6c757d;
}

.identity-notice .lock-icon {
    opacity: 0.7;
}

.identity-notice .message-section {
    margin: 2rem 0;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #0f3460;
}

.identity-notice .message-section .lead {
    font-size: 1.1rem;
    color: #495057;
    margin-bottom: 1rem;
}

.identity-notice .message-section p {
    color: #6c757d;
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

.identity-notice .info-box {
    margin-top: 1.5rem;
    padding: 1rem;
    background: white;
    border-radius: 6px;
    border: 1px solid #dee2e6;
}

.identity-notice .info-box p {
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #495057;
}

.identity-notice .user-info {
    list-style: none;
    padding: 0;
    margin: 0.5rem 0 0 0;
}

.identity-notice .user-info li {
    padding: 0.5rem 0;
    color: #6c757d;
    border-bottom: 1px solid #e9ecef;
}

.identity-notice .user-info li:last-child {
    border-bottom: none;
}

.identity-notice .action-section {
    margin-top: 2rem;
}

.identity-notice .action-section .btn {
    display: block;
    width: 100%;
    padding: 0.875rem 1.5rem;
    text-decoration: none;
    border-radius: 8px;
    text-align: center;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
}

.identity-notice .action-section .btn + .btn {
    margin-top: 0.75rem;
}

.identity-notice .action-section .btn-primary {
    background: linear-gradient(135deg, #0f3460 0%, #16213e 100%);
    color: white;
}

.identity-notice .action-section .btn-primary:hover {
    background: linear-gradient(135deg, #16213e 0%, #1a1a2e 100%);
    text-decoration: none;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(15, 52, 96, 0.4);
}

.identity-notice .action-section .btn-secondary {
    background: #6c757d;
    color: white;
}

.identity-notice .action-section .btn-secondary:hover {
    background: #5a6268;
    color: white;
    text-decoration: none;
}

@media (max-width: 576px) {
    .identity-notice-card {
        margin: 1rem;
        padding: 2rem;
    }
}

/* Open Iconic has no spinner and no size modifiers, so the two things Font
   Awesome supplied for free live here. Keep them shared: seven call sites
   spin a glyph, and a per-component copy of the keyframe drifts. */
.oi-spin {
    display: inline-block;
    animation: oi-spin 1s linear infinite;
}

@keyframes oi-spin {
    to {
        transform: rotate(360deg);
    }
}

.oi-2x {
    font-size: 2em;
}
