/* Table Layout */
.doc-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.doc-table th {
    text-align: left;
    padding: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: #94a3b8;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 700;
    background: rgba(15, 23, 42, 0.6);
    position: sticky;
    top: 0;
    backdrop-filter: blur(8px);
    z-index: 10;
}

.doc-table td {
    padding: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.85rem;
    color: #cbd5e1;
    vertical-align: middle;
    transition: background 0.2s;
}

.doc-table tr:last-child td {
    border-bottom: none;
}

.doc-table tr:hover td {
    background: rgba(59, 130, 246, 0.05);
}

/* Code Syntax Pills */
.syntax-pill {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    padding: 6px 10px;
    color: #a5b4fc;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-block;
    position: relative;
}

.syntax-pill:hover {
    border-color: #60a5fa;
    background: rgba(59, 130, 246, 0.1);
    color: #fff;
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.2);
}

.syntax-pill:active {
    transform: scale(0.98);
}

/* Tooltip "Copy" */
.syntax-pill::after {
    content: "Click to Copy";
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-5px);
    background: #0f172a;
    border: 1px solid #334155;
    color: #fff;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.6rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s;
    white-space: nowrap;
}

.syntax-pill:hover::after {
    opacity: 1;
}

/* Data Badges */
.data-badge {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 4px;
    color: #cbd5e1;
    background: rgba(255, 255, 255, 0.05);
}

/* Toast Notification */
#toast {
    visibility: hidden;
    min-width: 250px;
    background-color: #10b981;
    color: #fff;
    text-align: center;
    border-radius: 8px;
    padding: 12px;
    position: fixed;
    z-index: 50;
    left: 50%;
    bottom: 30px;
    transform: translateX(-50%);
    font-size: 0.9rem;
    font-weight: 600;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: opacity 0.3s, bottom 0.3s;
}

#toast.show {
    visibility: visible;
    opacity: 1;
    bottom: 50px;
}