/**
 * AR Display
 * https://augmentedrealityplugins.com
**/
.content{
    padding-top: 0px !important;
}
.ar_portal_model_list{
    width:100%;
    display: table;
}
.ar_portal_table{
    width:100%;
    display: table;
}
.ar_portal_table_head{ 
    display: table-row; 
    background-color: #f2f2f2;
    vertical-align: top;
    padding: 5px;
    font-size: 1.2em;
    font-weight: bold;
}
.ar_portal_table_row{ 
    display: table-row; 
    padding: 5px;
}
.ar_portal_table_item{ 
    display: table-cell;
    padding: 5px;
    vertical-align: top;
}
.ar_portal_center{ 
text-align: center;
}
.ar_alert{
    width:100%;
    background:#ffecec ;
    border:1px solid #f5aca6;
    padding:10px;
    margin:10px 0px;
}

/* Additional styling for frontend compatibility */
.button {
    display: inline-block;
    padding: 8px 16px;
    margin: 4px 2px;
    background-color: #0073aa;
    color: white;
    text-decoration: none;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    font-size: 14px;
}

.button:hover {
    background-color: #005a87;
}

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

.button-primary:hover {
    background-color: #005a87;
}

/* Form styling */
input[type="text"], input[type="url"], select, textarea {
    width: 100%;
    padding: 8px;
    margin: 4px 0;
    border: 1px solid #ddd;
    border-radius: 3px;
    box-sizing: border-box;
}

label {
    font-weight: bold;
    display: block;
    margin: 8px 0 4px 0;
}

/* Panel styling */
.panel {
    background: #fff;
    border: 1px solid #ddd;
    padding: 15px;
    margin: 10px 0;
    border-radius: 3px;
}

/* Table improvements */
.ar_portal_table {
    border-collapse: collapse;
    width: 100%;
    margin: 10px 0;
}

.ar_portal_table_head {
    background-color: #f2f2f2;
    font-weight: bold;
}

.ar_portal_table_row:nth-child(even) {
    background-color: #f9f9f9;
}

.ar_portal_table_row:hover {
    background-color: #f0f0f0;
}

/* Additional AR Portal specific styling */
.ar_portal_table_item textarea {
    font-family: monospace;
    font-size: 12px;
    min-height: 100px;
    resize: vertical;
}

/* Model viewer container styling */
.ar_alternative_model_container {
    margin: 10px 0;
    border: 1px solid #ddd;
    border-radius: 5px;
    overflow: hidden;
}

/* AR button styling */
.ar-button {
    background: #0073aa;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 3px;
    cursor: pointer;
    font-size: 14px;
}

.ar-button:hover {
    background: #005a87;
}

/* Admin panel styling for frontend */
.woocommerce_options_panel {
    background: #fff;
    border: 1px solid #ddd;
    padding: 15px;
    margin: 10px 0;
    border-radius: 3px;
}

.options_group {
    margin-bottom: 15px;
}

.ar_admin_label {
    font-weight: bold;
    margin-bottom: 5px;
}

.ar_admin_field {
    margin-bottom: 10px;
}

/* Accordion styling */
.ar_accordian {
    background-color: #f1f1f1;
    color: #444;
    cursor: pointer;
    padding: 18px;
    width: 100%;
    text-align: left;
    border: none;
    outline: none;
    transition: 0.4s;
    margin-bottom: 5px;
    border-radius: 3px;
}

.ar_accordian:hover {
    background-color: #ddd;
}

.ar_accordian_panel {
    padding: 0 18px;
    background-color: white;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.2s ease-out;
    border: 1px solid #ddd;
    border-top: none;
    border-radius: 0 0 3px 3px;
    display: none;
}

.ar_accordian_panel.active {
    max-height: none;
    padding: 15px 18px;
    display: block;
}

/* Enhanced AR Portal Interface Styling */
.ar_portal_enhanced_interface {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 20px;
    margin: 20px 0;
}

.ar_portal_section {
    margin-bottom: 20px;
    border-bottom: 1px solid #eee;
    padding-bottom: 20px;
}

.ar_portal_section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.ar_portal_section h3 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 18px;
    font-weight: bold;
}

/* Model Files Styling */
.ar_model_files_fields {
    display: flex;
    gap: 20px;
    margin: 15px 0;
    min-height: 200px;
}

