



body {
    font-family: "Rubik", sans-serif;
    background-color: #f4f4f4;
    margin: 0;
    background-image: url("Black-logo.jpg");
    background-size: cover;
    background-attachment: fixed;
    padding: 10px; /* מרווח כדי למנוע חיתוך במסכים קטנים */
    text-align: right;
    color: #333;
    align-items: flex-start;
    min-height: 100vh;
  }





/* עיצוב מערכת התחברות */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 20px;
    box-sizing: border-box;
}

.login-box {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    text-align: center;
    max-width: 400px;
    width: 100%;
    box-sizing: border-box;
}

.login-box h2 {
    margin-bottom: 20px;
    color: #333;
    font-size: 1.8em;
}

.login-box p {
    margin-bottom: 30px;
    color: #666;
    line-height: 1.6;
}

.user-info {
    position: fixed;
    top: 20px;
    right: 20px;
    background: white;
    padding: 12px 18px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn-small {
    padding: 10px 18px;
    font-size: 1rem;
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    min-width: 80px;
    text-align: center;
}

.btn-small:hover {
    background: #c82333;
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(0,0,0,0.2);
}

.btn-danger {
    background: #dc3545;
    color: white;
    border: none;
}

.btn-danger:hover {
    background: #c82333;
}

/* Email login section */
.email-login-section {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

.divider {
    position: relative;
    text-align: center;
    margin: 20px 0;
}

.divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #e0e0e0;
}

.divider span {
    background: white;
    padding: 0 15px;
    color: #666;
    font-size: 14px;
}

.btn-small {
    padding: 8px 16px;
    font-size: 13px;
    background: #6c757d;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    opacity: 0.8;
}

.btn-small:hover {
    opacity: 1;
    background: #5a6268;
}

.email-login-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group input {
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.2s;
}

.form-group input:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0,123,255,0.1);
}

.form-actions {
    display: flex;
    gap: 8px;
    justify-content: center;
}

.btn-primary {
    background: #007bff;
    color: white;
    border: none;
    padding: 10px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.2s;
}

.btn-primary:hover {
    background: #0056b3;
}

.btn-outline {
    background: transparent;
    color: #6c757d;
    border: 1px solid #6c757d;
    padding: 10px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
}

.btn-outline:hover {
    background: #6c757d;
    color: white;
}

.btn-secondary {
    background: #6c757d;
    color: white;
    border: none;
    padding: 10px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.2s;
}

.btn-secondary:hover {
    background: #5a6268;
}

/* סגנונות עבור כרטיסי המוצרים */
.product-card {
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 16px;
    margin: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.2s, box-shadow 0.2s;
}

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

.product-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #eee;
}

.product-header h3 {
    margin: 0;
    color: #333;
    font-size: 1.1rem;
}

.product-header h3.no-name-product {
    color: #888;
    font-style: italic;
}

/* Toast notifications container */
#notifications-container {
    position: fixed;
    top: 16px;
    right: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 10000;
    pointer-events: none;
}

/* Base toast */
.notification {
    pointer-events: all;
    min-width: 240px;
    max-width: min(92vw, 360px);
    padding: 10px 14px 12px 14px;
    border-radius: 8px;
    color: #fff;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    border: 1px solid rgba(255,255,255,0.15);
    backdrop-filter: blur(2px);
    animation: toastIn 220ms ease-out;
}

