/* css/admin.css */

.edel-meta-table {
    width: 100%;
    border-collapse: collapse;
}

.edel-meta-table th {
    text-align: left;
    width: 200px;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.edel-meta-table td {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.edel-meta-table input[type='text'],
.edel-meta-table input[type='number'] {
    width: 100%;
}

.edel-section-title {
    background: #f0f0f1;
    padding: 10px;
    margin: 20px 0 10px;
    font-weight: bold;
}

#edel-art-picker-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9999;
}

#edel-picker-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    width: 90%;
    max-width: 800px;
    height: 80%;
    border-radius: 5px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

#edel-picker-header {
    padding: 15px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f9f9f9;
}

#edel-picker-body {
    padding: 15px;
    overflow-y: auto;
    flex: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-content: flex-start;
}

.edel-art-item {
    width: 120px;
    border: 2px solid #ddd;
    padding: 5px;
    border-radius: 4px;
    cursor: pointer;
    text-align: center;
    transition: 0.2s;
    background: #fff;
    position: relative;
}

.edel-art-item:hover {
    border-color: #2271b1;
}

.edel-art-item.selected {
    border-color: #2271b1;
    background: #e5f5fa;
}

.edel-art-item.disabled {
    opacity: 0.6;
    pointer-events: none;
    background: #f0f0f1;
    border-color: #ccc;
}

.edel-art-item.disabled::after {
    content: 'Placed';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 2px 6px;
    font-size: 10px;
    border-radius: 3px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.edel-art-item.hidden {
    display: none;
}

.edel-art-thumb {
    width: 100%;
    height: 80px;
    object-fit: cover;
    background: #eee;
}

.edel-art-title {
    font-size: 11px;
    margin-top: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.edel-open-picker,
.edel-upload-texture {
    margin-left: 5px !important;
}
