:root {
    --primary: #6C63FF;
    /* لون بنفسجي جذاب */
    --secondary: #FF6584;
    /* لون وردي مميز */
    --accent: #42E2B8;
    /* لون أخضر فاتح */
    --dark: #2F2E41;
    /* لون داكن للنصوص */
    --light: #F9F9F9;
    /* خلفية فاتحة */
    --gradient: linear-gradient(135deg, var(--primary), var(--secondary));
}

/* تأثيرات حركية */
@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

/* تصميم الصور المخصصة */
.server-node {
    background: white;
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(108, 99, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.server-node::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--gradient);
}

.server-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 15px;
    background: var(--light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    color: var(--primary);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    animation: float 4s ease-in-out infinite;
}

/* نص متحرك */
.typing-text {
    border-right: 3px solid var(--primary);
    white-space: nowrap;
    overflow: hidden;
    display: inline-block;
    animation: typing 3s steps(30, end), blink-caret 0.75s step-end infinite;
}

/* أزرار جذابة */
.cta-button {
    background: var(--gradient);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(108, 99, 255, 0.3);
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(108, 99, 255, 0.4);
}

/* صور مخصصة */
.feature-card .icon-img {
    width: 100px;
    height: 100px;
    object-fit: contain;
    margin-bottom: 20px;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.1));
    transition: all 0.3s ease;
}

.feature-card:hover .icon-img {
    transform: rotate(10deg) scale(1.1);
    filter: drop-shadow(0 15px 30px rgba(108, 99, 255, 0.3));
}

/* صور SVG مخصصة (يمكن استبدالها بصور حقيقية) */
.client-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 24px;
    margin-left: 15px;
}

/* Server Section */
.server-section {
    background-color: var(--light);
}

.server-diagram {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.main-server {
    width: 60%;
    max-width: 500px;
    text-align: center;
    margin-bottom: 40px;
    z-index: 2;
}

.server-cluster {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
    z-index: 2;
}

.server-node {
    background: white;
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--shadow);
    text-align: center;
    width: 250px;
    transition: all 0.3s ease;
}

.server-node:hover {
    transform: scale(1.05);
}

.server-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.connections {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--primary), var(--secondary));
    z-index: 1;
}

.connection-dots {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    background: var(--gradient);
    border-radius: 50%;
    box-shadow: 0 0 0 10px rgba(108, 99, 255, 0.2);
}

/* Features Section */
.features-section {
    background-color: white;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 60px;
    position: relative;
}

.section-title::after {
    content: "";
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--gradient);
    border-radius: 2px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-card {
    background: var(--light);
    border-radius: var(--border-radius);
    padding: 30px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--primary);
}

.animated-card {
    opacity: 0;
    animation: fadeInUp 1s ease-out forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animated-card:nth-child(1) {
    animation-delay: 0.2s;
}

.animated-card:nth-child(2) {
    animation-delay: 0.4s;
}

.animated-card:nth-child(3) {
    animation-delay: 0.6s;
}

/* Global Styles */
:root {
    --primary: #6C63FF;
    --primary-light: #8B85FF;
    --secondary: #FF6584;
    --accent: #42E2B8;
    --dark: #2F2E41;
    --light: #F9F9F9;
    --gray: #E5E5E5;
    --gradient: linear-gradient(135deg, var(--primary), var(--secondary));
    --shadow: 0 10px 30px rgba(108, 99, 255, 0.2);
    --border-radius: 16px;
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--light);
    color: var(--dark);
    line-height: 1.6;
}

.app.rtl {
    direction: rtl;
    text-align: right;
}

.app.ltr {
    direction: ltr;
    text-align: left;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 80px 0;
}