.ar_file_icons {
    width: 80px;
    height: 80px;
    cursor: pointer;
    border: 2px solid #ddd;
    border-radius: 8px;
    transition: border-color 0.3s ease;
}

.ar_file_icons:hover {
    border-color: #0073aa;
}

.ar_filenames {
    display: block;
    margin-top: 10px;
    font-size: 12px;
    color: #666;
    word-break: break-all;
}

/* Form Field Styling */
.ar-input {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 3px;
    font-size: 14px;
}

.ar-input-wide {
    width: 100%;
}

/* Range Input Styling */
input[type="range"] {
    width: 200px;
    margin-right: 10px;
}

/* Color Input Styling */
input[type="color"] {
    width: 60px;
    height: 40px;
    border: none;
    border-radius: 3px;
    cursor: pointer;
}

/* Section Headers */
.ar_portal_section .ar_accordian {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    color: #495057;
    font-weight: 600;
    margin-bottom: 0;
}

.ar_portal_section .ar_accordian:hover {
    background-color: #e9ecef;
}

/* Additional Sections Styling */
.ar_portal_additional_sections {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

/* AR Gallery and Model Shop Sections */
.ar_model_files_advert,
.ar_model_shop_advert {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 20px;
    margin: 15px 0;
    text-align: center;
}

.ar_model_files_advert h4,
.ar_model_shop_advert h4 {
    margin: 10px 0;
    color: #333;
    font-size: 16px;
}

.ar_model_files_advert img,
.ar_model_shop_advert img {
    margin-bottom: 10px;
}

.ar_admin_button {
    background: #0073aa;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    text-decoration: none;
    display: inline-block;
    margin: 5px;
}

.ar_admin_button:hover {
    background: #005a87;
    color: white;
    text-decoration: none;
}

.ar_admin_button sup {
    font-size: 10px;
    vertical-align: super;
}

/* Model Files Section Styling */
.ar_portal_model_files_section {
    margin: 20px 0;
}

/* Promotional sections styling (matching admin) */
.ar_model_files_advert,
.ar_model_shop_advert {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 20px;
    margin: 15px 0;
    text-align: center;
}

.ar_model_files_advert h4,
.ar_model_shop_advert h4 {
    margin: 10px 0;
    color: #333;
    font-size: 14px;
    line-height: 1.4;
}

.ar_model_files_advert img,
.ar_model_shop_advert img {
    margin-bottom: 10px;
}

.ar_admin_button {
    background: #0073aa;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    text-decoration: none;
    display: inline-block;
    margin: 5px;
    transition: background-color 0.3s ease;
}

.ar_admin_button:hover {
    background: #005a87;
    color: white;
    text-decoration: none;
}

.ar_admin_button sup {
    font-size: 10px;
    vertical-align: super;
}

/* Model files fields styling (matching admin) */
.ar_model_files_fields {
    margin: 20px 0;
}

.ar_file_icons {
    width: 80px;
    height: 80px;
    border: 2px dashed #ccc;
    border-radius: 8px;
    padding: 10px;
    cursor: pointer;
    transition: border-color 0.3s ease;
    background: #f9f9f9;
}

.ar_file_icons:hover {
    border-color: #0073aa;
    background: #f0f0f0;
}

.ar_filenames {
    display: block;
    margin: 10px 0;
    font-size: 12px;
    color: #666;
    word-break: break-all;
    min-height: 16px;
}

.ar_label_tip {
    color: #999;
    font-size: 12px;
    font-style: italic;
}

/* Responsive design for smaller screens */
@media (max-width: 768px) {
    .ar_model_files_fields {
        flex-direction: column;
    }
    
    .ar_model_file_column {
        min-width: auto;
    }
}

/* Promotional Sections Styling */
.ar_portal_promotional_sections {
    margin: 20px 0;
}

.ar_promotional_container {
    display: flex;
    gap: 20px;
    align-items: stretch;
}

.ar_promotional_section {
    flex: 1;
}

.ar_model_files_advert,
.ar_model_shop_advert {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.ar_promotional_icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 15px auto;
    display: block;
}

.ar_model_files_advert h4,
.ar_model_shop_advert h4 {
    margin: 10px 0;
    color: #333;
    font-size: 14px;
    line-height: 1.4;
}

.ar_admin_button {
    background: #0073aa;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    text-decoration: none;
    display: inline-block;
    margin: 5px;
    transition: background-color 0.3s ease;
}

.ar_admin_button:hover {
    background: #005a87;
    color: white;
    text-decoration: none;
}

.ar_admin_button sup {
    font-size: 10px;
    vertical-align: super;
}

.ar_portal_additional_sections .ar_accordian {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    color: #495057;
    font-weight: 600;
    margin-bottom: 0;
}

.ar_portal_additional_sections .ar_accordian:hover {
    background-color: #e9ecef;
}

/* Responsive Design */
@media (max-width: 768px) {
    .ar_model_files_fields {
        flex-direction: column;
        gap: 15px;
    }
    
    .ar_portal_enhanced_interface {
        padding: 15px;
        margin: 10px 0;
    }
    
    .ar_portal_additional_sections {
        margin-top: 15px;
        padding-top: 15px;
    }
}

/*********** End ***************/

/* Enhanced AR Portal Dashboard Styles */
.ar_portal_dashboard {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

/* New AR Model Dashboard Header Card (matching my-account design) */
.ar-model-dashboard-header {
    background: #f8f9fa !important;
    color: #495057 !important;
    padding: 20px 30px !important;
    margin: 0 0 30px 0 !important;
    border-radius: 8px !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    position: relative !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15) !important;
    border: 1px solid #dee2e6 !important;
    overflow: visible !important;
}

.ar-dashboard-left {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    flex: 1;
}

.ar-dashboard-title-section {
    flex: 1;
}

.ar-dashboard-title-section h1 {
    margin: 0 0 15px 0 !important;
    font-size: 24px !important;
    font-weight: 700 !important;
    color: #4a90a4 !important;
    line-height: 1.2 !important;
}

.ar-dashboard-stats {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    align-items: center;
}

.ar-dashboard-stat {
    background: #ffffff;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    border: 1px solid #dee2e6;
    color: #495057;
    display: inline-block;
}

.ar-dashboard-stat strong {
    color: #f37a23;
}

.ar-dashboard-actions {
    display: flex;
    align-items: center;
}

/* Dropdown Menu Styling */
.ar-dashboard-dropdown {
    position: relative;
    display: inline-block;
}

.ar-dashboard-dropdown-toggle {
    background: #ffffff;
    border: 1px solid #dee2e6;
    color: #495057;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease;
}

.ar-dashboard-dropdown-toggle:hover {
    background: #f8f9fa;
    border-color: #adb5bd;
}

.ar-dashboard-dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 200px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border: 1px solid #dee2e6;
    border-radius: 6px;
    z-index: 1000;
    margin-top: 4px;
}

