/**
 * BLR Event Concierge - Scoped Premium Stylesheet
 * Strictly scoped under .bec-app, .bec-dashboard, .bec-event, .bec-operations-wrap
 */

.bec-app {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: #1e293b;
    line-height: 1.5;
    box-sizing: border-box;
}

.bec-app *, .bec-app *::before, .bec-app *::after {
    box-sizing: border-box;
}

/* Color Variables */
.bec-app {
    --bec-primary: #0f172a;
    --bec-accent: #0284c7;
    --bec-accent-hover: #0369a1;
    --bec-gold: #d97706;
    --bec-teal: #0d9488;
    --bec-success: #16a34a;
    --bec-bg-subtle: #f8fafc;
    --bec-border: #e2e8f0;
    --bec-card-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
    --bec-hover-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.05);
}

/* Brand Topbar */
.bec-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    background: #ffffff;
    border-bottom: 1px solid var(--bec-border);
    margin-bottom: 24px;
    border-radius: 12px;
    box-shadow: var(--bec-card-shadow);
}

.bec-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.bec-brand-icon {
    font-size: 24px;
}

.bec-brand-title {
    font-size: 16px;
    font-weight: 800;
    letter-spacing: 0.5px;
    color: var(--bec-primary);
    display: block;
}

.bec-brand-sub {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #64748b;
    display: block;
}

.bec-user-nav {
    display: flex;
    align-items: center;
    gap: 16px;
}

.bec-btn-logout {
    color: #ef4444;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
}
.bec-btn-logout:hover {
    text-decoration: underline;
}

/* Hero / Banner */
.bec-hero-banner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: #ffffff;
    padding: 36px 32px;
    border-radius: 16px;
    margin-bottom: 28px;
    box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.2);
}

.bec-hero-headline {
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 8px 0;
    color: #ffffff;
}

.bec-hero-sub {
    font-size: 15px;
    color: #94a3b8;
    margin: 0;
}

/* Buttons */
.bec-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    text-decoration: none;
    line-height: 1;
}

.bec-btn-primary {
    background: #0284c7;
    color: #ffffff !important;
}
.bec-btn-primary:hover {
    background: #0369a1;
    transform: translateY(-1px);
}

.bec-btn-outline {
    background: transparent;
    border: 1px solid #cbd5e1;
    color: #334155 !important;
}
.bec-btn-outline:hover {
    background: #f1f5f9;
    border-color: #94a3b8;
}

.bec-btn-sm {
    padding: 8px 14px;
    font-size: 13px;
}
.bec-btn-xs {
    padding: 5px 10px;
    font-size: 11px;
}
.bec-btn-lg {
    padding: 14px 28px;
    font-size: 16px;
}
.bec-btn-block {
    width: 100%;
}