/* Header Styles */
.header {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    padding: 15px 0;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-icon {
    font-size: 28px;
}

.lang-btn {
    background: var(--gradient);
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 50px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
}

.lang-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

/* Hero Section */
.hero {
    padding-top: 120px;
    background: var(--light);
}

.hero .container {
    display: flex;
    align-items: center;
    gap: 50px;
}

.hero-content {
    flex: 1;
}

.hero-image {
    flex: 1;
    position: relative;
    min-height: 400px;
}

.hero-title {
    font-size: 3rem;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-description {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 30px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
}

.cta-button {
    background: var(--gradient);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.secondary-button {
    background: white;
    color: var(--primary);
    border: 2px solid var(--primary);
    padding: 12px 30px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cta-button:hover,
.secondary-button:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

/* Floating Elements Animation */
.floating-elements {
    position: relative;
    width: 100%;
    height: 100%;
}

.floating-element {
    position: absolute;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    width: 80px;
    height: 80px;
}

.element-1 {
    top: 0;
    left: 0;
    animation: float 6s ease-in-out infinite;
}

.element-2 {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120px;
    height: 120px;
    font-size: 3rem;
    animation: float 8s ease-in-out infinite 2s;
}

.element-3 {
    bottom: 0;
    right: 0;
    animation: float 7s ease-in-out infinite 1s;
}

/* Typing Animation */
.typing-text {
    display: inline-block;
    overflow: hidden;
    border-right: 3px solid var(--primary);
    white-space: nowrap;
    animation: typing 3.5s steps(40, end), blink-caret 0.75s step-end infinite;
}

/* Pulse Animation */
.pulse-animation {
    animation: pulse 2s infinite;
}

/* Keyframes */
@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

@keyframes typing {
    from {
        width: 0
    }

    to {
        width: 100%
    }
}

@keyframes blink-caret {

    from,
    to {
        border-color: transparent
    }

    50% {
        border-color: var(--primary);
    }
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero .container {
        flex-direction: column;
    }

    .hero-content,
    .hero-image {
        width: 100%;
        text-align: center;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-title {
        font-size: 2rem;
    }
}

/* Security Section Styles */
.security-section {
    background-color: var(--light);
    position: relative;
    overflow: hidden;
}

.security-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" fill="%236C63FF10"><path d="M30,10L50,30L70,10L90,30L70,50L90,70L70,90L50,70L30,90L10,70L30,50L10,30L30,10Z"/></svg>');
    z-index: 0;
}

.security-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    position: relative;
    z-index: 1;
}

.security-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    text-align: center;
}

.security-card:hover {
    transform: translateY(-10px);
}

.security-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    color: var(--primary);
}

.security-badge {
    margin-top: 50px;
    background: var(--gradient);
    color: white;
    padding: 15px 30px;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: bold;
}

.shield-icon {
    font-size: 1.5rem;
    animation: pulse 1.5s infinite;
}

/* Testimonials Section Styles */
.testimonials-section {
    background-color: white;
}

.testimonials-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.testimonial-card {
    background: var(--light);
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--shadow);
    position: relative;
}

.quote-icon {
    font-size: 4rem;
    color: var(--primary-light);
    position: absolute;
    top: 10px;
    right: 20px;
    opacity: 0.3;
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.client-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.client-avatar {
    width: 50px;
    height: 50px;
    background: var(--gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 1.2rem;
}

.client-details h4 {
    margin-bottom: 5px;
}

/* Footer Styles */
.main-footer {
    background-color: var(--dark);
    color: white;
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    display: flex;
    flex-direction: column;
}

.footer-logo .logo-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.footer-logo h3 {
    margin-bottom: 10px;
}

.footer-links h4,
.footer-contact h4 {
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: var(--accent);
    padding-right: 5px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    color: white;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    transform: translateY(-3px);
    color: var(--accent);
}

/* تصميم بطاقة المنتج */
.preview-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 2rem;
}

.preview-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
}

/* شريط الحالة */
.product-status-banner {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 1.5rem;
    background: #f8f9fa;
    border-bottom: 1px solid #eee;
}

.in-stock-badge {
    background: #28a745;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: bold;
}

.out-of-stock-badge {
    background: #dc3545;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: bold;
}

.product-id {
    color: #6c757d;
    font-size: 0.85rem;
}

/* صورة المنتج */
.product-image-container {
    position: relative;
    padding: 1.5rem;
    border-bottom: 1px solid #eee;
}

.product-image {
    position: relative;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    border-radius: 8px;
    overflow: hidden;
}

.product-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.product-image:hover img {
    transform: scale(1.03);
}

