.search-filter-section {
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    padding: 25px;
    margin-bottom: 30px;
    border: 1px solid #e3e6f0;
}

.search-input-group {
    position: relative;
    margin-bottom: 15px;
}

.search-input {
    border: 1px solid #e3e6f0;

    border-radius: 50px;
    padding: 15px 25px 15px 50px;
    font-size: 16px;
    transition: all 0.3s ease;
    width: 100%;
}

.search-input:focus {
    border-color: #4e73df;
    box-shadow: 0 0 0 0.2rem rgba(78, 115, 223, 0.25);
    outline: none;
}

.search-icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: #858796;
    font-size: 18px;
}

.filter-row {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
}

.filter-select {
    border: 1px solid #e3e6f0;
    border-radius: 5px;
    padding: 10px 15px;
    font-size: 14px;
    transition: all 0.3s ease;
    background: white;
    min-width: 150px;
    flex: 1;
    max-width: 200px;
}


.filter-select:focus {
    border-color: #4e73df;
    box-shadow: 0 0 0 0.2rem rgba(78, 115, 223, 0.25);
    outline: none;
}

.btn-search {
    background: #096831;
    color: #FFF;
    font-size: 14px;
    border-radius: 8px;
    padding: 10px 40px;
}

.btn-reset {
    background: linear-gradient(135deg, #858796 0%, #60616f 100%);
    border: none;
    border-radius: 10px;
    padding: 10px 25px;
    color: white;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(133, 135, 150, 0.3);
    font-size: 14px;
}

.btn-reset:hover {
    color: #FFF;
}

.button-group {
    margin-top: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Converting from card layout to table layout */
.news-table-container {
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    margin-top: 30px;
}

.news-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
}

.news-table thead {
    background: #096831;
    color: white;
}

.news-table th {
    padding: 10px;
    text-align: left;
    font-weight: 600;
    font-size: 14px;
    border: none;
}

.news-table tbody tr {
    border-bottom: 1px solid #e3e6f0;
    transition: all 0.3s ease;
}

.news-table tbody tr:hover {
    background: linear-gradient(135deg, #f8f9fc 0%, #eef2ff 100%);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.news-table tbody tr:last-child {
    border-bottom: none;
}

.news-table td {
    padding: 10px;
    vertical-align: middle;
    border: none;
}

.news-image-cell {
    width: 100px;
}

.news-image-thumb {
    width: 80px;
    height: 60px;
    border-radius: 8px;
    object-fit: cover;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

/* .news-title-cell {
    min-width: 300px;
} */

.news-title-link {
    font-size: 14px;
    font-weight: 600;
    color: #2c3e50;
    text-decoration: none;
    line-height: 1.4;
    display: block;
    margin-bottom: 5px;
}

.news-title-link:hover {
    color: #096831;
    text-decoration: none;
}

.news-excerpt-text {
    color: #7f8c8d;
    font-size: 13px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-category-badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    background: #096831;
    color: white;
}

.news-author-cell {
    color: #3498db;
    font-size: 14px;
    font-weight: 600;
}

.news-date-cell {
    color: #7f8c8d;
    font-size: 13px;
    white-space: nowrap;
}

.news-views-cell {
    color: #7f8c8d;
    font-size: 13px;
    text-align: center;
}

.news-status-badge {
    display: block;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    width: 70px;
    text-align: center;
}

.status-published {
    background: linear-gradient(135deg, #1cc88a 0%, #13855c 100%);
    color: white;
}

.status-draft {
    background: linear-gradient(135deg, #f6c23e 0%, #dda20a 100%);
    color: white;
}

.status-archived {
    background: linear-gradient(135deg, #858796 0%, #60616f 100%);
    color: white;
}

.status-approved {
    background: linear-gradient(135deg, #28a745 0%, #1e7e34 100%);
    color: white;
}

.news-actions-cell {
    text-align: center;
    width: 80px;
}

.action-btn {
    padding: 0 5px;
    border-radius: 50%;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-edit {
    color: #096831;
}

.btn-delete {
    color: red;
}

/* </CHANGE> */

.pagination-wrapper {
    display: flex;
    justify-content: center;
}

.pagination {
    background: white;
    border-radius: 15px;
    padding: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.page-link {
    border: none;
    padding: 12px 18px;
    margin: 0 3px;
    border-radius: 10px;
    color: #4e73df;
    font-weight: 600;
    transition: all 0.3s ease;
}

.page-link:hover {
    background: linear-gradient(135deg, #4e73df 0%, #224abe 100%);
    color: white;
    transform: translateY(-2px);
}

.page-item.active .page-link {
    background: linear-gradient(135deg, #4e73df 0%, #224abe 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(78, 115, 223, 0.3);
}

.results-info {
    background: white;
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.results-count {
    font-size: 16px;
    color: #2c3e50;
    font-weight: 600;
}

.sort-options {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sort-label {
    font-size: 14px;
    color: #7f8c8d;
    font-weight: 600;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.empty-icon {
    font-size: 80px;
    color: #bdc3c7;
    margin-bottom: 20px;
}

.empty-title {
    font-size: 24px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 10px;
}

.empty-description {
    font-size: 16px;
    color: #7f8c8d;
    margin-bottom: 30px;
}

.btn-create-news {
    background: linear-gradient(135deg, #1cc88a 0%, #13855c 100%);
    border: none;
    border-radius: 10px;
    padding: 15px 30px;
    color: white;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-create-news:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(28, 200, 138, 0.4);
    color: white;
    text-decoration: none;
}

/* Added styles for the add new button in header */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    background: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.page-title {
    margin: 0;
    color: #2c3e50;
    font-weight: 700;
}

.btn-add-new {
    background: linear-gradient(135deg, #1cc88a 0%, #13855c 100%);
    border: none;
    border-radius: 10px;
    padding: 12px 25px;
    color: white;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(28, 200, 138, 0.3);
}

.btn-add-new:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(28, 200, 138, 0.4);
    color: white;
    text-decoration: none;
}

.btn-add-new i {
    font-size: 14px;
}

/* </CHANGE> */

/* Multi-select dropdown styles */
.multi-select-wrapper {
    position: relative;
    width: 100%;
    max-width: 200px;
    margin-bottom: 20px;
}

.multi-select-dropdown {
    position: relative;
    cursor: pointer;
    user-select: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.multi-select-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.multi-select-arrow {
    font-size: 12px;
    transition: transform 0.3s ease;
    color: #858796;
}

.multi-select-dropdown.active .multi-select-arrow {
    transform: rotate(180deg);
}

.multi-select-options {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 2px solid #e3e6f0;
    border-top: none;
    border-radius: 0 0 10px 10px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.multi-select-dropdown.active .multi-select-options {
    display: block;
}

.multi-select-option {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    margin: 0;
    font-size: 14px;
}

.multi-select-option:hover {
    background-color: #f8f9fc;
}

.multi-select-option input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 16px;
    height: 16px;
    border: 2px solid #e3e6f0;
    border-radius: 3px;
    margin-right: 10px;
    position: relative;
    transition: all 0.3s ease;
}

.multi-select-option input[type="checkbox"]:checked + .checkmark {
    background-color: #4e73df;
    border-color: #4e73df;
}

.multi-select-option input[type="checkbox"]:checked + .checkmark::after {
    content: '';
    position: absolute;
    left: 4px;
    top: 1px;
    width: 4px;
    height: 8px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* Responsive design for table */
@media (max-width: 768px) {
    .page-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
        display: none;
    }

    .search-filter-section {
        padding: 10px;
        margin-bottom: 10px;
    }

    .news-table-container {
        overflow-x: auto;
        margin-top: 10px;
    }

    .news-table {
        min-width: 800px;
    }

    .filter-row {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .filter-select {
        min-width: auto;
        width: 100%;
        max-width: none;
        flex: none;
    }

    .results-info {
        flex-direction: column;
        text-align: center;
        padding: 10px;
        gap: 5px;
        margin-bottom: 10px;
    }

    .multi-select-wrapper {
        min-width: auto;
        width: 100%;
        max-width: none;
        flex: none;
        margin-bottom: 0;
    }

    .button-group {
        margin-top: 10px;
    }

    .empty-state {
        padding: 10px;
    }

    .empty-description {
        margin-bottom: 10px;
        font-size: 14px;
    }

    .empty-icon {
        font-size: 60px;
        margin-bottom: 10px;
    }
}

@media (max-width: 480px) {
    .filter-row {
        gap: 8px;
    }

    .search-input {
        padding: 9px 20px 9px 45px;
        font-size: 14px;
        border-radius: 5px;
    }

    .search-input-group {
        margin-bottom: 8px;
    }

    .search-icon {
        left: 15px;
        font-size: 16px;
    }
}
