/* Smart Links admin styles - Premium style inspired v3 enhancements */

.ka-smart-links-tabs {
    margin-bottom: 32px;
}

.ka-smart-links-tabs .ka-tab {
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.ka-smart-links-tabs .ka-tab .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
    margin-right: 6px;
}

.ka-alert {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 18px;
    border-radius: 14px;
    margin-bottom: 24px;
    font-size: 14px;
    font-weight: 500;
    background: rgba(0, 113, 227, 0.08);
    color: #0071e3;
}

.ka-alert-error {
    background: rgba(255, 59, 48, 0.12);
    color: #ff3b30;
}

.ka-link-preview {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.ka-link-preview code {
    background: rgba(0, 0, 0, 0.06);
    padding: 6px 10px;
    border-radius: 10px;
    font-size: 13px;
}

.ka-copy-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border-radius: 999px;
    padding: 6px 12px;
    font-size: 12px;
    border: none;
    background: rgba(0, 0, 0, 0.08);
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease;
}

.ka-copy-btn:hover {
    background: rgba(0, 0, 0, 0.12);
    transform: translateY(-1px);
}

.ka-copy-btn.is-copied {
    background: rgba(52, 199, 89, 0.2);
    color: #34c759;
}

.ka-tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.ka-tag-chip {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    background: rgba(0, 0, 0, 0.06);
    color: #515154;
}

.ka-smart-links-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.ka-smart-links-actions a {
    font-size: 13px;
    color: #0071e3;
    text-decoration: none;
}

.ka-smart-links-actions a:hover {
    text-decoration: underline;
}

.ka-short-url {
    display: flex;
    align-items: center;
    gap: 8px;
}

.ka-short-url .ka-short-url-text {
    font-weight: 500;
    color: #1d1d1f;
    text-decoration: none;
}

.ka-short-url .ka-short-url-text:hover {
    color: #0071e3;
}

.ka-mini-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    background: rgba(236, 72, 153, 0.15);
    color: #db2777;
}

.ka-inline-fields {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.ka-inline-fields .ka-field {
    flex: 1 1 200px;
}

.ka-field input[type="text"],
.ka-field input[type="url"],
.ka-field input[type="number"],
.ka-field select,
.ka-field textarea {
    width: 100%;
}

.ka-link-list-title {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.ka-link-list-title small {
    color: #86868b;
}

.ka-bulk-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.ka-bulk-actions select,
.ka-bulk-actions input[type="text"] {
    min-width: 160px;
}

.ka-inline-form {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
}

.ka-utm-preview {
    padding: 12px 16px;
    background: rgba(0, 0, 0, 0.04);
    border-radius: 12px;
    font-size: 13px;
    color: #515154;
    word-break: break-all;
}

.ka-smart-links-pro-card {
    position: relative;
}

.ka-smart-links-pro-card .ka-pro-badge {
    margin-left: 8px;
}

body.ka-v3-dark .ka-alert {
    background: rgba(10, 132, 255, 0.2);
    color: #0a84ff;
}

body.ka-v3-dark .ka-alert-error {
    background: rgba(255, 69, 58, 0.2);
    color: #ff453a;
}

body.ka-v3-dark .ka-link-preview code {
    background: rgba(255, 255, 255, 0.08);
    color: #f5f5f7;
}

body.ka-v3-dark .ka-copy-btn {
    background: rgba(255, 255, 255, 0.12);
    color: #f5f5f7;
}

body.ka-v3-dark .ka-copy-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

body.ka-v3-dark .ka-short-url .ka-short-url-text {
    color: #f5f5f7;
}

body.ka-v3-dark .ka-tag-chip {
    background: rgba(255, 255, 255, 0.12);
    color: #d1d1d6;
}

body.ka-v3-dark .ka-smart-links-actions a {
    color: #0a84ff;
}

body.ka-v3-dark .ka-utm-preview {
    background: rgba(255, 255, 255, 0.08);
    color: #d1d1d6;
}
