/* متجر حناين بوتيك - الألوان الصحراوية/الرملية */

/* الألوان الأساسية من الصورة */
:root {
    --cream-light: #F5F1E8;      /* البيج الكريمي الفاتح */
    --sand-warm: #E8DCC6;        /* البيج الرملي الدافئ */
    --tan-dark: #8B7355;         /* البني الداكن/التان */
    --gold-shine: #D4AF37;       /* الذهبي اللامع */
    --white: #FFFFFF;
    --text-dark: #5C4A37;        /* نص داكن */
    --shadow: rgba(92, 74, 55, 0.1);
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(180deg, var(--cream-light) 0%, var(--sand-warm) 100%);
    color: var(--text-dark);
    line-height: 1.6;
    min-height: 100vh;
    direction: rtl;
}

/* الهيدر */
header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 15px var(--shadow);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    background: linear-gradient(135deg, var(--gold-shine) 0%, #B8860B 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
    font-family: 'Arial', sans-serif;
    letter-spacing: 1px;
    white-space: nowrap;
    flex-shrink: 0;
}

/* زر القائمة للهاتف */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-dark);
    border-radius: 3px;
    transition: all 0.3s;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

.main-nav {
    flex: 1;
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-end;
    margin: 0;
    padding: 0;
}

.main-nav ul li {
    margin: 0;
}

.main-nav ul li a {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
    padding: 0.6rem 1rem;
    border-radius: 8px;
    display: block;
    font-size: 0.95rem;
    white-space: nowrap;
}

.main-nav ul li a:hover {
    color: var(--gold-shine);
    background: rgba(212, 175, 55, 0.1);
    transform: translateY(-2px);
}

.btn-register {
    background: linear-gradient(135deg, var(--gold-shine), #B8860B) !important;
    color: white !important;
    font-weight: 600 !important;
}

.btn-register:hover {
    background: linear-gradient(135deg, #B8860B, var(--gold-shine)) !important;
    color: white !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
}

.btn-logout {
    color: #dc3545 !important;
}

.btn-logout:hover {
    background: rgba(220, 53, 69, 0.1) !important;
    color: #dc3545 !important;
}

.cart-icon {
    position: relative;
    font-size: 1.5rem;
    color: var(--tan-dark);
    padding: 0.5rem !important;
}

.cart-icon:hover {
    color: var(--gold-shine) !important;
}

.cart-count {
    position: absolute;
    top: 0;
    left: 0;
    background: var(--gold-shine);
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: bold;
    border: 2px solid white;
}

/* تصميم متجاوب للهاتف */
@media (max-width: 768px) {
    .header-container {
        padding: 0 1rem;
        gap: 1rem;
    }
    
    .logo {
        font-size: 1.5rem;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: white;
        box-shadow: -2px 0 15px var(--shadow);
        transition: right 0.3s ease;
        z-index: 1000;
        padding: 5rem 1.5rem 2rem;
        overflow-y: auto;
    }
    
    .main-nav.active {
        right: 0;
    }
    
    .main-nav ul {
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
        justify-content: flex-start;
    }
    
    .main-nav ul li {
        width: 100%;
    }
    
    .main-nav ul li a {
        padding: 1rem;
        border-radius: 10px;
        text-align: right;
        border-bottom: 1px solid var(--sand-warm);
    }
    
    .main-nav ul li:last-child a {
        border-bottom: none;
    }
    
    /* خلفية داكنة عند فتح القائمة */
    .main-nav.active::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(0, 0, 0, 0.5);
        z-index: -1;
    }
}

/* المحتوى الرئيسي */
main {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 2rem;
}

/* البانر الرئيسي */
.hero-section {
    background: linear-gradient(135deg, var(--cream-light) 0%, var(--sand-warm) 100%);
    padding: 4rem 2rem;
    text-align: center;
    border-radius: 15px;
    margin-bottom: 3rem;
    box-shadow: 0 5px 20px var(--shadow);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 10px,
        rgba(212, 175, 55, 0.03) 10px,
        rgba(212, 175, 55, 0.03) 20px
    );
}

