/* *********************************************
    * TMC color scheme and variables
    *
    */

:root {
    --tmc-dark-blue: #0A2234;
    --tmc-light-blue: #5087AB;
    --tmc-orange: #EA8000;
    --tmc-charcoal: #4D4D4D;
    --tmc-slate-grey: #666666;
    --tmc-silver: #C0C0C0;
    --tmc-light-grey: #FBFBFB;
    --tmc-white: #FFFFFF;
    --tmc-hero-background: rgba(10, 34, 52, 0.6);
    --tmc-dark-blue-transparent: #0A2234D1;

    /* Z-index scale */
    --z-navbar: 10;
    --z-modal: 20;
    --z-toast: 30;

    --brand-primary: #1D2252;
    --brand-alt: #3E1E70;
    --brand-bright: #F58220;


    --brand-primary-light: #d9ddff;
    --brand-alt-light: #d4c2f2;
    --brand-bright-light: #f2d8c2;

    --brand-primary-bg: #f7f8ff;
    --brand-alt-bg: #faf7ff;
    --brand-bright-bg: #fffbf7;

    --tmc-gradient-primary-angle: 61deg;
    --tmc-gradient-primary-stops: #1D2252 10%, #3E1E70 35%, #F58220 90%;

    --tmc-gradient-success-angle: 52deg;
    --tmc-gradient-success-stops: #024b30 0%, #27e36a 60%, #f5f726 100%;

    --tmc-gradient-alert-angle: 52deg;
    --tmc-gradient-alert-stops: #b31217 0%, #ff3838 60%, #ff9900 100%;

    --tmc-border-radius: 0.4rem;
    --tmc-border-radius-small: 0.3rem;

    --tmc-gradient-button-angle: 61deg;
    --tmc-gradient-button-stops:  #1D2252 50%, #3E1E70 100%;

    --tmc-gradient-button-hover-angle: 61deg;
    --tmc-gradient-button-hover-stops:  #1D2252 50%, #F58220 100%;

}


.tmc-bg-gradient-primary {
    background: linear-gradient(var(--tmc-gradient-primary-angle), var(--tmc-gradient-primary-stops));
}

.tmc-bg-gradient-success {
    background: linear-gradient(var(--tmc-gradient-success-angle), var(--tmc-gradient-success-stops));
}

.tmc-bg-gradient-alert {
    background: linear-gradient(var(--tmc-gradient-alert-angle), var(--tmc-gradient-alert-stops));
}

/* *********************************************
    * TMC navbar
    *
    */

.tmc-navbar-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 1rem;  /* padding for mobile */
}

.tmc-navbar {
    background: linear-gradient(var(--tmc-gradient-primary-angle), var(--tmc-gradient-primary-stops));
    color: #fff;
    position: relative;
    z-index: 100;
}

.tmc-navbar-brand img { height: 35px; }

.tmc-navbar-toggle {
    background: none; border: none; color: #fff; font-size: 2rem; cursor: pointer;
    padding: 0.25rem 0.75rem; display: flex; align-items: center;
}

.tmc-navbar-link {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    border-radius: var(--tmc-border-radius);
    transition: background 0.2s;
    display: block;
    width: 100%;
}

.tmc-navbar-link:hover, .tmc-navbar-link:focus {
    background: rgba(255,255,255,0.20);
    color: #fff;
}

.tmc-navbar-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin: 0;
    background: var(--brand-primary);
    flex-direction: column;
    gap: 0;
    box-shadow: 0 4px 24px rgba(0,0,0,0.08);
    padding: 0.25rem 0;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
}


@media (min-width: 992px) {
    .tmc-navbar-container {
        padding-left: 0;
        padding-right: 0;
    }
    .tmc-navbar-menu {
        position: static;
        display: flex !important;
        flex-direction: row;
        align-items: center;
        gap: 1rem;
        box-shadow: none;
        background: transparent;
        padding: 0;
        border-radius: 0;
    }
    .tmc-navbar-link {
        padding: 0.5rem 1rem;
        border-radius: var(--tmc-border-radius-small);
        width: auto;
        display: inline-block;
    }
    .tmc-navbar-toggle {
        display: none;
    }
}