.ar-dashboard-dropdown.active .ar-dashboard-dropdown-content {
    display: block;
}

.ar-dashboard-dropdown-content a {
    display: block;
    padding: 12px 16px;
    color: #495057;
    text-decoration: none;
    border-bottom: 1px solid #f1f3f4;
    transition: background-color 0.2s ease;
}

.ar-dashboard-dropdown-content a:last-child {
    border-bottom: none;
}

.ar-dashboard-dropdown-content a:hover {
    background: #f8f9fa;
}

.ar-dashboard-dropdown-content a.current {
    background: #e7f3ff;
    color: #0066cc;
    font-weight: 600;
}

/* Legacy header for compatibility - hide it */
.ar_portal_header {
    display: none !important;
}

/* Ensure unified header works on both AR Portal and My Account pages */
.ar_portal_dashboard .ar-model-dashboard-header,
.woocommerce-MyAccount-content .ar-model-dashboard-header {
    background: #f8f9fa !important;
    color: #495057 !important;
    padding: 20px 30px !important;
    margin: 0 0 30px 0 !important;
    border-radius: 8px !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    position: relative !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15) !important;
    border: 1px solid #dee2e6 !important;
    overflow: visible !important;
}

/* Mobile Responsive Styling */
@media (max-width: 768px) {
    .ar-model-dashboard-header {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 20px !important;
        padding: 15px 20px !important;
    }
    
    .ar-dashboard-left {
        width: 100% !important;
        flex-direction: column !important;
        gap: 15px !important;
    }
    
    .ar-dashboard-stats {
        flex-direction: column !important;
        gap: 10px !important;
        align-items: flex-start !important;
    }
    
    .ar-dashboard-stat {
        font-size: 12px !important;
        padding: 6px 12px !important;
    }
    
    .ar-dashboard-title-section h1 {
        font-size: 20px !important;
        margin-bottom: 10px !important;
    }
    
    .ar-dashboard-actions {
        width: 100% !important;
        justify-content: center !important;
    }
    
    .ar-add-model-btn {
        width: 100% !important;
        justify-content: center !important;
        padding: 15px 20px !important;
    }
    
    .ar-dashboard-dropdown-content {
        min-width: 180px !important;
        right: 0 !important;
        left: auto !important;
    }
}

