:root {
    --brand-text: #FFFFFF;
    --brand-text-gray: #B0BCC7;
    --brand-bg2: #24353f;
    --brand-bg2-selected: #344854;
    --brand-primary: #00E5FF;
    --brand-btn-text: #000000;
    --brand-text-border: #000000;
    --brand-danger: #FF1744;
    --brand-warning: #FF9100;
    --brand-premium: #FFD700;
}

.bg-success {
    color: var(--brand-btn-text);
}

.text-placeholder {
    color: var(--brand-btn-text);
}

.swal2-popup,
.bg-brand2 {
    background-color: var(--brand-bg2) !important;
}

.swal2-popup .swal2-title {
    color: var(--brand-text) !important;
}

.swal2-popup .swal2-confirm {
    background-color: var(--brand-primary) !important;
    color: var(--brand-btn-text) !important;
}

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

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

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

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

.text-premium {
    color: var(--brand-premium) !important;
}

.btn-premium {
    background-color: var(--brand-premium) !important;
    color: var(--brand-btn-text) !important;
}

.btn-warning {
    color: var(--brand-warning) !important;
}

.btn-danger {
    background-color: var(--brand-danger) !important;
}

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

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

.btn-outline-primary:hover,
.btn-outline-primary:active {
    color: var(--brand-text) !important;
    background-color: var(--brand-primary) !important;
    border-color: var(--brand-primary) !important;
}

.btn-check:checked+.btn,
:not(.btn-check)+.btn:active,
.btn:first-child:active,
.btn.active,
.btn.show {
    color: var(--brand-btn-text) !important;
    border-color: var(--brand-primary) !important;
    background-color: var(--brand-primary) !important;
}

.form-control,
.select2-selection {
    background-color: var(--brand-text-gray) !important;
}

.select2-results__option {
    background-color: var(--brand-text-gray) !important;
}

.card-body-content {
    overflow: hidden !important;
}

.text-muted {
    color: var(--brand-text-gray) !important;
}

.app-main {
    background-color: var(--brand-btn-text) !important;
}

ul[role="menu"] {
    border-color: var(--brand-text) !important;
    box-shadow: 0px 0px 15px 0px var(--brand-primary);
}

ul[role="menu"].dropdown-menu {
    background-color: var(--brand-bg2-selected);
    font-size: 1.4em;
}

ul[role="menu"].dropdown-menu>* {
    color: var(--brand-text);
    justify-content: center;
}

ul[role="menu"].dropdown-menu>*:not(:last-child) {
    border-bottom: 1px solid;
}

.modal .modal-content {
    background-color: var(--brand-bg2) !important;
}

.modal .modal-header {
    background-color: var(--brand-bg2-selected) !important;
    color: var(--brand-text) !important;
}

.modal .modal-body .gridz-form-field-title {
    color: var(--brand-text) !important;
}

.modal .modal-body .gridz_detail_content {
    color: var(--brand-text) !important;
}

.modal .modal-footer {
    background-color: var(--brand-bg2-selected) !important;
    color: var(--brand-text) !important;
}

.modal .modal-header .modal-title {
    margin: 0 auto !important;
    width: 100% !important;
    text-align: center;
}

.card {
    background-color: var(--brand-bg2) !important;
    border: 1px solid var(--brand-text) !important;
}

.card .card {
    background-color: var(--brand-bg2-selected) !important;
    border: 1px solid var(--brand-text-gray) !important;
    color: var(--brand-text) !important;
}

.card .card-body {
    color: var(--brand-text) !important;

}

.gridz .card-title {
    color: var(--brand-primary) !important;
    font-size: 13pt;
}

.card .card-header {
    color: var(--brand-text) !important;
    background-color: var(--brand-bg2-selected) !important;
    padding: 10px 16px !important;
}

.card .card-footer {
    background-color: var(--brand-bg2-selected) !important;
}

.mobile-header {
    height: 48px;
    width: 100vw;
    position: fixed;
    top: 0px;
    left: 0px;
    z-index: 100;
    background-color: var(--brand-bg2);
}

.mobile-footer {
    height: 48px;
    width: 100vw;
    position: fixed;
    bottom: 0px;
    left: 0px;
    z-index: 100;
    background-color: var(--brand-bg2);
}

.mobile-footer>* {
    color: var(--brand-text);
    padding: 2px 3px;
    width: calc(100vw / 5);
}

