/* === BottomTabBar.razor.css === */
.tab-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    box-sizing: content-box;
    height: 64px;
    display: flex;
    align-items: stretch;
    justify-content: space-around;
    z-index: 1100;
    padding-bottom: env(safe-area-inset-bottom, 0px);
    background: #252850;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.3);
    /* Force GPU compositing to fix background rendering on Android WebView */
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    will-change: transform;
}

.tab-item {
    position: relative;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    border: none;
    background: transparent;
    cursor: pointer;
    padding: 4px 0;
    -webkit-tap-highlight-color: transparent;
    outline: none;
    transition: opacity 0.15s ease;
}

.tab-item:active {
    opacity: 0.7;
}

.tab-item.active::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 36px;
    height: 3px;
    background: #ffffff;
    border-radius: 0 0 4px 4px;
}

.tab-text {
    font-size: 10px;
    line-height: 1;
    color: rgba(255, 255, 255, 0.45);
    font-family: var(--mud-typography-default-family);
    font-weight: 500;
}

.tab-item.active .tab-text {
    font-weight: 700;
    color: #ffffff;
}

/* === Safe Area Content Padding === */
/* Overrides MudBlazor pt-13/pb-16 utility classes to account for system bars */
.mud-main-content {
    padding-top: calc(52px + env(safe-area-inset-top, 0px)) !important;
    padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px)) !important;
}


/* === TopBar.razor.css === */
.top-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    box-sizing: content-box;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: env(safe-area-inset-top, 0px) 12px 0;
    background: #252850;
    z-index: 1100;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    will-change: transform;
}

.top-bar-title {
    font-size: 1rem;
    font-weight: 700;
    color: #ffffff;
    text-align: center;
    flex: 1;
}

.top-bar-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: transparent;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    border-radius: 50%;
    transition: background 0.15s ease;
}

.top-bar-btn:active {
    background: rgba(255, 255, 255, 0.12);
}

.top-bar-btn.left {
    margin-right: auto;
}

.top-bar-btn.right {
    margin-left: auto;
}


/* === HomePage.razor.css === */
/* ── Root ────────────────────────────────────── */
.homepage-root {
    min-height: 100vh;
    background: var(--mud-palette-background);
}

/* ── Hero Header ─────────────────────────────── */
.hero-header {
    background: linear-gradient(45deg, rgba(0, 17, 86, 1) 22%, rgba(1, 1, 51, 1) 45%, rgba(55, 0, 84, 1) 73%);
    padding: 28px 16px 36px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    position: relative;
    overflow: hidden;
}

.hero-header::before {
    display: none;
}

.hero-greeting {
    display: none;
}

.countdown-starting-label {
    color: #ffffff !important;
    font-size: 12px !important;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    z-index: 1;
    margin-top: 12px;
}

.event-logo-wrap {
    margin: 4px 0;
    z-index: 1;
}

.event-logo-img {
    max-width: 180px;
    height: auto;
    filter: drop-shadow(0 4px 12px rgba(0,0,0,0.35));
    z-index: 1;
}

/* hero-event-title removed — event name no longer shown */

/* Countdown */
.countdown-row {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 16px;
    background: rgba(0,0,0,0.28);
    border-radius: 18px;
    padding: 12px 22px;
    z-index: 1;
}

.countdown-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 46px;
}

.countdown-value {
    font-size: 1.65rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.5px;
}

.countdown-label {
    font-size: 10px;
    color: rgba(255,255,255,0.6);
    text-transform: uppercase;
    letter-spacing: 0.6px;
    margin-top: 3px;
}

.countdown-sep {
    font-size: 1.4rem;
    font-weight: 700;
    color: rgba(255,255,255,0.45);
    line-height: 1;
    align-self: flex-start;
    margin-top: 5px;
}

/* ── Pill Buttons ────────────────────────────── */
.pill-scroll-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding: 14px 12px;
    background: var(--mud-palette-surface);
    border-bottom: 1px solid var(--mud-palette-lines-default);
    scrollbar-width: none;
}

