/* מערכת CRM - חופשה במבצע */
/* ================================ */

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    min-height: 100vh;
    direction: rtl;
    color: #333;
}

/* כותרת עליונה */
.header {
    background: rgba(255, 255, 255, 0.95);
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: #1a1a2e;
}

.logo span {
    color: #e94560;
}

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

.user-name {
    color: #666;
}

.btn-logout {
    background: #e94560;
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 5px;
    cursor: pointer;
    text-decoration: none;
    font-size: 0.9rem;
}

.btn-logout:hover {
    background: #d63050;
}

/* מיכל ראשי */
.container {
    max-width: 800px;
    margin: 30px auto;
    padding: 0 20px;
}

/* כרטיס טופס */
.card {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.card-title {
    font-size: 1.5rem;
    color: #1a1a2e;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e94560;
}

/* קבוצות שדות */
.form-section {
    margin-bottom: 25px;
}

.section-title {
    font-size: 1.1rem;
    color: #e94560;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-title::before {
    content: '';
    width: 4px;
    height: 20px;
    background: #e94560;
    border-radius: 2px;
}

/* שדות טופס */
.form-group {
    margin-bottom: 15px;
}

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

label {
    display: block;
    margin-bottom: 5px;
    color: #555;
    font-weight: 500;
}

input, select, textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s, box-shadow 0.3s;
    font-family: inherit;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: #e94560;
    box-shadow: 0 0 0 3px rgba(233, 69, 96, 0.1);
}

textarea {
    resize: vertical;
    min-height: 80px;
}

/* כפתורים */
.btn {
    padding: 14px 30px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-primary {
    background: linear-gradient(135deg, #e94560 0%, #d63050 100%);
    color: white;
    width: 100%;
    margin-top: 10px;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(233, 69, 96, 0.4);
}

.btn-whatsapp {
    background: #25D366;
    color: white;
}

.btn-whatsapp:hover {
    background: #1da851;
}

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

/* עמוד התחברות */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

.login-card {
    width: 100%;
    max-width: 400px;
}

.login-logo {
    text-align: center;
    margin-bottom: 30px;
    font-size: 2rem;
    color: #1a1a2e;
}

.error-message {
    background: #ffe6e6;
    color: #d63050;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 20px;
    text-align: center;
}

/* עמוד טיוטה ללקוח */
.draft-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
}

.draft-header {
    text-align: center;
    padding: 30px;
    background: linear-gradient(135deg, #e94560 0%, #d63050 100%);
    color: white;
    border-radius: 15px 15px 0 0;
}

.draft-header h1 {
    font-size: 1.8rem;
    margin-bottom: 5px;
}

.draft-header p {
    opacity: 0.9;
}

.draft-body {
    background: white;
    padding: 30px;
    border-radius: 0 0 15px 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.draft-section {
    margin-bottom: 25px;
}

.draft-section-title {
    font-size: 0.9rem;
    color: #888;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.draft-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.draft-item:last-child {
    border-bottom: none;
}

.draft-label {
    color: #666;
}

.draft-value {
    font-weight: 600;
    color: #1a1a2e;
}

.draft-total {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    margin: 25px 0;
}

.draft-total-label {
    color: #666;
    margin-bottom: 5px;
}

.draft-total-price {
    font-size: 2.5rem;
    font-weight: bold;
    color: #e94560;
}

.draft-notes {
    background: #fff3cd;
    padding: 15px;
    border-radius: 8px;
    color: #856404;
}

.draft-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 25px;
}

.draft-actions .btn {
    width: 100%;
}

/* הודעת הצלחה */
.success-message {
    background: #d4edda;
    color: #155724;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    margin: 20px 0;
}

/* רספונסיבי */
@media (max-width: 600px) {
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .card {
        padding: 20px;
    }
}
