body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #282c34; /* רקע כהה */
    color: #e0e0e0; /* צבע טקסט בהיר */
    line-height: 1.6;
    direction: rtl; /* יישור מימין לשמאל */
    text-align: right; /* יישור טקסט לימין */
}

a {
    color: #61dafb; /* צבע קישורים בהיר */
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #90e0ff;
}

/* ניווט */
nav {
    background-color: #20232a;
    padding: 10px 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    margin-bottom: 20px; /* רווח מתחת לניווט */
}

.menu {
    list-style: none;
    padding: 0;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    max-width: 1200px; /* רוחב מקסימלי לתפריט */
}

.menu li {
    margin: 0 15px;
}

.menu a {
    display: block;
    padding: 10px 15px;
    color: #e0e0e0;
    font-weight: bold;
    border-radius: 5px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.menu a:hover,
.menu a.active { /* קלאס עבור הדף הפעיל אם תרצה להוסיף JS בהמשך */
    background-color: #3a3f4a;
    color: #61dafb;
}

/* סגנון כללי לדפים */
.main-content, .login-page, .language-guide-page {
    max-width: 900px;
    margin: 20px auto;
    padding: 20px;
    background-color: #343a40;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

h1, h2, h3 {
    color: #61dafb;
    text-align: center;
    margin-bottom: 20px;
}

p {
    margin-bottom: 10px;
}

/* דף ההתחברות */
.login-page {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 40px); /* גובה מינימלי לכל הדף */
}

.login-container {
    padding: 30px;
    border-radius: 10px;
    background-color: #3a3f4a;
    box-shadow: 0 5px 15px rgba(0,0,0,0.4);
    width: 100%;
    max-width: 400px;
}

.form-group {
    margin-bottom: 15px;
    text-align: right; /* יישור כיתובים לימין */
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #e0e0e0;
}

.form-group input[type="email"],
.form-group input[type="password"],
.form-group input[type="tel"],
.form-group input[type="date"],
.form-group select {
    width: calc(100% - 20px); /* מוריד את הפאדינג מהרוחב */
    padding: 10px;
    border: 1px solid #555;
    border-radius: 5px;
    background-color: #444;
    color: #fff;
    font-size: 1em;
    box-sizing: border-box; /* לוודא שהפאדינג לא מוסיף לרוחב הכללי */
}

.form-group input::placeholder {
    color: #bbb;
}

.login-button {
    width: 100%;
    padding: 12px;
    background-color: #04AA6D;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 1.1em;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.login-button:hover {
    background-color: #038a57;
}

/* כפתורי בחירת שפה בדף הבית */
.language-options {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.language-button {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 200px;
    height: 100px;
    background-color: #4CAF50;
    color: white;
    font-size: 1.5em;
    font-weight: bold;
    border-radius: 10px;
    text-align: center;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.language-button:hover {
    background-color: #45a049;
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.4);
}

/* סגנון למדריכי שפות */
.language-guide-page h1 {
    text-align: right; /* כותרת הדף הספציפי */
}

.language-guide-page .description {
    background-color: #444a52;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 25px;
    border-right: 5px solid #61dafb; /* פס צבעוני בצד ימין */
}

.language-guide-page .description p {
    margin: 0;
}

.language-guide-page h3 {
    text-align: right; /* כותרת "פקודות בסיסיות" */
    border-bottom: 2px solid #555;
    padding-bottom: 10px;
    margin-top: 40px;
    margin-bottom: 20px;
}

.command-section {
    background-color: #3a3f4a;
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.command-title {
    font-size: 1.3em;
    color: #61dafb;
    font-weight: bold;
    margin-bottom: 10px;
    border-bottom: 1px dashed #555;
    padding-bottom: 5px;
}

.command-section p {
    margin-bottom: 15px;
    color: #ccc;
}

.code-example {
    background-color: #2d2d2d;
    border-radius: 5px;
    overflow-x: auto; /* מאפשר גלילה לצדדים אם הקוד ארוך */
    padding: 15px;
    border: 1px solid #555;
}

.code-example pre {
    margin: 0;
    color: #c7c7c7;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 0.9em;
    white-space: pre-wrap; /* שומר על שבירות שורה */
    word-break: break-all; /* שובר מילים ארוכות */
}

/* התאמות קטנות לקוד המקורי שהיה עם עיצוב inline */
/* (הערה: עדיף להסיר עיצובי inline מקוד ה-HTML ולהעביר אותם לכאן) */
.command-section [style*="background-color: #444;"] {
    background-color: #444a52 !important;
}
.command-section [style*="border-top: 1px dashed #666;"] {
    border-top: 1px dashed #666 !important;
}
.command-section [style*="background-color: #04AA6D;"] {
    background-color: #04AA6D !important;
}
.command-section [style*="color: #ddd;"] {
    color: #ddd !important;
}
.command-section [style*="background-color: #555;"] {
    background-color: #555 !important;
}
.command-section [style*="border: 1px solid #777;"] {
    border: 1px solid #777 !important;
}
.command-section [style*="color: white;"] {
    color: white !important;
}
.command-section [style*="padding: 8px;"] {
    padding: 8px !important;
}
.command-section [style*="border-radius: 4px;"] {
    border-radius: 4px !important;
}
.command-section [style*="width:100%;"] {
    width: 100% !important;
}
.command-section [style*="border-collapse: collapse;"] {
    border-collapse: collapse !important;
}
.command-section [style*="color: #f8f8f8;"] {
    color: #f8f8f8 !important;
}
.command-section th[style*="padding: 8px;"], .command-section td[style*="padding: 8px;"] {
    padding: 8px !important;
}
.command-section th[style*="border: 1px solid #666;"], .command-section td[style*="border: 1px solid #666;"] {
    border: 1px solid #666 !important;
}
.command-section [style*="border-radius: 8px;"] {
    border-radius: 8px !important;
}
.command-section [style*="font-weight: bold;"] {
    font-weight: bold !important;
}
.command-section [style*="color: yellow;"] {
    color: yellow !important;
}