/* 
 * עיצוב מותאם אישית לתבנית הצעות מחיר - גרסה מקצועית ומדהימה
 * גרסה: 3.0.0
 * תאריך: 2024
 */

/* ייבוא פונט Heebo */
@import url('https://fonts.googleapis.com/css2?family=Heebo:wght@300;400;500;600;700;800;900&display=swap');

/* הגדרות בסיסיות */
.wqm-quote-template {
    font-family: 'Heebo', sans-serif;
    line-height: 1.6;
    color: #2c3e50;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 80px 40px;
    position: relative;
    overflow-x: hidden;
}

.wqm-quote-template::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="50" cy="50" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    pointer-events: none;
    z-index: 1;
}

/* קונטיינר ראשי */
.wqm-main-container {
    max-width: 1400px;
    margin: 0 auto;
    background: #ffffff;
    border-radius: 25px;
    box-shadow: 0 40px 80px rgba(0,0,0,0.2);
    overflow: hidden;
    position: relative;
    z-index: 2;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
}

/* כותרת ראשית */
.wqm-main-title {
    text-align: center;
    font-size: 48px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #2c3e50;
    margin: 0 0 40px 0;
    padding: 60px 60px 0 60px;
}

/* מידע כותרת הצעה */
.wqm-quote-header-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f7fafc;
    padding: 20px 30px;
    border-radius: 12px;
    margin: 0 60px 40px 60px;
    border: 1px solid #e2e8f0;
}

.wqm-quote-number,
.wqm-quote-date {
    text-align: center;
}

.wqm-quote-number strong,
.wqm-quote-date strong {
    color: #2c3e50;
    font-size: 18px;
    font-weight: 600;
    display: block;
    margin-bottom: 5px;
}

.wqm-quote-number span,
.wqm-quote-date span {
    color: #4a5568;
    font-size: 16px;
    font-weight: 500;
}

/* קונטיינר תוכן הצעה */
.wqm-content-container {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 40px;
    margin: 0 60px 40px 60px;
}

/* סקשן פרטי לקוח */
.wqm-client-info-section {
    background: #e8f5e8;
    border-radius: 12px;
    border-left: 4px solid #27ae60;
    padding: 30px;
    margin-bottom: 30px;
}

.wqm-client-info-section h3 {
    color: #2c3e50;
    font-size: 24px;
    font-weight: 600;
    margin: 0 0 20px 0;
    font-family: 'Heebo', sans-serif;
}

.wqm-client-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.wqm-client-detail {
    background: #f7fafc;
    padding: 15px;
    border-radius: 8px;
    border-right: 4px solid #3182ce;
}

.wqm-client-detail strong {
    color: #2d3748;
    font-size: 14px;
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}

.wqm-client-detail span {
    color: #4a5568;
    font-size: 16px;
    font-weight: 500;
}

/* סקשן פריטי הצעה */
.wqm-quote-items-section {
    background: #fff3cd;
    border-radius: 12px;
    border-left: 4px solid #f39c12;
    padding: 30px;
    margin-bottom: 30px;
}

.wqm-quote-items-section h3 {
    color: #2c3e50;
    font-size: 24px;
    font-weight: 600;
    margin: 0 0 20px 0;
    font-family: 'Heebo', sans-serif;
}

/* טבלת פריטים */
.wqm-items-table {
    width: 100%;
    border-collapse: collapse;
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.wqm-items-table th {
    background: #f8f9fa;
    color: #2c3e50;
    font-weight: 600;
    padding: 15px;
    text-align: right;
    border-bottom: 2px solid #e2e8f0;
}

.wqm-items-table td {
    padding: 15px;
    border-bottom: 1px solid #e2e8f0;
    color: #4a5568;
}



/* סקשן סיכום הצעה */
.wqm-quote-summary-section {
    background: #e3f2fd;
    border-radius: 12px;
    border-left: 4px solid #3498db;
    padding: 30px;
    margin-bottom: 30px;
}

.wqm-quote-summary-section h3 {
    color: #2c3e50;
    font-size: 24px;
    font-weight: 600;
    margin: 0 0 20px 0;
    font-family: 'Heebo', sans-serif;
}

.wqm-summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    text-align: center;
}

.wqm-summary-item {
    background: #ffffff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.wqm-summary-item strong {
    color: #4a5568;
    font-size: 16px;
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
}

.wqm-summary-item span {
    color: #2c3e50;
    font-size: 24px;
    font-weight: bold;
}

.wqm-summary-item .status {
    font-size: 18px;
    font-weight: bold;
}

/* סקשן חתימה */
.wqm-signature-section {
    background: #f8f9fa;
    border-radius: 12px;
    border-left: 4px solid #6c757d;
    padding: 30px;
    margin-bottom: 30px;
}

.wqm-signature-section h3 {
    color: #2c3e50;
    font-size: 24px;
    font-weight: 600;
    margin: 0 0 20px 0;
    font-family: 'Heebo', sans-serif;
}

.wqm-signature-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.wqm-signature-item {
    background: #ffffff;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.wqm-signature-item strong {
    color: #2d3748;
    font-size: 14px;
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}