/* Badges & Pills */
.bec-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 9999px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.bec-badge-blue { background: #e0f2fe; color: #0369a1; }
.bec-badge-green { background: #dcfce7; color: #15803d; }
.bec-badge-orange { background: #ffedd5; color: #c2410c; }
.bec-badge-gray { background: #f1f5f9; color: #475569; }

.bec-status-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
}
.bec-status-confirmed, .bec-status-completed { background: #dcfce7; color: #15803d; }
.bec-status-awaiting-customer { background: #fef9c3; color: #854d0e; }
.bec-status-sourcing, .bec-status-vendor-contacted, .bec-status-in-execution { background: #e0f2fe; color: #0369a1; }
.bec-status-new { background: #f1f5f9; color: #475569; }

/* Cards & Grid */
.bec-card {
    background: #ffffff;
    border: 1px solid var(--bec-border);
    border-radius: 12px;
    box-shadow: var(--bec-card-shadow);
    padding: 24px;
    transition: all 0.2s ease;
}

.bec-events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}

.bec-event-card:hover {
    box-shadow: var(--bec-hover-shadow);
    border-color: #cbd5e1;
}

.bec-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}

.bec-readiness-pill {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #15803d;
    padding: 4px 10px;
    border-radius: 9999px;
    font-weight: 700;
    font-size: 12px;
}

.bec-event-title {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 14px 0;
    color: var(--bec-primary);
}

.bec-event-meta-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 12px;
    margin-bottom: 16px;
    font-size: 13px;
}

.bec-meta-label {
    color: #64748b;
    display: block;
    font-size: 11px;
}
.bec-meta-val {
    font-weight: 600;
    color: #1e293b;
}

/* Progress Bar */
.bec-readiness-block {
    margin: 16px 0;
    background: #f8fafc;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #f1f5f9;
}

.bec-readiness-text {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    margin-bottom: 6px;
}

.bec-progress-track {
    height: 8px;
    background: #e2e8f0;
    border-radius: 9999px;
    overflow: hidden;
}

.bec-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #0d9488, #16a34a);
    border-radius: 9999px;
    transition: width 0.5s ease;
}

/* Event Detail Header */
.bec-event-header-card {
    background: #ffffff;
    border: 1px solid var(--bec-border);
    border-radius: 16px;
    padding: 28px 32px;
    margin-bottom: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--bec-card-shadow);
}

.bec-header-title {
    font-size: 26px;
    font-weight: 800;
    margin: 0 0 10px 0;
    color: var(--bec-primary);
}

.bec-header-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 8px;
}

.bec-header-pill {
    background: #f1f5f9;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    color: #334155;
}

.bec-readiness-hero-box {
    text-align: right;
    min-width: 200px;
}

.bec-readiness-percent {
    font-size: 38px;
    font-weight: 900;
    color: #0f766e;
    line-height: 1;
}

.bec-readiness-sublabel {
    font-size: 12px;
    color: #64748b;
    margin: 6px 0 10px;
    font-weight: 600;
}

/* Workspace Grid */
.bec-workspace-grid {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 24px;
}

/* Tabs */
.bec-tabs-header {
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 2px solid var(--bec-border);
    margin-bottom: 20px;
    padding-bottom: 10px;
}

.bec-tab-btn {
    background: transparent;
    border: none;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 700;
    color: #64748b;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.2s;
}

.bec-tab-btn.active {
    background: #e0f2fe;
    color: #0284c7;
}

/* Requirements Groups */
.bec-req-group {
    background: #ffffff;
    border: 1px solid var(--bec-border);
    border-radius: 12px;
    margin-bottom: 20px;
    overflow: hidden;
}

.bec-group-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 20px;
    background: #f8fafc;
    border-bottom: 1px solid var(--bec-border);
}

.bec-group-header h3 {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
}

.bec-group-count {
    margin-left: auto;
    background: #e2e8f0;
    padding: 2px 8px;
    border-radius: 9999px;
    font-size: 11px;
    font-weight: 700;
}

.bec-req-list {
    display: flex;
    flex-direction: column;
}

.bec-req-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 20px;
    border-bottom: 1px solid #f1f5f9;
    cursor: pointer;
    transition: background 0.15s;
}
.bec-req-item:last-child {
    border-bottom: none;
}
.bec-req-item:hover {
    background: #f8fafc;
}

.bec-req-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.bec-req-name {
    margin: 0 0 4px 0;
    font-size: 14px;
    font-weight: 600;
}

.bec-req-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #64748b;
}

.bec-concierge-pill {
    background: #eff6ff;
    color: #1d4ed8;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
}

.bec-req-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Checklist */
.bec-checklist-box {
    background: #ffffff;
    border: 1px solid var(--bec-border);
    border-radius: 12px;
    padding: 20px;
}

.bec-checklist-cat-header {
    font-weight: 800;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #0284c7;
    margin: 18px 0 8px 0;
    padding-bottom: 4px;
    border-bottom: 1px dashed #e2e8f0;
}
.bec-checklist-cat-header:first-child {
    margin-top: 0;
}

.bec-checklist-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 4px;
    border-bottom: 1px solid #f8fafc;
}

.bec-checkbox-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 14px;
}

.bec-checklist-title.completed {
    text-decoration: line-through;
    color: #94a3b8;
}

/* Chat Card */
.bec-chat-card {
    background: #ffffff;
    border: 1px solid var(--bec-border);
    border-radius: 14px;
    box-shadow: var(--bec-card-shadow);
    display: flex;
    flex-direction: column;
    height: 600px;
}

