﻿/*
    btn-soft-primary
    btn-soft-secondary
    btn-soft-success
    btn-soft-danger

    class="table table-modern align-middle mb-0"
*/

.account-switcher .account-name {
    display: inline-block;
    max-width: 115px;
    overflow: hidden;
    text-overflow: ellipsis;
    vertical-align: bottom;
    white-space: nowrap;
}

.filter-toolbar {
    border-radius: 1rem;
    background: #fff;
}

.filter-control {
    height: 42px;
    border-radius: 0.75rem;
}

.filter-toolbar .form-select,
.filter-toolbar .form-control {
    border-color: #dbe3ea;
    box-shadow: none;
}

    .filter-toolbar .form-select:focus,
    .filter-toolbar .form-control:focus {
        border-color: #9ec5fe;
        box-shadow: 0 0 0 0.18rem rgba(13, 110, 253, 0.08);
    }

.btn-soft {
    background: #f8fafc;
    border: 1px solid #dbe3ea;
    color: #334155;
    border-radius: 0.75rem;
    transition: all 0.15s ease-in-out;
}

    .btn-soft:hover {
        background: #eef4f8;
        border-color: #cbd5e1;
        color: #0f172a;
    }

    .btn-soft:focus {
        box-shadow: 0 0 0 0.18rem rgba(13, 110, 253, 0.08);
    }

.form-check-input {
    cursor: pointer;
}

.form-check-label {
    cursor: pointer;
}

.modal-content {
    border-radius: 1rem;
}

#metaUserModal .modal-dialog {
    max-width: 90vw;
    max-height: 90vh;
    width: auto;
}

#metaUserModal .modal-content {
    overflow: auto;
}

.popover {
    max-width: 600px;
}

    .popover pre {
        white-space: pre-wrap;
        word-break: break-word;
        margin: 0;
    }

/* 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 */


/* =========================================
   Elegant settings / embed page polish
   ========================================= */

.settings-card {
    border-radius: 1rem;
    overflow: hidden;
    background: #fff;
}

.section-head h5 {
    font-size: 1rem;
    font-weight: 600;
    color: #0f172a;
}

.page-header h2 {
    font-size: 1.6rem;
    font-weight: 700;
    color: #0f172a;
}

.page-header p {
    max-width: 760px;
}

.table-modern {
    margin-bottom: 0;
}

    .table-modern thead th {
        font-size: 0.78rem;
        font-weight: 600;
        color: #64748b;
        text-transform: uppercase;
        letter-spacing: 0.03em;
        background: #f8fafc;
        border-bottom: 1px solid #e9eef5;
        padding: 0.9rem 1.25rem;
    }

    .table-modern tbody td {
        padding: 1rem 1.25rem;
        border-color: #eef2f7;
        vertical-align: middle !important;
    }

    .table-modern tbody tr.is-selected {
        background: #f5f9ff;
    }

    .table-modern tbody tr:hover {
        background: #fafcff;
    }

.status-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1;
}

.status-pill-success {
    background: #e9f9ef;
    color: #157347;
}

.status-pill-muted {
    background: #eef2f6;
    color: #64748b;
}

.status-pill-primary {
    background: #e8f1ff;
    color: #1d4ed8;
}

.btn-soft-primary,
.btn-soft-secondary,
.btn-soft-success,
.btn-soft-danger {
    border-radius: 0.7rem;
    font-weight: 500;
    border: 1px solid transparent;
    transition: all 0.15s ease-in-out;
}

.btn-soft-primary {
    background: #eff6ff;
    border-color: #dbeafe;
    color: #1d4ed8;
}

    .btn-soft-primary:hover {
        background: #dbeafe;
        color: #1e40af;
    }

.btn-soft-secondary {
    background: #f8fafc;
    border-color: #e2e8f0;
    color: #334155;
}

    .btn-soft-secondary:hover {
        background: #eef2f7;
        color: #0f172a;
    }

.btn-soft-success {
    background: #ecfdf3;
    border-color: #d1fadf;
    color: #15803d;
}

    .btn-soft-success:hover {
        background: #dcfce7;
        color: #166534;
    }

.btn-soft-danger {
    background: #fff1f2;
    border-color: #ffe4e6;
    color: #be123c;
}

    .btn-soft-danger:hover {
        background: #ffe4e6;
        color: #9f1239;
    }

.copy-box {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 0.9rem;
    padding: 0.5rem 0.5rem 0.5rem 0.85rem;
}

    .copy-box .form-control,
    .copy-box textarea {
        min-width: 0;
    }

        .copy-box .form-control:focus,
        .copy-box textarea:focus {
            box-shadow: none;
            outline: none;
        }

.copy-box-area {
    align-items: stretch;
}

    .copy-box-area textarea {
        resize: none;
    }

.empty-panel {
    background: #f8fafc;
    border: 1px dashed #d7dee8;
    border-radius: 0.9rem;
    padding: 1rem;
    color: #64748b;
    font-size: 0.95rem;
}

.warning-panel {
    background: #fff8eb;
    border: 1px solid #fde7b0;
    color: #8a5a00;
    border-radius: 0.9rem;
    padding: 0.9rem 1rem;
    font-size: 0.92rem;
}

.info-note {
    background: #eef6ff;
    border: 1px solid #d7e8ff;
    color: #315b8a;
    border-radius: 0.9rem;
    padding: 0.9rem 1rem;
    font-size: 0.9rem;
}

.info-stack {
    display: grid;
    gap: 1rem;
}

.info-item {
    padding-bottom: 0.9rem;
    border-bottom: 1px solid #eef2f7;
}

    .info-item:last-child {
        padding-bottom: 0;
        border-bottom: 0;
    }

.info-title {
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: #0f172a;
}

@media (max-width: 768px) {
    .page-header h2 {
        font-size: 1.35rem;
    }

    .copy-box {
        flex-direction: column;
        align-items: stretch;
    }

        .copy-box button {
            width: 100%;
        }
}