.navbar-prod {
    background: linear-gradient(var(--tmc-gradient-primary-angle), var(--tmc-gradient-primary-stops));
    z-index: var(--z-navbar);
}

.navbar-dev {
    background: linear-gradient(var(--tmc-gradient-alert-angle), var(--tmc-gradient-alert-stops)) !important;
    z-index: var(--z-navbar);
}


/* *********************************************
    * TMC Buttons
    *
    */


.tmc-btn {
    flex: 1;
    text-transform: uppercase;
    min-width: 100px;
    font-size: 0.8rem;
    padding: 0.3rem 0.5rem;
}

.tmc-btn-narrow {
    flex: 1;
    text-transform: uppercase;
    min-width: 80px;
    font-size: 0.8rem;
    padding: 0.3rem 0.5rem;
}


@media (max-width: 576px) {
    .tmc-btn, .tmc-btn-narrow {
        width: 100%;
        flex: none;
        min-width: auto;
    }
}




.btn-brand-primary {
background: var(--brand-primary-bg) !important;
border-color: var(--brand-primary) !important;
color: var(--brand-primary) !important;
}

.btn-brand-primary:hover, .btn-brand-primary:focus {
background: var(--brand-primary) !important;
color: #fff !important;
}

.btn-brand-alt {
background: var(--brand-alt-bg) !important;
border-color: var(--brand-alt) !important;
color: var(--brand-alt) !important;
}
.btn-brand-alt:hover, .btn-brand-alt:focus {
background: var(--brand-alt) !important;
color: #fff !important;
}

.btn-brand-bright {
background: var(--brand-bright-bg) !important;
border-color: var(--brand-bright) !important;
color: var(--brand-bright) !important;
}

.btn-brand-bright:hover, .btn-brand-bright:focus {
background: var(--brand-bright) !important;
color: #fff !important;
}

/* Secondary outline - for modal close/copy etc */

.btn-outline-brand {
    background: transparent;
    border-radius: var(--tmc-border-radius-small);
    border: 1px solid var(--tmc-slate-grey);
    color: var(--tmc-slate-grey);
    transition: all 0.2s;
    cursor: pointer;
}

.btn-outline-brand:hover, .btn-outline-brand:focus {
    transform: translate(0,1px);
    border: 1px solid var(--brand-primary);
    background: var(--brand-primary);
    color:#fff;
}

/* Styles for the disabled state */
.btn-outline-brand:disabled {
    background: transparent; 
    border: 1px solid var(--tmc-slate-grey);
    color: var(--tmc-slate-grey); 
    opacity: 0.5;
    cursor: default;
    transform: none;
}



.tmc-brand-btn {
    background: linear-gradient(var(--tmc-gradient-button-angle),var(--tmc-gradient-button-stops));
    color: #fff !important;
    border: none;
    font-weight: 600;
    text-transform: uppercase;
    font-size:1.1rem;
    padding: .6rem 1.3rem;
    margin: 0.6rem 0;
    border-radius: var(--tmc-border-radius-small);
    transition: all 0.2s;
    display: inline-block;
}

.tmc-brand-btn:hover, .tmc-brand-btn:focus {
    background: linear-gradient(var(--tmc-gradient-button-hover-angle),var(--tmc-gradient-button-hover-stops));
    color: #fff;
}

.tmc-brand-btn > a {
    color: #fff !important;
    text-decoration: none;
}


/* *********************************************
    * TMC Styles
    *
    */

.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    color: white;
    padding: 0;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    filter: brightness(0.7);
    z-index: -1;
}

.hero-content {
    padding: 2rem;
    background-color: var(--tmc-hero-background);
    border-radius: var(--tmc-border-radius);
    max-width: 800px;
    margin: 50px auto;
}


