/**
 * Create Model Page CSS
 * Styles specific to the Create Model admin page
 */

/* Responsive size options grid */
.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 {
    background-color: #0d152c;
    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;
}

/* Size box demo elements — visual ratio previews for predefined sizes */
.explorexr-size-box-small {
    width: 60px;
    height: 60px;
    background-color: #e2e4e7;
}

.explorexr-size-box-medium {
    width: 80px;
    height: 80px;
    background-color: #e2e4e7;
}

.explorexr-size-box-large {
    width: 100px;
    height: 80px;
    background-color: #e2e4e7;
}

.explorexr-size-box-full {
    width: 120px;
    height: 70px;
    background-color: #e2e4e7;
}

/* Media fields */
.explorexr-media-field {
    display: flex;
    gap: 10px;
}

.explorexr-media-field input[type="text"] {
    flex-grow: 1;
}

/* Form actions */
.explorexr-form-actions {
    margin-top: 30px;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

/* Optional field indicator */
span.optional {
    font-size: 12px;
    font-weight: normal;
    color: #646970;
    margin-left: 5px;
}

/* ExploreXR Create Model Styles
 * Styles for the Create Model page
 */

/* Form Layout */
.explorexr-form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

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

.explorexr-form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}

.explorexr-form-group .description {
    margin-top: 5px;
    color: #646970;
    font-style: italic;
}

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

.explorexr-form-row label {
    width: 80px;
    margin-bottom: 0;
}

.explorexr-form-row .description {
    margin-top: 0;
    margin-left: 10px;
}

/* Tabs Navigation */
.explorexr-tabs {
    display: flex;
    border-bottom: 1px solid #c3c4c7;
    margin-bottom: 20px;
    gap: 2px;
}

.explorexr-tab {
    padding: 10px 15px;
    cursor: pointer;
    margin-bottom: -1px;
    border: 1px solid transparent;
    border-bottom: none;
    background: #E4E9EC;
    color: #2c3338;
    font-weight: 500;
    border-radius: 4px 4px 0 0;
    transition: all 0.2s ease;
}

.explorexr-tab:hover {
    background: #0D152C;
    color: #E4E9EC;
}

.explorexr-tab.active {
    background: white;
    border-color: #c3c4c7;
    border-bottom: 1px solid white;
    color: #2271b1;
}

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

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

/* Responsive adjustments */
@media screen and (max-width: 782px) {
    .explorexr-form-row {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .explorexr-form-row label {
        width: 100%;
        margin-bottom: 5px;
    }
    
    .explorexr-form-row .description {
        margin-left: 0;
        margin-top: 5px;
    }
}

/* Device Tabs for Responsive Sizes */
.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;
    display: flex;
    align-items: center;
    gap: 5px;
}

.explorexr-device-tab .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
}

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

.explorexr-device-content {
    display: none;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 5px;
    border: 1px solid #e2e4e7;
}

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

.explorexr-device-content h3 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 14px;
}

/* Input elements styling */
.explorexr-form-group input[type="text"],
.explorexr-form-group input[type="number"],
.explorexr-form-group input[type="email"],
.explorexr-form-group input[type="url"],
.explorexr-form-group select,
.explorexr-form-group textarea {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #dcdcde;
    border-radius: 4px;
    background-color: #fff;
    color: #2c3338;
    font-size: 14px;
    transition: border-color 0.2s ease;
}

.explorexr-form-group input[type="text"]:focus,
.explorexr-form-group input[type="number"]:focus,
.explorexr-form-group input[type="email"]:focus,
.explorexr-form-group input[type="url"]:focus,
.explorexr-form-group select:focus,
.explorexr-form-group textarea:focus {
    border-color: #2271b1;
    box-shadow: 0 0 0 1px #2271b1;
    outline: none;
}

.explorexr-form-group input.small-text {
    width: 120px;
}

/* File input styling */
.explorexr-form-group input[type="file"] {
    width: 100%;
    padding: 10px;
    border: 1px dashed #dcdcde;
    border-radius: 4px;
    background-color: #f9f9f9;
    cursor: pointer;
}

.explorexr-form-group input[type="file"]:hover {
    border-color: #2271b1;
    background-color: #f0f7fc;
}

/* Custom styled file input */
.explorexr-file-input-wrapper {
    position: relative;
    display: inline-block;
    width: 100%;
    margin-bottom: 12px;
}

.explorexr-styled-file-input {
    opacity: 0;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
    z-index: 3;
}

.explorexr-file-input-decoration {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    border: 2px dashed #dcdcde;
    border-radius: 4px;
    background-color: #f9f9f9;
    transition: all 0.3s ease;
    min-height: 80px;
}

.explorexr-file-input-wrapper:hover .explorexr-file-input-decoration {
    border-color: #2271b1;
    background-color: #f0f7fc;
}

.explorexr-file-input-decoration .dashicons {
    margin-right: 10px;
    font-size: 24px;
    color: #646970;
}

.explorexr-file-input-text {
    font-size: 14px;
    color: #646970;
}

.explorexr-file-input-wrapper.file-selected .explorexr-file-input-decoration {
    border-color: #2271b1;
    background-color: rgba(34, 113, 177, 0.05);
}

.explorexr-file-input-wrapper.file-selected .explorexr-file-input-text {
    color: #2271b1;
    font-weight: 500;
}

/* Card note styling */
.explorexr-card-note {
    margin-top: 0;
    margin-bottom: 15px;
    font-style: italic;
    color: #646970;
    padding-left: 10px;
    border-left: 3px solid #e2e4e7;
}

/* Button styling */
.explorexr-form-actions .button,
.explorexr-form-group .button,
.explorexr-media-field .button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    background-color: #f6f7f7;
    border: 1px solid #dcdcde;
    border-radius: 4px;
    color: #2c3338;
    font-weight: 500;
    font-size: 14px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    height: auto;
    line-height: normal;
}

.explorexr-form-actions .button:hover,
.explorexr-form-group .button:hover,
.explorexr-media-field .button:hover {
    /*background-color: #0D152C; */
    border-color: #c3c4c7;
}

/* Button styles are defined in admin-styles.css and inherited globally */

.explorexr-form-actions .button-large {
    padding: 10px 20px;
    font-size: 15px;
}

.explorexr-form-actions .button .dashicons,
.explorexr-form-group .button .dashicons,
.explorexr-media-field .button .dashicons {
    margin-right: 8px;
    font-size: 18px;
    width: 18px;
    height: 18px;
}

/* Input group styling */
.explorexr-input-group {
    display: flex;
    align-items: center;
}

.explorexr-input-group input {
    flex: 1;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.explorexr-input-group .button {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    border-left: none;
}

/* Improvement for checkbox and radio inputs */
.explorexr-checkbox-group,
.explorexr-radio-group {
    margin-bottom: 8px;
}

.explorexr-checkbox-group label,
.explorexr-radio-group label {
    display: flex;
    align-items: center;
    font-weight: normal;
}

.explorexr-checkbox-group input[type="checkbox"],
.explorexr-radio-group input[type="radio"] {
    margin-right: 8px;
}