.image-zoom-effect {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, transparent 60%, rgba(0, 0, 0, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-image:hover .image-zoom-effect {
    opacity: 1;
}

.placeholder-icon svg {
    width: 48px;
    height: 48px;
    fill: #6c757d;
    margin-bottom: 1rem;
}

/* التصغيرات */
.image-thumbnails {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
    justify-content: center;
}

.thumbnail {
    width: 50px;
    height: 50px;
    border-radius: 4px;
    background: #eee;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.2s ease;
}

.thumbnail:hover {
    border-color: #007bff;
}

.thumbnail.active {
    border-color: #007bff;
    background: #e7f1ff;
}

/* تفاصيل المنتج */
.product-details {
    padding: 1.5rem;
}

.product-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.product-category {
    background: #e9ecef;
    color: #495057;
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.85rem;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.stars {
    color: #ffc107;
    font-size: 1rem;
}

.reviews {
    color: #6c757d;
    font-size: 0.85rem;
}

.product-name {
    font-size: 1.5rem;
    margin: 0.5rem 0 1rem;
    color: #212529;
}

/* السعر */
.product-price-container {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 1rem 0;
}

.current-price {
    font-size: 1.75rem;
    font-weight: bold;
    color: #dc3545;
}

.old-price {
    font-size: 1.25rem;
    text-decoration: line-through;
    color: #6c757d;
}

.discount-badge {
    background: #dc3545;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: bold;
}

/* وصف المنتج */
.product-description {
    margin: 1.5rem 0;
    line-height: 1.6;
}

.product-description h4 {
    margin-bottom: 0.5rem;
    color: #495057;
    font-size: 1.1rem;
}

/* أزرار الإجراءات */
.product-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.btn-add-to-cart {
    flex: 1;
    background: #28a745;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-add-to-cart:hover {
    background: #218838;
}

.btn-wishlist {
    width: 48px;
    background: #f8f9fa;
    color: #6c757d;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-wishlist:hover {
    background: #e9ecef;
    color: #dc3545;
}

.cart-icon,
.heart-icon {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

/* أزرار التحكم */
.prevview-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.5rem;
}

.btn-edit {
    background: #007bff;
    color: white;
}

.btn-edit:hover {
    background: #0069d9;
}

.btn-cancel {
    background: #f8f9fa;
    color: #6c757d;
    border: 1px solid #dee2e6;
}

.btn-cancel:hover {
    background: #e9ecef;
}

.new-product-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
}

.page-title {
    text-align: center;
    margin-bottom: 2rem;
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.title-part {
    opacity: 0.5;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 4px;
}

.title-part.active {
    opacity: 1;
    background-color: #f0f8ff;
    color: #0066cc;
    font-weight: bold;
}

.form-toggle {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
    background: #f5f5f5;
    border-radius: 50px;
    padding: 5px;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

.toggle-btn {
    border: none;
    background: transparent;
    padding: 0.75rem 1.5rem;
    cursor: pointer;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.toggle-btn.active {
    background: #0066cc;
    color: white;
    box-shadow: 0 4px 8px rgba(0, 102, 204, 0.2);
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.form-section {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.section-title {
    margin-top: 0;
    margin-bottom: 1.5rem;
    color: #0066cc;
    border-bottom: 1px solid #eee;
    padding-bottom: 0.5rem;
}

.floating-input {
    position: relative;
    margin-bottom: 1.5rem;
}

.floating-input input,
.floating-input textarea,
.floating-input select {
    width: 100%;
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background-color: transparent;
    z-index: 1;
    position: relative;
}

.floating-input textarea {
    min-height: 100px;
    resize: vertical;
}

.floating-input select {
    appearance: none;
    padding-right: 2.5rem;
}

.select-wrapper::after {
    content: "▼";
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
    z-index: 0;
}

.floating-input label {
    position: absolute;
    top: 1rem;
    left: 1rem;
    color: #999;
    transition: all 0.3s ease;
    background: white;
    padding: 0 0.5rem;
    z-index: 2;
}

.floating-input input:focus,
.floating-input textarea:focus,
.floating-input select:focus {
    outline: none;
    border-color: #0066cc;
    box-shadow: 0 0 0 2px rgba(0, 102, 204, 0.2);
}

.floating-input input:focus+label,
.floating-input textarea:focus+label,
.floating-input select:focus+label,
.floating-input input:not(:placeholder-shown)+label,
.floating-input textarea:not(:placeholder-shown)+label,
.floating-input select:not([value=""])+label {
    top: -0.5rem;
    left: 0.8rem;
    font-size: 0.8rem;
    color: #0066cc;
    z-index: 2;
}

.highlight {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 2px;
    width: 0;
    background-color: #0066cc;
    transition: all 0.3s ease;
}

.floating-input input:focus~.highlight,
.floating-input textarea:focus~.highlight,
.floating-input select:focus~.highlight {
    width: 100%;
}

.checkbox-container {
    margin-top: 1.5rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    user-select: none;
}

.checkbox-label input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    display: inline-block;
    width: 20px;
    height: 20px;
    background-color: #eee;
    border-radius: 4px;
    margin-left: 10px;
    position: relative;
    transition: all 0.3s ease;
}

.checkbox-label:hover input~.checkmark {
    background-color: #ddd;
}

.checkbox-label input:checked~.checkmark {
    background-color: #0066cc;
}

.checkmark::after {
    content: "";
    position: absolute;
    display: none;
    left: 7px;
    top: 3px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.checkbox-label input:checked~.checkmark::after {
    display: block;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #eee;
}

.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-save {
    background-color: #0066cc;
    color: white;
}

.btn-save:hover {
    background-color: #0052a3;
    box-shadow: 0 4px 8px rgba(0, 102, 204, 0.3);
}

.btn-save.saving {
    background-color: #004080;
    cursor: not-allowed;
}

.btn-reset {
    background-color: #f5f5f5;
    color: #666;
}

.btn-reset:hover {
    background-color: #e0e0e0;
}

.btn-cancel {
    background-color: transparent;
    color: #666;
    border: 1px solid #ddd;
}

.btn-cancel:hover {
    background-color: #f5f5f5;
}

.btn-edit {
    background-color: #ff9800;
    color: white;
}

.btn-edit:hover {
    background-color: #e68a00;
}

.spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
    margin-right: 8px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.save-success {
    margin-top: 1.5rem;
    padding: 1rem;
    background-color: #e8f5e9;
    color: #2e7d32;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.checkmark__circle {
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
    stroke-width: 2;
    stroke-miterlimit: 10;
    stroke: #2e7d32;
    fill: none;
    animation: stroke 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.checkmark__check {
    transform-origin: 50% 50%;
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    stroke: #2e7d32;
    stroke-width: 2;
    animation: stroke 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.8s forwards;
}

@keyframes stroke {
    100% {
        stroke-dashoffset: 0;
    }
}

.product-preview {
    animation: slideIn 0.5s ease-out;
}

@keyframes slideIn {
    from {
        transform: translateY(20px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.preview-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.product-image {
    height: 300px;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.product-image.placeholder {
    color: #999;
    font-size: 1.2rem;
}

.product-details {
    padding: 2rem;
}

.product-name {
    margin-top: 0;
    color: #0066cc;
    font-size: 1.8rem;
}

.product-price {
    font-size: 1.5rem;
    font-weight: bold;
    margin: 1rem 0;
    color: #333;
}

.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: #e3f2fd;
    color: #0066cc;
    border-radius: 50px;
    font-size: 0.9rem;
}

.product-description {
    margin: 1.5rem 0;
    line-height: 1.6;
}

.product-description h4 {
    margin-bottom: 0.5rem;
    color: #666;
}

.stock-status {
    font-weight: bold;
    margin-top: 1rem;
    padding: 0.5rem;
    border-radius: 4px;
    display: inline-block;
}

.in-stock {
    background: #e8f5e9;
    color: #2e7d32;
}

.out-of-stock {
    background: #ffebee;
    color: #c62828;
}

.preview-actions {
    margin-top: 2rem;
    text-align: center;
}

@media (max-width: 768px) {
    .form-grid {
        grid-template-columns: 1fr;
    }

    .form-actions {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }
}

/* التصميم العام */
.new-product-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #2d3748;
}

.page-title {
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
    color: #1a365d;
    display: flex;
    flex-direction: column;
}

.page-subtitle {
    font-size: 1rem;
    color: #718096;
    margin-top: 0.5rem;
}

.icon {
    width: 20px;
    height: 20px;
    fill: currentColor;
    margin-left: 0.5rem;
}

/* الكروت والأقسام */
.form-section {
    margin-bottom: 1.5rem;
}

.card {
    background: #fff;
    border-radius: 0.75rem;
    padding: 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.2s ease;
}

.card:hover {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.section-title {
    font-size: 1.25rem;
    margin-top: 0;
    margin-bottom: 1.5rem;
    color: #2b6cb0;
    display: flex;
    align-items: center;
}

/* حقول الإدخال */
.floating-input {
    position: relative;
    margin-bottom: 1.5rem;
}

.floating-input input,
.floating-input textarea,
.floating-input select {
    width: 100%;
    padding: 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: all 0.2s ease;
    background-color: transparent;
}

.floating-input.textarea textarea {
    min-height: 120px;
    resize: vertical;
}

.floating-input label {
    position: absolute;
    top: 1rem;
    left: 1rem;
    color: #718096;
    transition: all 0.2s ease;
    background: #fff;
    padding: 0 0.5rem;
    pointer-events: none;
}

.floating-input input:focus,
.floating-input textarea:focus,
.floating-input select:focus {
    outline: none;
    border-color: #4299e1;
    box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.2);
}

.floating-input input:focus+label,
.floating-input textarea:focus+label,
.floating-input select:focus+label,
.floating-input input:not(:placeholder-shown)+label,
.floating-input textarea:not(:placeholder-shown)+label,
.floating-input select:not([value=""])+label {
    top: -0.5rem;
    left: 0.8rem;
    font-size: 0.75rem;
    color: #4299e1;
}

.currency {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #718096;
}

/* تصميم الـ Toggle */
.toggle-container {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
}

.toggle-container.small {
    margin-bottom: 0;
}

.toggle-label {
    margin-right: 1rem;
    font-weight: 500;
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}

.toggle-switch .toggle-input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #e2e8f0;
    transition: .4s;
    border-radius: 34px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

.toggle-input:checked+.toggle-slider {
    background-color: #4299e1;
}

.toggle-input:checked+.toggle-slider:before {
    transform: translateX(26px);
}

.toggle-labels {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 0.5rem;
    pointer-events: none;
}

.toggle-label-left,
.toggle-label-right {
    font-size: 0.75rem;
    color: #a0aec0;
    transition: color 0.2s ease;
}

.toggle-label-left.active,
.toggle-label-right.active {
    color: white;
    font-weight: 500;
}

/* رفع الصور */
.image-upload-container {
    margin-bottom: 1.5rem;
}

.upload-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    border: 2px dashed #cbd5e0;
    border-radius: 0.5rem;
    background-color: #f8fafc;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.upload-area:hover {
    border-color: #4299e1;
    background-color: #ebf8ff;
}

.upload-icon {
    width: 48px;
    height: 48px;
    fill: #a0aec0;
    margin-bottom: 1rem;
}

.hidden-input {
    position: absolute;
    width: 0.1px;
    height: 0.1px;
    opacity: 0;
    overflow: hidden;
    z-index: -1;
}

.upload-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background-color: #e2e8f0;
}

.progress-bar {
    height: 100%;
    width: 0;
    background-color: #4299e1;
    animation: progress 2s ease-in-out infinite;
}

@keyframes progress {
    0% {
        width: 0;
    }

    50% {
        width: 100%;
    }

    100% {
        width: 0;
    }
}

.image-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.image-preview-item {
    position: relative;
    border-radius: 0.5rem;
    overflow: hidden;
    height: 120px;
}

.image-preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.remove-image {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    width: 24px;
    height: 24px;
    background-color: rgba(0, 0, 0, 0.5);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
}

.remove-image svg {
    width: 14px;
    height: 14px;
    fill: white;
}

/* البحث عن الأقسام */
.searchable-select {
    position: relative;
    margin-bottom: 1.5rem;
}

.search-input {
    position: relative;
}

.search-input input {
    width: 100%;
    padding: 1rem 1rem 1rem 2.5rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    font-size: 1rem;
}

.search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    fill: #a0aec0;
}

.search-results {
    position: absolute;
    width: 100%;
    max-height: 200px;
    overflow-y: auto;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 0 0 0.5rem 0.5rem;
    z-index: 10;
    margin-top: -0.5rem;
}

.search-item {
    padding: 0.75rem 1rem;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.search-item:hover {
    background-color: #ebf8ff;
}

.search-item.selected {
    background-color: #bee3f8;
    color: #2b6cb0;
}

.selected-category {
    margin-top: 1rem;
    font-size: 0.875rem;
}

.category-badge {
    display: inline-flex;
    align-items: center;
    background-color: #ebf8ff;
    color: #2b6cb0;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-weight: 500;
}

.category-badge button {
    background: none;
    border: none;
    margin-left: 0.5rem;
    cursor: pointer;
    padding: 0;
    display: flex;
}

.category-badge svg {
    width: 14px;
    height: 14px;
    fill: #2b6cb0;
}

/* العلامات */
.tags-input {
    margin-bottom: 1.5rem;
}

.tags-input label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    padding: 0.5rem;
}

.tag {
    display: inline-flex;
    align-items: center;
    background-color: #ebf8ff;
    color: #2b6cb0;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.875rem;
}

.tag button {
    background: none;
    border: none;
    margin-left: 0.5rem;
    cursor: pointer;
    padding: 0;
    display: flex;
}

.tag svg {
    width: 12px;
    height: 12px;
    fill: #2b6cb0;
}

.tags-container input {
    flex: 1;
    min-width: 100px;
    border: none;
    outline: none;
    padding: 0.5rem;
}

/* الإعدادات */
.settings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
}

.setting-item {
    margin-bottom: 1rem;
}

.setting-item label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    font-size: 0.875rem;
}

.setting-item input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
}

/* أزرار التحكم */
.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e2e8f0;
}

.btn {
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-primary {
    background-color: #4299e1;
    color: white;
    border: none;
}

.btn-primary:hover {
    background-color: #3182ce;
}

.btn-secondary {
    background-color: #e2e8f0;
    color: #4a5568;
    border: none;
}

.btn-secondary:hover {
    background-color: #cbd5e0;
}

.btn-outline {
    background-color: transparent;
    color: #4299e1;
    border: 1px solid #4299e1;
}

.btn-outline:hover {
    background-color: #ebf8ff;
}

.spinner {
    animation: rotate 1s linear infinite;
    width: 20px;
    height: 20px;
}

.spinner circle {
    stroke: white;
    stroke-linecap: round;
    animation: dash 1.5s ease-in-out infinite;
}

@keyframes rotate {
    100% {
        transform: rotate(360deg);
    }
}

@keyframes dash {
    0% {
        stroke-dasharray: 1, 150;
        stroke-dashoffset: 0;
    }

    50% {
        stroke-dasharray: 90, 150;
        stroke-dashoffset: -35;
    }

    100% {
        stroke-dasharray: 90, 150;
        stroke-dashoffset: -124;
    }
}

/* التصميم المتجاوب */
@media (max-width: 768px) {
    .dual-input {
        flex-direction: column;
    }

    .form-actions {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }
}

/* التصميم العام */
:root {
    --primary: #4299e1;
    --primary-dark: #3182ce;
    --secondary: #e2e8f0;
    --success: #48bb78;
    --danger: #f56565;
    --warning: #ed8936;
    --info: #4299e1;
    --light: #f7fafc;
    --dark: #2d3748;
    --gray: #a0aec0;
    --gray-light: #edf2f7;
    --white: #ffffff;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--dark);
    background-color: #f8fafc;
}

.new-product-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.page-title {
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
    color: #1a365d;
    display: flex;
    flex-direction: column;
}

.page-subtitle {
    font-size: 1rem;
    color: #718096;
    margin-top: 0.5rem;
}

.icon {
    width: 20px;
    height: 20px;
    fill: currentColor;
    margin-left: 0.5rem;
}

/* الكروت والأقسام */
.form-section {
    margin-bottom: 1.5rem;
}

.card {
    background: var(--white);
    border-radius: 0.75rem;
    padding: 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.2s ease;
}

.card:hover {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.section-title {
    font-size: 1.25rem;
    margin-top: 0;
    margin-bottom: 1.5rem;
    color: var(--primary-dark);
    display: flex;
    align-items: center;
}

/* حقول الإدخال */
.floating-input {
    position: relative;
    margin-bottom: 1.5rem;
}

.floating-input input,
.floating-input textarea,
.floating-input select {
    width: 100%;
    padding: 1rem;
    border: 1px solid var(--secondary);
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: all 0.2s ease;
    background-color: transparent;
}

.floating-input.textarea textarea {
    min-height: 120px;
    resize: vertical;
}

.floating-input label {
    position: absolute;
    top: 1rem;
    left: 1rem;
    color: var(--gray);
    transition: all 0.2s ease;
    background: var(--white);
    padding: 0 0.5rem;
    pointer-events: none;
}



/* التصميم العام */
:root {
    --primary: #4299e1;
    --primary-dark: #3182ce;
    --secondary: #e2e8f0;
    --success: #48bb78;
    --danger: #f56565;
    --warning: #ed8936;
    --info: #4299e1;
    --light: #f7fafc;
    --dark: #2d3748;
    --gray: #a0aec0;
    --gray-light: #edf2f7;
    --white: #ffffff;
}
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--dark);
    background-color: #f8fafc;
}

.new-product-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.page-title {
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
    color: #1a365d;
    display: flex;
    flex-direction: column;
}

.page-subtitle {
    font-size: 1rem;
    color: #718096;
    margin-top: 0.5rem;
}

.icon {
    width: 20px;
    height: 20px;
    fill: currentColor;
    margin-left: 0.5rem;
}

/* الكروت والأقسام */
.form-section {
    margin-bottom: 1.5rem;
}

.card {
    background: var(--white);
    border-radius: 0.75rem;
    padding: 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.2s ease;
}

.card:hover {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.section-title {
    font-size: 1.25rem;
    margin-top: 0;
    margin-bottom: 1.5rem;
    color: var(--primary-dark);
    display: flex;
    align-items: center;
}

/* حقول الإدخال */
.floating-input {
    position: relative;
    margin-bottom: 1.5rem;
}

.floating-input input,
.floating-input textarea,
.floating-input select {
    width: 100%;
    padding: 1rem;
    border: 1px solid var(--secondary);
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: all 0.2s ease;
    background-color: transparent;
}

.floating-input.textarea textarea {
    min-height: 120px;
    resize: vertical;
}

.floating-input label {
    position: absolute;
    top: 1rem;
    left: 1rem;
    color: var(--gray);
    transition: all 0.2s ease;
    background: var(--white);
    padding: 0 0.5rem;
    pointer-events: none;
}

.floating-input input:focus,
.floating-input textarea:focus,
.floating-input select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.2);
}

.floating-input input:focus+label,
.floating-input textarea:focus+label,
.floating-input select:focus+label,
.floating-input input:not(:placeholder-shown)+label,
.floating-input textarea:not(:placeholder-shown)+label,
.floating-input select:not([value=""])+label {
    top: -0.5rem;
    left: 0.8rem;
    font-size: 0.75rem;
    color: var(--primary);
}

.currency {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray);
}

/* تصميم الـ Toggle */
.toggle-container {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
}

.toggle-container.small {
    margin-bottom: 0;
}

.toggle-label {
    margin-right: 1rem;
    font-weight: 500;
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}

.toggle-switch .toggle-input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--secondary);
    transition: .4s;
    border-radius: 34px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: var(--white);
    transition: .4s;
    border-radius: 50%;
}

