/* --- Header Bar (כותרת + כפתורים) --- */
.tdm-header-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
    flex-wrap: wrap;
    gap: 20px;
}

/* עיצוב הכותרת הראשית */
.tdm-page-title {
    margin-top: 0; /* תוקן ל-0 כדי שיישב טוב עם הכפתורים */
    padding: 0;
    font-size: 2.2rem;
    color: #333;
    line-height: 1.2;
}

.tdm-page-title span {
    font-weight: 800;
}

/* אזור הכפתורים */
.tdm-header-actions-group {
    display: flex;
    gap: 15px;
    align-items: center;
}

/* --- עיצוב הכפתורים בבר העליון --- */
.tdm-header-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    line-height: 1;
    white-space: nowrap;
}

.tdm-header-btn .dashicons {
    font-size: 18px; width: 18px; height: 18px; margin: 0;
}

.tdm-btn-back {
    background-color: #f5f5f5; color: #555; border: 1px solid #ddd;
}
.tdm-btn-back:hover {
    background-color: #e0e0e0; color: #333; transform: translateX(3px);
}

.tdm-btn-route-info {
    background-color: #e8f5e9; color: #2e7d32; border: 1px solid #c8e6c9;
}
.tdm-btn-route-info:hover {
    background-color: #2e7d32; color: #fff; transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(46, 125, 50, 0.2);
}

/* --- התאמה למובייל --- */
@media (max-width: 768px) {
    .tdm-header-bar { flex-direction: column; align-items: flex-start; }
    .tdm-header-actions-group { width: 100%; flex-direction: column; align-items: stretch; }
    .tdm-header-btn { justify-content: center; }
}

/* =========================================
   עיצוב חדש לפופאפ (Info Modal)
   ========================================= */

.tdm-info-modal {
    display: none;
    position: fixed;
    z-index: 99999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5); /* רקע כהה */
    backdrop-filter: blur(5px); /* טשטוש רקע */
    align-items: center;
    justify-content: center;
    animation: tdmFadeIn 0.3s ease-out;
}

.tdm-info-content {
    background-color: #fff;
    padding: 40px;
    border-radius: 24px; /* פינות עגולות מודרניות */
    width: 90%;
    max-width: 520px;
    position: relative;
    text-align: center;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.tdm-info-close {
    position: absolute;
    top: 20px;
    left: 20px;
    font-size: 28px;
    color: #9ca3af;
    cursor: pointer;
    transition: color 0.2s;
    line-height: 1;
}
.tdm-info-close:hover { color: #333; }

/* האייקון הירוק הגדול בראש הפופאפ */
.tdm-info-main-icon {
    font-size: 50px;
    color: #2e7d32; /* ירוק מותאם */
    margin-bottom: 15px;
    display: inline-block;
    width: 50px; height: 50px; /* קיבוע גודל */
}

.tdm-info-content h2 {
    font-size: 28px;
    font-weight: 800;
    color: #1f2937;
    margin: 0 0 10px;
}

.tdm-info-content p {
    font-size: 16px;
    color: #6b7280;
    margin-bottom: 30px;
    line-height: 1.5;
}

/* רשימת השלבים */
.tdm-info-steps {
    text-align: right;
    margin: 0 0 35px;
    padding: 0;
    list-style: none;
}

.tdm-info-steps li {
    margin-bottom: 20px;
    font-size: 15px;
    color: #374151;
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

/* עיצוב האייקונים העגולים (מספרים/אייקונים) */
.tdm-step-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.tdm-step-icon .dashicons {
    font-size: 20px;
    width: 20px;
    height: 20px;
    margin: 0;
}

/* צבעים לאייקונים של השלבים */
/* שלב 1 - כחול */
.tdm-info-steps li:nth-child(1) .tdm-step-icon { 
    color: #0073aa; border: 2px solid #e6f7ff; 
}
/* שלב 2 - ירוק */
.tdm-info-steps li:nth-child(2) .tdm-step-icon { 
    color: #27ae60; border: 2px solid #e8f5e9; 
}
/* שלב 3 - אדום/גוגל */
.tdm-info-steps li:nth-child(3) .tdm-step-icon { 
    color: #e74c3c; border: 2px solid #fde8e8; 
}

.tdm-step-text {
    flex-grow: 1;
    line-height: 1.4;
    padding-top: 2px;
}
.tdm-step-text strong {
    display: block;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 3px;
    color: #111;
}

/* כפתור "בואו נתחיל" */
.tdm-info-btn-start {
    background-color: #fff;
    color: #e74c3c; /* אדום */
    border: 1px solid #e74c3c;
    padding: 12px 40px;
    font-size: 16px;
    font-weight: 700;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tdm-info-btn-start:hover {
    background-color: #e74c3c;
    color: #fff;
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.3);
}

@keyframes tdmFadeIn { from {opacity: 0; transform: scale(0.95);} to {opacity: 1; transform: scale(1);} }