.active {
    /* color: red !important; */
    background-color: #306bc3;
}

.pure-menu-link.active {
    background-color: #306bc3;
    /* You can customize the background color */
    color: #fff;
    /* You can customize the text color */
}

.form-check-inline {
    cursor: pointer !important;
    color: #011d47;
    font-weight: 600;
}

.form-check-inline label {
    cursor: pointer !important;
}

.form-check-inline input {
    margin-top: 2px;
    cursor: pointer !important;
}

.fast .toggle-group {
    transition: left 0.1s;
    -webkit-transition: left 0.1s;
}

.diff {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}

#adduserButton,
#openPopupButton {
    display: none;
}

/* ////////////////// */
.profile-header {
    position: relative;
}

.profile-image {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
}

.popup_profile {
    display: none;
    position: fixed;
    top: 63px;
    right: 10px;
    width: 300px;
    max-width: 90%;
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border-radius: 5px;
    z-index: 1000;
}

.popup-content {
    padding: 20px;
    text-align: center;
    position: relative;
}

.close {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 24px;
    cursor: pointer;
}

.profile-image-large {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin-bottom: 10px;
}

button {
    padding: 10px 20px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

button:hover {
    background-color: #0056b3;
}

@media (max-width: 600px) {
    .popup {
        right: 5px;
        width: calc(100% - 10px);
    }
}

h4 {
    color: #082756;
    font-weight: 600;
}

/* ----------------------------for tour view popup----------- */
:root {
    --tour-primary-color: #082756;
    --tour-secondary-color: #f0f4f8;
    --tour-accent-color: #ffd700;
    --tour-text-color: #333;
}

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, var(--tour-secondary-color), #ffffff);
    /* margin: 0;
            padding: 20px;
            display: flex;
            justify-content: center;
            align-items: center;
            min-height: 100vh; */
}

.tour-open-btn {
    background-color: var(--tour-primary-color);
    color: white;
    padding: 15px 30px;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-size: 18px;
    font-weight: 600;
    transition: all 0.3s;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.tour-open-btn:hover {
    background-color: #0a3268;
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
}

.tour-popup-container {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.tour-popup {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.7);
    background-color: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    max-width: 600px;
    width: 90%;
    opacity: 0;
    transition: all 0.3s ease;
}

.tour-popup-container.tour-active {
    opacity: 1;
}

.tour-popup-container.tour-active .tour-popup {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
}

.tour-close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    cursor: pointer;
    font-size: 28px;
    color: var(--tour-primary-color);
    transition: color 0.3s;
}

.tour-close-btn:hover {
    color: var(--tour-accent-color);
}

.tour-title {
    color: var(--tour-primary-color);
    margin-top: 0;
    font-size: 28px;
    border-bottom: 2px solid var(--tour-accent-color);
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.tour-info-grid {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 15px;
}

.tour-info-label {
    font-weight: 600;
    color: var(--tour-primary-color);
}

.tour-info-value {
    color: var(--tour-text-color);
}

.tour-highlight {
    background-color: var(--tour-accent-color);
    color: var(--tour-primary-color);
    padding: 2px 8px;
    border-radius: 15px;
    font-weight: 600;
    display: inline-block;
}

@media (max-width: 480px) {
    .tour-popup {
        padding: 30px;
    }

    .tour-title {
        font-size: 24px;
    }

    .tour-info-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .tour-info-label {
        margin-bottom: -5px;
    }
}

.form-check-input:checked {
    background-color: green !important;
    border-color: green !important;
}

.form-switch .form-check-input {
    width: 60px !important;
    height: 30px;
}


.stat-item {
    font-size: 16px;
    color: #333;
}

.stat-item strong {
    font-weight: bold;
    color: #555;
}

.stat-item span {
    color: #007bff;
    font-size: 18px;
}

.d-flex {
    display: flex;
    flex-wrap: wrap;
}

/* Simple spacing and alignment */
.mr-4 {
    margin-right: 20px;
}

.mb-3 {
    margin-bottom: 15px;
}

table tr th {
    white-space: nowrap;
}

table tbody tr td {
    white-space: nowrap;
}

.state_tor {
    display: flex;
    justify-content: flex-start;
    font-size: 19px;
    font-weight: 600;
    color: #fff;
}

#tournamentTabel_wrapper {
    overflow-x: auto !important;
}