.hero-section h1 {
    font-size: 3.5rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.hero-section .subtitle {
    font-size: 1.5rem;
    color: var(--tan-dark);
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
    margin-top: 2rem;
}

.btn-large {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
}

@media (max-width: 768px) {
    .hero-section {
        padding: 2.5rem 1.5rem;
    }
    
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .hero-section .subtitle {
        font-size: 1.1rem;
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    .hero-actions .btn {
        width: 100%;
        text-align: center;
    }
}

/* الأزرار */
.btn {
    display: inline-block;
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 1rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--gold-shine) 0%, #B8860B 100%);
    color: white;
    box-shadow: 0 3px 10px rgba(212, 175, 55, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.4);
}

.btn-secondary {
    background: var(--tan-dark);
    color: white;
}

.btn-secondary:hover {
    background: #7A6345;
    transform: translateY(-2px);
}

/* قسم المنتجات */
.products-section {
    margin: 3rem 0;
}

.section-title {
    font-size: 2.5rem;
    color: var(--text-dark);
    margin-bottom: 2rem;
    text-align: center;
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--gold-shine), transparent);
}

/* شبكة المنتجات */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.product-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    position: relative;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.6s ease forwards;
    border: 1px solid rgba(212, 175, 55, 0.1);
}

.product-card:nth-child(1) { animation-delay: 0.1s; }
.product-card:nth-child(2) { animation-delay: 0.2s; }
.product-card:nth-child(3) { animation-delay: 0.3s; }
.product-card:nth-child(4) { animation-delay: 0.4s; }
.product-card:nth-child(5) { animation-delay: 0.5s; }
.product-card:nth-child(6) { animation-delay: 0.6s; }

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 40px rgba(139, 115, 85, 0.2);
    border-color: var(--gold-shine);
}

.product-image-wrapper {
    position: relative;
    width: 100%;
    height: 280px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--cream-light), var(--sand-warm));
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .product-image {
    transform: scale(1.1);
}

.discount-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: linear-gradient(135deg, #dc3545, #c82333);
    color: white;
    padding: 0.5rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: bold;
    z-index: 2;
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.4);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.product-card:hover .product-overlay {
    opacity: 1;
}

.btn-view-details {
    background: white;
    color: var(--text-dark);
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    transform: translateY(10px);
}

.product-card:hover .btn-view-details {
    transform: translateY(0);
}

.btn-view-details:hover {
    background: var(--gold-shine);
    color: white;
    transform: scale(1.05);
}

.product-info {
    padding: 1.5rem;
    position: relative;
}

.product-category {
    display: inline-block;
    font-size: 0.75rem;
    color: var(--tan-dark);
    background: rgba(212, 175, 55, 0.1);
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    margin-bottom: 0.75rem;
    font-weight: 500;
}

.product-name {
    font-size: 1.2rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
    font-weight: 600;
    line-height: 1.4;
    transition: color 0.3s ease;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-card:hover .product-name {
    color: var(--gold-shine);
}

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

.price-container {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.original-price {
    font-size: 0.9rem;
    color: #999;
    text-decoration: line-through;
}

.discounted-price {
    font-size: 1.4rem;
    color: #dc3545;
    font-weight: bold;
}

.product-price {
    font-size: 1.4rem;
    color: var(--gold-shine);
    font-weight: bold;
}

.product-cart-icon {
    position: absolute;
    top: 12px;
    left: 12px;
    width: 42px;
    height: 42px;
    background: white;
    border-radius: 50%;
    display: flex !important;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    z-index: 20;
    color: var(--gold-shine);
    border: 2px solid rgba(212, 175, 55, 0.2);
    visibility: visible;
    opacity: 1;
}

.product-cart-icon:hover {
    background: var(--gold-shine);
    color: white;
    transform: scale(1.1);
    box-shadow: 0 5px 20px rgba(212, 175, 55, 0.4);
}

.product-cart-icon:active {
    transform: scale(0.95);
}

.product-cart-icon svg {
    width: 22px;
    height: 22px;
    stroke-width: 2;
    transition: transform 0.3s ease;
}

.product-cart-icon:hover svg {
    transform: rotate(-15deg) scale(1.1);
}

.product-cart-icon.loading svg {
    animation: spin 1s linear infinite;
}

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

.products-section-footer {
    text-align: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid var(--sand-warm);
}

.btn-view-all {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
}

/* تصميم متجاوب للمنتجات */
@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 1.5rem;
    }
    
    .product-image-wrapper {
        height: 220px;
    }
    
    .product-info {
        padding: 1.25rem;
    }
    
    .product-name {
        font-size: 1.1rem;
    }
    
    .discounted-price,
    .product-price {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .product-image-wrapper {
        height: 180px;
    }
    
    .product-info {
        padding: 1rem;
    }
    
    .product-name {
        font-size: 1rem;
        margin-bottom: 0.75rem;
    }
    
    .discounted-price,
    .product-price {
        font-size: 1.1rem;
    }
}

/* الفئات */
.categories-section {
    margin: 3rem 0;
    position: relative;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.category-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(212, 175, 55, 0.2);
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.5s ease forwards;
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--gold-shine), #B8860B);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.category-card:hover::before {
    transform: scaleX(1);
}

