/* ========================================
   Tuqio Hub Brand Colors
   ======================================== */

:root {
    /* Brand Colors from Brand Guide */
    --tuqio-navy: #1e1548; /* Primary - Navy Blue */
    --tuqio-red: #ed1c24; /* Secondary - Red */
    --tuqio-navy-rgb: 30, 21, 72;
    --tuqio-red-rgb: 237, 28, 36;

    /* Shades */
    --tuqio-navy-light: #2d1f6b;
    --tuqio-navy-dark: #15102e;
    --tuqio-red-light: #f03d44;
    --tuqio-red-dark: #c41820;
}

/* ========================================
   Sidebar Branding (Navy Background)
   ======================================== */

/* Sidebar Background - Navy Blue */
.nxl-navigation {
    background-color: var(--tuqio-navy) !important;
}

/* Sidebar Links */
.nxl-navigation .nxl-link {
    color: rgba(255, 255, 255, 0.8) !important;
}

.nxl-navigation .nxl-link:hover {
    color: #ffffff !important;
    background-color: rgba(237, 28, 36, 0.1) !important;
}

/* Active Menu Item - Red Accent */
.nxl-navigation .nxl-link.active,
.nxl-navigation .nxl-item.active > .nxl-link {
    color: #ffffff !important;
    background-color: var(--tuqio-red) !important;
}

/* Submenu Active Item */
.nxl-navigation .nxl-submenu .nxl-link.active {
    color: var(--tuqio-red) !important;
    background-color: rgba(237, 28, 36, 0.1) !important;
}

/* Menu Icons */
.nxl-navigation .nxl-micon {
    color: rgba(255, 255, 255, 0.7) !important;
}

.nxl-navigation .nxl-link:hover .nxl-micon,
.nxl-navigation .nxl-link.active .nxl-micon {
    color: #ffffff !important;
}

/* Menu Captions */
.nxl-navigation .nxl-caption label {
    color: rgba(255, 255, 255, 0.5) !important;
}

/* ========================================
   Primary Buttons (Red)
   ======================================== */

.btn-primary {
    background-color: var(--tuqio-red) !important;
    border-color: var(--tuqio-red) !important;
    color: #ffffff !important;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
    background-color: var(--tuqio-red-dark) !important;
    border-color: var(--tuqio-red-dark) !important;
}

/* ========================================
   Links & Accents (Red)
   ======================================== */

a {
    color: var(--tuqio-red);
}

a:hover {
    color: var(--tuqio-red-dark);
}

/* ========================================
   Form Controls Focus (Red)
   ======================================== */

.form-control:focus,
.form-select:focus {
    border-color: var(--tuqio-red) !important;
    box-shadow: 0 0 0 0.2rem rgba(237, 28, 36, 0.25) !important;
}

/* ========================================
   Badges & Labels (Red)
   ======================================== */

.badge-primary {
    background-color: var(--tuqio-red) !important;
}

/* ========================================
   Progress Bars (Red)
   ======================================== */

.progress-bar {
    background-color: var(--tuqio-red) !important;
}

/* ========================================
   Alerts
   ======================================== */

.alert-primary {
    background-color: rgba(237, 28, 36, 0.1) !important;
    border-color: var(--tuqio-red) !important;
    color: var(--tuqio-red-dark) !important;
}

/* ========================================
   Navbar/Header
   ======================================== */

.nxl-header {
    background-color: #ffffff !important;
    border-bottom: 1px solid rgba(30, 21, 72, 0.1) !important;
}

/* ========================================
   Custom Scrollbar (Sidebar)
   ======================================== */

.nxl-navigation::-webkit-scrollbar-thumb {
    background-color: rgba(237, 28, 36, 0.5) !important;
}

.nxl-navigation::-webkit-scrollbar-thumb:hover {
    background-color: var(--tuqio-red) !important;
}

/* ========================================
   Logo Styling
   ======================================== */

.b-brand .logo {
    max-height: 40px;
    width: auto;
}

/* Collapsed sidebar icon */
.b-brand .logo-sm {
    max-height: 35px;
}

/* ========================================
   Auth Pages Branding
   ======================================== */

/* Auth page logo border */
.auth-logo-border {
    border-color: var(--tuqio-navy) !important;
}

/* Auth page primary elements */
.auth-primary-text {
    color: var(--tuqio-navy) !important;
}