.mobile-footer>*.active {
    background-color: var(--brand-bg2-selected);
}

.mobile-header .app-logo {
    font-size: 20pt;
    color: var(--brand-text);
    font-weight: bold;
    letter-spacing: 2px;
}

.mobile-header i {
    font-size: 18pt;
    color: var(--brand-text-gray);
}

.app-main>*>.app-main__inner {
    position: fixed;
    margin-top: 48px;
    width: 100vw;
    height: calc(100vh - 48px - 48px);
    overflow: auto;
    padding-top: 0px !important;
}


.main-content .content-header {
    font-size: 1.25rem;
    color: var(--brand-primary) !important;
    border: 1px solid var(--brand-bg2);
    padding: 2px 8px;
    border-radius: 5px;
    background-color: var(--brand-bg2-selected);
}

.font-italic {
    font-style: italic;
}

.fs-small {
    font-size: 10pt;
}

.fs-micro {
    font-size: 8pt;
}

.gridz .no-data {
    text-align: center;
}

.grid-loader {
    background-color: none !important;
}

.ellipsis-paragraph {
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    /* Number of lines to show */
    -webkit-box-orient: vertical;
    height: auto;
    /* Height is determined by line-clamp */
    /* Optional: For handling long words that don't fit on a line */
    overflow-wrap: break-word;
}

.text-ellipsis {
    overflow: hidden;
    text-overflow: ellipsis;
    overflow-wrap: break-word;
    white-space: nowrap;
}

.bubble {
    background-color: var(--brand-primary);
    color: var(--brand-btn-text);
    border-radius: 50px;
    font-size: 8pt;
    padding: 2px 3px;
    top: -7px;
    right: -7px;
    position: absolute;
    font-weight: 600;
}

/*Home*/
.user-biketype {
    width: 90vw;
    margin: 0 auto;
}

.userBikeCard .slick-dots {
    position: absolute;
    bottom: 85px;
}

.bike-profile .card-header .bike-name {
    letter-spacing: 3px;
    text-shadow:
        2px 0 var(--brand-text-border),
        -2px 0 var(--brand-text-border),
        0 2px var(--brand-text-border),
        0 -2px var(--brand-text-border);
}

/*End Home*/
/*New Bike*/
.bike-profile .card {
    width: 329px !important;
    height: 214px !important;
}

.bike-profile .card-header {
    padding: 0px !important;
    border-radius: 6px !important;
}

.bike-profile .card-header .image-container {
    width: fit-content;
    margin: 0 auto;
    position: relative;
    display: flex;
    align-items: center;
}

.bike-profile .bike-overlay {
    z-index: 1;
}

.bike-profile .card-body {
    background-color: var(--brand-bg2) !important;
    opacity: 0.85;
    border-bottom-left-radius: 6px;
    border-bottom-right-radius: 6px;
}

.bike-profile .card-header .image-container img {
    max-width: 326px;
    width: 100%;
    border-radius: 6px !important;
}

/*End New Bike*/

/* Strava Profile*/
.strava-card .dv-icon {
    width: 60px;
}

.strava-card .dv-content {
    width: calc(100% - 65px);
}

.strava-card .strava-sync {
    font-size: 9.5pt;
    position: absolute;
    bottom: 3px;
    right: 0px;
}

.strava-card .icon {
    width: 50px;
    border-radius: 5px;
}

/* End Strava Profile*/

/* Bike Profile */
.health-donut {
    width: 120px;
}

.health-donut .donut {
    position: relative;
}

.health-donut svg {
    transform: rotate(-90deg);
}

.health-donut circle {
    fill: none;
    stroke-width: 10;
}

.health-donut .bg {
    stroke: #eee;
}

.health-donut .progress {
    stroke: #22c55e;
    /* default green */
    stroke-linecap: round;
    stroke-dasharray: 314;
    /* 2πr (r=50) */
    stroke-dashoffset: 314;
    transition: stroke 0.3s ease;
}

.health-donut .percent {
    font-size: 20px;
    font-weight: bold;
}

.health-donut .center-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

/* Bike Profile */

/*checkbox*/
/* Hide default checkbox */
.grid-form-field-checkbox {
    appearance: none;
    -webkit-appearance: none;
    width: 44px;
    height: 24px;
    background: #ccc;
    border-radius: 999px;
    position: relative;
    cursor: pointer;
    outline: none;
    transition: background 0.3s ease;
}