.category-card:nth-child(1) { animation-delay: 0.05s; }
.category-card:nth-child(2) { animation-delay: 0.1s; }
.category-card:nth-child(3) { animation-delay: 0.15s; }
.category-card:nth-child(4) { animation-delay: 0.2s; }
.category-card:nth-child(5) { animation-delay: 0.25s; }
.category-card:nth-child(6) { animation-delay: 0.3s; }

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

.category-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(139, 115, 85, 0.15);
    border-color: var(--gold-shine);
}

.category-icon-wrapper {
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.category-icon {
    width: 50px;
    height: 50px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.1), rgba(212, 175, 55, 0.05));
    border-radius: 12px;
    transition: all 0.3s ease;
    color: var(--gold-shine);
}

.category-card:hover .category-icon {
    background: linear-gradient(135deg, var(--gold-shine), #B8860B);
    color: white;
    transform: scale(1.1) rotate(5deg);
}

.category-icon svg {
    transition: transform 0.3s ease;
}

.category-card:hover .category-icon svg {
    transform: scale(1.1);
}

.category-content {
    position: relative;
    z-index: 1;
}

.category-card h3 {
    color: var(--text-dark);
    margin: 0 0 0.5rem 0;
    font-size: 1.1rem;
    font-weight: 600;
    transition: color 0.3s ease;
}

.category-card:hover h3 {
    color: var(--gold-shine);
}

.category-card p {
    color: var(--tan-dark);
    font-size: 0.85rem;
    line-height: 1.6;
    margin: 0;
    transition: color 0.3s ease;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.category-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.03), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.category-card:hover .category-overlay {
    opacity: 1;
}

/* تصميم متجاوب للفئات */
@media (max-width: 768px) {
    .categories-grid {
        grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
        gap: 1rem;
    }
    
    .category-card {
        padding: 1.25rem;
    }
    
    .category-icon {
        width: 45px;
        height: 45px;
    }
    
    .category-icon svg {
        width: 30px;
        height: 30px;
    }
    
    .category-card h3 {
        font-size: 1rem;
    }
    
    .category-card p {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
    
    .category-card {
        padding: 1rem;
    }
}


/* الفوتر */
footer {
    background: var(--tan-dark);
    color: white;
    padding: 3rem 2rem;
    margin-top: 4rem;
    text-align: center;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-content h3 {
    margin-bottom: 1rem;
    color: var(--gold-shine);
}

/* النماذج */
.form-container {
    max-width: 500px;
    margin: 2rem auto;
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px var(--shadow);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
    font-weight: 500;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--sand-warm);
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--gold-shine);
}

/* الرسائل */
.alert {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* سلة التسوق */
.cart-table {
    width: 100%;
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 3px 15px var(--shadow);
    margin: 2rem 0;
}

.cart-table table {
    width: 100%;
    border-collapse: collapse;
}

.cart-table th,
.cart-table td {
    padding: 1rem;
    text-align: right;
    border-bottom: 1px solid var(--sand-warm);
}

.cart-table th {
    background: var(--tan-dark);
    color: white;
    font-weight: 600;
}

.cart-total {
    text-align: left;
    padding: 1.5rem;
    background: var(--cream-light);
    font-size: 1.3rem;
    font-weight: bold;
    color: var(--text-dark);
}

/* لوحة التحكم - تصميم Right Sidebar */
.admin-dashboard-wrapper {
    display: flex;
    gap: 2rem;
    max-width: 1400px;
    margin: 2rem auto;
    padding: 0 2rem;
    min-height: calc(100vh - 200px);
}

/* المحتوى الرئيسي */
.admin-main-content {
    flex: 1;
    min-width: 0;
}

.admin-header {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 3px 15px var(--shadow);
    margin-bottom: 2rem;
}

.admin-header h2 {
    font-size: 2rem;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.admin-header p {
    color: var(--tan-dark);
    font-size: 1rem;
}

/* بطاقات الإحصائيات */
.admin-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.admin-stat-card {
    background: white;
    padding: 1.5rem;
    border-radius: 15px;
    box-shadow: 0 3px 15px var(--shadow);
    display: flex;
    align-items: center;
    gap: 1.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.admin-stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px var(--shadow);
}

.admin-stat-card .stat-icon {
    font-size: 3rem;
    line-height: 1;
}

.admin-stat-card .stat-info h3 {
    font-size: 2rem;
    color: var(--gold-shine);
    margin: 0 0 0.25rem 0;
    font-weight: bold;
}

.admin-stat-card .stat-info p {
    color: var(--tan-dark);
    margin: 0;
    font-size: 0.95rem;
}

/* الأقسام */
.admin-section {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 3px 15px var(--shadow);
    margin-bottom: 2rem;
}

.admin-section .section-title {
    font-size: 1.5rem;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--sand-warm);
}

/* قسم الطلبات الجديدة */
.admin-section-new {
    border: 2px solid var(--gold-shine);
    background: linear-gradient(135deg, #fff9e6 0%, white 100%);
    position: relative;
    overflow: hidden;
}

.admin-section-new::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 5px;
    height: 100%;
    background: var(--gold-shine);
}

.section-header-new {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--gold-shine);
}

.section-header-new .section-title {
    margin: 0;
    padding: 0;
    border: none;
    color: var(--text-dark);
    font-size: 1.5rem;
}

.new-orders-count {
    background: var(--gold-shine);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.05);
    }
}

