/**
 * הוייפ שופ - עיצוב ועיצוב תוכן
 * עוצב ופותח על ידי: סהר מלול
 * כל הזכויות שמורות © 2025
 * 
 * תכונות עיצוב:
 * - Glassmorphism Design
 * - Responsive Layout
 * - Hebrew RTL Support
 * - Modern CSS Animations
 * - Enhanced Admin Panel
 */

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --secondary-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --success-gradient: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --warning-gradient: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
    --dark-gradient: linear-gradient(135deg, #2c3e50 0%, #3498db 100%);
    --glass-bg: rgba(255, 255, 255, 0.15);
    --glass-border: rgba(255, 255, 255, 0.25);
    --text-primary: #2d3748;
    --text-secondary: #4a5568;
    --text-light: #718096;
}

body {
    font-family: 'Heebo', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    min-height: 100vh;
    direction: rtl;
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    padding-bottom: 15px; /* Much smaller space needed */
}

/* Floating particles background */
.container::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 80%, rgba(120, 119, 198, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 119, 198, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(120, 219, 255, 0.3) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

/* Header styles */
.header {
    background: var(--glass-bg);
    backdrop-filter: blur(25px);
    border-bottom: 1px solid var(--glass-border);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.header-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.header h1 {
    font-size: 2.5rem;
    font-weight: 800;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    letter-spacing: -0.5px;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 15px;
    font-weight: 500;
}

.user-info span {
    color: var(--text-secondary);
    font-weight: 600;
    padding: 8px 16px;
    background: var(--glass-bg);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
}

/* Button styles */
.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    position: relative;
    overflow: hidden;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s;
}

.btn:hover::before {
    left: 100%;
}

.btn-secondary {
    background: var(--glass-bg);
    color: var(--text-primary);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.btn-primary {
    background: var(--primary-gradient);
    color: white;
    border: 1px solid transparent;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
}

.btn-success {
    background: var(--success-gradient);
    color: white;
}

.btn-warning {
    background: var(--warning-gradient);
    color: white;
}

.btn-danger {
    background: var(--secondary-gradient);
    color: white;
}

/* Admin Panel at Top */
.admin-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(25px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    margin: 20px;
    padding: 25px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    animation: slideDown 0.6s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--glass-border);
}

.admin-header h2 {
    font-size: 1.8rem;
    font-weight: 700;
    background: var(--dark-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.admin-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 5px;
    backdrop-filter: blur(10px);
}

.admin-tab {
    flex: 1;
    padding: 12px 20px;
    background: transparent;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--text-secondary);
}

.admin-tab.active {
    background: white;
    color: var(--text-primary);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.admin-tab:hover:not(.active) {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

/* Main content */
.main-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    flex: 1;
}
/* Status cards */
.general-order-status {
    background: var(--glass-bg);
    backdrop-filter: blur(25px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 25px;
    margin-bottom: 25px;
    text-align: center;
    animation: fadeInUp 0.6s ease-out;
    position: relative;
    overflow: hidden;
}

.general-order-status::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 2px;
    background: var(--success-gradient);
    animation: progressBar 3s ease-in-out infinite;
}

@keyframes progressBar {
    0%, 100% { left: -100%; }
    50% { left: 100%; }
}

.general-order-status h3 {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 10px;
    background: var(--success-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.shop-status.closed {
    background: var(--glass-bg);
    border: 1px solid rgba(254, 215, 215, 0.3);
    border-radius: 20px;
    padding: 25px;
    text-align: center;
    backdrop-filter: blur(25px);
}

.shop-status.closed h3 {
    color: #e53e3e;
    font-size: 1.5rem;
    margin-bottom: 10px;
}

/* User order status */
.user-order-status {
    background: var(--glass-bg);
    backdrop-filter: blur(25px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 25px;
    margin-bottom: 25px;
    animation: fadeInUp 0.6s ease-out 0.2s both;
    color: var(--text-primary);
}

.user-order-status h3 {
    color: #1a202c !important;
    font-weight: 700;
    margin-bottom: 15px;
}

.user-order-status p {
    color: #2d3748 !important;
    margin: 8px 0;
    line-height: 1.5;
}

.user-order-status strong {
    color: #1a202c !important;
    font-weight: 600;
}

.user-order-status .can-modify {
    color: #38a169 !important;
    font-weight: 600;
}

.user-order-status .cannot-modify {
    color: #e53e3e !important;
    font-weight: 600;
}

.user-order-status .order-actions {
    margin-top: 15px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Shop content layout */
.shop-content {
    display: flex;
    flex-direction: column;
    gap: 30px;
    width: 100%;
}

.products-section {
    width: 100%;
    min-width: 0;
    padding: 30px 20px;
    margin-bottom: 30px;
    box-sizing: border-box;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
    align-items: start;
}

/* Enhanced Cart section for full width layout */
.cart-section {
    background: var(--glass-bg);
    backdrop-filter: blur(25px);
    border: 1px solid var(--glass-border);
    border-radius: 25px;
    padding: 30px;
    position: relative;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    animation: fadeInUp 0.6s ease-out 0.3s both;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Product cards with enhanced styling */
.product-card {
    background: var(--glass-bg);
    backdrop-filter: blur(25px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 20px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    aspect-ratio: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    animation: fadeInUp 0.6s ease-out calc(var(--animation-delay, 0) * 0.1s) both;
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--primary-gradient);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.product-card:hover::before {
    transform: scaleX(1);
}

.product-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
}

.product-image {
    width: 100%;
    height: 180px;
    background: var(--primary-gradient);
    border-radius: 112px;
    margin-bottom: 19px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    position: relative;
    overflow: hidden;
    padding: 2px;
}

/* Hide animation overlay when image is present */
.product-image:has(img)::after {
    display: none;
}

.product-image::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    animation: pulse 2s ease-in-out infinite;
}

/* Image styles within product-image */
.product-image img {
    max-width: calc(100% - 8px);
    max-height: calc(100% - 8px);
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    position: relative;
    z-index: 1;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    padding: 4px;
}

@keyframes pulse {
    0%, 100% { opacity: 0.7; transform: translate(-50%, -50%) scale(0.8); }
    50% { opacity: 1; transform: translate(-50%, -50%) scale(1.2); }
}

.product-name {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
    text-align: center;
    line-height: 1.2;
}

.product-description {
    color: var(--text-light);
    margin-bottom: 15px;
    font-size: 0.95rem;
    text-align: center;
    line-height: 1.4;
}

.product-price {
    font-size: 1.6rem;
    font-weight: 700;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 25px;
    text-align: center;
}

.quantity-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 15px;
    padding: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    backdrop-filter: blur(10px);
}

.quantity-btn {
    width: 35px;
    height: 35px;
    border: none;
    border-radius: 50%;
    background: var(--glass-bg);
    color: var(--text-primary);
    font-size: 1.5rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
}

.quantity-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.15);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.quantity-display {
    font-size: 1.4rem;
    font-weight: 700;
    min-width: 50px;
    text-align: center;
    color: var(--text-primary);
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    backdrop-filter: blur(10px);
}

.add-to-cart-btn {
    width: 100%;
    padding: 15px;
    background: var(--success-gradient);
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.add-to-cart-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transition: all 0.6s ease;
    transform: translate(-50%, -50%);
}

.add-to-cart-btn:hover::before {
    width: 300px;
    height: 300px;
}

.add-to-cart-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(79, 172, 254, 0.4);
}

.add-to-cart-btn:disabled {
    background: #a0aec0;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Cart header styling */
.cart-header h3 {
    font-size: 1.8rem;
    font-weight: 700;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-align: center;
    margin-bottom: 25px;
    position: relative;
}

.cart-header h3::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: var(--primary-gradient);
    border-radius: 2px;
}

.cart-items {
    max-height: 400px;
    overflow-y: auto;
    margin-bottom: 25px;
    border-bottom: 2px solid var(--glass-border);
    padding-bottom: 20px;
}

.cart-items::-webkit-scrollbar {
    width: 6px;
}

.cart-items::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.cart-items::-webkit-scrollbar-thumb {
    background: var(--primary-gradient);
    border-radius: 10px;
}

.empty-cart {
    text-align: center;
    color: var(--text-light);
    padding: 40px 20px;
    font-style: italic;
    font-size: 1.1rem;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.cart-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 15px 10px;
}

.cart-item:last-child {
    border-bottom: none;
}

.cart-item-name {
    font-weight: 600;
    color: var(--text-primary);
}

.cart-item-quantity {
    color: var(--text-light);
    font-size: 0.9rem;
}

.cart-item-price {
    font-weight: 700;
    color: #22543d;
    font-size: 1.1rem;
}

.cart-total {
    font-size: 2rem;
    font-weight: 800;
    color: #1a365d;
    margin-bottom: 25px;
    text-align: center;
    padding: 20px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.checkout-btn {
    width: 100%;
    padding: 18px;
    background: var(--primary-gradient);
    color: white;
    border: none;
    border-radius: 15px;
    font-weight: 700;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.checkout-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(102, 126, 234, 0.4);
}

.checkout-btn:disabled {
    background: #a0aec0;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Responsive design */
@media (max-width: 1200px) {
    .products-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 25px;
        padding: 15px;
    }
    
    .cart-section {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .header h1 {
        font-size: 2rem;
    }
    
    .header-content {
        flex-direction: column;
        gap: 15px;
    }
    
    .user-info {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 10px;
    }
    
    .product-card {
        max-width: 100%;
        aspect-ratio: 1;
    }
    
    .admin-panel {
        margin: 10px;
        padding: 20px;
    }
    
    .admin-tabs {
        flex-direction: column;
        gap: 5px;
    }
}

/* Enhanced Admin Panel Styles */
.admin-tab-content {
    display: none;
    animation: fadeIn 0.3s ease-in-out;
}

.admin-tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.admin-section {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
}

.admin-section h4 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.admin-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.form-input {
    padding: 15px 20px;
    border: 2px solid var(--glass-border);
    border-radius: 12px;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    outline: none;
}

.form-input:focus {
    border-color: rgba(102, 126, 234, 0.5);
    background: rgba(255, 255, 255, 0.25);
    box-shadow: 0 0 20px rgba(102, 126, 234, 0.2);
}

.form-input::placeholder {
    color: var(--text-light);
}

.admin-list {
    max-height: 500px;
    overflow-y: auto;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 20px;
    backdrop-filter: blur(10px);
}

.admin-list::-webkit-scrollbar {
    width: 8px;
}

.admin-list::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.admin-list::-webkit-scrollbar-thumb {
    background: var(--primary-gradient);
    border-radius: 10px;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--glass-bg);
    border-radius: 15px;
    overflow: hidden;
    backdrop-filter: blur(15px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.admin-table th,
.admin-table td {
    padding: 15px;
    text-align: right;
    border-bottom: 1px solid var(--glass-border);
}

.admin-table th {
    background: var(--primary-gradient);
    color: white;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.admin-table tr:hover {
    background: rgba(255, 255, 255, 0.1);
}

.admin-table tr:last-child td {
    border-bottom: none;
}

.table-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.85rem;
    border-radius: 8px;
}

.general-orders-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.general-order-card {
    background: var(--glass-bg);
    border-radius: 20px;
    padding: 25px;
    backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.general-order-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--success-gradient);
}

.general-order-card.status-closed::before {
    background: var(--secondary-gradient);
}

.general-order-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    border-color: rgba(255, 255, 255, 0.4);
}

.order-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.order-card-header h4 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.status-badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-badge.status-open {
    background: var(--success-gradient);
    color: white;
}

.status-badge.status-closed {
    background: var(--secondary-gradient);
    color: white;
}

.order-card-body p {
    margin-bottom: 8px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.order-card-body strong {
    color: var(--text-primary);
}

.order-card-actions {
    margin-top: 20px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* My Orders Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background: var(--glass-bg);
    backdrop-filter: blur(25px);
    border: 1px solid var(--glass-border);
    margin: 5% auto;
    padding: 30px;
    width: 90%;
    max-width: 800px;
    border-radius: 25px;
    position: relative;
    animation: modalSlideIn 0.3s ease;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    color: var(--text-primary);
}

@keyframes modalSlideIn {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--glass-border);
}

.modal-header h2 {
    font-size: 1.8rem;
    font-weight: 700;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.modal-body {
    color: var(--text-primary);
}

/* Order Card Styles for My Orders Modal */
.order-card {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    color: #2d3748 !important;
}

.order-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
    background: rgba(255, 255, 255, 0.25);
}

.order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.order-header h4 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #1a202c !important;
    margin: 0;
}

.order-total {
    font-size: 1.2rem;
    font-weight: 700;
    color: #e53e3e !important;
    background: rgba(229, 62, 62, 0.1);
    padding: 5px 12px;
    border-radius: 12px;
    border: 1px solid rgba(229, 62, 62, 0.2);
}

.order-details {
    margin-bottom: 15px;
}

.order-details p {
    margin: 8px 0;
    color: #2d3748 !important;
    font-size: 0.95rem;
    line-height: 1.5;
}

.order-details strong {
    color: #1a202c !important;
    font-weight: 600;
}

.can-modify {
    color: #38a169 !important;
    font-weight: 600;
}

.cannot-modify {
    color: #e53e3e !important;
    font-weight: 600;
}

/* Order Actions Button Styling */
.order-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.order-actions .btn {
    padding: 8px 16px;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.order-actions .btn-warning {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(250, 112, 154, 0.3);
}

.order-actions .btn-warning:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(250, 112, 154, 0.4);
}

.order-actions .btn-danger {
    background: linear-gradient(135deg, #e53e3e 0%, #fd5e5e 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(229, 62, 62, 0.3);
}

.order-actions .btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(229, 62, 62, 0.4);
}

.order-actions .btn-sm {
    padding: 6px 12px;
    font-size: 0.85rem;
}

.close {
    background: var(--secondary-gradient);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.close:hover {
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Additional utility classes */
.text-center { text-align: center; }
.text-success { color: #48bb78; }
.text-warning { color: #ed8936; }
.text-danger { color: #e53e3e; }
.text-info { color: #3182ce; }

.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 1rem; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 1rem; }

/* Loading animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Additional admin animations */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUp {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(-20px);
    }
}

/* Scrollbar styling for the entire page */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-gradient);
    border-radius: 10px;
    border: 2px solid transparent;
    background-clip: content-box;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-gradient);
    background-clip: content-box;
}

/* General Order Summary Modal Styles */
#generalOrderSummaryModal .modal-content {
    max-width: 900px;
    max-height: 90vh;
    overflow-y: auto;
}

.summary-header {
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 25px;
    margin-bottom: 25px;
    text-align: center;
}

.summary-header h3 {
    font-size: 1.8rem;
    font-weight: 700;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 15px;
}

.summary-header p {
    margin-bottom: 8px;
    color: var(--text-secondary);
    font-weight: 500;
}

.summary-users {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.user-summary-card {
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 25px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.user-summary-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--success-gradient);
}

.user-summary-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    border-color: rgba(255, 255, 255, 0.4);
}

.user-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--glass-border);
    flex-wrap: wrap;
    gap: 10px;
}

