.news-list-container {
    min-height: 100vh;
}

.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: 20px;
}

.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, .btn-reset {
    flex-shrink: 0;
    white-space: nowrap;
}

/* 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: linear-gradient(135deg, #4e73df 0%, #224abe 100%);
    color: white;
}

.news-table th {
    padding: 20px 15px;
    text-align: left;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    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%);
    transform: scale(1.01);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

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

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

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

.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: 16px;
    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;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: linear-gradient(135deg, #4e73df 0%, #224abe 100%);
    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: inline-block;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.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: 150px;
}

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

.btn-edit {
    background: linear-gradient(135deg, #4e73df 0%, #224abe 100%);
    color: white;
}

.btn-delete {
    background: linear-gradient(135deg, #e74a3b 0%, #c0392b 100%);
    color: white;
}

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

.action-btn:hover {
    transform: scale(1.1);
}

/* </CHANGE> */

.pagination-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

.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);
}

.content-wrapper {
    padding: 0;
}

.alert {
    border-radius: 12px;
    border: none;
    padding: 15px 20px;
    margin-bottom: 25px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    animation: slideInDown 0.5s ease;
}

.alert-danger {
    background: linear-gradient(135deg, #ff6b6b, #ee5a52);
    color: white;
}

.alert-success {
    background: linear-gradient(135deg, #51cf66, #40c057);
    color: white;
}

/* Enhanced statistics cards */
.stats-card {
    background: white;
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border: none;
    position: relative;
    overflow: hidden;
}

.stats-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: #096831;
}

.stats-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.stats-card .card-title {
    font-size: 16px;
    font-weight: 600;
    color: #555;
    margin-bottom: 15px;
}

.stats-number {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 10px 0;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stats-number.text-primary {
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stats-number.text-success {
    background: linear-gradient(135deg, #51cf66, #40c057);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stats-number.text-danger {
    background: linear-gradient(135deg, #ff6b6b, #ee5a52);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Enhanced info cards */
.info-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border: none;
    height: 100%;
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(0,0,0,0.12);
}

.info-card .card-header {
    background: #096831;
    border: none;
    border-radius: 15px 15px 0 0;
    padding: 20px 25px;
    color: #FFF;
}

.info-card .card-title {
    color: white;
    font-weight: 600;
    font-size: 16px;
    margin: 0;
}

.info-card .card-body {
    padding: 25px;
}

/* Chart container styling */
.chart-container {
    position: relative;
    height: 250px;
    padding: 20px;
}

/* Notifications styling */
.notification-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.notification-list li {
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
    color: #666;
    font-size: 14px;
    line-height: 1.5;
    transition: all 0.3s ease;
    display: flex;
    align-items: baseline;
    gap: 7px;
}

.notification-list li:last-child {
    border-bottom: none;
}

.notification-list li:hover {
    color: #667eea;
    transform: translateX(5px);
}

/* Guide styling */
.guide-item {
    padding: 12px 0;
    color: #666;
    font-size: 14px;
    line-height: 1.6;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.3s ease;
    display: flex;
    align-items: baseline;
    gap: 7px;
}

.guide-item:last-child {
    border-bottom: none;
}

.guide-item:hover {
    color: #667eea;
    transform: translateX(3px);
}

/* Animations */
@keyframes slideInDown {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
}

.customer-right img {
    margin-top: 4px;
    border-radius: 5px;
}

.text-muted {
    color: #b14949 !important;
}

div#map-frame {
    height: 235px !important;
}

.card-body {
    padding: 20px !important;
}

.account-gr .select2-selection {
    border: 1px solid #e9ecef;
    border-radius: 3px;
    font-size: 14px;
    transition: all 0.3s ease;
    background: white;
    width: 100%;
}

.alert {
    border-radius: 10px;
    border: none;
    padding: 15px 20px;
    margin-bottom: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.alert-danger {
    background: linear-gradient(135deg, #ff6b6b, #ee5a52);
    color: white;
}

.alert-success {
    background: linear-gradient(135deg, #51cf66, #40c057);
    color: white;
}

.my-account {
    padding: 0;
}

.account-gr {
    display: flex;
    align-items: flex-start;
    margin-bottom: 5px;
    padding: 4px 10px;
    border-radius: 4px;
    transition: all 0.3s ease;
}


.customer-left {
    flex: 0 0 125px;
    font-weight: 600;
    color: #333;
    padding-right: 20px;
    font-size: 14px;
    line-height: 1.6;
}

.customer-right {
    flex: 1;
    position: relative;
}

.required {
    color: #e74c3c;
    font-weight: bold;
    margin-left: 3px;
}

/* Enhanced form controls */
.form-control,
.tr-valid {
    border: 1px solid #e9ecef;
    border-radius: 3px;
    font-size: 14px;
    transition: all 0.3s ease;
    background: white;
    width: 100%;
}

.form-control:focus,
.tr-valid:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.15);
    outline: none;
}

.form-control:hover,
.tr-valid:hover {
    border-color: #667eea;
}

/* Enhanced file upload styling */
.label-avatar {
    display: inline-block;
    padding: 7px 25px;
    background: #096831;
    color: white;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-weight: 500;
}

.label-avatar:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
}

.label-avatar input[type="file"] {
    display: none;
}

/* Enhanced select styling */
select.form-control {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 12px center;
    background-repeat: no-repeat;
    background-size: 16px 12px;
    padding-right: 40px;
    appearance: none;
}

.select2-container {
    max-width: 100%;
}

/* Enhanced textarea */
textarea.form-control {
    resize: vertical;
    min-height: 100px;
}

/* Enhanced checkbox styling */
.gender-gr {
    display: flex;
    gap: 20px;
    align-items: center;
}

.gender-gr label {
    display: flex;
    align-items: center;
    font-weight: 500;
    color: #555;
    cursor: pointer;
    transition: all 0.3s ease;
}

.gender-gr label:hover {
    color: #667eea;
}

.gender-gr input[type="checkbox"] {
    margin-right: 8px;
    transform: scale(1.2);
    accent-color: #667eea;
}

/* Enhanced submit button */
.btn-logout {
    background: #096831;
    gap: 10px;
    color: white;
    border: none;
    padding: 10px 30px;
    border-radius: 4px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-logout:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.4);
}

.btn-logout:active {
    transform: translateY(-1px);
}

/* Enhanced map styling */
#map-frame {
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

#map-frame:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15);
}

/* Error message styling */
.invalid-feedback,
.alert-danger {
    font-size: 13px;
    margin-top: 8px;
}

.is-invalid {
    border-color: #e74c3c !important;
    box-shadow: 0 0 0 0.2rem rgba(231, 76, 60, 0.15) !important;
}

.autocomplete-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 1000;
    background: #cdcdcd;
    border: 1px solid #333;
    border-radius: 8px;
    margin-top: 6px;
    max-height: 260px;
    overflow: auto;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .25);
}