.notification.success { background: #28a745; }
.notification.error   { background: #dc3545; }
.notification.info    { background: #17a2b8; }
.notification.warning { background: #ffc107; color: #2f2f2f; border-color: rgba(0,0,0,0.1); }

.notification .progress {
    height: 3px;
    margin-top: 8px;
    background: rgba(255,255,255,0.5);
    transform-origin: left;
    animation: toastProgress var(--toast-duration, 3s) linear forwards;
}

.notification.exit {
    animation: toastOut 150ms ease-in forwards;
}

@keyframes toastIn {
    from { opacity: 0; transform: translateX(18px); }
    to   { opacity: 1; transform: translateX(0); }
}

@keyframes toastOut {
    from { opacity: 1; transform: translateX(0); }
    to   { opacity: 0; transform: translateX(18px); }
}

@keyframes toastProgress {
    from { transform: scaleX(1); }
    to   { transform: scaleX(0); }
}

@media (max-width: 600px) {
    #notifications-container {
        top: 10px;
        right: 10px;
        gap: 6px;
    }
    .notification { min-width: auto; }
}

.product-code {
    background: #007bff;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: bold;
}

.product-details p {
    margin: 8px 0;
    color: #666;
    font-size: 0.9rem;
}

.product-actions {
    display: flex;
    gap: 8px;
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid #eee;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    padding: 24px 8px 32px 8px;
    align-items: stretch;
}
/* תצוגה מותאמת למובייל - 2 מוצרים בשורה */
@media (max-width: 700px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        padding: 10px 2vw 20px 2vw;
    }
    .product-card {
        min-width: 0;
        font-size: 0.97em;
        margin: 0;
    }
    .admin-panel {
        padding: 0;
        margin: 0;
    }
    .sidebar, .main-content {
        padding: 0 2vw;
    }
}

/* הודעות מערכת */
.notification {
    padding: 12px 16px;
    margin: 8px 0;
    border-radius: 4px;
    font-weight: bold;
}

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

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

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


/* עיצוב מערכת ניהול מוצרים - גולדיס */

/* כפתורי ניהול מוצרים באתר הראשי */
.product-management-buttons {
    text-align: center;
    margin: 20px 0;
}

.product-management-buttons button {
    margin: 10px;
    transition: all 0.3s ease;
}

.product-management-buttons button:hover {
    transform: translateY(-2px);
}

/* כפתור ניהול מוצרים ראשי */
.manage-products-btn {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(0,123,255,0.3);
    transition: all 0.3s ease;
}

.manage-products-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,123,255,0.4);
}

/* כפתור רענון מוצרים */
.refresh-products-btn {
    background: linear-gradient(135deg, #28a745 0%, #1e7e34 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    box-shadow: 0 3px 10px rgba(40,167,69,0.3);
    transition: all 0.3s ease;
}

.refresh-products-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(40,167,69,0.4);
}

/* הודעות מערכת */
.system-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: white;
    border-radius: 8px;
    padding: 15px 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 10000;
    transform: translateX(400px);
    transition: transform 0.3s ease;
    border-left: 4px solid #007bff;
    max-width: 400px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.notification-message {
    flex: 1;
    margin-right: 10px;
}

.notification-close {
    background: none;
    border: none;
    font-size: 18px;
    color: #6c757d;
    cursor: pointer;
    padding: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.notification-close:hover {
    background-color: #e9ecef;
    color: #495057;
}

.system-notification.show {
    transform: translateX(0);
}

.system-notification.success {
    background: #28a745;
}

.system-notification.error {
    background: #dc3545;
}

.system-notification.warning {
    background: #ffc107;
    color: #212529;
}

.system-notification.info {
    background: #17a2b8;
}

/* אינדיקטור טעינה */
.loading-indicator {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #007bff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 10px;
}

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

/* כפתור רענון מהיר */
.quick-refresh-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #007bff;
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    z-index: 1000;
}

.quick-refresh-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

.quick-refresh-btn:active {
    transform: scale(0.95);
}

/* סטטוס מערכת */
.system-status {
    position: fixed;
    top: 20px;
    left: 20px;
    background: rgba(255,255,255,0.9);
    padding: 10px 15px;
    border-radius: 8px;
    font-size: 0.9rem;
    color: #333;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 1000;
}

.system-status.online {
    border-left: 4px solid #28a745;
}

.system-status.offline {
    border-left: 4px solid #dc3545;
}

/* אנימציות מעבר */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.slide-in {
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from { transform: translateX(-100%); }
    to { transform: translateX(0); }
}

/* כפתורי פעולה מהירה */
.quick-action-buttons {
    display: flex;
    gap: 10px;
    margin: 15px 0;
    flex-wrap: wrap;
    justify-content: center;
}

.quick-action-btn {
    background: #6c757d;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.quick-action-btn:hover {
    background: #5a6268;
    transform: translateY(-1px);
}