/* *********************************************
    * Global table styles
    *
    */

.results-table {
    margin-top: 0.2rem;
    font-size: 0.8rem;
    border-collapse: collapse;
    width: 100%;
}

.results-table th {
    padding: 0.2rem;
    border-bottom: 1px solid #dee2e6;
    font-weight: 600;
}

.results-table td {
    padding: 0.2rem 0.2rem;
    border: none;
}

.results-table tbody tr:nth-child(even) {
    background-color: var(--tmc-light-grey);
}

.category-card {
    margin-bottom: 1.5rem;
}


.entries-badge {
    background-color: #40559b;
}

.race-info {
    background-color: #f8f9fa;
    border-radius: var(--tmc-border-radius-small);
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.action-buttons {
    margin-bottom: 2rem;
}

.empty-state {
    text-align: center;
    padding: 3rem;
    background-color: #f8f9fa;
    border-radius: var(--tmc-border-radius-small);
    margin: 2rem 0;
}

.tmc-results-top5 {
    margin: 0;
}

.tmc-series-title {
    margin-top: 1.5rem;
}

.tmc-series-title .btn-secondary {
    text-transform: uppercase;
    font-weight: bold;
}

.tmc-series-title .btn-outline-secondary {
    text-transform: uppercase;
}

/* cards */
.tmc-dark-card-header {
    background-color: var(--tmc-dark-blue);
    color: #FFFFFF;
}

/* buttons*/
.tmc-dark-button {
    background-color: var(--tmc-dark-blue);
    color: #FFFFFF;
    transition: all 0.3s ease;
}

.tmc-dark-button:hover {
    background-color: #FFFFFF;
    border: var(--tmc-dark-blue) 1px solid;
    color: var(--tmc-dark-blue);
}

/* global footer */
.tmc-footer {
    background: linear-gradient(var(--tmc-gradient-primary-angle), var(--tmc-gradient-primary-stops));
}

/* Form field styling */
#id_username,
#id_password {
    display: block;
    width: 100%;
    padding: 0.375rem 0.75rem;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: #212529;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid #ced4da;
    border-radius: var(--tmc-border-radius);
}



/* Modal Results display */


.modal-results-display {
    font-size: 0.8rem;
    line-height: 1.4;
    white-space: pre-wrap;
    padding: 1rem;
    margin: 0;
    color: #212529;
    background-color: transparent;
    border: none;
    overflow: visible;
}

/* Toast styles */
.toast-container {
    z-index: var(--z-toast);
}

.toast {
    min-width: 300px;
    animation: toast-slide-in 0.3s ease-out;
}

.toast.removing {
    animation: toast-slide-out 0.3s ease-in;
}

@keyframes toast-slide-in {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes toast-slide-out {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(100%);
    }
}