.pill-scroll-wrap::-webkit-scrollbar {
    display: none;
}

.pill-row {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    width: max-content;
}

.pill-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 7px 16px;
    border-radius: 999px;
    border: 1.5px solid #001156;
    background: transparent;
    color: #001156;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
    -webkit-tap-highlight-color: transparent;
    outline: none;
}

.pill-btn:active,
.pill-btn:focus-visible {
    background: #001156;
    color: #fff;
}

::deep .pill-icon {
    font-size: 16px !important;
    width: 16px !important;
    height: 16px !important;
}

/* ── Content ─────────────────────────────────── */
.homepage-content {
    padding-top: 20px;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Featured session card — gradient accent stripe on top */
.featured-session-card {
    position: relative;
}

.featured-session-accent {
    height: 4px;
    background: linear-gradient(90deg, rgba(0,17,86,1), rgba(55,0,84,1));
    border-radius: 4px 4px 0 0;
}

/* ── Speakers Scroll ─────────────────────────── */
.speaker-scroll-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 8px;
    scrollbar-width: none;
    margin: 0 -16px;
    padding-left: 16px;
}

.speaker-scroll-wrap::-webkit-scrollbar {
    display: none;
}

.speaker-row {
    display: flex;
    flex-wrap: nowrap;
    gap: 12px;
    width: max-content;
    padding-right: 16px;
}