.quick-action-btn.primary {
    background: #007bff;
}

.quick-action-btn.primary:hover {
    background: #0056b3;
}

.quick-action-btn.success {
    background: #28a745;
}

.quick-action-btn.success:hover {
    background: #1e7e34;
}

.quick-action-btn.danger {
    background: #dc3545;
}

.quick-action-btn.danger:hover {
    background: #c82333;
}

/* תצוגה מותאמת למובייל */
@media (max-width: 768px) {
    .login-box {
        padding: 30px 20px;
        margin: 10px;
        max-width: 100%;
        border-radius: 12px;
    }
 
    
    .login-header h1 {
        font-size: 1.5rem;
    }
    
    .product-management-buttons button {
        width: 100%;
        margin: 5px 0;
    }
    
    .quick-action-buttons {
        flex-direction: column;
    }
    
    .quick-action-btn {
        width: 100%;
    }
    
    .system-notification {
        right: 10px;
        left: 10px;
        max-width: none;
    }
    
    .system-status {
        left: 10px;
        right: 10px;
        text-align: center;
    }
}

/* ===== עיצוב ממשק הניהול ===== */

/* מיכל ראשי */
.admin-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
}

/* כותרת עליונה */
.header {
    text-align: center;
    margin-bottom: 30px;
    padding: 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    color: white;
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
    position: relative;
    overflow: hidden;
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="50" cy="10" r="0.5" fill="rgba(255,255,255,0.1)"/><circle cx="10" cy="60" r="0.5" fill="rgba(255,255,255,0.1)"/><circle cx="90" cy="40" r="0.5" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.header h1 {
    margin: 0 0 15px 0;
    font-size: 2.5rem;
    font-weight: 700;
    position: relative;
    z-index: 1;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.header p {
    margin: 0;
    font-size: 1.2rem;
    opacity: 0.95;
    position: relative;
    z-index: 1;
    text-shadow: 0 1px 5px rgba(0,0,0,0.3);
}

/* פאנל ניהול ראשי */
.admin-panel {
    display: flex;
    flex-direction: column;
    gap: 0;
    min-height: 0;
    margin-bottom: 0;
}
/* סיכום ופעולות תמיד למעלה, מוצרים למטה */
.admin-panel .sidebar {
    order: 1;
    margin-bottom: 0;
    border-radius: 0 0 20px 20px;
    box-shadow: none;
    border-bottom: 2px solid #eee;
}
.admin-panel .main-content {
    order: 2;
    margin-top: 0;
}

/* סיידבר */
.sidebar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    height: fit-content;
    position: sticky;
    top: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    margin-bottom: 0;
}
/* ריווח מקצועי בין סיכום/כפתורים/חיפוש */
.sidebar .stats {
    margin-bottom: 18px;
}
.sidebar .quick-action-buttons {
    margin-bottom: 18px;
}
.sidebar .search-section {
    margin-bottom: 0;
}

/* סטטיסטיקות */
.stats {
    margin-bottom: 30px;
    padding: 25px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 15px;
    border: none;
    color: white;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.stat-item:last-child {
    margin-bottom: 0;
}

.stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: white;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.stat-label {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    font-weight: 500;
}

/* כפתורי פעולה מהירה */
.quick-action-buttons {
    margin-bottom: 30px;
}

.quick-action-buttons .btn {
    width: 100%;
    margin-bottom: 15px;
    padding: 15px 20px;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.quick-action-buttons .btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.quick-action-buttons .btn:hover::before {
    left: 100%;
}

.quick-action-buttons .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.25);
}

.quick-action-buttons .btn-success {
    background: linear-gradient(135deg, #28a745 0%, #1e7e34 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(40,167,69,0.3);
}

.quick-action-buttons .btn-warning {
    background: linear-gradient(135deg, #ffc107 0%, #e0a800 100%);
    color: #212529;
    box-shadow: 0 4px 15px rgba(255,193,7,0.3);
}

.quick-action-buttons .btn-info {
    background: linear-gradient(135deg, #17a2b8 0%, #138496 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(23,162,184,0.3);
}

/* אזור חיפוש */
.search-section {
    margin-bottom: 25px;
}

.search-section h3 {
    margin: 0 0 18px 0;
    color: #333;
    font-size: 1.2rem;
    font-weight: 600;
}

.search-container {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.search-input {
    width: 90%;
    padding: 12px 16px;
    border: 2px solid #e1e5e9;
    border-radius: 18px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #f8f9fa;
    box-shadow: 0 2px 8px rgba(102,126,234,0.06);
    margin-bottom: 10px;
    outline: none;
    direction: rtl;
    text-align: right;
    padding-right: 45px; /* מקום לכפתור הניקוי */
}

.clear-search-btn {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    font-size: 16px;
    color: #6c757d;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    transition: all 0.3s ease;
    opacity: 0.7;
}

.clear-search-btn:hover {
    background: #e9ecef;
    color: #dc3545;
    opacity: 1;
    transform: translateY(-50%) scale(1.1);
}

.clear-search-btn:active {
    transform: translateY(-50%) scale(0.95);
}
@media (max-width: 700px) {
    .search-container {
        width: 85%;
        margin: 0 auto;
    }
    
    .search-input {
        width: 100%;
        min-width: 110px;
        max-width: 250px;
        padding: 6px 8px;
        font-size: 0.9em;
        border-radius: 12px;
        margin: 0 auto 8px auto;
        background: #f8f9fa url('data:image/svg+xml;utf8,<svg fill="%23667eea" height="16" viewBox="0 0 24 24" width="16" xmlns="http://www.w3.org/2000/svg"><path d="M15.5 14h-.79l-.28-.27A6.471 6.471 0 0 0 16 9.5 6.5 6.5 0 1 0 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99c.41.41 1.09.41 1.5 0s.41-1.09 0-1.5l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z"/></svg>') no-repeat 6px center;
        padding-right: 35px;
    }
    
    .clear-search-btn {
        font-size: 14px;
        padding: 4px;
    }
    .sidebar, .main-content {
        padding: 0 1.5vw;
    }
    .quick-action-buttons .btn {
        font-size: 0.95em;
        padding: 8px 6px;
        border-radius: 8px;
        margin-bottom: 6px;
    }
    .stats {
        padding: 10px 6px;
        font-size: 0.95em;
    }
    .content-header h2 {
        font-size: 1em;
        margin-bottom: 6px;
    }
    .main-content {
        padding: 8px 1.5vw;
    }
    .products-grid {
        gap: 4px;
        padding: 4px 1.5vw 10px 1.5vw;
    }
    .product-card {
        padding: 8px 4px;
        font-size: 0.9em;
        margin: 0;
        border-radius: 8px;
    }
}

.search-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
    background: white;
    transform: translateY(-2px);
}

/* תוכן ראשי */
.main-content {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.content-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 25px;
    border-bottom: 3px solid #f1f3f4;
}

.content-header h2 {
    margin: 0;
    color: #333;
    font-size: 1.8rem;
    font-weight: 700;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.header-actions .btn {
    padding: 12px 25px;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, #17a2b8 0%, #138496 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(23,162,184,0.3);
}

.header-actions .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(23,162,184,0.4);
}

/* רשת מוצרים */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

/* כרטיסי מוצרים */
.product-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}

.product-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
}

.product-header {
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e9ecef;
}

.product-title {
    font-size: 1.3em;
    font-weight: 600;
    color: #2c3e50;
    margin: 0 0 8px 0;
}

.product-code {
    font-size: 0.9em;
    color: #6c757d;
    background-color: #f8f9fa;
    padding: 4px 8px;
    border-radius: 6px;
    display: inline-block;
}

.product-search-name {
    font-size: 0.9em;
    color: #6c757d;
    font-style: italic;
    margin-top: 8px;
    padding: 4px 12px;
    background-color: #e9ecef;
    border-radius: 12px;
    display: inline-block;
    border-left: 3px solid #28a745;
}

.product-category,
.product-type {
    margin: 8px 0;
    font-size: 0.95em;
    color: #495057;
}

.product-type {
    color: #666;
    font-size: 0.9em;
    margin-bottom: 8px;
}

.product-unit,
.product-default-quantity,
.product-default-size {
    color: #555;
    font-size: 0.85em;
    margin-bottom: 6px;
    padding: 2px 6px;
    background-color: #f8f9fa;
    border-radius: 4px;
    display: inline-block;
    margin-right: 8px;
}

.product-sizes {
    margin: 15px 0;
}

.size-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    margin: 5px 0;
    background-color: #f8f9fa;
    border-radius: 8px;
    border-left: 3px solid #007bff;
}

.size-name {
    font-weight: 500;
    color: #495057;
}

.size-price {
    font-weight: 600;
    color: #28a745;
}

.size-quantity {
    font-size: 0.9em;
    color: #6c757d;
    background-color: #e9ecef;
    padding: 2px 6px;
    border-radius: 4px;
}

.no-sizes {
    text-align: center;
    color: #6c757d;
    font-style: italic;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 8px;
}

.product-actions {
    margin-top: 15px;
    display: flex;
    gap: 10px;
}

.product-actions .btn {
    flex: 1;
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-edit {
    background-color: #ffc107;
    color: #212529;
}

.btn-edit:hover {
    background-color: #e0a800;
    transform: translateY(-1px);
}

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

.btn-delete:hover {
    background-color: #c82333;
    transform: translateY(-1px);
}

.no-products {
    text-align: center;
    padding: 2rem;
    color: #666;
    font-size: 1.1rem;
    background: #f8f9fa;
    border-radius: 8px;
    border: 2px dashed #dee2e6;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    backdrop-filter: blur(5px);
}

.modal.show {
    display: block;
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 0;
    border-radius: 15px;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 30px;
    border-bottom: 2px solid #f1f3f4;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 15px 15px 0 0;
}

.modal-header h2 {
    margin: 0;
    color: #333;
    font-size: 1.4rem;
    font-weight: 600;
}

.close {
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close:hover {
    color: #333;
}

/* טופס מוצר */
.product-form {
    padding: 30px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 8px;
    color: #333;
    font-weight: 600;
    font-size: 0.95rem;
}

.form-group input,
.form-group select {
    padding: 12px 15px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
    outline: none;
}

/* שדה שם החיפוש */
.form-group input[name="searchName"] {
    background-color: #f8f9fa;
    border-left: 4px solid #28a745;
}

.form-group input[name="searchName"]:focus {
    background-color: white;
    border-left-color: #007bff;
}

/* הצגת שם החיפוש בכרטיס המוצר */
.search-name {
    font-size: 0.9em;
    color: #28a745;
    font-style: italic;
    font-weight: 500;
    background-color: #e8f5e8;
    padding: 2px 8px;
    border-radius: 4px;
    border: 1px solid #c3e6c3;
}

.product-search-name {
    font-size: 0.9em;
    color: #6c757d;
    font-style: italic;
    margin-top: 8px;
    padding: 4px 12px;
    background-color: #e9ecef;
    border-radius: 12px;
    display: inline-block;
    border-left: 3px solid #28a745;
}

/* שיפור תצוגת פרטי המוצר */
.product-details p {
    margin: 8px 0;
    line-height: 1.4;
}

.product-details strong {
    color: #495057;
    margin-left: 5px;
}

.quantity-fields,
.size-fields {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
    border: 2px solid #e9ecef;
}

.sizes-section {
    margin: 25px 0;
}

.sizes-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.sizes-header h3 {
    margin: 0;
    color: #333;
    font-size: 1.1rem;
}

.sizes-container {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    border: 2px solid #e9ecef;
}

.size-row {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 15px;
    align-items: center;
    margin-bottom: 15px;
    padding: 15px;
    background: white;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.size-row:last-child {
    margin-bottom: 0;
}

.size-row input {
    padding: 10px 12px;
    border: 2px solid #e1e5e9;
    border-radius: 6px;
    font-size: 0.9rem;
}

.size-row input:focus {
    outline: none;
    border-color: #007bff;
}

.remove-size-btn {
    background: #dc3545;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: all 0.3s ease;
}

.remove-size-btn:hover {
    background: #c82333;
}

.form-actions {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 2px solid #f1f3f4;
}

.form-actions .btn {
    padding: 12px 25px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.form-actions .btn-success {
    background: linear-gradient(135deg, #28a745 0%, #1e7e34 100%);
    color: white;
}

.form-actions .btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(40,167,69,0.4);
}

.form-actions .btn-secondary {
    background: #6c757d;
    color: white;
}

.form-actions .btn-secondary:hover {
    background: #5a6268;
}

/* Modal מחיקה */
.delete-modal .modal-content {
    max-width: 500px;
}

.delete-modal .modal-body {
    padding: 30px;
    text-align: center;
}

.delete-modal .modal-body p {
    margin: 10px 0;
    color: #333;
    font-size: 1.1rem;
}

.delete-modal .modal-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    padding: 0 30px 30px;
}

.delete-modal .btn-danger {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.delete-modal .btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(220,53,69,0.4);
}

/* כפתורים כלליים */
.btn {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,123,255,0.4);
}

/* הודעות מערכת */
#notifications-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1001;
}

/* תצוגה מותאמת למובייל לממשק הניהול */
@media (max-width: 1024px) {
    .admin-panel {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .sidebar {
        position: static;
        order: 2;
    }
    
    .main-content {
        order: 1;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .size-row {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .modal-content {
        width: 95%;
        margin: 10% auto;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .form-actions .btn {
        width: 100%;
    }
}

/* עיצוב לכפתור Google Sign-In */
#googleSignInButton {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

#googleSignInButton > div {
    width: 100% !important;
    max-width: 300px;
}

/* עיצוב רספונסיבי למובייל */
@media (max-width: 768px) {
    .login-container {
        padding: 10px;
        min-height: 100vh;
    }
    
    .login-box {
        padding: 30px 20px;
        margin: 10px;
        max-width: 100%;
        border-radius: 12px;
    }
    
    .login-box h2 {
        font-size: 1.5em;
        margin-bottom: 15px;
    }
    
    .login-box p {
        font-size: 0.95em;
        margin-bottom: 25px;
    }
    
    #googleSignInButton > div {
        width: 100% !important;
        max-width: 100%;
    }
    
    .user-info {
        position: fixed;
        top: 10px;
        right: 10px;
        padding: 10px 15px;
        font-size: 0.9em;
        background: white;
        border-radius: 8px;
        box-shadow: 0 4px 12px rgba(0,0,0,0.1);
        z-index: 1000;
    }
    
    /* במובייל - רק כפתור התנתקות, בלי מידע על המשתמש */
    .user-info span {
        display: none;
    }
    
    .btn-small {
        padding: 8px 16px;
        font-size: 0.95em;
        background: #dc3545;
        color: white;
        border: none;
        border-radius: 6px;
        cursor: pointer;
        transition: all 0.3s ease;
        font-weight: 600;
        min-width: 70px;
        text-align: center;
    }
    
    .btn-small:hover {
        background: #c82333;
        transform: translateY(-1px);
        box-shadow: 0 3px 8px rgba(0,0,0,0.2);
    }
}

/* עיצוב למסכים קטנים מאוד */
@media (max-width: 480px) {
    .login-container {
        padding: 5px;
    }
    
    .login-box {
        padding: 25px 15px;
        margin: 5px;
    }
    
    .login-box h2 {
        font-size: 1.3em;
    }
    
    .login-box p {
        font-size: 0.9em;
    }
    
    /* כפתור התנתקות במסכים קטנים */
    .user-info {
        padding: 8px 12px;
        font-size: 0.85em;
    }
    
    .btn-small {
        padding: 6px 14px;
        font-size: 0.9em;
        min-width: 60px;
    }
}

/* עיצוב לגובה נמוך */
@media (max-height: 600px) {
    .login-container {
        min-height: 100vh;
        padding: 10px;
    }
    
    .login-box {
        padding: 20px 15px;
    }
    
    .login-box h2 {
        margin-bottom: 10px;
        font-size: 1.4em;
    }
    
    .login-box p {
        margin-bottom: 20px;
        font-size: 0.9em;
    }
}
