﻿/* Bootstrap tooltip override */
.tooltip-inner {
    max-width: 400px;
    text-align: left;
}

    .tooltip-inner div {
        margin-bottom: 4px;
        white-space: normal;
        word-break: break-word;
    }

/* Force dotted underline for tooltip terms */
abbr[data-bs-toggle="tooltip"] {
    text-decoration-line: underline;
    text-decoration-style: dotted;
    text-decoration-color: currentColor;
    text-underline-offset: 0.12em;
    text-decoration-thickness: 1px;
    cursor: help;
}
/* Fallback for older browsers */
@supports not (text-decoration-style: dotted) {
    abbr[data-bs-toggle="tooltip"] {
        text-decoration: none;
        border-bottom: 1px dotted currentColor;
    }
}

.activities-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.activities-header {
    margin-bottom: 30px;
    color: #333333;
}

    .activities-header h2 {
        color: #333333;
        font-size: 30px;
        margin-bottom: 10px;
        font-weight: 700;
    }

.hero-btn .theme-btn {
    --_shadow: 0 10px 24px rgba(99,102,241,.25);
    padding: .8rem 1.15rem;
    border-radius: 999px;
    font-weight: 600;
    border: 0;
    background: linear-gradient(180deg, #4f46e5, #6366f1);
    color: #fff !important;
    box-shadow: var(--_shadow);
}

    .hero-btn .theme-btn:hover {
        transform: translateY(-1px);
        filter: brightness(1.03);
    }

.hero-btn .theme-btn2 {
    padding: .8rem 1.1rem;
    border-radius: 999px;
    font-weight: 600;
    border: 1px solid rgba(99, 102, 241, .35);
    color: #4f46e5 !important;
    background: rgba(99, 102, 241, .06);
}

    .hero-btn .theme-btn2:hover {
        background: rgba(99, 102, 241, .12);
    }

.hero-btn .btn-ghost {
    padding: .8rem 1.1rem;
    border-radius: 999px;
    font-weight: 600;
    border: 1px solid var(--bs-border-color);
    background: transparent;
}
/* Footer polish */
.footer-area .footer-widget-title {
    position: relative;
    padding-bottom: .25rem;
    margin-bottom: .75rem;
}

    .footer-area .footer-widget-title::after {
        content: "";
        position: absolute;
        left: 0;
        bottom: 0;
        width: 36px;
        height: 2px;
        background: rgba(255,255,255,.2);
        border-radius: 2px;
    }

.footer-area .footer-list li i {
    opacity: .75;
}

.footer-area .cookie-link {
    color: rgba(255,255,255,.7) !important;
}

    .footer-area .cookie-link:hover {
        color: #fff !important;
    }

/* Prevent weird hard-wrapping of URLs. Keep them on one line with ellipsis. */
.embed-item .url {
    white-space: nowrap;
    word-break: normal;
    overflow: hidden;
    max-width: 100%;
    display: inline-block;
}
/* tighter on narrow screens to keep copy button visible */
@media (max-width: 992px) {
    .embed-item .url {
        max-width: 75%;
    }
}

.code-wrap {
    white-space: normal !important;
    word-break: break-word;
}

#exportStats .row > [class*="col-"] + [class*="col-"] {
    margin-top: 1.5rem;
}

#dateRange {
    opacity: 0;
    position: absolute;
    pointer-events: none;
}

/* Ensure container scrolls */
.table-responsive-sticky {
    max-height: 75vh;
    overflow-y: auto;
}

/* Make header sticky */
.table thead th {
    position: sticky;
    top: 0;
    z-index: 10;
    background-color: #f8f9fa;
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.1);
}

/* remove vertical borders */
.table td,
.table th {
    border-left: none;
    border-right: none;
}

.hideContent {
    display: none !important;
}

.loading {
    background-image: url('/img/basic/loader.gif');
    width: 50px;
    height: 50px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.text-blue {
    color: #0d6efd !important;
}

    .text-blue:hover {
        color: #0a58ca !important;
    }

.text-bold {
    font-weight: bold !important;
}

table td, table th {
    vertical-align: top !important;
}

.table-hover tbody tr:hover {
    background-color: #f5f5f5;
    box-shadow: inset 0 0 0 1px #e0e0e0;
    transition: background-color 0.2s;
}

.text-note {
    font-size: .7em;
    vertical-align: super;
    cursor: help;
    text-decoration: dotted underline;
}

/* Feature column left-align, others center */
#feature-comparison td:first-child,
#feature-comparison th:first-child {
    text-align: left;
}

#feature-comparison td:not(:first-child),
#feature-comparison th:not(:first-child) {
    text-align: center;
}

/* Light gray row hover */
#feature-comparison tbody tr:hover {
    background-color: #f9f9f9;
}

/* Responsive table stacking on narrow screens */
@media (max-width: 768px) {
    #feature-comparison {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }

        #feature-comparison th,
        #feature-comparison td {
            padding: 0.5rem;
        }
}

.code-background {
    padding: 1em;
    background-color: black;
    color: white !important;
    border: 1px solid #ccc;
    border-radius: 4px;
}

ul ul {
    padding-left: 2em;
    margin: 0.5em 0;
}

/* Ad banner on top */
.summer-banner {
    position: fixed;
    top: -100px;
    left: 0;
    width: 100%;
    background-color: #fffae5;
    color: #333;
    font-family: sans-serif;
    font-size: 1em;
    z-index: 1000;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    transition: top 0.5s ease;
    padding: 1em 2em;
    display: flex;
    justify-content: center;
    align-items: center;
}

    .summer-banner.show {
        top: 0;
    }

.summer-content {
    display: flex;
    flex-wrap: wrap;
    gap: 1em;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.cta-button {
    background-color: #007BFF;
    color: white;
    border: none;
    padding: 0.5em 1em;
    font-size: 0.95em;
    border-radius: 6px;
    text-decoration: none;
    transition: background 0.3s ease;
}

    .cta-button:hover {
        background-color: #0056b3;
    }

.summer-close {
    position: absolute;
    top: 0.5em;
    right: 1em;
    background: none;
    border: none;
    font-size: 1.2em;
    cursor: pointer;
    color: #666;
}

    .summer-close:hover {
        color: #000;
    }

/* Ad banner END */
