body {
    background-color: #121212;
    color: #e0e0e0;
    font-family: 'Roboto', sans-serif;
    display: flex;
    flex-direction: column;
    justify-content: flex-start; /* برای اینکه محتوا از بالا شروع بشه */
    align-items: center;
    margin: 0;
    padding-top: 20px;
    overflow-y: auto; /* برای فعال کردن اسکرول */
}

header {
    width: 100%;
    padding: 10px;
    background-color: #6200ea;
    color: white;
}

button.add-button {
    background-color: #6200ea;
    color: white;
    padding: 10px 24px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-size: 16px;
    margin-right: 16px;
}

button.add-button:hover {
    background-color: #8900EAFF;
}
.filter-button {
    background-color: #6200ea;
    color: white;
    padding: 10px 24px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-size: 16px;
    margin-right: 16px;
}

#filter-button:hover {
    background-color: #8900EAFF;
}

.header-container {
    width: 90%;
    max-width: 650px;
    min-width: 350px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #1f1f1f;
    padding-block: 10px;
    border-radius: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    margin-bottom: 20px;
}

h2 {
    color: #e0e0e0;
    font-size: 20px;
    margin-left: 16px;
}

table {
    width: 90%;
    max-width: 650px;
    min-width: 350px;
    margin: 20px 0;
    border-collapse: separate;
    border-spacing: 10px;
    background-color: #1f1f1f;
    border-radius: 20px;
}

th {
    background-color: #6200ea;
    font-size: 18px;
    padding: 12px;
    text-align: left;
    border-radius: 8px;
    max-width: 150px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

td {
    padding: 12px;
    text-align: left;
    border-radius: 8px;
    background-color: #2c2c2c;
    max-width: 150px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

tbody tr:hover td {
    background-color: #4a4949;
    cursor: pointer;
}

#search-input {
    flex-grow: 1;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #333;
    background-color: #2c2c2c;
    color: #e0e0e0;
    box-sizing: border-box;
    margin-right: 10px;
    font-size: 16px;
}

#search-input:focus {
    outline: none;
    border-color: #6200ea;
    box-shadow: 0 0 5px rgba(98, 0, 234, 0.6);
}

#search-button {
    width: auto;
    padding: 12px 24px;
    border-radius: 8px;
    border: none;
    background-color: #6200ea;
    color: white;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#search-button:hover {
    background-color: #8900EAFF;
}

#search-header {
    width: 90%;
    max-width: 650px;
    display: flex;
    align-items: center;
    vertical-align: center;
    margin-bottom: 20px;
}

.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 20px;
}

.pagination span {
    background-color: #2c2c2c;
    color: #e0e0e0;
    padding: 10px 16px;
    border-radius: 4px;
    cursor: pointer;
    margin: 0 8px;
    text-decoration: none;
    font-size: 16px;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.pagination .current {
    background-color: #6200ea;
    color: white;
}

.pagination .dots {
    font-size: 18px;
    color: #e0e0e0;
    padding: 0 8px;
    cursor: default;
    background: transparent;
}

.pagination span:hover:not(.current) {
    background-color: #4a4a4a;
    transform: scale(1.05);
}

.pagination span:active:not(.current) {
    background-color: #3a3a3a;
    transform: scale(0.95);
}
input, select {
    width: 100%;
    padding: 12px;
    margin: 8px 0;
    border-radius: 4px;
    border: 1px solid #333;
    background-color: #2c2c2c;
    color: #e0e0e0;
    box-sizing: border-box;
}

input:focus, select:focus{
    outline: none;
    border-color: #6200ea;
    box-shadow: 0 0 5px rgba(98, 0, 234, 0.6);
}

.column-name {
    font-weight: bold;
}

.sort-icon {
    font-size: 16px;
    color: white;
    vertical-align: middle;
}
input[type="checkbox"] {
    position: relative;
    width: 20px;
    height: 20px;
    -webkit-appearance: none;
    appearance: none;
    background-color: #2c2c2c;
    border: 1px solid #333;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease, border-color 0.3s ease;
    margin-right: 8px;
}

input[type="checkbox"]:checked {
    background-color: #6200ea;
    border-color: #6200ea;
}

input[type="checkbox"]::after {
    content: '';
    position: absolute;
    width: 10px;
    height: 10px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    background-color: white;
    border-radius: 2px;
    transition: transform 0.2s ease-in-out;
}

input[type="checkbox"]:checked::after {
    transform: translate(-50%, -50%) scale(1);
}

.checkbox-container {
    display: flex;
    align-items: center;
    width: 100%;
}

.checkbox-container label {
    margin-left: 8px;
    font-size: 14px;
}