.autocomplete-item {
    padding: 10px 12px;
    cursor: pointer;
}

.autocomplete-item:hover {
    background: #cdcdcd;
}

#map-frame {
    width: 100%;
    height: 360px;
    border-radius: 10px;
    /*overflow: hidden;*/
    /*background: #0f0f10;*/
}

#cke_content-editor iframe body {
    margin: 0 10px;
}

/* Responsive improvements */
@media (max-width: 768px) {
    .stats-card {
        padding: 10px;
    }

    .stats-number {
        margin: 0;
    }
    
    .stats-number {
        font-size: 2rem;
    }
    
    .info-card .card-body {
        padding: 10px !important;
    }

    .card-body {
        padding: 10px !important;
    }
    
    .chart-container {
        height: 200px;
        padding: 0px;
    }

    .page-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .news-table-container {
        overflow-x: auto;
    }

    .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;
    }

    .btn-search, .btn-reset {
        width: 100%;
        justify-content: center;
    }

    .results-info {
        flex-direction: column;
        text-align: center;
    }

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

    .account-gr {
        padding: 0px 5px;
        display: block;
    }

    .customer-left {
        flex: none;
        margin-bottom: 5px;
        padding-right: 0;
    }

    .gender-gr {
        align-items: flex-start;
        gap: 5px 20px;
        flex-wrap: wrap;
    }

    .btn-logout {
        padding: 10px 15px;
    }
}

@media (max-width: 480px) {
    .filter-row {
        gap: 8px;
    }
    
    .search-input {
        padding: 12px 20px 12px 45px;
        font-size: 14px;
    }
    
    .search-icon {
        left: 15px;
        font-size: 16px;
    }
}