.toggle-input:checked+.toggle-slider {
    background-color: var(--primary);
}

.toggle-input:checked+.toggle-slider:before {
    transform: translateX(26px);
}

.toggle-labels {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 0.5rem;
    pointer-events: none;
}

.toggle-label-left,
.toggle-label-right {
    font-size: 0.75rem;
    color: var(--gray);
    transition: color 0.2s ease;
}

.toggle-label-left.active,
.toggle-label-right.active {
    color: var(--white);
    font-weight: 500;
}

/* رفع الصور */
.image-upload-container {
    margin-bottom: 1.5rem;
}

.upload-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    border: 2px dashed #cbd5e0;
    border-radius: 0.5rem;
    background-color: #f8fafc;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.upload-area:hover {
    border-color: var(--primary);
    background-color: #ebf8ff;
}

.upload-icon {
    width: 48px;
    height: 48px;
    fill: var(--gray);
    margin-bottom: 1rem;
}

.hidden-input {
    position: absolute;
    width: 0.1px;
    height: 0.1px;
    opacity: 0;
    overflow: hidden;
    z-index: -1;
}

.upload-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background-color: var(--secondary);
}

.progress-bar {
    height: 100%;
    width: 0;
    background-color: var(--primary);
    animation: progress 2s ease-in-out infinite;
}