/* New Add Model Button Styling */
.ar-add-model-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #f37a23;
    color: white !important;
    padding: 12px 24px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.ar-add-model-btn:hover {
    background: #e6681a;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(243, 122, 35, 0.3);
}

.ar-add-model-btn span {
    font-size: 16px;
    font-weight: bold;
}

/* Legacy button for compatibility */
.ar_portal_add_button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #f37a23;
    color: white !important;
    padding: 12px 24px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    border: 1px solid #005a87;
}

.ar_portal_add_button:hover {
    background: #005a87;
    transform: translateY(-1px);
    color: white;
    text-decoration: none;
}

/* Latest Models Section Styles */
.ar-portal-latest-models {
    background: white;
    border-radius: 8px;
    padding: 25px;
    margin: 20px 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid #dee2e6;
}

.ar-portal-latest-models h3 {
    margin: 0 0 20px 0;
    font-size: 20px;
    font-weight: 600;
    color: #495057;
    display: flex;
    align-items: center;
    gap: 10px;
}

.ar-portal-latest-models h3::before {
    font-size: 24px;
}

.view-more-models {
    text-align: center;
    margin-top: 20px;
}

/* Mobile Responsive for Latest Models */
@media (max-width: 768px) {
    .ar-portal-latest-models {
        padding: 20px;
        margin: 15px 0;
    }
}

.ar_portal_models_grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.ar_portal_model_card {
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid #dee2e6;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.ar_portal_model_card_content {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.ar_portal_model_card_left {
    flex: 1;
    min-width: 0;
}

.ar_portal_model_card_right {
    flex-shrink: 0;
    width: 120px;
}

.ar_portal_model_card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.ar_portal_model_card_header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
}

.ar_portal_model_title {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #1f2937;
    flex: 1;
}

.ar_portal_model_title a {
    color: #1f2937;
    text-decoration: none;
    transition: color 0.3s ease;
}

.ar_portal_model_title a:hover {
    color: #3b82f6;
}

