/**
 * Frontend styles for LLM Bot Tracker shortcodes
 */

/* Main tables */
.wpcs-llm,
.wpcs-raw {
    color: inherit;
}

.wpcs-table {
    color: #fff;
    font-size: 0.92em;
    width: 100%;
    border-collapse: collapse;
}

.wpcs-table th,
.wpcs-table td {
    padding: 8px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.wpcs-table th {
    font-weight: 600;
    background-color: rgba(0, 0, 0, 0.2);
}

.wpcs-table tbody tr:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

.wpcs-table a {
    color: inherit;
    text-decoration: underline;
}

.wpcs-table a:hover {
    text-decoration: none;
}

/* Bot icon */
.wpcs-bot-icon {
    vertical-align: middle;
    margin-right: 4px;
}

/* IP List shortcode */
.wpcs-iplist {
    color: inherit;
    list-style: none;
    padding: 0;
    margin: 0;
}

.wpcs-iplist-item {
    padding: 4px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.wpcs-iplist-empty {
    padding: 8px 0;
    color: rgba(255, 255, 255, 0.6);
}

.wpcs-ip {
    font-family: monospace;
}

/* Bar chart */
.wpcs-bar-chart {
    padding: 12px;
    border-radius: 8px;
    background-color: rgba(0, 0, 0, 0.05);
}

.wpcs-bar-chart-head {
    margin-bottom: 8px;
    font-weight: 600;
}

.wpcs-bar-chart-body {
    margin-top: 12px;
}

.wpcs-bar-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 6px 0;
}

.wpcs-bar-label {
    flex: 0 0 140px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.wpcs-bar-track {
    flex: 1 1 auto;
    height: 12px;
    border-radius: 6px;
    position: relative;
    overflow: hidden;
}

.wpcs-bar-contrail {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 6px;
    border-radius: 6px;
}

.wpcs-rocket {
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 12px;
    height: 12px;
    pointer-events: none;
    display: block;
}

.wpcs-bar-value {
    flex: 0 0 auto;
    width: 64px;
    text-align: right;
}

/* Chart empty state */
.wpcs-chart-empty {
    padding: 16px;
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
}