@keyframes progress {
    0% {
        width: 0;
    }

    50% {
        width: 100%;
    }

    100% {
        width: 0;
    }
}

.image-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.image-preview-item {
    position: relative;
    border-radius: 0.5rem;
    overflow: hidden;
    height: 120px;
}

.image-preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.remove-image {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    width: 24px;
    height: 24px;
    background-color: rgba(0, 0, 0, 0.5);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
}

.remove-image svg {
    width: 14px;
    height: 14px;
    fill: var(--white);
}

/* البحث عن الأقسام */
.searchable-select {
    position: relative;
    margin-bottom: 1.5rem;
}

.search-input {
    position: relative;
}

.search-input input {
    width: 100%;
    padding: 1rem 1rem 1rem 2.5rem;
    border: 1px solid var(--secondary);
    border-radius: 0.5rem;
    font-size: 1rem;
}

.search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    fill: var(--gray);
}

.search-results {
    position: absolute;
    width: 100%;
    max-height: 200px;
    overflow-y: auto;
    background: var(--white);
    border: 1px solid var(--secondary);
    border-radius: 0 0 0.5rem 0.5rem;
    z-index: 10;
    margin-top: -0.5rem;
}

.search-item {
    padding: 0.75rem 1rem;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.search-item:hover {
    background-color: #ebf8ff;
}

.search-item.selected {
    background-color: #bee3f8;
    color: var(--primary-dark);
}

.selected-category {
    margin-top: 1rem;
    font-size: 0.875rem;
}

.category-badge {
    display: inline-flex;
    align-items: center;
    background-color: #ebf8ff;
    color: var(--primary-dark);
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-weight: 500;
}

.category-badge button {
    background: none;
    border: none;
    margin-left: 0.5rem;
    cursor: pointer;
    padding: 0;
    display: flex;
}

.category-badge svg {
    width: 14px;
    height: 14px;
    fill: var(--primary-dark);
}

/* العلامات */
.tags-input {
    margin-bottom: 1.5rem;
}

.tags-input label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
    border: 1px solid var(--secondary);
    border-radius: 0.5rem;
    padding: 0.5rem;
}