.ar_portal_model_status {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ar_portal_model_status.has_model {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

.ar_portal_model_status.no_model {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.ar_portal_model_screenshot {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    margin-top: 0px;
    margin-bottom: 8px;
    min-height: 100px;
}

.ar_portal_model_screenshot img {
    width: 100%;
    height: auto;
    border-radius: 4px;
}

.ar_portal_model_user {
    margin-bottom: 10px;
    font-size: 14px;
    color: #6b7280;
}

.ar_portal_user_label {
    font-weight: 500;
}

.ar_portal_user_link {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 500;
}

.ar_portal_user_link:hover {
    text-decoration: underline;
}

.ar_portal_model_file_size {
    margin-bottom: 12px;
    font-size: 13px;
    color: #6b7280;
}

.ar_portal_file_size_label {
    font-weight: 500;
}

.ar_portal_file_size_value {
    color: #374151;
    font-weight: 600;
}

.ar_portal_model_embed {
    margin-bottom: 20px;
}

.ar_portal_embed_code {
    width: 100%;
    min-height: 100px !important;
    padding: 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 12px;
    line-height: 1.4;
    background: #f9fafb;
    color: #374151;
    resize: vertical;
    transition: border-color 0.3s ease;
}

.ar_portal_embed_code:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.ar_portal_model_actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.ar_portal_action_btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.ar_portal_edit_btn {
    background: #007cba;
    color: white !important;
    border: 1px solid #005a87;
}

.ar_portal_edit_btn:hover {
    background: #005a87;
    color: white;
    text-decoration: none;
    transform: translateY(-1px);
}

.ar_portal_copy_btn {
    background: #28a745;
    color: white !important;
    border: 1px solid #1e7e34;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    gap: 6px;
}

.ar_portal_copy_btn:hover {
    background: #1e7e34;
    transform: translateY(-1px);
}

.ar_portal_delete_btn {
    background: #dc3545;
    color: white !important;
    border: 1px solid #c82333;
}

.ar_portal_delete_btn:hover {
    background: #c82333;
    color: white;
    text-decoration: none;
    transform: translateY(-1px);
}

.ar_portal_empty_state {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid #dee2e6;
}

.ar_portal_empty_icon {
    margin-bottom: 20px;
    color: #9ca3af;
}

.ar_portal_empty_state h3 {
    margin: 0 0 12px 0;
    font-size: 24px;
    font-weight: 600;
    color: #1f2937;
}

.ar_portal_empty_state p {
    margin: 0 0 24px 0;
    font-size: 16px;
    color: #6b7280;
    line-height: 1.6;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* Responsive Design */
@media (max-width: 768px) {
    .ar_portal_dashboard {
        padding: 15px;
    }
    
    .ar_portal_header {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .ar_portal_title {
        font-size: 24px;
    }
    
    .ar_portal_stats {
        justify-content: center;
    }
    
    .ar_portal_models_grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .ar_portal_model_card {
        padding: 20px;
    }
    
    .ar_portal_model_card_content {
        flex-direction: column;
        gap: 15px;
    }
    
    .ar_portal_model_card_right {
        width: 100%;
        max-width: 200px;
        align-self: center;
    }
    
    .ar_portal_model_card_header {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }
    
    .ar_portal_model_actions {
        justify-content: center;
    }
    
    .ar_portal_action_btn {
        flex: 1;
        justify-content: center;
        min-width: 120px;
    }
}

@media (max-width: 480px) {
    .ar_portal_header {
        padding: 15px;
    }
    
    .ar_portal_title {
        font-size: 20px;
    }
    
    .ar_portal_stats {
        flex-direction: column;
        gap: 10px;
    }
    
    .ar_portal_model_card {
        padding: 16px;
    }
    
    .ar_portal_model_actions {
        flex-direction: column;
    }
    
    .ar_portal_action_btn {
        width: 100%;
    }
}

/* Animation for copy button feedback */
.ar_portal_copy_btn:active {
    transform: scale(0.95);
}

/* Loading state for actions */
.ar_portal_action_btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Focus states for accessibility */
.ar_portal_action_btn:focus,
.ar_portal_add_button:focus {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .ar_portal_model_card {
        background: #1f2937;
        border-color: #374151;
        color: #f9fafb;
    }
    
    .ar_portal_model_title,
    .ar_portal_model_title a {
        color: #f9fafb;
    }
    
    .ar_portal_embed_code {
        background: #111827;
        border-color: #374151;
        color: #d1d5db;
    }
    
    .ar_portal_empty_state {
        background: #1f2937;
        border-color: #374151;
        color: #f9fafb;
    }
    
    .ar_portal_empty_state h3 {
        color: #f9fafb;
    }
    
    .ar_portal_empty_state p {
        color: #d1d5db;
    }
}

/* AR Portal Edit Page Styles */
.ar_portal_edit_dashboard {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.ar_portal_edit_header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 30px;
    padding: 20px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    color: #495057;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.ar_portal_edit_header_left {
    flex: 1;
}

.ar_portal_edit_title {
    margin: 0 0 10px 0;
    font-size: 28px;
    font-weight: 700;
    color: #212529;
}

.ar_portal_edit_description {
    margin: 0;
    font-size: 16px;
    color: #6c757d;
    line-height: 1.5;
}

.ar_portal_edit_header_right {
    display: flex;
    align-items: center;
}

.ar_portal_back_button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #f37a23;
    color: white !important;
    padding: 12px 24px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    border: 1px solid #5a6268;
}

.ar_portal_back_button:hover {
    background: #5a6268;
    color: white !important;
    text-decoration: none;
    transform: translateY(-1px);
}

.ar_portal_edit_card {
    background: white;
    border-radius: 8px;
    margin-bottom: 0px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid #dee2e6;
    overflow: hidden;
}

.ar_portal_edit_card_header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 20px 0 20px;
    margin-bottom: 20px;
}

.ar_portal_edit_card_header h3 {
    margin: 0px;
    font-size: 18px;
    font-weight: 600;
    color: #212529;
}

.ar_portal_edit_card_content {
    padding: 0 20px 0px 20px;
}

/* Input group with inline labels */
.ar_portal_input_group {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 0px;
}

.ar_portal_input_group label {
    min-width: 140px;
    font-weight: 600;
    color: #495057;
    margin: 0;
}

.ar_portal_input_group input {
    flex: 1;
}

.ar_portal_input {
    flex: 1;
    padding: 12px;
    border: 1px solid #ced4da;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.3s ease;
    background: #fff;
    margin-bottom: 10px !important;
}

.ar_portal_input:focus {
    outline: none;
    border-color: #007cba;
    box-shadow: 0 0 0 3px rgba(0, 124, 186, 0.1);
}

.ar_portal_clear_btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    background: #dc3232;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
}

.ar_portal_clear_btn:hover {
    background: #e9ecef;
    color: #495057;
}

.ar_portal_save_button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #f37a23;
    color: white !important;
    padding: 12px 24px !important;
    border-radius: 6px !important;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    border: 1px solid #e56a1a;
    cursor: pointer;
    margin-bottom: 5px;
}

.ar_portal_save_button:hover {
    background: #e56a1a;
    color: white !important;
    text-decoration: none;
    transform: translateY(-1px);
}

/* Override AR for WordPress styles for better integration */
.ar_portal_edit_dashboard .panel {
    background: transparent;
    border: none;
    padding: 0;
    margin: 0;
}

.ar_portal_edit_dashboard .woocommerce_options_panel {
    background: transparent;
    border: none;
    padding: 0;
    margin: 0;
}

.ar_portal_edit_dashboard .options_group {
    background: white;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid #dee2e6;
    overflow: hidden;
}

.ar_portal_edit_dashboard .options_group > h4 {
    margin: 0;
    padding: 20px 20px 0 20px;
    font-size: 18px;
    font-weight: 600;
    color: #212529;
    border-bottom: 1px solid #e9ecef;
    padding-bottom: 15px;
    margin-bottom: 20px;
}

.ar_portal_edit_dashboard .form-field {
    padding: 0 20px 20px 20px;
    margin: 0;
    border: none;
    background: transparent;
}

.ar_portal_edit_dashboard .form-field:last-child {
    padding-bottom: 20px;
}

.ar_portal_edit_dashboard label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #212529;
}