.auth-accent-text {
    color: var(--tuqio-red) !important;
}

/* ========================================
   Brand Color Utility Classes
   ======================================== */

/* Background Colors */
.bg-tuqio-navy {
    background-color: var(--tuqio-navy) !important;
    color: #ffffff !important;
}

.bg-tuqio-navy-light {
    background-color: var(--tuqio-navy-light) !important;
    color: #ffffff !important;
}

.bg-tuqio-red {
    background-color: var(--tuqio-red) !important;
    color: #ffffff !important;
}

.bg-tuqio-red-light {
    background-color: var(--tuqio-red-light) !important;
    color: #ffffff !important;
}

/* Text Colors */
.text-tuqio-navy {
    color: var(--tuqio-navy) !important;
}

.text-tuqio-red {
    color: var(--tuqio-red) !important;
}

/* Border Colors */
.border-tuqio-navy {
    border-color: var(--tuqio-navy) !important;
}

.border-tuqio-red {
    border-color: var(--tuqio-red) !important;
}

/* Badge Colors (Solid) */
.badge-tuqio-navy {
    background-color: var(--tuqio-navy) !important;
    color: #ffffff !important;
}

.badge-tuqio-red {
    background-color: var(--tuqio-red) !important;
    color: #ffffff !important;
}

/* Badge Colors (Gradient) - Using Brand Colors */
.badge-gradient-gold {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%) !important;
    color: #000000 !important;
    font-weight: 600;
}

.badge-gradient-navy {
    background: linear-gradient(135deg, var(--tuqio-navy-light) 0%, var(--tuqio-navy-dark) 100%) !important;
    color: #ffffff !important;
    font-weight: 600;
}

.badge-gradient-red {
    background: linear-gradient(135deg, var(--tuqio-red-light) 0%, var(--tuqio-red-dark) 100%) !important;
    color: #ffffff !important;
    font-weight: 600;
}

/* ========================================
   Event Schedule Timeline
   ======================================== */

/* ── Session type colours (CSS custom properties so blade can use var()) ── */
:root {
    /* Type: Keynote */
    --schedule-keynote-color:  #6366f1;
    --schedule-keynote-soft:   #ede9fe;
    /* Type: Panel */
    --schedule-panel-color:    #0ea5e9;
    --schedule-panel-soft:     #e0f2fe;
    /* Type: Workshop */
    --schedule-workshop-color: #10b981;
    --schedule-workshop-soft:  #d1fae5;
    /* Type: Performance */
    --schedule-perf-color:     #f59e0b;
    --schedule-perf-soft:      #fef3c7;
    /* Type: Ceremony */
    --schedule-ceremony-color: #ec4899;
    --schedule-ceremony-soft:  #fce7f3;
    /* Type: Networking */
    --schedule-network-color:  #8b5cf6;
    --schedule-network-soft:   #ede9fe;
    /* Type: Break */
    --schedule-break-color:    #f97316;
    --schedule-break-soft:     #ffedd5;
    /* Type: Session / Other (default) */
    --schedule-default-color:  #64748b;
    --schedule-default-soft:   #f1f5f9;
}

/* ── Day header ─────────────────────────────────────────────────── */
.schedule-day-header {
    position: sticky;
    top: 0;
    z-index: 10;
    background: #fff;
    border-bottom: 2px solid #e2e8f0;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.schedule-day-number {
    width: 52px;
    height: 52px;
    border-radius: 10px;
    background: var(--tuqio-red);
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-weight: 700;
    font-size: 20px;
    line-height: 1;
}

.schedule-day-dow {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .8px;
    color: #94a3b8;
}

.schedule-day-date {
    font-size: 16px;
    font-weight: 700;
    color: #1e293b;
    line-height: 1.2;
}

.schedule-day-count {
    margin-left: auto;
}

/* ── Session row ─────────────────────────────────────────────────── */
.schedule-row {
    display: flex;
    align-items: stretch;
    border-bottom: 1px solid #f1f5f9;
    position: relative;
    transition: background .12s;
}

.schedule-row:last-child {
    border-bottom: none;
}

.schedule-row:hover {
    background: #f8fafc;
}

.schedule-row.schedule-row--highlighted {
    background: #faf5ff;
}

.schedule-row.schedule-row--highlighted:hover {
    background: #f3e8ff;
}

/* ── Time column ─────────────────────────────────────────────────── */
.schedule-time-col {
    min-width: 68px;
    padding: 16px 10px 16px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    flex-shrink: 0;
}

