

/* CSS for buttons */
.tab-buttons {
    text-align: center;
    margin-bottom: 20px;
    display: flex;
    flex-wrap: wrap; /* Allows buttons to wrap to the next line on smaller screens */
    justify-content: center; /* Centers buttons horizontally */
    gap: 10px; /* Space between buttons */
    max-width: 1260px; /* Maximum width for the button set */
    width: 100%; /* Takes full width within its parent */
    box-sizing: border-box;
}

.tab-button {
    /* رنگ آبی دکمه‌ها - اینجا می‌توانید رنگ را تغییر دهید */
    background-color: #007BFF; /* رنگ اصلی آبی */
    color: white;
    padding: 10px 20px;
    border: none;
    cursor: pointer;
    font-size: 16px;
    margin: 5px 0; /* Vertical margin for spacing, horizontal 0 */
    border-radius: 5px;
    transition: background-color 0.3s ease; /* Smooth transition for hover effect */
    white-space: nowrap; /* Prevents button text from wrapping */
}

.tab-button:hover {
    background-color: #0056b3; /* رنگ آبی تیره‌تر برای هاور */
}

.tab-button.active {
    background-color: #004085; /* رنگ آبی تیره‌تر برای دکمه فعال */
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}

/* CSS for search field */
.search-container {
    margin-bottom: 20px;
    width: 600px; /* Specific width for the search container - you can change this */
    max-width: 100%; /* Ensures responsiveness on smaller screens */
    margin-left: auto; /* Centers horizontally */
    margin-right: auto; /* Centers horizontally */
    box-sizing: border-box;
    text-align: center; /* For centering placeholder text and input content in older browsers */
}

#searchInput {
    width: 100%; /* Input field takes 100% width of its container */
    padding: 10px;
    font-size: 16px;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    box-sizing: border-box;
    direction: ltr; /* Left-to-right text direction for input */
    text-align: left;
}

/* CSS for tables */
.table-container {
    display: none; /* Hidden by default, shown by JavaScript */
    width: 100%;
    max-width: 1260px; /* Maximum width for tables */
    box-sizing: border-box;
    margin: 20px auto; /* Vertical margin, horizontal auto (for centering) */
    animation: fadeIn 0.5s forwards; /* Fade-in animation when displayed */
}

table {
    width: 100%;
    border-collapse: collapse; /* Collapses cell borders into a single border */
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
    background-color: #fff;
    direction: ltr; /* Left-to-right text direction for table content */
    text-align: left;
}

th, td {
    padding: 12px 15px;
    border: 1px solid #ddd;
    text-align: center;
}

th {
    background-color: #007BFF; /* رنگ آبی سرتیتر جدول */
    color: white;
    font-weight: bold;
    white-space: nowrap; /* Prevents header text from wrapping */
}

tr:nth-child(even) {
    background-color: #f2f2f2; /* Alternating row background color */
}

tr:hover {
    background-color: #ddd; /* Hover effect for rows */
}

td:first-child {
    text-align: left; /* Aligns first column text to the left */
    font-weight: bold;
    color: #333;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}