/* Main CSS file for the 3D Product Configurator. */

.dpc-container {
    color: #333;
}

/* --- Main Layout & Panels --- */
.dpc-controls,
.dpc-modules-panel,
.dpc-summary {
    padding: 15px;
    border: 1px solid #444;
    background-color: #2c2c2c;
    color: #f0f0f0;
    margin-top: 20px;
}

.dpc-controls h3,
.dpc-modules-panel h3,
.dpc-summary h3 {
    color: #f0f0f0;
    margin-top: 0;
    border-bottom: 1px solid #555;
    padding-bottom: 10px;
}

#dpc-app-container {
    width: 100%;
    height: 600px;
    border: 1px solid #444;
    position: relative;
    cursor: default;
    background-color: #f0f0f0; /* Light background for the 3D view itself */
}

#dpc-app-container.placement-active {
    cursor: crosshair;
}

/* --- Table Settings --- */
.dpc-controls label {
    display: block;
    margin-bottom: 5px;
}

.dpc-controls input {
    width: 100%;
    padding: 8px;
    box-sizing: border-box;
    background-color: #555;
    border: 1px solid #777;
    color: #f0f0f0;
}

/* --- Available Modules List --- */
#dpc-modules-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    overflow-x: auto;
    padding-bottom: 10px;
    gap: 10px;
}

#dpc-modules-list li {
    padding: 8px;
    border: 1px solid #555;
    background-color: #444;
    margin-bottom: 5px;
    cursor: pointer;
    transition: background-color 0.2s, border-color 0.2s;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0; /* Prevent items from shrinking */
}

#dpc-modules-list li:hover {
    background-color: #555;
    border-color: #777;
}

#dpc-modules-list li.selected {
    background-color: #0073aa;
    color: #fff;
    border-color: #005a87;
}

.dpc-module-thumbnail {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border: 1px solid #666;
}

.dpc-module-thumbnail-placeholder {
    width: 40px;
    height: 40px;
    background-color: #555;
    border: 1px solid #666;
}

/* --- Summary Table & Actions --- */
#dpc-summary-table {
    width: 100%;
    border-collapse: collapse;
}

#dpc-summary-table th,
#dpc-summary-table td {
    text-align: left;
    padding: 8px;
    border-bottom: 1px solid #555;
    color: #f0f0f0;
}

#dpc-summary-table th {
    background-color: #3a3a3a;
}

.dpc-summary-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.dpc-button {
    padding: 10px 15px;
    border: 1px solid #0073aa;
    background-color: #0085ba;
    color: #fff;
    cursor: pointer;
    font-size: 14px;
    border-radius: 3px;
    transition: background-color 0.2s;
}

.dpc-button:hover {
    background-color: #0073aa;
}

.dpc-button.dpc-button-danger {
    background-color: #d63638;
    border-color: #b02a2c;
}

.dpc-button.dpc-button-danger:hover {
    background-color: #b02a2c;
}

.dpc-delete-item-button {
    background: none;
    border: 1px solid #cc0000;
    color: #cc0000;
    padding: 2px 8px;
    font-size: 12px;
    cursor: pointer;
    border-radius: 3px;
}

.dpc-delete-item-button:hover {
    background-color: #cc0000;
    color: #fff;
}