/* tools/development/entity/assets/css/entity.css */

.entity-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.entity-textarea {
    width: 100%;
    height: 260px;
    padding: 15px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    font-family: 'Consolas', 'Courier New', monospace;
    font-size: 14px;
    resize: vertical;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.05);
    background-color: #f8fafc;
    color: #334155;
    line-height: 1.6;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.entity-textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.1);
}

.entity-textarea[readonly] {
    background-color: #f1f5f9;
    cursor: default;
}

.entity-area-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--primary-color, #1e3a8a);
    margin-bottom: 8px;
}

.entity-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.error-message {
    background-color: #fee2e2;
    border-left: 4px solid #ef4444;
    color: #991b1b;
    padding: 15px;
    border-radius: 4px;
    font-size: 14px;
    line-height: 1.5;
}

/* Reference table */
.entity-ref-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    font-family: 'Consolas', 'Courier New', monospace;
    margin-top: 10px;
}

.entity-ref-table th {
    background: var(--primary-color, #1e3a8a);
    color: #fff;
    padding: 8px 12px;
    text-align: left;
    font-weight: 600;
}

.entity-ref-table td {
    padding: 7px 12px;
    border-bottom: 1px solid var(--border-color);
    color: #334155;
}

.entity-ref-table tr:nth-child(even) td {
    background: #f8fafc;
}

.entity-ref-table tr:hover td {
    background: #eff6ff;
}

.entity-ref-toggle {
    background: none;
    border: none;
    color: var(--primary-color, #0066ff);
    font-size: 0.9rem;
    cursor: pointer;
    padding: 4px 0;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: 6px;
    text-decoration: underline;
}

.copied {
    background-color: #10b981 !important;
}

.copied:hover {
    background-color: #059669 !important;
}