.ar_portal_edit_dashboard input[type="text"],
.ar_portal_edit_dashboard input[type="number"],
.ar_portal_edit_dashboard select,
.ar_portal_edit_dashboard textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ced4da;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.3s ease;
    background: #fff;
    box-sizing: border-box;
}

.ar_portal_edit_dashboard input[type="text"]:focus,
.ar_portal_edit_dashboard input[type="number"]:focus,
.ar_portal_edit_dashboard select:focus,
.ar_portal_edit_dashboard textarea:focus {
    outline: none;
    border-color: #007cba;
    box-shadow: 0 0 0 3px rgba(0, 124, 186, 0.1);
}

.ar_portal_edit_dashboard input[type="range"] {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: #e9ecef;
    outline: none;
    -webkit-appearance: none;
}

.ar_portal_edit_dashboard input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #007cba;
    cursor: pointer;
}

.ar_portal_edit_dashboard input[type="range"]::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #007cba;
    cursor: pointer;
    border: none;
}

.ar_portal_edit_dashboard input[type="color"] {
    width: 50px;
    height: 40px;
    border: 1px solid #ced4da;
    border-radius: 6px;
    cursor: pointer;
}



/* Responsive Design for Edit Page */
@media (max-width: 768px) {
    .ar_portal_edit_dashboard {
        padding: 15px;
    }
    
    .ar_portal_edit_header {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .ar_portal_edit_title {
        font-size: 24px;
    }
    
    .ar_portal_edit_card_header {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
    
    .ar_portal_input_group {
        flex-direction: column;
        align-items: stretch;
    }
    
    .ar_portal_clear_btn {
        align-self: flex-end;
        width: auto;
        padding: 8px 12px;
    }
}

@media (max-width: 480px) {
    .ar_portal_edit_header {
        padding: 15px;
    }
    
    .ar_portal_edit_title {
        font-size: 20px;
    }
    
    .ar_portal_edit_card {
        margin-bottom: 15px;
    }
    
    .ar_portal_edit_card_header,
    .ar_portal_edit_card_content {
        padding: 15px;
    }
}

/* Side-by-side cards layout */
.ar_portal_edit_cards_row {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.ar_portal_edit_card {
    background: #fff;
    border: 1px solid #e1e5e9;
    border-radius: 8px;
    overflow: hidden;
}

.ar_portal_edit_card[style*="flex: 2"] {
    flex: 2;
}

.ar_portal_edit_card[style*="flex: 1"] {
    flex: 1;
}

.ar_portal_edit_card_header {
    padding: 16px 20px;
    border-bottom: 1px solid #e1e5e9;
    background: #f8f9fa;
}

.ar_portal_edit_card_header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

/* Screenshot card specific styles */
.ar_portal_screenshot_header {
    display: none;
}

.ar_portal_screenshot_content {
    padding: 5px;
    margin-bottom: 0px;
}

.ar_portal_screenshot_image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.ar_portal_embed_code {
    width: 100%;
    min-height: 100px;
    font-family: monospace;
    font-size: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 8px;
    resize: vertical;
}

.ar_portal_no_embed {
    margin: 0;
    padding: 20px;
    text-align: center;
    color: #6c757d;
    font-style: italic;
    background: #f8f9fa;
    border-radius: 6px;
    border: 1px dashed #dee2e6;
}

/* Responsive design */
@media (max-width: 768px) {
    .ar_portal_edit_cards_row {
        flex-direction: column;
        gap: 15px;
    }
    
    .ar_portal_edit_card[style*="flex: 2"],
    .ar_portal_edit_card[style*="flex: 1"] {
        flex: none;
    }
}

/* Large card wrapper */
.ar_portal_edit_large_card {
    background: white;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid #dee2e6;
    overflow: hidden;
}

.ar_portal_embed_code:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Save section styling */
.ar_portal_save_section {
    padding: 20px 0 0 0;
    margin-top: 20px;
    text-align: center;
}



/* QR Code Destination section */
.ar_portal_qr_section {
    margin: 20px 0;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 6px;
    border: 1px solid #e9ecef;
}

.ar_portal_qr_section label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #495057;
}

.ar_portal_field_description {
    margin: 8px 0 0 0;
    font-size: 14px;
    color: #6c757d;
    font-style: italic;
}

.ar_portal_gallery_builder {
    min-height: 225px;
    /*background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;*/
}

.ar_portal_gallery_builder_header h3 {
    margin: 0 0 10px 0;
    color: #333;
}

.ar_portal_gallery_builder_header p {
    margin: 0 0 20px 0;
    color: #666;
}

.ar_portal_gallery_upload_section {
    margin-bottom: 20px;
    width: 50%;
    float: left;
}

.ar_portal_gallery_upload_preview {
    text-align: center;
}

.ar_portal_asset_thumb {
    max-width: 200px;
    max-height: 150px;
    border: 2px dashed #ddd;
    border-radius: 8px;
    padding: 10px;
    cursor: pointer;
    transition: border-color 0.3s;
}

.ar_portal_asset_thumb:hover {
    border-color: #0073aa;
}

.ar_portal_gallery_upload_controls {
    margin-top: 10px;
}

.ar_portal_upload_btn {
    background: #0073aa;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    margin: 0 5px;
    font-size: 14px;
}


.ar_portal_upload_btn:hover {
    background: #005a87;
}

.ar_portal_clear_btn:hover {
    background: #a00;
}

.ar_portal_gallery_settings {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.ar_portal_setting_group {
    display: flex;
    flex-direction: column;
}

.ar_portal_setting_group label {
    font-weight: bold;
    margin-bottom: 5px;
    color: #333;
}

.ar_portal_setting_group select,
.ar_portal_setting_group input {
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.ar_portal_gallery_preview h4 {
    margin: 0 0 10px 0;
    color: #333;
}

.ar_portal_gallery_preview {
    border-top: 1px solid #eee;
    padding-top: 20px;
}
.ar_admin_viewer{padding-top: 0px !important;}
.ar_portal_tab_navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #ddd;
    margin-bottom: 20px;
}

.ar_portal_tab_buttons {
    display: flex;
}

.ar_portal_tab_button {
    background: #f1f1f1;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    font-size: 14px;
    border-radius: 4px 4px 0 0;
    margin-right: 5px;
    transition: background-color 0.3s;
}

.ar_portal_tab_button:hover {
    background: #e1e1e1;
}

.ar_portal_tab_button.active {
    background: #0073aa;
    color: white;
}

.ar_portal_save_button_container {
    display: flex;
    align-items: center;
}


.ar_portal_tab_content {
    /*padding: 20px 0;*/
}