.tag {
    display: inline-flex;
    align-items: center;
    background-color: #ebf8ff;
    color: var(--primary-dark);
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.875rem;
}

.tag button {
    background: none;
    border: none;
    margin-left: 0.5rem;
    cursor: pointer;
    padding: 0;
    display: flex;
}

.tag svg {
    width: 12px;
    height: 12px;
    fill: var(--primary-dark);
}

.tags-container input {
    flex: 1;
    min-width: 100px;
    border: none;
    outline: none;
    padding: 0.5rem;
}

/* الإعدادات */
.settings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
}

.setting-item {
    margin-bottom: 1rem;
}

.setting-item label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    font-size: 0.875rem;
}

.setting-item input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--secondary);
    border-radius: 0.5rem;
}

/* أزرار التحكم */
.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--secondary);
}

.btn {
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--white);
    border: none;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
}

.btn-secondary {
    background-color: var(--secondary);
    color: #4a5568;
    border: none;
}

.btn-secondary:hover {
    background-color: #cbd5e0;
}

.btn-outline {
    background-color: transparent;
    color: var(--primary);
    border: 1px solid var(--primary);
}

.btn-outline:hover {
    background-color: #ebf8ff;
}

.spinner {
    animation: rotate 1s linear infinite;
    width: 20px;
    height: 20px;
}