.user-header h4 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.user-contact {
    color: var(--text-secondary);
    font-weight: 500;
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    backdrop-filter: blur(10px);
}

.user-total {
    font-size: 1.2rem;
    font-weight: 700;
    background: var(--success-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
}

.user-orders {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.order-summary {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
}

.order-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 10px;
}

.order-info strong {
    color: var(--text-primary);
    font-weight: 700;
}

.order-date {
    color: var(--text-light);
    font-size: 0.9rem;
    padding: 4px 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
}

.order-total {
    font-weight: 700;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.products-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.product-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.product-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(-5px);
}

.product-name {
    font-weight: 600;
    color: var(--text-primary);
}

.product-details {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
}

.summary-footer {
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 25px;
    margin-top: 25px;
    text-align: center;
}

.grand-total {
    font-size: 2rem;
    font-weight: 800;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    padding: 15px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
}

.no-orders {
    text-align: center;
    color: var(--text-light);
    padding: 40px 20px;
    font-style: italic;
    font-size: 1.1rem;
}

.error {
    color: #e53e3e;
    text-align: center;
    padding: 20px;
    background: rgba(254, 215, 215, 0.2);
    border: 1px solid rgba(245, 101, 101, 0.3);
    border-radius: 12px;
    backdrop-filter: blur(10px);
}

/* Responsive design for summary modal */
@media (max-width: 768px) {
    #generalOrderSummaryModal .modal-content {
        width: 95%;
        margin: 5% auto;
        max-height: 85vh;
    }
    
    .user-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .order-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .product-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .grand-total {
        font-size: 1.5rem;
    }
}