.bec-chat-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    border-bottom: 1px solid var(--bec-border);
    background: #f8fafc;
    border-radius: 14px 14px 0 0;
}

.bec-chat-avatar {
    width: 36px;
    height: 36px;
    background: #0f172a;
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.bec-chat-title {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
}

.bec-chat-status {
    font-size: 11px;
    color: #16a34a;
    font-weight: 600;
}

.bec-chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: #fafafa;
}

.bec-chat-bubble {
    max-width: 82%;
    padding: 10px 14px;
    border-radius: 12px;
    font-size: 13px;
    position: relative;
}

.bec-bubble-out {
    align-self: flex-end;
    background: #0284c7;
    color: #ffffff;
    border-bottom-right-radius: 2px;
}
.bec-bubble-out .bec-bubble-sender {
    color: #bae6fd;
}
.bec-bubble-out .bec-bubble-time {
    color: #e0f2fe;
}

.bec-bubble-in {
    align-self: flex-start;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    color: #1e293b;
    border-bottom-left-radius: 2px;
}

.bec-bubble-sender {
    font-size: 11px;
    font-weight: 700;
    margin-bottom: 4px;
    color: #64748b;
}

.bec-bubble-time {
    font-size: 10px;
    margin-top: 4px;
    text-align: right;
    color: #94a3b8;
}

.bec-ai-detected-card {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 8px;
    padding: 10px;
    margin-top: 8px;
    color: #166534;
}

.bec-ai-badge {
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    color: #15803d;
    margin-bottom: 2px;
}

.bec-chat-hints {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 10px;
}

.bec-hint-chip {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 6px 10px;
    font-size: 11px;
    text-align: left;
    cursor: pointer;
    color: #334155;
    transition: all 0.15s;
}
.bec-hint-chip:hover {
    background: #e0f2fe;
    border-color: #0284c7;
    color: #0284c7;
}

.bec-chat-input-bar {
    padding: 12px;
    border-top: 1px solid var(--bec-border);
    background: #ffffff;
    border-radius: 0 0 14px 14px;
}

.bec-chat-input-bar form {
    display: flex;
    gap: 8px;
}

.bec-chat-input-bar input {
    flex: 1;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 13px;
    outline: none;
}
.bec-chat-input-bar input:focus {
    border-color: #0284c7;
}

.bec-chat-send-btn {
    background: #0284c7;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    width: 38px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Forms & Inputs */
.bec-form-group {
    margin-bottom: 14px;
}

.bec-form-group label {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #334155;
}

.bec-input {
    width: 100%;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 9px 12px;
    font-size: 14px;
    box-sizing: border-box;
    outline: none;
}
.bec-input:focus {
    border-color: #0284c7;
    box-shadow: 0 0 0 2px rgba(2, 132, 199, 0.15);
}

/* Modals */
.bec-modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.bec-modal-box {
    background: #ffffff;
    border-radius: 16px;
    width: 100%;
    max-width: 520px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    animation: becModalFade 0.2s ease;
}

.bec-modal-lg {
    max-width: 680px;
}

@keyframes becModalFade {
    from { opacity: 0; transform: scale(0.96); }
    to { opacity: 1; transform: scale(1); }
}

.bec-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 24px;
    border-bottom: 1px solid var(--bec-border);
}
.bec-modal-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
}
.bec-modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #64748b;
    line-height: 1;
}

.bec-auth-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: #f1f5f9;
}
.bec-auth-tab {
    padding: 12px;
    border: none;
    background: transparent;
    font-weight: 700;
    font-size: 13px;
    color: #64748b;
    cursor: pointer;
}
.bec-auth-tab.active {
    background: #ffffff;
    color: #0284c7;
    border-bottom: 2px solid #0284c7;
}

.bec-auth-body {
    padding: 24px;
}

.bec-auth-divider {
    text-align: center;
    margin: 18px 0;
    position: relative;
}
.bec-auth-divider::before {
    content: "";
    position: absolute;
    left: 0; top: 50%; right: 0;
    border-top: 1px solid #e2e8f0;
}
.bec-auth-divider span {
    position: relative;
    background: #ffffff;
    padding: 0 10px;
    font-size: 11px;
    color: #94a3b8;
    text-transform: uppercase;
}