.spinner circle {
    stroke: var(--white);
    stroke-linecap: round;
    animation: dash 1.5s ease-in-out infinite;
}

@keyframes rotate {
    100% {
        transform: rotate(360deg);
    }
}

@keyframes dash {
    0% {
        stroke-dasharray: 1, 150;
        stroke-dashoffset: 0;
    }

    50% {
        stroke-dasharray: 90, 150;
        stroke-dashoffset: -35;
    }

    100% {
        stroke-dasharray: 90, 150;
        stroke-dashoffset: -124;
    }
}

/* معاينة المنتج */
.product-preview-container {
    background: var(--white);
    border-radius: 0.75rem;
    padding: 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.preview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.preview-header h3 {
    font-size: 1.5rem;
    color: var(--dark);
}

.btn-edit {
    background-color: var(--primary);
    color: var(--white);
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 0.25rem;
    cursor: pointer;
}

.btn-edit:hover {
    background-color: var(--primary-dark);
}

.preview-card {
    border: 1px solid var(--secondary);
    border-radius: 0.5rem;
    overflow: hidden;
}

.product-status-banner {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    background-color: var(--gray-light);
    border-bottom: 1px solid var(--secondary);
}

.in-stock-badge {
    background-color: var(--success);
    color: var(--white);
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
}

.out-of-stock-badge {
    background-color: var(--danger);
    color: var(--white);
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
}

.product-id {
    color: var(--gray);
    font-size: 0.875rem;
}

.product-image-container {
    padding: 1rem;
    border-bottom: 1px solid var(--secondary);
}

.product-image {
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--gray-light);
    border-radius: 0.25rem;
    overflow: hidden;
}