/* Admin Messages Display */
.admin-messages-container {
    margin-bottom: 25px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    position: relative;
    z-index: 10;
}

.admin-message {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.25) 0%, rgba(255, 255, 255, 0.1) 100%);
    backdrop-filter: blur(25px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    padding: 25px;
    position: relative;
    animation: slideInFromTop 0.6s ease-out;
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.15),
        0 5px 15px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
    transition: all 0.3s ease;
    margin-bottom: 15px;
}

.admin-message::before {
    content: "📢";
    position: absolute;
    top: -10px;
    right: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 8px 12px;
    border-radius: 50%;
    font-size: 16px;
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.admin-message:hover {
    transform: translateY(-3px);
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.2),
        0 8px 20px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.admin-message h4 {
    color: #333;
    margin: 0 0 15px 0;
    font-size: 1.3em;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.admin-message p {
    color: #555;
    margin: 0;
    line-height: 1.6;
    font-size: 1.05em;
}

.admin-message .message-time {
    position: absolute;
    top: 15px;
    left: 20px;
    font-size: 0.85em;
    color: #666;
    background: rgba(255, 255, 255, 0.3);
    padding: 4px 8px;
    border-radius: 8px;
}

@keyframes slideInFromTop {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideOutToTop {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(-30px);
    }
}

@keyframes pulse {
    0% { box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15), 0 0 0 0 rgba(102, 126, 234, 0.4); }
    50% { box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2), 0 0 0 10px rgba(102, 126, 234, 0.1); }
    100% { box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15), 0 0 0 0 rgba(102, 126, 234, 0.0); }
}