.speaker-card {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    width: 220px;
    min-width: 220px;
    background: var(--mud-palette-surface);
    border-radius: 12px;
    padding: 10px;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.speaker-card:active {
    transform: scale(0.97);
    box-shadow: 0 1px 2px rgba(0,0,0,0.12);
}

.speaker-photo-wrap {
    width: 64px;
    height: 64px;
    min-width: 64px;
    border-radius: 8px;
    overflow: hidden;
    background: linear-gradient(135deg, #001156, #370054);
}

.speaker-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.speaker-photo-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.speaker-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    flex: 1;
}

.speaker-name {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.3;
    color: var(--mud-palette-text-primary);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.speaker-title {
    font-size: 11px;
    line-height: 1.3;
    color: var(--mud-palette-text-secondary);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ── Profile Button ──────────────────────────── */
/* profile-btn removed — profile is in bottom tab bar */


/* === AgendaPage.razor.css === */
/* Schedule tabs */
.schedule-tabs-wrap {
    display: flex;
    background: var(--mud-palette-surface);
    border-bottom: 2px solid var(--mud-palette-lines-default);
    padding: 0 16px;
}

.schedule-tab {
    flex: 1;
    padding: 12px 8px;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    cursor: pointer;
    color: var(--mud-palette-text-secondary);
    transition: color 0.2s ease, border-color 0.2s ease;
    -webkit-tap-highlight-color: transparent;
}

.schedule-tab.active {
    color: #001156;
    border-bottom-color: #001156;
}

/* Filter pills */
.filter-pills-row {
    display: flex;
    gap: 8px;
    padding: 10px 16px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.filter-pill {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    padding: 6px 14px;
    font-size: 13px;
    font-weight: 500;
    border: 1px solid #bdbdbd;
    border-radius: 20px;
    background: transparent;
    color: #424242;
    cursor: pointer;
    white-space: nowrap;
    transition: border-color 0.2s, color 0.2s;
}

.filter-pill:active {
    background: rgba(0, 0, 0, 0.04);
}

.filter-pill.active {
    border-color: #001156;
    color: #001156;
}

/* Day group header */
.day-group-header {
    font-size: 15px;
    font-weight: 700;
    color: #1a1a1a;
    padding: 16px 0 8px;
    border-bottom: 1px solid #e0e0e0;
    margin-bottom: 8px;
}

/* Session list */
.session-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}


/* === MySessionsPage.razor.css === */
/* Next Up hero card */
::deep .next-up-card {
    background: linear-gradient(135deg, #7B1FA2 0%, #4A148C 100%);
    color: white;
    transition: transform 0.15s ease;
}

::deep .next-up-card:active {
    transform: scale(0.98);
}

::deep .next-up-card .mud-typography {
    color: white !important;
}

::deep .next-up-card .mud-icon-root {
    color: rgba(255, 255, 255, 0.85) !important;
}

::deep .next-up-chip {
    font-weight: 700;
    letter-spacing: 0.5px;
}

/* Session items */
::deep .session-item {
    transition: transform 0.15s ease;
}

::deep .session-item:active {
    transform: scale(0.98);
}

/* Day headers */
::deep .day-header {
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--mud-palette-text-secondary);
}


/* === DirectoryPage.razor.css === */
.attendee-card {
    transition: box-shadow 0.15s ease, transform 0.15s ease;
    border-radius: 12px;
}

.attendee-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.view-toggle {
    border-radius: 8px;
    overflow: hidden;
}


/* === NotificationsPage.razor.css === */
.notification-item {
    transition: background-color 0.15s ease;
}

.notification-item:hover {
    background-color: var(--mud-palette-action-hover);
}

.notification-item.unread {
    background-color: rgba(var(--mud-palette-primary-rgb), 0.05);
}

.notification-content {
    min-width: 0;
}

.notification-title {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 200px;
}

.notification-body {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.segment-toggle {
    border-radius: 8px;
    overflow: hidden;
}


/* === SpeakerDetailPage.razor.css === */
/* ── Root ────────────────────────────────────── */
.speaker-detail-root {
    min-height: 100vh;
    background: var(--mud-palette-background);
}

/* ── Hero Section ────────────────────────────── */
.speaker-hero {
    background: linear-gradient(135deg, rgba(0, 17, 86, 1) 0%, rgba(1, 1, 51, 1) 40%, rgba(55, 0, 84, 1) 100%);
    padding: 32px 24px 28px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    position: relative;
}

.speaker-hero-photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
    margin-bottom: 12px;
    background: rgba(255, 255, 255, 0.08);
}

.speaker-hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.speaker-hero-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.speaker-hero-name {
    font-size: 22px;
    font-weight: 700;
    color: #ffffff;
    text-align: center;
    line-height: 1.2;
}

.speaker-hero-title {
    font-size: 14px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.8);
    text-align: center;
    line-height: 1.3;
}

.speaker-hero-company {
    font-size: 13px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.6);
    text-align: center;
}

.speaker-featured-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 8px;
    padding: 4px 14px;
    border-radius: 999px;
    background: rgba(255, 193, 7, 0.2);
    color: #ffc107;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.3px;
}

/* ── Content ─────────────────────────────────── */
.speaker-content {
    padding: 20px 20px 80px;
}

/* ── Social Links ────────────────────────────── */
.speaker-social-row {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 24px;
}

.social-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1.5px solid var(--mud-palette-lines-default);
    background: var(--mud-palette-surface);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease;
    -webkit-tap-highlight-color: transparent;
    color: var(--mud-palette-text-primary);
}

.social-btn:active {
    background: var(--mud-palette-lines-default);
}

/* ── Bio ─────────────────────────────────────── */
.speaker-bio-section {
    background: var(--mud-palette-surface);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

.speaker-bio-label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--mud-palette-text-secondary);
    margin-bottom: 12px;
}

.speaker-bio-text {
    font-size: 14px;
    line-height: 1.65;
    color: var(--mud-palette-text-primary);
    margin: 0 0 12px;
}

.speaker-bio-text:last-child {
    margin-bottom: 0;
}


/* === SessionDetailPage.razor.css === */
/* Hero image */
.hero-image-container {
    width: 100%;
    max-height: 220px;
    overflow: hidden;
}

.hero-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

/* Speaker card */
::deep .speaker-card {
    transition: transform 0.15s ease;
}

