.prompt-variables-container {
    margin-top: 2rem;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.prompt-variables-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 1rem;
}

.prompt-variables-table-wrapper {
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
}

.prompt-variables-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
    text-align: left;
    table-layout: fixed; /* Fixed table layout for width control */
}

.prompt-variables-table th {
    background-color: #f5f7fa;
    color: #333;
    font-weight: 600;
    padding: 0.5rem 0.75rem; /* Reduced padding */
    border-bottom: 1px solid #eee;
    word-wrap: break-word;
    word-break: break-all;
}

.prompt-variables-table td {
    padding: 0.5rem 0.75rem; /* Reduced padding */
    color: #555;
    border-bottom: 1px solid #eee;
    vertical-align: top;
    word-wrap: break-word;
    word-break: break-all; /* Force break word */
}

.prompt-variables-table tr {
    transition: background-color 0.2s;
}

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

.prompt-variables-table tr:hover {
    background-color: #fcfcfc;
}

.variables-list {
    position: relative;
    overflow: hidden;
    transition: height 0.3s ease;
}

.variables-gradient-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2.5rem;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 1) 100%);
    pointer-events: none;
    z-index: 2;
}

/* Column widths */
.col-variable {
    width: 20%;
    font-weight: 500;
    color: #333;
}

.col-desc {
    width: 40%;
}

.col-example {
    width: 40%;
}

.variables-toggle-btn-container {
    text-align: center;
    padding: 0.5rem 0;
    background-color: #fcfcfc;
    border-top: 1px solid #eee;
    cursor: pointer;
    transition: background-color 0.2s;
}

.variables-toggle-btn-container:hover {
    background-color: #f5f7fa;
}

.variables-toggle-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-size: 0.8125rem;
    user-select: none;
    gap: 4px;
}

.variables-toggle-btn:hover {
    color: #7044ee;
}