/* Toggle circle */
.grid-form-field-checkbox::before {
    content: "";
    position: absolute;
    width: 18px;
    height: 18px;
    background: white;
    border-radius: 50%;
    top: 3px;
    left: 3px;
    transition: transform 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Checked state */
.grid-form-field-checkbox:checked {
    background: #22c55e;
    /* green */
}

/* Move circle when checked */
.grid-form-field-checkbox:checked::before {
    transform: translateX(20px);
}

/* Optional: align nicely with label */
.gridz-form-checkbox-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
}

/*End checkbox*/

/* Timeline*/
/* Container */
.timeline {
    position: relative;
    margin: 0;
    padding: 0;
    color: var(--brand-text);
}

/* Each item */
.timeline-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
}

/* LEFT: Date */
.timeline-date {
    width: 80px;
    text-align: right;
    padding-right: 15px;
    font-size: 12px;
    color: var(--brand-text-gray);
    flex-shrink: 0;
}

.timeline-date .day {
    font-weight: 600;
    font-size: 13px;
}


/* CENTER: Line + dot */
.timeline-divider {
    position: relative;
    width: 20px;
    flex-shrink: 0;
}

.content.timeline:before {
    content: "";
    top: 6px;
    left: 73px;
    height: 95%;
    width: 1px;
    position: absolute;
    border-left: 2px solid;
    color: var(--brand-text-gray);
}

/* Dot */
.timeline-marker {
    position: absolute;
    top: 4px;
    left: 4px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

/* RIGHT: Content */
.timeline-content {
    padding-left: 15px;
    flex-grow: 1;
}

.timeline-content h6 {
    font-size: 14px;
    margin: 0 0 3px;
    font-weight: 600;
}

.timeline-content p {
    font-size: 12px;
    margin: 0;
    color: #6c757d;
}



/* Remove line after last item */
.timeline-item:last-child .timeline-divider::before {
    height: 0px;
}

/* Hover (optional) */
.timeline-item:hover {
    background: rgba(0, 0, 0, 0.02);
    border-radius: 6px;
    padding: 4px 6px;
    margin-left: -6px;
    margin-right: -6px;
    transition: 0.2s;
}

/* Mobile */
@media (max-width: 576px) {
    .timeline-date {
        width: 65px;
        font-size: 11px;
    }

    .timeline-content h6 {
        font-size: 13px;
    }
}

/* End Timeline*/

/*loader*/
.loader-wrapper {
    width: 50px;
    height: 50px;
}

/* The ball-clip-rotate-pulse animation */
.ball-clip-rotate-pulse {
    position: relative;
    width: 50px;
    height: 50px;
}

.ball-clip-rotate-pulse div {
    position: absolute;
    border: 2px solid var(--brand-primary);
    /* Bootstrap primary color */
    border-radius: 50%;
    width: 100%;
    height: 100%;
    animation: ball-clip-rotate-pulse 1s infinite ease-in-out;
}

.ball-clip-rotate-pulse div:nth-child(2) {
    animation-delay: -0.5s;
}

/* Keyframes */
@keyframes ball-clip-rotate-pulse {
    0% {
        transform: scale(0);
        opacity: 0.7;
    }

    50% {
        transform: scale(1);
        opacity: 0.3;
    }

    100% {
        transform: scale(0);
        opacity: 0.7;
    }
}

/*loader*/

/*Scrollbar*/
/* ===== Scrollbar (Chrome, Edge, Safari) ===== */
::-webkit-scrollbar {
    width: 6px;
    /* vertical */
    height: 6px;
    /* horizontal */
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: var(--brand-bg2-selected);
    border-radius: 999px;
    /* fully rounded */
}

::-webkit-scrollbar-thumb:hover {
    background: var(--brand-primary);
    /* slightly darker teal on hover */
}


/* ===== Scrollbar (Firefox) ===== */
* {
    scrollbar-width: thin;
    scrollbar-color: var(--brand-bg2-selected) transparent;
}

::-webkit-scrollbar-thumb {
    background: var(--brand-bg2-selected);
    border-radius: 999px;
    border: 1px solid transparent;
    background-clip: content-box;
}

/*End Scrollbar*/