.wqm-signature-item span {
    color: #4a5568;
    font-size: 16px;
    font-weight: 500;
}

/* סקשן פעולות */
.wqm-actions-section {
    background: #fff5f5;
    border-radius: 12px;
    border-left: 4px solid #e53e3e;
    padding: 30px;
    margin-bottom: 30px;
}

.wqm-actions-section h3 {
    color: #2c3e50;
    font-size: 24px;
    font-weight: 600;
    margin: 0 0 20px 0;
    font-family: 'Heebo', sans-serif;
}

.wqm-action-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
}

.wqm-action-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Heebo', sans-serif;
    text-decoration: none;
    display: inline-block;
}

.wqm-action-btn.accept {
    background: #27ae60;
    color: #ffffff;
}



.wqm-action-btn.reject {
    background: #e74c3c;
    color: #ffffff;
}



.wqm-action-btn.request-changes {
    background: #f39c12;
    color: #ffffff;
}



.wqm-action-btn.cancel {
    background: #95a5a6;
    color: #ffffff;
}



/* סקשן ציר זמן סטטוס */
.wqm-timeline-section {
    background: #f0f9ff;
    border-radius: 12px;
    border-left: 4px solid #0ea5e9;
    padding: 30px;
    margin-bottom: 30px;
}

.wqm-timeline-section h3 {
    color: #2c3e50;
    font-size: 24px;
    font-weight: 600;
    margin: 0 0 20px 0;
    font-family: 'Heebo', sans-serif;
}

.wqm-timeline {
    position: relative;
    padding-left: 30px;
}

.wqm-timeline::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #0ea5e9;
}

.wqm-timeline-item {
    position: relative;
    margin-bottom: 20px;
    background: #ffffff;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.wqm-timeline-item::before {
    content: '';
    position: absolute;
    left: -22px;
    top: 20px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #0ea5e9;
    border: 3px solid #ffffff;
    box-shadow: 0 0 0 2px #0ea5e9;
}

.wqm-timeline-date {
    color: #6c757d;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 5px;
}

.wqm-timeline-status {
    color: #2c3e50;
    font-size: 16px;
    font-weight: 600;
}

.wqm-timeline-description {
    color: #4a5568;
    font-size: 14px;
    margin-top: 5px;
}

/* סקשן תוכן משפטי */
.wqm-legal-section {
    background: #f1f3f4;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 30px;
}

.wqm-legal-content {
    color: #6c757d;
    font-size: 14px;
    line-height: 1.6;
    text-align: center;
}

/* מצבי סטטוס */
.wqm-status {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

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

.wqm-status.accepted {
    background: #d4edda;
    color: #155724;
}

.wqm-status.rejected {
    background: #f8d7da;
    color: #721c24;
}

.wqm-status.changes-requested {
    background: #d1ecf1;
    color: #0c5460;
}

.wqm-status.cancelled {
    background: #e2e3e5;
    color: #383d41;
}

/* רספונסיביות */
@media (max-width: 768px) {
    .wqm-quote-template {
        padding: 20px;
    }
    
    .wqm-main-title {
        font-size: 32px;
        padding: 40px 20px 0 20px;
    }
    
    .wqm-quote-header-info {
        flex-direction: column;
        gap: 15px;
        margin: 0 20px 30px 20px;
    }
    
    .wqm-content-container {
        margin: 0 20px 30px 20px;
        padding: 20px;
    }
    
    .wqm-client-details {
        grid-template-columns: 1fr;
    }
    
    .wqm-summary-grid {
        grid-template-columns: 1fr;
    }
    
    .wqm-signature-content {
        grid-template-columns: 1fr;
    }
    
    .wqm-action-buttons {
        flex-direction: column;
    }
    
    .wqm-action-btn {
        width: 100%;
        text-align: center;
    }

    /* למנוע חפיפה של תגיות סטטוס במובייל */
    .wqm-status {
        position: static !important;
        display: inline-block;
        margin-top: 8px;
        margin-bottom: 0;
        line-height: 1.2;
        z-index: auto;
    }
}

@media (max-width: 480px) {
    .wqm-main-title {
        font-size: 28px;
    }
    
    .wqm-quote-template {
        padding: 10px;
    }
    
    .wqm-content-container {
        margin: 0 10px 20px 10px;
        padding: 15px;
    }
}

/* אנימציות */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.wqm-quote-template {
    animation: fadeInUp 0.6s ease-out;
}

.wqm-main-container {
    animation: fadeInUp 0.8s ease-out;
}

/* אפקטים נוספים */
.wqm-main-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea, #764ba2);
}

/* הדגשת מחירים */
.wqm-price {
    font-weight: 700;
    color: #27ae60;
    font-size: 1.2em;
}

.wqm-total-price {
    font-size: 2em;
    font-weight: 800;
    color: #2c3e50;
}

/* אייקונים */
.wqm-icon {
    margin-left: 8px;
    font-size: 1.1em;
}

/* מצב הדפסה */
@media print {
    .wqm-quote-template {
        background: #ffffff;
        padding: 0;
    }
    
    .wqm-main-container {
        box-shadow: none;
        border: 1px solid #e2e8f0;
    }
    
    .wqm-action-buttons {
        display: none;
    }
} 