.admin-message.new {
    animation: slideInFromTop 0.6s ease-out, pulse 2s infinite;
}

.admin-message.message-info {
    border-left: 4px solid #3182ce;
}

.admin-message.message-warning {
    border-left: 4px solid #ed8936;
}

.admin-message.message-success {
    border-left: 4px solid #48bb78;
}

.admin-message.message-error {
    border-left: 4px solid #e53e3e;
}

.admin-message-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.admin-message-icon {
    font-size: 1.2rem;
    margin-left: 8px;
}

.admin-message-title {
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
}

.admin-message-close {
    background: var(--secondary-gradient);
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.admin-message-close:hover {
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.admin-message-content {
    color: var(--text-secondary);
    line-height: 1.6;
    font-weight: 500;
}

.admin-message-date {
    color: var(--text-light);
    font-size: 0.8rem;
    margin-top: 10px;
    font-style: italic;
}

/* Product unavailable styling */
.product-card.unavailable {
    opacity: 0.6;
    filter: grayscale(50%);
    position: relative;
}

.product-card.unavailable::after {
    content: '❌ לא זמין';
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--secondary-gradient);
    color: white;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 700;
    z-index: 10;
}

.product-card.unavailable .add-to-cart-btn {
    background: #a0aec0;
    cursor: not-allowed;
    pointer-events: none;
}

.product-card.unavailable .quantity-controls {
    opacity: 0.5;
    pointer-events: none;
}

/* Browse mode styling */
.browse-mode-notice {
    background: var(--glass-bg);
    backdrop-filter: blur(25px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 25px;
    margin-bottom: 30px;
    text-align: center;
    animation: fadeInUp 0.6s ease-out;
    border-left: 4px solid #3182ce;
}

.browse-mode-notice h3 {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 10px;
    background: var(--dark-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.browse-mode-notice p {
    color: var(--text-secondary);
    font-weight: 500;
}

.product-card.browse-only {
    opacity: 0.85;
    cursor: default;
}

.product-card.browse-only:hover {
    transform: translateY(-5px) scale(1.01);
}

.browse-only-notice {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    padding: 15px;
    text-align: center;
    color: var(--text-light);
    font-weight: 600;
}

/* Payment reminder notification */
.payment-reminder {
    background: var(--glass-bg);
    backdrop-filter: blur(25px);
    border: 1px solid var(--glass-border);
    border-left: 4px solid #ed8936;
    border-radius: 15px;
    padding: 20px;
    margin-top: 15px;
    animation: slideInFromTop 0.5s ease-out;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.payment-reminder-header {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.payment-reminder-icon {
    font-size: 1.2rem;
    margin-left: 8px;
    color: #ed8936;
}

.payment-reminder-title {
    font-weight: 700;
    color: var(--text-primary);
}

.payment-reminder-content {
    color: var(--text-secondary);
    line-height: 1.6;
    font-weight: 500;
}

.payment-reminder-date {
    color: var(--text-light);
    font-size: 0.8rem;
    margin-top: 10px;
    font-style: italic;
}

/* Order details modal styles */
.order-details-card {
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 25px;
    margin-bottom: 25px;
    border-left: 4px solid var(--primary-gradient);
}

.order-details-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
}

.order-details-card p {
    margin-bottom: 10px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.order-details-card strong {
    color: var(--text-primary);
    font-weight: 600;
}

.order-products-details {
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 25px;
    margin-bottom: 25px;
}

.order-products-details h3 {
    font-size: 1.4rem;
    font-weight: 700;
    background: var(--success-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
}

.order-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
    padding: 20px;
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
}

/* Enhanced button styles for order details */
.btn-info {
    background: var(--dark-gradient);
    color: white;
}

.btn-info:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(44, 62, 80, 0.4);
}

/* User breakdown detailed styling */
.user-breakdown {
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.user-breakdown:hover {
    background: rgba(255, 255, 255, 0.15) !important;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.user-breakdown h4 {
    border-bottom: 2px solid rgba(255, 107, 53, 0.3);
    padding-bottom: 8px;
    margin-bottom: 15px !important;
}

.user-breakdown .stat-row {
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.user-breakdown .stat-row:last-child {
    border-bottom: none;
}

/* Cart Blocked Styles */
.cart-blocked {
    background: rgba(255, 193, 7, 0.1);
    border: 2px solid rgba(255, 193, 7, 0.3);
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    margin: 15px 0;
}

.cart-blocked-message h4 {
    color: #ff6b35;
    margin-bottom: 10px;
    font-size: 1.2em;
}

.cart-blocked-message p {
    color: var(--text-secondary);
    margin-bottom: 8px;
    font-size: 0.95em;
    line-height: 1.5;
}

.cart-blocked-message p:last-child {
    font-style: italic;
    font-size: 0.9em;
    color: var(--text-light);
}