::deep .speaker-card:active {
    transform: scale(0.98);
}


/* === ExhibitorsPage.razor.css === */
.exhibitor-card {
    transition: box-shadow 0.15s ease, transform 0.15s ease;
    border-radius: 12px;
}

.exhibitor-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.view-toggle {
    border-radius: 8px;
    overflow: hidden;
}


/* === ExhibitorDetailPage.razor.css === */
.detail-logo {
    border-radius: 50%;
    object-fit: contain;
}


/* === ChatInboxPage.razor.css === */
.thread-item {
    transition: background-color 0.15s ease;
    cursor: pointer;
}

.thread-preview {
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 240px;
}


/* === ChatThreadPage.razor.css === */
.chat-thread-layout {
    display: flex;
    flex-direction: column;
    height: calc(100dvh - 48px - 56px); /* dense appbar + bottom tab bar */
}

.chat-header {
    flex-shrink: 0;
    z-index: 10;
}

.chat-messages-area {
    flex: 1;
    overflow-y: auto;
    padding: 12px 16px;
    display: flex;
    flex-direction: column;
}

.chat-composer {
    flex-shrink: 0;
}

/* ── Date Separator ── */
.date-separator {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 12px 0 8px;
}

.date-separator-label {
    background-color: var(--mud-palette-background-grey, rgba(0, 0, 0, 0.06));
    color: var(--mud-palette-text-secondary);
    font-size: 0.7rem;
    padding: 2px 10px;
    border-radius: 12px;
}

/* ── Message Bubbles ── */
.message-row {
    display: flex;
    margin-bottom: 6px;
}

.message-row.own {
    justify-content: flex-end;
}

.message-row.other {
    justify-content: flex-start;
}

.message-bubble {
    max-width: 76%;
    padding: 8px 12px;
    border-radius: 18px;
    word-break: break-word;
}

.bubble-own {
    background-color: var(--mud-palette-primary);
    color: var(--mud-palette-primary-text);
    border-bottom-right-radius: 4px;
}

.bubble-other {
    background-color: var(--mud-palette-action-default-hover, rgba(0, 0, 0, 0.08));
    color: var(--mud-palette-text-primary);
    border-bottom-left-radius: 4px;
}

.message-body {
    line-height: 1.4;
}

.message-meta {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 2px;
    margin-top: 2px;
    opacity: 0.7;
}

::deep .bubble-own .meta-icon {
    font-size: 0.75rem !important;
    width: 0.75rem !important;
    height: 0.75rem !important;
}

.message-time {
    font-size: 0.65rem;
    line-height: 1;
}


/* === SessionCard.razor.css === */
.session-card-cvent {
    position: relative;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 14px 16px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: background 0.15s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.session-card-cvent:active {
    background: rgba(0, 0, 0, 0.03);
}

.featured-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    color: #001156;
    border: 1px solid #001156;
    border-radius: 10px;
    padding: 1px 8px;
    margin-bottom: 6px;
    line-height: 1.5;
}

.session-time-line {
    font-size: 13px;
    color: #555;
    margin-bottom: 4px;
}

.session-title {
    font-size: 16px;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.3;
    margin-bottom: 6px;
    padding-right: 40px;
}

.session-room {
    display: flex;
    align-items: center;
    gap: 2px;
    font-size: 13px;
    color: #555;
    margin-bottom: 4px;
}

.session-speakers {
    font-size: 13px;
    color: #777;
    margin-bottom: 2px;
}

.fav-btn-wrap {
    position: absolute;
    bottom: 12px;
    right: 12px;
}

::deep .fav-btn {
    width: 32px !important;
    height: 32px !important;
    border: 2px solid #9e9e9e !important;
    border-radius: 50% !important;
    color: #9e9e9e !important;
    background: transparent !important;
}

::deep .fav-btn-active {
    border-color: #001156 !important;
    background: #001156 !important;
    color: #fff !important;
}



