body {
    font-family: 'Arial', sans-serif;
    background-color: #f4f4f4;
    text-align: right;
    direction: rtl;
    margin: 0;
    padding: 0;
}

/* עיצוב התפריט החדש - אחיד לכל העמודים */
.navbar {
    background: #2C3E50;
    padding: 10px 0;
    width: 100%;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 25px;
    justify-content: center;
    align-items: center;
    margin: 0;
    padding: 0;
}

.nav-links li a {
    color: white;
    text-decoration: none;
    font-size: 16px;
    font-weight: bold;
    padding: 8px 12px;
    border-radius: 6px;
    transition: background 0.3s, transform 0.2s;
    display: flex;
    align-items: center;
    gap: 5px;
}

.nav-links li a:hover {
    background: #34495E;
    transform: scale(1.05);
    color: white;
    text-decoration: none;
}

.nav-links li a i {
    font-size: 16px;
}

.cta-button {
    background: #27AE60;
    padding: 8px 15px !important;
    border-radius: 6px;
    font-weight: bold;
}

.cta-button:hover {
    background: #219a52;
    color: white;
    text-decoration: none;
}

.logout-button {
    background: #E74C3C;
    padding: 8px 15px !important;
    border-radius: 6px;
    font-weight: bold;
}

.logout-button:hover {
    background: #c0392b;
    color: white;
    text-decoration: none;
}

/* לוגו */
.nav-links li a img.logo {
    height: 30px;
    width: auto;
    margin-left: 10px;
}

.container {
    margin-top: 50px;
    padding: 0 15px;
    background: white;
    max-width: 1000px;
    margin: 0 auto;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
}

.container2 {
    margin-top: 50px;
    padding: 20px;
    background: white;
    max-width: 1200px !important;
    width: 95%;
    margin-left: auto;
    margin-right: auto;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
}

.container3 {
    margin-top: 50px;
    padding: 20px;
    background: white;
    width: 1400px;
    max-width: 1400px !important;
    margin-left: auto;
    margin-right: auto;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
}

.leads-container2 {
    margin-top: 50px;
    padding: 20px;
    background: white;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    display: flex;
    flex-direction: column;
}

h2 {
    text-align: center;
    color: #333;
}

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

label {
    font-weight: bold;
    margin-top: 10px;
}

input[type="text"], input[type="password"] {
    padding: 10px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

button {
    margin-top: 15px;
    padding: 10px;
    background: #007bff;
    color: white;
    font-size: 18px;
    border: none;
    cursor: pointer;
    border-radius: 5px;
}

button:hover {
    background: #0056b3;
}

.flash-messages {
    text-align: center;
    margin-bottom: 15px;
    color: red;
    font-weight: bold;
}

/* תפריט המבורגר לניידים */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    background-color: white;
    height: 4px;
    width: 30px;
    margin: 4px;
    border-radius: 2px;
}

/* תפריט רספונסיבי לניידים */
@media screen and (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 60px;
        right: 0;
        width: 100%;
        background: #2C3E50;
        padding: 10px 0;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        text-align: center;
        padding: 10px 0;
    }
}

/* הגדרות כלליות למסך רחב */
.leads-container {
    max-width: 95%;
    margin: 0 auto;
    padding: 20px;
    background: var(--light-bg);
    border-radius: 15px;
    box-shadow: 0 4px 6px var(--shadow-color);
}

.table-wrapper {
    margin-bottom: 0;
    background: transparent;
    box-shadow: none;
}

.table-container {
    flex: 1;
    margin-top: 20px;
    background: white;
    border-radius: 8px;
}

table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-bottom: 0;
}

/* התאמה למסכים גדולים */
@media screen and (min-width: 1400px) {
    .container {
        max-width: 90%;
    }
    .leads-container2 {
        max-width: 1400px;
    }
}

@media screen and (min-width: 1600px) {
    .container {
        max-width: 85%;
    }
    .leads-container2 {
        max-width: 1400px;
    }
}

@media screen and (min-width: 1920px) {
    .container {
        max-width: 80%;
    }
    .leads-container2 {
        max-width: 1400px;
    }
}

/* סגנונות לטבלת לידים */
.table-container table td.lead-name-cell {
    max-width: 150px !important;
    width: 150px !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    padding-right: 10px !important;
}

.table-container table td.lead-name-cell a {
    display: block !important;
    max-width: 100% !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    color: inherit !important;
    text-decoration: none !important;
}

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

.panel-btn {
    padding: 8px 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: all 0.3s ease;
    color: white;
}

.check-balance-btn {
    background-color: #3498db;
}

.check-balance-btn:hover {
    background-color: #2980b9;
}

.service-ticket-btn {
    background-color: #e67e22;
}

.service-ticket-btn:hover {
    background-color: #d35400;
}

.open-chat-btn {
    background-color: #27ae60;
}

.open-chat-btn:hover {
    background-color: #219a52;
}
