﻿
:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-darker: #1e40af;
    --secondary: #64748b;
    --accent: #f59e0b;
    --dark: #0f172a;
    --light: #f8fafc;
    --text: #334155;
    --light-text: #64748b;
    --white: #ffffff;
    --gray: #f1f5f9;
    --border: #e2e8f0;
    --shadow: 0 1px 3px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 25px rgba(0,0,0,0.1);
    --radius: 8px;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --menu-bg-color: rgba(37, 99, 235, 0.95);
    --heading-font: 'Space Grotesk', sans-serif;
    --body-font: 'Inter', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--body-font);
    background: var(--light);
    color: var(--text);
    line-height: 1.6;
}

/* MODALS */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background: var(--white);
    border-radius: 20px;
    padding: 2rem;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    animation: slideUp 0.3s ease;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--light-text);
    transition: transform 0.2s ease;
}

    .modal-close:hover {
        transform: scale(1.1);
    }

/* LIGHTBOX */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.95);
    z-index: 10001;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90%;
    animation: zoomIn 0.3s ease;
}

    .lightbox-content img {
        max-width: 100%;
        max-height: 100%;
        border-radius: 12px;
    }

.lightbox-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    background: none;
    border: none;
    transition: transform 0.2s ease;
}

    .lightbox-close:hover {
        transform: scale(1.1);
    }

/* APP LAYOUT */
.app-container {
    display: grid;
    grid-template-columns: 280px 1fr;
    min-height: 100vh;
}

.sidebar {
    background: var(--white);
    border-right: 1px solid var(--border);
    padding: 2rem 1.5rem;
    overflow-y: auto;
    position: sticky;
    top: 0;
    height: 100vh;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--primary);
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: var(--primary);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
}

.logo-text {
    font-family: var(--heading-font);
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--dark);
}

.components-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 2rem;
}

.component-card {
    background: var(--white);
    border: 2px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem 1rem;
    text-align: center;
    cursor: grab;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

    .component-card:hover {
        border-color: var(--primary);
        transform: translateY(-5px) scale(1.02);
        box-shadow: var(--shadow-lg);
    }

.component-icon {
    width: 48px;
    height: 48px;
    background: var(--gray);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary);
    transition: all 0.3s ease;
}

.component-card:hover .component-icon {
    transform: scale(1.1);
    background: var(--primary);
    color: white;
}

.component-name {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--dark);
}

.style-controls {
    background: var(--white);
    border-radius: var(--radius);
    padding: 1.5rem;
    border: 1px solid var(--border);
}

.control-group {
    margin-bottom: 1.5rem;
}

.control-label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--dark);
    font-size: 0.9rem;
}

.color-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 0.5rem;
}

