/**
 * Model Size Metabox CSS
 *
 * Styles for the model size metabox UI
 */

/* Model Size UI Styles */
.explorexr-card {
    background: #fff;
    border: 1px solid #e2e4e7;
    border-radius: 5px;
    margin-bottom: 20px;
}

.explorexr-tabs {
    display: flex;
    border-bottom: 1px solid #e2e4e7;
    background-color: #f8f9fa;
    border-top-left-radius: 5px;
    border-top-right-radius: 5px;
}

.explorexr-tab {
    padding: 12px 15px;
    cursor: pointer;
    border: none;
    background: transparent;
    font-weight: 500;
    color: #646970;
    border-bottom: 2px solid transparent;
}

.explorexr-tab.active {
    color: #2271b1;
    border-bottom-color: #2271b1;
    background-color: #fff;
}

.explorexr-tab-content {
    display: none;
    padding: 20px;
}

.explorexr-tab-content.active {
    display: block;
}

.explorexr-size-options {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin: 20px 0;
}

.explorexr-size-option {
    cursor: pointer;
    padding: 10px;
    border: 2px solid #e2e4e7;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.explorexr-size-option:hover {
    border-color: #c8c8c8;
    color: white;
}

.explorexr-size-option input {
    display: none;
}

.explorexr-size-option input:checked + .explorexr-size-preview {
    color: #2271b1;
}

.explorexr-size-option input:checked + .explorexr-size-preview .explorexr-size-box {
    border-color: #2271b1;
    background-color: rgba(34, 113, 177, 0.1);
}

.explorexr-size-preview {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.explorexr-size-box {
    background-color: #f0f0f0;
    border: 2px solid #c8c8c8;
    border-radius: 4px;
}

.explorexr-size-box-full {
    width: 120px;
    height: 70px;
}

.explorexr-form-group {
    margin-bottom: 20px;
}

.explorexr-form-row {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.explorexr-form-row label {
    width: 70px;
    font-weight: 500;
}

.explorexr-device-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.explorexr-device-tab {
    cursor: pointer;
    padding: 10px 15px;
    border: 1px solid #e2e4e7;
    border-radius: 5px;
    background-color: #f8f9fa;
    transition: all 0.3s ease;
}

.explorexr-device-tab.active {
    background-color: #2271b1;
    color: #fff;
    border-color: #2271b1;
}

.explorexr-device-content {
    display: none;
}

.explorexr-device-content.active {
    display: block;
}

span.optional {
    font-size: 12px;
    font-weight: normal;
    color: #646970;
}

.explorexr-input-group {
    display: flex;
    gap: 10px;
}

.explorexr-input-group input {
    flex-grow: 1;
}

/* Poster styles */
.explorexr-current-poster {
    margin-bottom: 15px;
}

.explorexr-current-poster div {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.explorexr-current-poster img {
    max-width: 150px;
    max-height: 150px;
    border: 1px solid #ddd;
}

#explorexr-poster-preview {
    margin-top: 15px;
}

#explorexr-poster-preview img {
    max-width: 200px;
    max-height: 200px;
    border: 1px solid #ddd;
    border-radius: 4px;
}