/* Vertical connector line between sessions */
.schedule-time-col::after {
    content: '';
    position: absolute;
    bottom: 0;
    top: 42px;
    left: 50%;
    width: 2px;
    background: #e2e8f0;
    transform: translateX(-50%);
}

.schedule-row:last-child .schedule-time-col::after {
    display: none;
}

.schedule-time-start {
    font-size: 13px;
    font-weight: 700;
    color: #1e293b;
    line-height: 1;
}

.schedule-time-end {
    font-size: 11px;
    color: #94a3b8;
    margin-top: 3px;
}

/* ── Type dot ────────────────────────────────────────────────────── */
.schedule-type-dot {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    flex-shrink: 0;
    margin: 14px 12px 0 2px;
}

/* Per-type dot colours */
.schedule-type-dot--keynote     { background: var(--schedule-keynote-soft);  color: var(--schedule-keynote-color); }
.schedule-type-dot--panel       { background: var(--schedule-panel-soft);    color: var(--schedule-panel-color); }
.schedule-type-dot--workshop    { background: var(--schedule-workshop-soft); color: var(--schedule-workshop-color); }
.schedule-type-dot--performance { background: var(--schedule-perf-soft);     color: var(--schedule-perf-color); }
.schedule-type-dot--ceremony    { background: var(--schedule-ceremony-soft); color: var(--schedule-ceremony-color); }
.schedule-type-dot--networking  { background: var(--schedule-network-soft);  color: var(--schedule-network-color); }
.schedule-type-dot--break       { background: var(--schedule-break-soft);    color: var(--schedule-break-color); }
.schedule-type-dot--session,
.schedule-type-dot--other,
.schedule-type-dot--default     { background: var(--schedule-default-soft);  color: var(--schedule-default-color); }

/* ── Content column ──────────────────────────────────────────────── */
.schedule-content-col {
    flex: 1;
    padding: 14px 12px 14px 0;
    min-width: 0;
}

.schedule-title {
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 3px;
    line-height: 1.35;
}

.schedule-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-top: 4px;
}

.schedule-meta-item {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: #64748b;
}

.schedule-meta-item i {
    font-size: 11px;
}

.schedule-description {
    font-size: 12px;
    color: #94a3b8;
    margin-top: 5px;
    line-height: 1.5;
}

/* ── Type pill ───────────────────────────────────────────────────── */
.schedule-type-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    border-radius: 99px;
    font-size: 11px;
    font-weight: 600;
}

.schedule-type-pill--keynote     { background: var(--schedule-keynote-soft);  color: var(--schedule-keynote-color); }
.schedule-type-pill--panel       { background: var(--schedule-panel-soft);    color: var(--schedule-panel-color); }
.schedule-type-pill--workshop    { background: var(--schedule-workshop-soft); color: var(--schedule-workshop-color); }
.schedule-type-pill--performance { background: var(--schedule-perf-soft);     color: var(--schedule-perf-color); }
.schedule-type-pill--ceremony    { background: var(--schedule-ceremony-soft); color: var(--schedule-ceremony-color); }
.schedule-type-pill--networking  { background: var(--schedule-network-soft);  color: var(--schedule-network-color); }
.schedule-type-pill--break       { background: var(--schedule-break-soft);    color: var(--schedule-break-color); }
.schedule-type-pill--session,
.schedule-type-pill--other,
.schedule-type-pill--default     { background: var(--schedule-default-soft);  color: var(--schedule-default-color); }

/* ── Star / highlighted ──────────────────────────────────────────── */
.schedule-highlighted-star {
    color: #f59e0b;
    font-size: 12px;
    margin-left: 4px;
}

/* ── Actions column ──────────────────────────────────────────────── */
.schedule-actions-col {
    display: flex;
    align-items: flex-start;
    gap: 4px;
    padding: 12px 16px 0 0;
    flex-shrink: 0;
}

/* ── Empty state ─────────────────────────────────────────────────── */
.schedule-empty-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: #ede9fe;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.schedule-empty-icon i {
    font-size: 28px;
    color: #6366f1;
}

.schedule-empty-body {
    max-width: 320px;
    margin: 0 auto 16px;
}

/* ========================================
   Accordion — Alternating Brand Colors
   ======================================== */

/* Strip default border-radius on inner items so our colors fill cleanly */
.accordion-item {
    border-left: none !important;
    border-right: none !important;
}