/* Operations KPI */
.bec-kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    margin-top: 20px;
}

.bec-kpi-card {
    background: #ffffff;
    border: 1px solid var(--bec-border);
    border-radius: 12px;
    padding: 18px;
    display: flex;
    flex-direction: column;
}

.bec-kpi-label {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.5px;
    color: #64748b;
}

.bec-kpi-num {
    font-size: 32px;
    font-weight: 900;
    margin: 4px 0;
    color: var(--bec-primary);
}

.bec-kpi-sub {
    font-size: 11px;
    color: #94a3b8;
}

/* Operations Event View */
.bec-ops-event-banner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--bec-border);
}

.bec-ops-event-details {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 13px;
    color: #475569;
    margin-top: 8px;
}

.bec-ops-readiness-box {
    text-align: right;
}
.bec-ops-readiness-percent {
    font-size: 28px;
    font-weight: 800;
    color: #0f766e;
    display: block;
}

.bec-ops-grid-layout {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 24px;
}

.bec-table {
    width: 100%;
    border-collapse: collapse;
}
.bec-table th {
    text-align: left;
    padding: 10px 12px;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    font-size: 12px;
    color: #475569;
}
.bec-table td {
    padding: 12px;
    border-bottom: 1px solid #f1f5f9;
    font-size: 13px;
    vertical-align: middle;
}

/* Landing Page Specific */
.bec-landing-wrapper {
    max-width: 1140px;
    margin: 0 auto;
    padding: 20px;
}

.bec-landing-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    border-bottom: 1px solid #f1f5f9;
}

.bec-landing-links {
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 14px;
    font-weight: 600;
}
.bec-landing-links a {
    color: #334155;
    text-decoration: none;
}
.bec-landing-links a:hover {
    color: #0284c7;
}

.bec-landing-hero {
    text-align: center;
    padding: 70px 20px 50px;
}

.bec-landing-tag {
    display: inline-block;
    background: #e0f2fe;
    color: #0369a1;
    font-size: 12px;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 9999px;
    margin-bottom: 20px;
}

.bec-hero-title {
    font-size: 46px;
    font-weight: 900;
    line-height: 1.15;
    margin: 0 0 20px 0;
    color: #0f172a;
}

.bec-text-gradient {
    background: linear-gradient(135deg, #0284c7 0%, #0f766e 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.bec-hero-description {
    font-size: 18px;
    color: #475569;
    max-width: 680px;
    margin: 0 auto 30px;
}

.bec-hero-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.bec-prototype-badge {
    margin-top: 35px;
    display: inline-block;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 12px;
    color: #64748b;
}

.bec-steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.bec-step-card {
    background: #ffffff;
    border: 1px solid var(--bec-border);
    border-radius: 12px;
    padding: 24px;
    position: relative;
}

.bec-step-num {
    width: 32px;
    height: 32px;
    background: #0284c7;
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    margin-bottom: 14px;
}

.bec-services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.bec-service-card {
    background: #ffffff;
    border: 1px solid var(--bec-border);
    border-radius: 12px;
    padding: 22px;
}

.bec-service-icon {
    font-size: 28px;
    margin-bottom: 10px;
    display: block;
}

.bec-about-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    margin-top: 40px;
}

.bec-preview-card {
    background: #0f172a;
    color: #ffffff;
    border-radius: 16px;
    padding: 28px;
    box-shadow: 0 20px 25px -5px rgba(15, 23, 42, 0.3);
}

.bec-preview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    font-weight: 700;
}

.bec-preview-body {
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-size: 14px;
    margin-bottom: 24px;
}

.bec-landing-footer {
    border-top: 1px solid var(--bec-border);
    padding: 30px 0;
    margin-top: 60px;
}

.bec-footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Responsive Rules (Requirement 24) */
@media (max-width: 900px) {
    .bec-workspace-grid,
    .bec-ops-grid-layout,
    .bec-about-container {
        grid-template-columns: 1fr;
    }

    .bec-event-header-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
    .bec-readiness-hero-box {
        text-align: left;
    }

    .bec-hero-title {
        font-size: 32px;
    }
}