/* Loading states */
.loading-spinner {
    display: inline-block;
    width: 1rem;
    height: 1rem;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

    .category-section {
        border: 1px solid #dee2e6;
        border-radius: 12px;
        margin-bottom: 2rem;
        background: #fff;
        box-shadow: 0 4px 12px rgba(0,0,0,0.08);
        overflow: hidden;
    }

    .category-header {
        background: linear-gradient(var(--tmc-gradient-primary-angle), var(--tmc-gradient-primary-stops));
        color: white;
        padding: 1.5rem;
        border-bottom: none;
    }

    .category-header > h4 {
        color: white;
    }


    .category-content {
        padding: 1.5rem;
    }

    /* Session Cards Grid */
    .sessions-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 1rem;
        margin-bottom: 2rem;
    }

    @media (min-width: 768px) {
        .sessions-grid {
            grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
        }
    }

    @media (min-width: 992px) {
        .sessions-grid {
            grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
        }
    }

    .session-card {
        background: #fff;
        border: 1px solid var(--brand-primary-light);
        border-radius: var(--tmc-border-radius);
        padding: 0;
        transition: all 0.2s ease;
        position: relative;
        box-shadow: 0 4px 12px rgba(0,0,0,0.08);

    }

    .session-card:hover {
        border-color: var(--brand-primary);
        transform: none;
        box-shadow: none;
    }

    .session-header {
        background: var(--brand-primary);
        border-radius: var(--tmc-border-radius) var(--tmc-border-radius) 0 0;
        color: white;
        padding: 1rem;
    }

    .session-header-content {
        display: flex;
        justify-content: between;
        align-items: flex-start;
    }

    .session-item {
        padding: 1rem;
    }

    .session-title {
        font-size: 1rem;
        font-weight: 600;
        color: white;
        text-transform: uppercase;
        margin-bottom: 0.25rem;
    }

    .session-type {
        font-size: 0.875rem;
        color: var(--brand-alt);
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

    .session-status {
        margin-left: auto;
        flex-shrink: 0;
    }

    .status-badge {
        padding: 0.375rem 0.75rem;
        border-radius: var(--tmc-border-radius);
        font-size: 0.75rem;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

    .status-badge.has-results {
        background: var(--brand-primary-bg);
        color: var(--brand-primary);
        border: 1px solid var(--brand-primary-light);
    }

    .status-badge.no-results {
        background: var(--brand-bright-bg);
        color: var(--brand-bright);
        border: 1px solid var(--brand-bright);
    }

    .fastest-time {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        font-size: 0.8rem;
        color: var(--brand-bright);
    }

    .fastest-time code {
        background: var(--brand-bright);
        color: white;
        padding: 0.2rem 0.4rem;
        border-radius: var(--tmc-border-radius-small);
        font-weight: 600;
    }

    .top5-table {
        margin-bottom: 0 0 1rem 0;
        font-size: 0.8rem;
        overflow: hidden;
        border: none;
    }

    .top5-table thead {
        background: white;
        color: var(--brand-primary);
    }

    .top5-table th,
    .top5-table td {
        padding: 0.3rem 0.4rem;
        border: none;
    }

    .top5-table tbody tr:nth-child(even) {
        background: var(--brand-primary-bg);
    }

    .top5-table tbody tr:hover {
        background: var(--brand-alt-bg);
    }

    .winner-row {
        background: var(--brand-bright-light) !important;
        font-weight: 600;
    }



/* *********************************************
    * Session cards
    *
    */


.session-header-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    width: 100%;
}

.session-info {
    flex-grow: 1;
}

.session-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-left: auto;
}

.session-upload-btn {
    background: white;
    border: none;
    color: var(--brand-primary);
    width: 32px;
    height: 32px;
    border-radius: var(--tmc-border-radius-small);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.875rem;
}

.session-upload-btn:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: scale(1.05);
}

.session-upload-btn:disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

/* Dimmed state when results exist */
.session-upload-btn.has-data {
    opacity: 0.6;
    background: rgba(255, 255, 255, 0.8);
}

.session-upload-btn.has-data:hover {
    opacity: 0.8;
    background: rgba(255, 255, 255, 0.9);
}



/* *********************************************
    * Session actions
    *
    */

.session-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}