.color-option {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

    .color-option:hover {
        transform: scale(1.1);
    }

    .color-option.active {
        border-color: var(--dark);
        transform: scale(1.2);
    }

.toggle-group {
    display: flex;
    gap: 0.5rem;
}

.toggle-btn {
    flex: 1;
    padding: 0.75rem;
    background: var(--gray);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

    .toggle-btn:hover {
        transform: translateY(-2px);
    }

    .toggle-btn.active {
        background: var(--primary);
        color: var(--white);
        border-color: var(--primary);
        transform: translateY(-2px);
    }

.main-content {
    display: grid;
    grid-template-rows: auto 1fr;
    background: var(--light);
}

.top-bar {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
}

.template-selector {
    display: flex;
    gap: 1rem;
}

.template-btn {
    padding: 0.75rem 1.5rem;
    background: var(--white);
    border: 2px solid var(--border);
    border-radius: var(--radius);
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

    .template-btn:hover {
        transform: translateY(-2px);
    }

    .template-btn.active {
        background: var(--primary);
        color: var(--white);
        border-color: var(--primary);
        transform: translateY(-2px);
    }

.action-buttons {
    display: flex;
    gap: 1rem;
}

.action-btn {
    padding: 0.75rem 1.5rem;
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

    .action-btn:hover {
        background: var(--primary-dark);
        transform: translateY(-3px);
        box-shadow: var(--shadow-lg);
    }

.workspace {
    padding: 2rem;
    overflow-y: auto;
}

.workspace-grid {
    display: grid;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* SECTIONS */
.grid-section {
    background: var(--white);
    border-radius: 16px;
    border: 1px solid var(--border);
    overflow: hidden;
    position: relative;
    transition: all 0.3s ease;
}

    .grid-section:hover {
        box-shadow: var(--shadow-lg);
        transform: translateY(-5px);
    }

.section-header {
    background: var(--gray);
    padding: 1.5rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.section-title {
    font-family: var(--heading-font);
    font-weight: 600;
    color: var(--dark);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.section-actions {
    display: flex;
    gap: 0.5rem;
}

.section-action {
    width: 36px;
    height: 36px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

    .section-action:hover {
        background: var(--primary);
        color: var(--white);
        border-color: var(--primary);
        transform: scale(1.1);
    }

.section-content {
    padding: 2rem;
}

/* IMAGE UPLOAD STYLES */
.image-upload {
    border: 2px dashed var(--border);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: var(--gray);
    position: relative;
}

    .image-upload:hover {
        border-color: var(--primary);
        background: rgba(37, 99, 235, 0.05);
        transform: scale(1.02);
    }

.image-preview {
    width: 100%;
    height: 100%;
    border-radius: 12px;
    overflow: hidden;
}

    .image-preview img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.3s ease;
    }

    .image-preview:hover img {
        transform: scale(1.05);
    }

.upload-icon {
    font-size: 3rem;
    color: var(--light-text);
    margin-bottom: 1rem;
}

/* MENU STYLES */
.menu-header {
    background: var(--primary);
    color: white;
    padding: 1rem 2rem;
    position: sticky;
    top: 0;
    z-index: 99;
}

.menu-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-family: var(--heading-font);
    font-weight: 700;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.nav-logo-image {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.nav-logo:hover .nav-logo-image {
    transform: rotate(10deg);
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-link {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: var(--radius);
    cursor: pointer;
    position: relative;
}

    .nav-link:hover, .nav-link.active {
        background: rgba(255,255,255,0.1);
        transform: translateY(-2px);
    }

    .nav-link::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 50%;
        width: 0;
        height: 2px;
        background: white;
        transition: all 0.3s ease;
        transform: translateX(-50%);
    }

    .nav-link:hover::after, .nav-link.active::after {
        width: 80%;
    }

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    transition: transform 0.3s ease;
}

    .mobile-menu-btn:hover {
        transform: scale(1.1);
    }

.mobile-nav {
    display: none;
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
    background: var(--primary-dark);
    position: sticky;
    top: 0;
    z-index: 99;
    animation: slideDown 0.3s ease;
}

    .mobile-nav.active {
        display: flex;
    }

/* GALLERY STYLES */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.gallery-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 1;
    cursor: pointer;
    background: var(--gray);
    height: 180px;
    transition: all 0.3s ease;
}

    .gallery-item:hover {
        transform: translateY(-5px) scale(1.02);
        box-shadow: var(--shadow-lg);
    }

    .gallery-item img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.3s ease;
    }

    .gallery-item:hover img {
        transform: scale(1.1);
    }

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

/* PRODUCT/SERVICES MODAL */
.product-modal {
    max-width: 900px;
    width: 95%;
    animation: modalSlideIn 0.4s ease;
}

.product-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.product-image {
    border-radius: 12px;
    overflow: hidden;
    background: var(--gray);
    position: relative;
}

    .product-image img {
        width: 100%;
        height: 300px;
        object-fit: cover;
    }

.product-details h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.product-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    margin: 1rem 0;
}

.btn-new {
    padding: 1rem 2rem;
    border: none;
    border-radius: var(--radius);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary-new {
    background: var(--primary);
    color: var(--white);
}

    .btn-primary-new:hover {
        background: var(--primary-dark);
        transform: translateY(-3px);
        box-shadow: var(--shadow-lg);
    }

.empty-workspace {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--light-text);
}

.empty-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

/* LANGUAGE SWITCHER */
.language-switcher {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.lang-btn {
    flex: 1;
    padding: 0.75rem;
    background: var(--gray);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

    .lang-btn:hover {
        transform: translateY(-2px);
    }

    .lang-btn.active {
        background: var(--primary);
        color: var(--white);
        border-color: var(--primary);
        transform: translateY(-2px);
    }

/* PRODUCT IMAGE CAROUSEL */
.product-carousel {
    position: relative;
    height: 350px;
    overflow: hidden;
    border-radius: 12px;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease;
    height: 100%;
}

.carousel-slide {
    min-width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gray);
}

    .carousel-slide img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.carousel-nav {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

    .carousel-dot:hover {
        transform: scale(1.2);
    }

    .carousel-dot.active {
        background: white;
        transform: scale(1.3);
    }

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

    .carousel-btn:hover {
        background: rgba(0,0,0,0.7);
        transform: translateY(-50%) scale(1.1);
    }

.carousel-prev {
    left: 1rem;
}

.carousel-next {
    right: 1rem;
}

.carousel-add-btn {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    background: var(--primary);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: var(--radius);
    cursor: pointer;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

    .carousel-add-btn:hover {
        background: var(--primary-dark);
        transform: translateY(-2px);
    }

/* SCROLL TO TOP BUTTON */
.scroll-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.2rem;
    z-index: 1000;
    opacity: 0;
    transition: all 0.3s ease;
}

    .scroll-to-top:hover {
        transform: translateY(-3px) scale(1.1);
        box-shadow: var(--shadow-lg);
    }

    .scroll-to-top.visible {
        opacity: 1;
    }

/* DYNAMIC SECTIONS */
.dynamic-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.dynamic-item {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border);
    transition: all 0.4s ease;
    position: relative;
}

    .dynamic-item:hover {
        transform: translateY(-8px) scale(1.02);
        box-shadow: var(--shadow-lg);
    }

/* Team Member Card */
.team-member {
    text-align: center;
    padding: 2rem 1.5rem;
}

.member-image {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    overflow: hidden;
    border: 4px solid var(--primary);
    transition: all 0.3s ease;
}

.dynamic-item:hover .member-image {
    transform: scale(1.1);
    border-color: var(--primary-dark);
}

.member-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.dynamic-item:hover .member-image img {
    transform: scale(1.1);
}

.member-info h4 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--dark);
}

.member-position {
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.member-description {
    color: var(--light-text);
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Product Card */
.product-card {
    text-align: center;
}

.product-image-container {
    height: 200px;
    overflow: hidden;
    position: relative;
}

    .product-image-container img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.3s ease;
    }

.dynamic-item:hover .product-image-container img {
    transform: scale(1.1);
}

.product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.dynamic-item:hover .product-overlay {
    opacity: 1;
}

.product-info {
    padding: 1.5rem;
}

    .product-info h4 {
        font-size: 1.25rem;
        margin-bottom: 0.5rem;
        color: var(--dark);
    }

.product-price {
    color: var(--primary);
    font-weight: 700;
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.product-description {
    color: var(--light-text);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.dynamic-add-btn {
    width: 100%;
    padding: 1.5rem;
    background: var(--gray);
    border: 2px dashed var(--border);
    border-radius: var(--radius);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    font-weight: 600;
    color: var(--light-text);
}

    .dynamic-add-btn:hover {
        border-color: var(--primary);
        background: rgba(37, 99, 235, 0.05);
        color: var(--primary);
        transform: translateY(-3px);
    }

.dynamic-item-actions {
    position: absolute;
    top: 1rem;
    right: 1rem;
    display: flex;
    gap: 0.5rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.dynamic-item:hover .dynamic-item-actions {
    opacity: 1;
}

/* MULTI IMAGE UPLOAD */
.multi-image-upload {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.image-thumbnail {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 1;
    cursor: pointer;
}

    .image-thumbnail img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.thumbnail-remove {
    position: absolute;
    top: 0.25rem;
    right: 0.25rem;
    background: rgba(239, 68, 68, 0.9);
    color: white;
    border: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.image-thumbnail:hover .thumbnail-remove {
    opacity: 1;
}

/* ANIMATIONS */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(20px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}



/* Add to CSS */
.product-specifications {
    margin: 1.5rem 0;
    padding: 1rem;
    background: var(--gray);
    border-radius: var(--radius);
}

.spec-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border);
}

    .spec-row:last-child {
        border-bottom: none;
    }

    .spec-row label {
        font-weight: 600;
        color: var(--dark);
        min-width: 120px;
    }

    .spec-row span {
        color: var(--text);
        flex: 1;
        text-align: right;
    }

.action-buttons-modal {
    display: flex;
    gap: 1rem;
    margin: 1.5rem 0;
}

.btn-secondary-new {
    background: var(--secondary);
    color: var(--white);
}

    .btn-secondary-new:hover {
        background: #475569;
        transform: translateY(-2px);
    }

.button-customization {
    margin-top: 2rem;
    padding: 1.5rem;
    background: var(--gray);
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

    .button-customization h4 {
        margin-bottom: 1rem;
        color: var(--dark);
    }

.customization-controls {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.control-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

    .control-group label {
        font-weight: 600;
        font-size: 0.9rem;
        color: var(--dark);
    }

    .control-group input,
    .control-group select {
        padding: 0.75rem;
        border: 1px solid var(--border);
        border-radius: var(--radius);
        font-family: inherit;
    }


/* RTL SUPPORT */
body[dir="rtl"] {
    text-align: right;
}

    body[dir="rtl"] .app-container {
        grid-template-columns: 280px 1fr;
    }

    body[dir="rtl"] .sidebar {
        border-right: 1px solid var(--border);
        border-left: none;
        text-align: right;
    }

    body[dir="rtl"] .top-bar {
        flex-direction: row;
    }

    body[dir="rtl"] .menu-nav {
        flex-direction: row;
    }

    body[dir="rtl"] .section-actions {
        flex-direction: row;
    }

    body[dir="rtl"] .action-buttons {
        flex-direction: row;
    }

    body[dir="rtl"] .components-grid {
        direction: ltr;
    }

    body[dir="rtl"] .color-grid {
        direction: ltr;
    }

    body[dir="rtl"] .toggle-group {
        direction: ltr;
    }

    body[dir="rtl"] .carousel-prev {
        left: auto;
        right: 1rem;
    }

    body[dir="rtl"] .carousel-next {
        right: auto;
        left: 1rem;
    }

    body[dir="rtl"] .carousel-add-btn {
        right: auto;
        left: 1rem;
    }

    body[dir="rtl"] .scroll-to-top {
        right: auto;
        left: 2rem;
    }

    body[dir="rtl"] .dynamic-item-actions {
        right: auto;
        left: 1rem;
    }

    body[dir="rtl"] .thumbnail-remove {
        right: auto;
        left: 0.25rem;
    }

/* RESPONSIVE */
@media (max-width: 768px) {
    .app-container {
        grid-template-columns: 1fr;
    }

    .sidebar {
        display: none;
        position: static;
        height: auto;
    }

    .mobile-menu-btn {
        display: block;
    }

    .nav-links {
        display: none;
    }

    .color-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .dynamic-grid {
        grid-template-columns: 1fr;
    }

    .product-grid {
        grid-template-columns: 1fr;
    }

    body[dir="rtl"] .app-container {
        grid-template-columns: 1fr;
    }
}