.new-order-row {
    background: #fff9e6;
    border-right: 3px solid var(--gold-shine);
}

.new-order-row:hover {
    background: #fff3cd;
}

.new-badge {
    display: inline-block;
    background: #dc3545;
    color: white;
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-right: 0.5rem;
    animation: blink 1.5s infinite;
}

@keyframes blink {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.6;
    }
}

.section-footer-link {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--sand-warm);
}

.btn-view-all {
    display: inline-block;
    padding: 0.75rem 2rem;
    background: var(--gold-shine);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.btn-view-all:hover {
    background: #B8860B;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.4);
}

/* التنبيهات في لوحة التحكم */
.admin-alert {
    padding: 1rem 1.5rem;
    border-radius: 10px;
    margin-bottom: 1.5rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.admin-alert-success {
    background: #d1e7dd;
    color: #0f5132;
    border: 1px solid #badbcc;
}

.admin-alert-error {
    background: #f8d7da;
    color: #842029;
    border: 1px solid #f5c2c7;
}

/* أزرار الإجراءات */
.admin-actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.btn-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    background: var(--sand-warm);
    color: var(--text-dark);
}

.btn-action:hover {
    transform: translateY(-2px);
    box-shadow: 0 3px 10px var(--shadow);
}

.btn-toggle-role:hover {
    background: var(--gold-shine);
    color: white;
}

.btn-delete:hover {
    background: #dc3545;
    color: white;
}

.btn-disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: var(--sand-warm);
}