.status_tag {
    position: absolute;
    top: 6px;
    right: 6px;
    padding: 4px 10px;
    font-size: 11px;
    border-radius: 12px;
    color: #fff;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

/* Ongoing – Green */
.status-ongoing {
    background-color: #1e7e34;
}

/* Upcoming – Blue */
.status-upcoming {
    background-color: #0d6efd;
}

/* Private – Orange */
.status-private {
    background-color: #dc5635;
}

.status-public {
    background-color: #fd7d14c7;
}

/* Expiry / Expired – Red */
.status-expired {
    background-color: #dc3545;
}

html {
    overflow-y: scroll;
}

/* Hide inputs safely */
.hidden-link-input {
    position: absolute;
    left: -9999px;
    opacity: 0;
}

/* Card style */
.link-box,
.link_container .col-lg-6>div,
.link_container .card {
    background: linear-gradient(135deg, #154997, #0f3a74);
    border-radius: 12px;
    padding: 22px;
    margin-top: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* Headings */
.link_container h5 {
    color: #ffffff;
    font-weight: 600;
    margin-bottom: 8px;
}

/* Action row */
.link-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 10px;
}

/* Buttons */
.icon-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 8px;
    color: #fff;
    cursor: pointer;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    user-select: none;
}

/* Copy button */
.copy-btn {
    background: linear-gradient(135deg, #03a9f4, #0288d1);
}

.copy-btn:hover {
    background: linear-gradient(135deg, #29b6f6, #039be5);
    transform: translateY(-1px);
}

/* Open button */
.open-btn {
    background: linear-gradient(135deg, #4caf50, #2e7d32);
}

.open-btn:hover {
    background: linear-gradient(135deg, #66bb6a, #388e3c);
    transform: translateY(-1px);
}

/* Icon size */
.icon-btn i {
    font-size: 14px;
}

/* Copy All button improvement */
#copyAllBtn {
    /* border-radius: 8px; */
    /* padding: 10px 18px; */
    /* font-weight: 600; */
    /* transition: all 0.2s ease; */
}

#copyAllBtn:hover {
    background-color: #0288d1;
    transform: translateY(-1px);
}

/* Inputs (username/password) */
.form-input {
    margin-left: 0;
    padding: 6px 10px;
    border-radius: 6px;
    border: none;
    outline: none;
    font-size: 14px;
    color: black;
    font-weight: 700;
}

/* Section spacing */
.link_container .d-flex {
    gap: 15px;
}

/* Mobile friendly */
@media (max-width: 768px) {
    .link-actions {
        justify-content: space-between;
    }

    .icon-btn {
        flex: 1;
        justify-content: center;
    }
}

#link_container h5 {
    font-size: large !important;
}

#link_container h3 {
    font-size: x-large;
    font-weight: 600;
    color: #092f34;
}

.login-copy-box {
    margin-top: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.input-copy {
    display: flex;
    align-items: center;
    gap: 6px;
}

.input-copy label {
    min-width: 91px;
    color: #fff;
    font-size: 17px;
    font-weight: 600;
}

.form-input {
    flex: 1;
    height: 32px;
    padding: 4px 8px;
    border-radius: 6px;
    border: none;
}

.copy-mini {
    background: #03a9f4;
    color: #fff;
    border: none;
    padding: 6px 8px;
    border-radius: 6px;
    cursor: pointer;
}

.copy-both {
    align-self: flex-end;
    background: #4caf50;
    color: #fff;
    border: none;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 13px;
}

.notes-cell {
    position: relative;
    max-width: 220px;
    cursor: pointer;
}

.notes-short {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
}

.notes-hover {
    display: none;
    position: absolute;
    left: 0;
    top: 100%;
    background: #fff;
    border: 1px solid #ccc;
    padding: 10px;
    width: 320px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 99999;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    border-radius: 5px;
    white-space: normal;
}

.notes-cell:hover .notes-hover {
    display: block;
}



.auction-roll-loader {
    position: fixed;
    inset: 0;
    background: #3f51b5eb;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    font-family: 'Poppins', sans-serif;
}

/* 🟫 Pitch */
.pitch {
    position: relative;
    width: 220px;
    height: 90px;
    overflow: hidden;
}

/* 🏏 Ball */
.ball-roll {
    position: absolute;
    bottom: 18px;
    left: -60px;
    width: 70px;
    height: 70px;
    border-radius: 50%;

    background:
        radial-gradient(circle at 30% 30%, #ffb3b3 0%, #e53935 35%, #9c0000 65%, #5f0000 85%);

    box-shadow:
        inset -10px -12px 22px rgba(0, 0, 0, .45),
        inset 8px 8px 18px rgba(255, 255, 255, .25);

    animation: rollBall 1.8s linear infinite;
}

/* 🧵 Seam (rolls with ball) */
.seam {
    position: absolute;
    inset: 8px;
    border-radius: 50%;
    border-left: 4px dashed rgba(255, 255, 255, .95);
}

/* 🌑 Shadow stays grounded */
.shadow {
    position: absolute;
    bottom: 12px;
    left: -60px;
    width: 60px;
    height: 14px;
    background: radial-gradient(ellipse, rgba(0, 0, 0, .5), transparent 70%);
    filter: blur(6px);
    animation: rollShadow 1.8s linear infinite;
}

/* 🎥 REAL ROLLING MOTION */
@keyframes rollBall {
    0% {
        transform: translateX(0) rotate(0deg);
    }

    100% {
        transform: translateX(260px) rotate(720deg);
    }
}

@keyframes rollShadow {
    0% {
        transform: translateX(0);
        opacity: .4;
    }

    100% {
        transform: translateX(260px);
        opacity: .6;
    }
}

.auction-roll-loader p {
    margin-top: 16px;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    letter-spacing: .4px;
}

.loading-text {
    margin-top: 16px;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    letter-spacing: .4px;
}

/* Dots container */
.dots {
    display: inline-block;
    margin-left: 4px;
}

/* Individual dots */
.dots i {
    display: inline-block;
    width: 5px;
    height: 5px;
    margin: 0 2px;
    background: #fff;
    border-radius: 50%;
    opacity: 0;
    animation: dotBounce 1.4s infinite;
}

.dots i:nth-child(1) {
    animation-delay: 0s;
}

.dots i:nth-child(2) {
    animation-delay: .2s;
}

.dots i:nth-child(3) {
    animation-delay: .4s;
}

@keyframes dotBounce {
    0% {
        opacity: 0;
        transform: translateY(0);
    }

    30% {
        opacity: 1;
        transform: translateY(-4px);
    }

    60% {
        opacity: 0;
        transform: translateY(0);
    }

    100% {
        opacity: 0;
    }
}

table th {
    font-size: 15px !important;
}

table tr td {
    font-size: 14px !important;
    font-weight: 500 !important;
}

.whatsapp-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #25D366;
    color: white;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    z-index: 9999;
    text-decoration: none;
}

/* top link */

.auction-section {
    padding: 40px 0;
    background: #f8f9fa;
}

.auction-card {
    background: #082756;
    border-radius: 12px;
    padding: 25px 20px 30px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    height: 100%;
    border: 1px solid #e9ecef;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.auction-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.12);
    border-color: #007bff;
}

.auction-icon {
    font-size: 42px;
    margin-bottom: 12px;
}

.auction-card h3 {
    font-weight: 600;
    font-size: 18px;
    margin-bottom: 8px;
    color: #37a33b !important;
}

.auction-card p {
    font-size: 13px;
    color: #fff;
    margin-bottom: 15px;
    line-height: 1.5;
    flex-grow: 1;
}

.btn-group-custom {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-top: auto;
    padding-top: 15px;
}

.btn-main {
    border-radius: 6px;
    padding: 8px 16px;
    font-weight: 500;
    border: none;
    transition: all 0.2s ease;
    font-size: 13px;
    cursor: pointer;
}

.btn-main:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}

.btn-primary-custom {
    background: #007bff;
    color: #fff;
}

.btn-secondary-custom {
    background: #17a2b8;
    color: #fff;
}

.btn-success-custom {
    background: #28a745;
    color: #fff;
}

@media (max-width: 768px) {
    .auction-section {
        padding: 30px 0;
    }

    .auction-card {
        padding: 20px 15px 30px;
        margin-bottom: 15px;
    }

    .auction-icon {
        font-size: 36px;
    }

    .btn-main {
        font-size: 12px;
        padding: 7px 14px;
    }
}

.credential-box {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 12px;
    margin: 12px 0 18px;
}

.credential-item {
    margin-bottom: 10px;
}

.credential-item:last-child {
    margin-bottom: 0;
}

.label {
    display: block;
    font-size: 12px;
    color: #adb5bd;
    margin-bottom: 4px;
    text-align: left;
}

.value-copy {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(0, 0, 0, 0.25);
    padding: 6px 8px;
    border-radius: 6px;
}

.value-copy span {
    color: #fff;
    font-size: 13px;
    letter-spacing: 0.5px;
}

.copy-btn {
    background: #37a33b;
    color: #fff;
    border: none;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 11px;
    cursor: pointer;
    transition: 0.2s ease;
}

.copy-btn:hover {
    background: #2c8a30;
}


/* qr code  */

.qr-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.65);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.qr-popup-box {
    background: #082756;
    padding: 20px;
    border-radius: 12px;
    width: 320px;
    max-width: 90%;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
    animation: popupFade 0.25s ease;
}

@keyframes popupFade {
    from {
        transform: scale(0.85);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.qr-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #fff;
    font-weight: 600;
    margin-bottom: 10px;
}

.qr-close-btn {
    background: red;
    border: none;
    color: #fff;
    padding: 3px 8px;
    border-radius: 5px;
    cursor: pointer;
}

.qr-body img {
    width: 265px;
    height: 344px;
    margin: 10px 0;
    background: #fff;
    padding: 8px;
    border-radius: 8px;
}

.qr-body p {
    color: #ccc;
    font-size: 13px;
}