/* استایل‌های قبلی */
.nav-link {
    transition: all 0.3s ease;
}
.nav-link:hover {
    background-color: #2563eb;
    transform: translateY(-2px);
}
.dropdown:hover .dropdown-menu {
    display: block;
}
@media (max-width: 768px) {
    .nav-items {
        display: none;
    }
    .nav-items.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 64px;
        right: 0;
        width: 100%;
        background-color: #1f2937;
        padding: 1rem;
    }
}
table th a {
    display: inline-flex;
    align-items: center;
    transition: all 0.2s ease;
}
table th a:hover {
    color: #e5e7eb;
    text-decoration: underline;
}
table th a::after {
    margin-right: 0.25rem;
}
.search-form input {
    direction: rtl;
}
.search-form button, .search-form a {
    transition: all 0.2s ease;
}
.search-form button:hover, .search-form a:hover {
    transform: translateY(-1px);
}
.date-filter {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.date-filter a {
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    transition: all 0.2s ease;
}
.date-filter a:hover {
    transform: translateY(-1px);
}
footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 50;
    box-shadow: 0 -2px 4px rgba(0, 0, 0, 0.1);
}
.content-container {
    padding-bottom: 4rem;
}
.overflow-x-auto {
    padding-bottom: 4rem;
}
footer p {
    direction: rtl;
}
footer a {
    transition: all 0.2s ease;
}
footer a:hover {
    transform: translateY(-1px);
}
form {
    direction: rtl;
}
form label {
    direction: rtl;
}
form input[type="text"],
form input[type="email"],
form input[type="password"],
form select {
    direction: rtl;
}
table a {
    transition: all 0.2s ease;
}
table a:hover {
    transform: translateY(-1px);
}
@media (max-width: 768px) {
    form.flex {
        flex-direction: column;
    }
    form.flex .flex-1 {
        min-width: 100%;
    }
}

/* استایل جدید برای جدول manage_factories.php */
table.factory-table th,
table.factory-table td {
    text-align: center;
}

/* استایل برای صفحه مقایسه */
table.compare-table th,
table.compare-table td {
    text-align: center;
    padding: 0.5rem;
}
form.compare-form select,
form.compare-form input {
    min-width: 150px;
}
form.compare-form button {
    padding: 0.5rem 1rem;
}
@media (max-width: 768px) {
    form.compare-form {
        flex-direction: column;
        align-items: stretch;
    }
    form.compare-form .date-filter {
        flex-direction: column;
        align-items: stretch;
    }
}