/* استایل‌های پایه */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
}

header {
    background-color: #007BFF;
    color: white;
    padding: 10px 0;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.nav-list {
    list-style-type: none;
    margin: 0;
    padding: 0;
    display: flex;
}

.nav-list li {
    margin: 0 15px;
}

.nav-list li a {
    color: white;
    text-decoration: none;
    padding: 10px 20px;
    display: block;
    transition: background-color 0.3s, transform 0.3s;
    border-radius: 5px;
}

.nav-list li a:hover {
    background-color: #0056b3;
    transform: scale(1.1);
}

/* استایل‌های منوی موبایل */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.menu-toggle .bar {
    width: 25px;
    height: 3px;
    background-color: white;
    margin: 4px 0;
}

/* استایل‌های Responsive */
@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    .nav-list {
        display: none;
        flex-direction: column;
        width: 100%;
        background-color: #007BFF;
        position: absolute;
        top: 60px;
        left: 0;
    }

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

    .nav-list li {
        margin: 10px 0;
        text-align: center;
    }

    /* ستون‌ها در موبایل */
    main {
        flex-direction: column;
        padding: 10px;
    }

    .column {
        margin: 10px 0;
    }
}

/* استایل‌های صفحه اصلی */
main {
    display: flex;
    justify-content: space-between;
    padding: 20px;
}

.column {
    flex: 1;
    margin: 0 10px;
    background-color: white;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

/* استایل‌های فرم‌ها */
form {
    display: flex;
    flex-direction: column;
}

form label {
    margin-bottom: 5px;
    font-weight: bold;
}

form input {
    margin-bottom: 10px;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

form button {
    padding: 10px;
    background-color: #007BFF;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

form button:hover {
    background-color: #0056b3;
}

/* استایل‌های پیام‌ها */
#loginResult, #registerResult, #changePasswordResult {
    margin-top: 10px;
    padding: 10px;
    border-radius: 5px;
}

#loginResult.success, #registerResult.success, #changePasswordResult.success {
    background-color: #d4edda;
    color: #155724;
}

#loginResult.error, #registerResult.error, #changePasswordResult.error {
    background-color: #f8d7da;
    color: #721c24;
}

/* استایل‌های فوتر */
footer {
    background-color: #007BFF;
    color: white;
    text-align: center;
    padding: 10px 0;
    position: fixed;
    width: 100%;
    bottom: 0;
}
/* استایل‌های منوی زبان */
.language-menu {
    position: relative;
}

.language-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #007BFF;
    list-style-type: none;
    padding: 0;
    margin: 0;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.language-dropdown li {
    margin: 0;
}

.language-dropdown li a {
    padding: 10px 20px;
    display: block;
    color: white;
    text-decoration: none;
}

.language-dropdown li a:hover {
    background-color: #0056b3;
}

.language-dropdown.active {
    display: block;
}