.product-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.product-image.placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--gray);
}

.placeholder-icon svg {
    width: 48px;
    height: 48px;
    fill: var(--gray);
    margin-bottom: 1rem;
}

.image-thumbnails {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

.thumbnail {
    width: 60px;
    height: 60px;
    border-radius: 0.25rem;
    overflow: hidden;
    border: 1px solid var(--secondary);
    cursor: pointer;
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-details {
    padding: 1.5rem;
}

.product-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.product-category {
    background-color: var(--secondary);
    color: var(--dark);
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.875rem;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.stars {
    color: var(--warning);
    font-size: 1rem;
}

.reviews {
    color: var(--gray);
    font-size: 0.875rem;
}

.product-name {
    font-size: 1.5rem;
    margin: 0.5rem 0;
    color: var(--dark);
}

.product-name-en {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--gray);
    font-weight: normal;
}

.product-price-container {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 1rem 0;
}

.current-price {
    font-size: 1.75rem;
    font-weight: bold;
    color: var(--danger);
}

.old-price {
    font-size: 1.25rem;
    text-decoration: line-through;
    color: var(--gray);
}

.discount-badge {
    background-color: var(--danger);
    color: var(--white);
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
}

.product-description {
    margin: 1.5rem 0;
    line-height: 1.6;
}

.product-description h4 {
    margin-bottom: 0.5rem;
    color: var(--dark);
    font-size: 1.1rem;
}

.product-tags {
    margin: 1.5rem 0;
}

.product-tags h4 {
    margin-bottom: 0.5rem;
    color: var(--dark);
    font-size: 1.1rem;
}

.tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tags-list .tag {
    background-color: var(--secondary);
    color: var(--dark);
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.875rem;
}

.product-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.btn-add-to-cart {
    flex: 1;
    background-color: var(--success);
    color: var(--white);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-add-to-cart:hover {
    background-color: #38a169;
}

.btn-wishlist {
    width: 48px;
    background-color: var(--secondary);
    color: var(--gray);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-wishlist:hover {
    background-color: #e2e8f0;
    color: var(--danger);
}

.cart-icon,
.heart-icon {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

/* التصميم المتجاوب */
@media (max-width: 768px) {
    .dual-input {
        flex-direction: column;
    }

    .form-actions {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }
}