@media (max-width: 576px) {
    .session-actions {
        flex-direction: column;
    }
}


















    /* Results Summary Cards */
    .results-summary-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem;
        margin-top: 1.5rem;
    }

    @media (max-width: 768px) {
        .results-summary-grid {
            grid-template-columns: 1fr;
        }
    }

    .results-summary {
        border: 1px solid var(--brand-bright-light);
        border-radius: var(--tmc-border-radius);
        padding: 0;
        box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    }

    .results-summary-header {
        background: var(--brand-bright);
        border-radius: var(--tmc-border-radius) var(--tmc-border-radius) 0 0;
        display: flex;
        align-items: center;
        margin-bottom: 0.5rem;
    }

    .results-summary-title {
        padding: 1rem;
        color: white;
        text-transform: uppercase;
        font-weight: 600;
        font-size: 1rem;
    }

    .results-summary-actions {
        padding: 0 1rem 1rem 1rem;
        display: flex;
        gap: 0.5rem;
        flex-wrap: wrap;
    }

    /* Position change indicators */
    .text-success {
        color: var(--bs-success) !important;
    }

    .text-danger {
        color: var(--bs-danger) !important;
    }

    .text-muted {
        color: var(--bs-secondary) !important;
    }



    /* Page Header */
    .page-header {
        background: linear-gradient(var(--tmc-gradient-primary-angle), var(--tmc-gradient-primary-stops));
        color: white;
        padding: 2rem;
        border-radius: var(--tmc-border-radius);
        margin-bottom: 2rem;
    }

    .stats-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
        gap: 1rem;
        margin-top: 1rem;
    }

    .stat-item {
        text-align: center;
    }

    .stat-value {
        font-size: 1.5rem;
        font-weight: bold;
        color: #ffffff;
    }

    .stat-label {
        font-size: 0.75rem;
        color: #ffffff;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

    .empty-state {
        text-align: center;
        padding: 3rem 1rem;
        color: var(--brand-alt);
    }

    .empty-state i {
        color: var(--brand-bright);
    }

    /* Loading and Error States */
    .loading-state {
        text-align: center;
        padding: 2rem;
        color: var(--brand-alt);
    }

    .spinner-border {
        color: var(--brand-primary) !important;
    }

/* Override Bootstrap's modal display:none so Alpine x-show works */

/* Alpine.js cloak */
[x-cloak] {
    display: none !important;
}

/* TMC Modal Styles */
.tmc-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    z-index: var(--z-modal);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.tmc-modal-container {
    background: white;
    border-radius: var(--tmc-border-radius);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background-color: transparent; /* Remove white background that might bleed */
}

.tmc-modal-header {
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
    border-radius: var(--tmc-border-radius) var(--tmc-border-radius) 0 0;
    background-color: transparent;
    position: relative;
    overflow: hidden;
}


.tmc-modal-header.gradient-primary {
    background: linear-gradient(var(--tmc-gradient-primary-angle), var(--tmc-gradient-primary-stops));
    border-radius: var(--tmc-border-radius) var(--tmc-border-radius) 0 0;
}

.tmc-modal-header.gradient-success {
    background: linear-gradient(var(--tmc-gradient-primary-angle), var(--tmc-gradient-primary-stops));
    border-radius: var(--tmc-border-radius) var(--tmc-border-radius) 0 0;
}

.tmc-modal-header.gradient-warning {
    background: linear-gradient(var(--tmc-gradient-primary-angle), var(--tmc-gradient-primary-stops));
    border-radius: var(--tmc-border-radius) var(--tmc-border-radius) 0 0;
}

.tmc-modal-header.gradient-danger {
    background: linear-gradient(52deg, #dc3545 0%, #e83e8c 41%, #6f42c1 100%);
    border-radius: var(--tmc-border-radius) var(--tmc-border-radius) 0 0;
}

.tmc-modal-title {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.tmc-modal-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.25rem;
    cursor: pointer;
    padding: 0.25rem;
    border-radius: var(--tmc-border-radius-small);
    transition: background-color 0.2s;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tmc-modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.tmc-modal-body {
    padding: 1.5rem;
    overflow-y: auto;
    flex: 1;
    min-height: 0;
    background: white; /* Ensure body has white background */
    border-radius: 0; /* No rounded corners on body */
}

.tmc-modal-body.large {
    min-height: 60vh;
}

.tmc-modal-body.medium {
    min-height: 40vh;
}

.tmc-modal-body.small {
    min-height: 20vh;
}

.tmc-modal-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid #dee2e6;
    background: #f8f9fa;
    display: flex;
    gap: 0.5rem;
    justify-content: flex-end;
    border-radius: 0 0 var(--tmc-border-radius) var(--tmc-border-radius);
}

/* Responsive */
@media (min-width: 576px) {
    .tmc-modal-container {
        min-width: 500px;
    }
}

@media (min-width: 768px) {
    .tmc-modal-container {
        min-width: 600px;
    }
}

@media (min-width: 992px) {
    .tmc-modal-container {
        min-width: 700px;
    }
}

/* Size variants */
.tmc-modal-container.size-sm {
    min-width: 400px;
    max-width: 500px;
}

.tmc-modal-container.size-lg {
    min-width: 800px;
    max-width: 1000px;
}

.tmc-modal-container.size-xl {
    min-width: 1000px;
    max-width: 1200px;
}

.tmc-modal-container.size-full {
    width: 95vw;
    height: 95vh;
    max-width: none;
    max-height: none;
}


/* Prompt Modal Styles */
.modal-prompt-display {
    font-family: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, 'Courier New', monospace;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 0.5rem;
    padding: 1.5rem;
    white-space: pre-wrap;
    word-wrap: break-word;
    max-height: 65vh;
    overflow-y: auto;
    line-height: 1.6;
    color: #495057;
    font-size: 0.9rem;
}

.modal-prompt-display h1,
.modal-prompt-display h2,
.modal-prompt-display h3 {
    color: #343a40;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.modal-prompt-display h1:first-child,
.modal-prompt-display h2:first-child,
.modal-prompt-display h3:first-child {
    margin-top: 0;
}

.modal-prompt-display p {
    margin-bottom: 1rem;
}

.modal-prompt-display ul,
.modal-prompt-display ol {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

.modal-prompt-display code {
    background: #e9ecef;
    padding: 0.125rem 0.25rem;
    border-radius: 0.25rem;
    font-size: 0.875em;
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .modal-prompt-display {
        background: #2d3748;
        border-color: #4a5568;
        color: #e2e8f0;
    }
    
    .modal-prompt-display h1,
    .modal-prompt-display h2,
    .modal-prompt-display h3 {
        color: #f7fafc;
    }
    
    .modal-prompt-display code {
        background: #4a5568;
        color: #e2e8f0;
    }
}


/* Global Actions Section */
.global-actions-section {
    margin: 2rem 0;
}

.global-actions-section .card {
    border: 1px solid var(--brand-primary-light);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.global-actions-section .card-header {
    background: var(--brand-primary-bg);
    border-bottom: 1px solid var(--brand-primary-light);
}

.global-actions-section .card-title {
    color: var(--brand-primary);
}

.global-actions-section h6 {
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .global-actions-section .col-md-6 {
        margin-bottom: 1.5rem;
    }
    
    .global-actions-section .col-md-6:last-child {
        margin-bottom: 0;
    }
}


/* Category Shortcuts */
.category-shortcuts {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    overflow-y: auto;
}

.category-shortcut {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: var(--tmc-border-radius-small);
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    white-space: nowrap;
}

.category-shortcut:hover {
    transform: translateY(1px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.category-shortcut .badge {
    font-size: 0.65rem;
    min-width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
}

/* Highlight effect for scrolled-to category */
.category-section.highlight {
    animation: highlight-pulse 2s ease-out;
}

@keyframes highlight-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(29, 34, 82, 0.4);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(29, 34, 82, 0.1);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(29, 34, 82, 0);
    }
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .global-actions-section .col-lg-4 {
        margin-bottom: 1.5rem;
    }
    
    .global-actions-section .col-lg-4:last-child {
        margin-bottom: 0;
    }
    
    .category-shortcuts {
        max-height: 80px;
    }
}

/* adjustments for session events */

.cursor-pointer {
    cursor: pointer;
}

.hover-bg-light:hover {
    background-color: #f8f9fa !important;
}

.session-event-item {
    transition: all 0.2s ease;
}

.session-event-item:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}