.alert {
    background-color: var(--surface);
    color: var(--text-primary);
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
    border: 1px solid var(--border-color);
}


.highlight {
    color: #27ae60;
}

/*table {*/
/*    border-collapse: collapse;*/
/*    width: 100%;*/
/*    margin-top: 20px;*/
/*    font-size: 0.90em;*/
/*}*/

/*th,*/
/*td {*/
/*    border: 1px solid #e1e4e8;*/
/*    padding: 10px 12px;*/
/*    text-align: left;*/
/*}*/

/*th {*/
/*    background-color: #f1f3f5;*/
/*    font-weight: 600;*/
/*    color: #495057;*/
/*}*/

/*tr:nth-child(even) {*/
/*    background-color: #fcfcfc;*/
/*}*/

/*tr:hover {*/
/*    background-color: #f1f3f5;*/
/*}*/

.badge {
    padding: 3px 6px;
    border-radius: 4px;
    font-size: 0.85em;
    font-weight: bold;
}

.badge-normal {
    background: #d4edda;
    color: #155724;
}


.badge-unknown {
    background: var(--surface);
    color: var(--text-primary);
}


.badge-nofollow {
    background: #fff3cd;
    color: #856404;
}

.badge-sponsored {
    background: #f8d7da;
    color: #721c24;
}

.badge-ugc {
    background: #d1ecf1;
    color: #0c5460;
}

/* Equity Bar Styles */
.equity-bar-container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 120px;
    max-width: 100%;
    height: 10px;
    background: #e9ecef;
    border-radius: 5px;
    position: relative;
    margin: 0 auto;
    overflow: hidden; /* Ensure bars don't overflow */
}

.equity-center-line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 1px;
    background: #bdc3c7;
    z-index: 1;
}

.equity-bar {
    height: 100%;
    position: absolute;
    top: 0;
    border-radius: 5px;
    transition: width 0.3s ease; /* Smooth transition for width changes */
    max-width: 100%; /* Ensure bar doesn't exceed container */
}

.equity-bar.positive {
    background: #27ae60;
    left: 50%;
    right: auto;
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    transform-origin: left center;
}

.equity-bar.negative {
    background: #e74c3c;
    left: auto;
    right: 50%;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    transform-origin: right center;
}

/* Give a bit more visual contrast between small and large bars */
.equity-bar-container {
    width: 160px;
}

/* Ensure tooltip is always visible and not cut off */
.equity-tooltip-wrapper {
    position: relative;
    display: inline-block;
    max-width: 100%;
}

/* Make sure the tooltip text is visible on hover */
.equity-tooltip-wrapper .tooltip {
    white-space: normal;
    word-wrap: break-word;
    max-width: 250px;
    z-index: 1000;
}

.equity-tooltip-wrapper {
    position: relative;
    display: inline-block;
    cursor: help;
}

.equity-tooltip-wrapper .tooltip {
    visibility: hidden;
    width: 220px;
    background-color: var(--canvas);
    color: var(--text-primary);
    text-align: center;
    border-radius: 6px;
    padding: 8px;
    position: absolute;
    z-index: 1000;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 0.8rem;
    font-weight: normal;
    pointer-events: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.equity-tooltip-wrapper .tooltip::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: var(--canvas) transparent transparent transparent;
}

.equity-tooltip-wrapper:hover .tooltip {
    visibility: visible;
    opacity: 1;
}

a {
    color: var(--bs-link-color, #2563eb);
    text-decoration-line: underline;
    text-decoration-style: dotted;
    text-underline-offset: 3px;
    transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

a:hover {
    text-decoration-line: underline;
    text-decoration-style: solid;
}

.btn,
.btn:hover,
.btn:focus,
.btn:active,
.navbar-brand,
.navbar-brand:hover,
.nav-link,
.nav-link:hover,
.badge,
.dropdown-item,
.page-link {
    text-decoration: none !important;
}

.source-url-link {
    display: block;
    color: inherit;
    text-decoration-line: underline;
    text-decoration-style: dotted;
    text-underline-offset: 3px;
    transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.source-url-link:hover {
    text-decoration-line: underline;
    text-decoration-style: solid;
}

.source-url-link .domain-part {
    color: var(--link-color);
    font-weight: bold;
}

.source-url-link .path-part {
    font-size: 0.8em;
    color: var(--text-primary);
}

/* Summary Table Styles */
.summary-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 25px;
    background: var(--canvas);
    border: 1px solid var(--border-color);
    border-radius: 8px;
}

.summary-table tr:hover {
    background-color: transparent;
}

.summary-table th {
    background: var(--surface);
    text-align: center;
    padding: 12px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-primary);
    font-size: 0.9em;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.summary-table td {
    text-align: center;
    padding: 15px;
    font-size: 1.4em;
    font-weight: bold;
    color: var(--text-primary);
}
/* Search Box Styles */
.table-search-container {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 12px;
    padding: 0 12px;
}

.table-search-wrapper {
    position: relative;
    width: 250px;
}

.table-search-input {
    width: 100%;
    padding: 8px 12px 8px 36px;
    border: 1px solid var(--line-strong);
    border-radius: 4px;
    font-size: 0.9em;
    background-color: var(--input-bg);
    color: var(--text-primary);
    transition: border-color 120ms ease;
}

.table-search-input:focus {
    outline: 3px solid var(--focus-color);
    outline-offset: 3px;
    border-color: var(--focus-color);
    box-shadow: none;
}

.table-search-icon {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-primary);
    pointer-events: none;
    font-size: 1em;
}
