/* Ad Tag List — Table Layout */

/* Header */
.at-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
}
.at-header-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 600;
}
.at-header-title i { width: 18px; height: 18px; }
.at-header-count {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-dim);
    background: rgba(99,102,241,.12);
    padding: 2px 10px;
    border-radius: 12px;
    margin-left: 4px;
}

/* Search */
.at-search {
    position: relative;
    padding: 12px 20px;
}
.at-search-icon {
    position: absolute;
    left: 32px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px; height: 16px;
    color: var(--text-dim);
    pointer-events: none;
}
.at-search-input {
    width: 100%;
    padding: 10px 12px 10px 36px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
    font-size: 13px;
    outline: none;
    transition: border-color .15s;
}
.at-search-input::placeholder { color: var(--text-dim); }
.at-search-input:focus { border-color: var(--border-focus); }

/* Table */
.at-table-wrap {
    overflow-x: auto;
}
.at-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}
.at-table thead th {
    padding: 10px 20px;
    text-align: left;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-dim);
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
    background: var(--bg-card);
}
.at-table tbody tr {
    border-bottom: 1px solid rgba(42,46,58,.5);
    transition: background .1s;
}
.at-table tbody tr:last-child { border-bottom: none; }
.at-table tbody tr:hover { background: var(--bg-card-hover); }
.at-table tbody td {
    padding: 12px 20px;
    vertical-align: middle;
    color: var(--text-muted);
}
.at-table-empty {
    text-align: center;
    padding: 30px 20px;
    color: var(--text-dim);
}

.at-code {
    font-family: 'SF Mono', 'Fira Code', monospace;
    font-weight: 600;
    color: var(--text);
    font-size: 13px;
}

/* Link cell with copy button */
.at-link-cell {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.at-link {
    color: var(--primary-hover);
    text-decoration: none;
    font-size: 12px;
    transition: color .15s;
    word-break: break-all;
}
.at-link:hover { color: #a5b4fc; text-decoration: underline; }

.at-copy-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px; height: 26px;
    border: 1px solid var(--border);
    border-radius: 5px;
    background: transparent;
    color: var(--text-dim);
    cursor: pointer;
    flex-shrink: 0;
    transition: all .15s;
}
.at-copy-btn i { width: 13px; height: 13px; }
.at-copy-btn:hover { border-color: var(--border-focus); color: var(--text); background: var(--bg-card-hover); }
.at-copy-btn.copied { border-color: #4ade80; color: #4ade80; }

/* Footer pagination */
.at-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    border-top: 1px solid var(--border);
    gap: 12px;
    flex-wrap: wrap;
    font-size: 12px;
    color: var(--text-dim);
}
.at-footer-total { white-space: nowrap; }
.at-footer-mid {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.at-footer-label { white-space: nowrap; }
.at-footer-nav {
    display: flex;
    align-items: center;
    gap: 4px;
}

.at-select {
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: 5px;
    color: var(--text);
    padding: 4px 8px;
    font-size: 12px;
    cursor: pointer;
    outline: none;
}
.at-select:focus { border-color: var(--border-focus); }

.at-jump-input {
    width: 40px;
    padding: 4px 6px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: 5px;
    color: var(--text);
    font-size: 12px;
    text-align: center;
    outline: none;
}
.at-jump-input:focus { border-color: var(--border-focus); }

.at-page-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 28px;
    padding: 0 6px;
    border: 1px solid var(--border);
    border-radius: 5px;
    background: var(--bg-card);
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all .12s;
}
.at-page-btn:hover:not(:disabled) {
    border-color: var(--border-focus);
    color: var(--text);
    background: var(--bg-card-hover);
}
.at-page-btn:disabled {
    opacity: .3;
    cursor: not-allowed;
}