/* Odd items — soft navy tint */
.accordion-item:nth-child(odd) {
    background-color: rgba(30, 21, 72, 0.04) !important;
}

.accordion-item:nth-child(odd) .accordion-button {
    background-color: rgba(30, 21, 72, 0.06) !important;
    color: var(--tuqio-navy) !important;
}

.accordion-item:nth-child(odd) .accordion-button:not(.collapsed) {
    background-color: var(--tuqio-navy) !important;
    color: #ffffff !important;
    box-shadow: none !important;
}

.accordion-item:nth-child(odd) .accordion-button:not(.collapsed)::after {
    filter: brightness(0) invert(1); /* white arrow */
}

/* Even items — soft red tint */
.accordion-item:nth-child(even) {
    background-color: rgba(237, 28, 36, 0.04) !important;
}

.accordion-item:nth-child(even) .accordion-button {
    background-color: rgba(237, 28, 36, 0.06) !important;
    color: var(--tuqio-navy) !important;
}

.accordion-item:nth-child(even) .accordion-button:not(.collapsed) {
    background-color: var(--tuqio-red) !important;
    color: #ffffff !important;
    box-shadow: none !important;
}

.accordion-item:nth-child(even) .accordion-button:not(.collapsed)::after {
    filter: brightness(0) invert(1); /* white arrow */
}

/* Accordion body keeps a very subtle matching tint */
.accordion-item:nth-child(odd) .accordion-collapse .accordion-body {
    background-color: rgba(30, 21, 72, 0.02) !important;
}

.accordion-item:nth-child(even) .accordion-collapse .accordion-body {
    background-color: rgba(237, 28, 36, 0.02) !important;
}

/* Hover state for buttons */
.accordion-button:hover {
    opacity: 0.9;
}

/* ========================================
   Breadcrumb — Tuqio Brand Alternating Colors
   ======================================== */

/* Separator (›) — faded navy */
.breadcrumb-item + .breadcrumb-item::before {
    color: var(--tuqio-navy) !important;
    opacity: 0.35;
}

/* Base link style */
.breadcrumb-item a {
    font-weight: 500;
    font-size: 13px;
    text-decoration: none;
    transition: opacity 0.15s;
}

.breadcrumb-item a:hover {
    opacity: 0.75;
}

/* Odd items (1st, 3rd, 5th…) — Navy */
.breadcrumb-item:nth-child(odd) a {
    color: var(--tuqio-navy) !important;
}

/* Even items (2nd, 4th, 6th…) — Red */
.breadcrumb-item:nth-child(even) a {
    color: var(--tuqio-red) !important;
}

/* Active/current page — follows same alternating pattern */
.breadcrumb-item.active:nth-child(odd) {
    color: var(--tuqio-navy) !important;
    font-weight: 600;
    font-size: 13px;
}

.breadcrumb-item.active:nth-child(even) {
    color: var(--tuqio-red) !important;
    font-weight: 600;
    font-size: 13px;
}

/* ── Mobile: stack title + breadcrumb vertically ───────────────────── */
@media (max-width: 575.98px) {
    .page-header-left {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 2px;
        min-width: 0;
        flex: 1;
    }
    .page-header .breadcrumb {
        flex-wrap: wrap;
        font-size: 11px;
        margin-left: 0 !important;
        max-width: 100%;
    }
    .page-header .breadcrumb-item {
        max-width: 140px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    .page-header .breadcrumb-item.active {
        max-width: 160px;
    }
    .page-header-title {
        margin-bottom: 0 !important;
    }
    .page-header-title h5 {
        font-size: 0.95rem !important;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 200px;
    }
}

/* ── Mobile: fix card header title+badge rows overflowing ──────────── */
@media (max-width: 767.98px) {
    /* flex-grow children must declare min-width:0 to shrink below content size */
    .card .flex-grow-1 {
        min-width: 0;
    }
    /* title + badge rows: wrap instead of overflow */
    .card .d-flex.align-items-center.gap-2,
    .card .d-flex.align-items-center.gap-3 {
        flex-wrap: wrap;
    }
    /* card image thumbnails: shrink on small screens */
    .card .flex-shrink-0 img[style*="width: 100px"],
    .card .flex-shrink-0 div[style*="width: 100px"] {
        width: 64px !important;
        height: 64px !important;
    }
}