/* الجداول */
.admin-table-container {
    overflow-x: auto;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table thead {
    background: var(--tan-dark);
    color: white;
}

.admin-table th {
    padding: 1rem;
    text-align: right;
    font-weight: 600;
    font-size: 0.95rem;
}

.admin-table tbody tr {
    border-bottom: 1px solid var(--sand-warm);
    transition: background 0.3s ease;
}

.admin-table tbody tr:hover {
    background: var(--cream-light);
}

.admin-table td {
    padding: 1rem;
    color: var(--text-dark);
}

/* شارات الحالة */
.status-badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.status-pending {
    background: #fff3cd;
    color: #856404;
}

.status-processing {
    background: #cfe2ff;
    color: #084298;
}

.status-shipped {
    background: #d1e7dd;
    color: #0f5132;
}

.status-delivered {
    background: #d1e7dd;
    color: #0f5132;
}

.status-cancelled {
    background: #f8d7da;
    color: #842029;
}

/* أزرار الإجراءات */
.btn-view {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: var(--gold-shine);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

.btn-view:hover {
    background: #B8860B;
    transform: translateY(-2px);
}

.admin-empty-state {
    text-align: center;
    padding: 3rem;
    color: var(--tan-dark);
}

/* الشريط الجانبي */
.admin-sidebar {
    width: 280px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 3px 15px var(--shadow);
    padding: 0;
    height: fit-content;
    position: sticky;
    top: 100px;
    flex-shrink: 0;
    order: -1; /* الـ Sidebar يظهر أولاً (على اليمين في RTL) */
}

.sidebar-header {
    padding: 1.5rem;
    border-bottom: 2px solid var(--sand-warm);
    background: linear-gradient(135deg, var(--tan-dark), var(--text-dark));
    border-radius: 15px 15px 0 0;
}

.sidebar-header h3 {
    color: var(--gold-shine);
    font-size: 1.3rem;
    margin: 0;
    text-align: center;
}

.sidebar-menu {
    padding: 1rem 0;
}

.sidebar-menu-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    color: var(--text-dark);
    text-decoration: none;
    transition: all 0.3s ease;
    border-right: 3px solid transparent;
}

.sidebar-menu-item:hover {
    background: var(--cream-light);
    border-right-color: var(--gold-shine);
    color: var(--gold-shine);
}

.sidebar-menu-item.active {
    background: linear-gradient(90deg, var(--cream-light), transparent);
    border-right-color: var(--gold-shine);
    color: var(--gold-shine);
    font-weight: 600;
}

.sidebar-menu-item .menu-icon {
    font-size: 1.3rem;
    width: 24px;
    text-align: center;
}

.sidebar-menu-item .menu-text {
    flex: 1;
    font-size: 1rem;
}

.sidebar-footer {
    padding: 1.5rem;
    border-top: 2px solid var(--sand-warm);
}

.sidebar-link {
    display: block;
    text-align: center;
    padding: 0.75rem;
    background: var(--sand-warm);
    color: var(--text-dark);
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.sidebar-link:hover {
    background: var(--gold-shine);
    color: white;
}

/* تصميم متجاوب للوحة التحكم */
@media (max-width: 1024px) {
    .admin-dashboard-wrapper {
        flex-direction: column;
    }
    
    .admin-sidebar {
        width: 100%;
        position: relative;
        top: 0;
    }
    
    .sidebar-menu {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 0.5rem;
        padding: 1rem;
    }
    
    .sidebar-menu-item {
        border-right: none;
        border-bottom: 3px solid transparent;
        justify-content: center;
        padding: 0.75rem;
    }
    
    .sidebar-menu-item:hover,
    .sidebar-menu-item.active {
        border-right: none;
        border-bottom-color: var(--gold-shine);
    }
}

@media (max-width: 768px) {
    .admin-dashboard-wrapper {
        padding: 0 1rem;
    }
    
    .admin-stats-grid {
        grid-template-columns: 1fr;
    }
    
    .admin-table-container {
        overflow-x: scroll;
    }
    
    .admin-table {
        min-width: 700px;
    }
    
    .sidebar-menu {
        grid-template-columns: 1fr;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        gap: 1rem;
    }
    
    nav ul {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 1rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
}

/* تأثيرات إضافية */
.gold-text {
    color: var(--gold-shine);
    font-weight: bold;
}

.shadow-soft {
    box-shadow: 0 3px 15px var(--shadow);
}

/* تحميل الصور */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid var(--sand-warm);
    border-radius: 50%;
    border-top-color: var(--gold-shine);
    animation: spin 1s ease-in-out infinite;
}

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