/* Loading indicator - keep existing styles and add */
.public-notices-list {
    position: relative;
    margin-bottom: 40px;
}

.public-notices-list:last-child {
    margin-bottom: 0;
}

/* Ensure pagination is scoped to its container */
.public-notices-list .pagination-links {
    display: inline-flex;
    gap: 5px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 20px;
    width: 100%;
}

/* Make sure loading state only affects the current instance */
.public-notices-list.loading .notices-container {
    opacity: 0.6;
    pointer-events: none;
}

.public-notices-table {
    width: 100%;
    border-collapse: collapse;
    margin: 15px 0;
    font-family: Arial, sans-serif;
}

.public-notices-table th {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    padding: 12px;
    text-align: left;
    font-weight: bold;
    color: #333;
}

.public-notices-table td {
    border: 1px solid #dee2e6;
    padding: 12px;
    vertical-align: middle;
}

.notice-date {
    width: 15%;
    font-weight: bold;
    color: #333;
}

.notice-title {
    width: 40%;
    font-weight: 500;
}

.notice-type {
    width: 20%;
}

.notice-action {
    width: 25%;
    text-align: center;
}

.view-notice-btn {
    display: inline-block;
    padding: 8px 16px;
    background: #1c1d86;
    color: white;
    text-decoration: none !important;
    border-radius: 4px;
    transition: background 0.3s ease;
}

.view-notice-btn:hover {
    color: #045cb4;
    background-color: #fff;
    border: 1px solid;
}

.no-notice {
    color: #6c757d;
    font-style: italic;
}

.no-notices {
    text-align: center;
    padding: 40px;
    color: #6c757d;
    font-style: italic;
    background: #f8f9fa;
    border-radius: 8px;
}

/* Pagination */
.public-notices-pagination {
    margin-top: 30px;
    text-align: center;
}

.pagination-links {
    display: inline-flex;
    gap: 5px;
    flex-wrap: wrap;
    justify-content: center;
}

.page-numbers {
    display: inline-block;
    padding: 8px 12px;
    border: 1px solid #dee2e6;
    text-decoration: none;
    color: #1c1d86;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.page-numbers:hover {
    background: #1c1d86;
    color: white;
    border-color: #1c1d86;
}

.page-numbers.current {
    background: #1c1d86;
    color: white;
    border-color: #1c1d86;
}

.page-numbers.prev,
.page-numbers.next {
    padding: 8px 16px;
}

/* Responsive table */
@media (max-width: 768px) {
    .public-notices-table {
        display: block;
        border: 0;
    }
    
    .public-notices-table thead {
        display: none;
    }
    
    .public-notices-table tbody {
        display: block;
        width: 100%;
    }
    
    .public-notices-table tr {
        display: block;
        margin-bottom: 15px;
        border: 1px solid #dee2e6;
        border-radius: 5px;
        padding: 15px;
        background: #fff;
        box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    }
    
    .public-notices-table td {
        display: block;
        width: 100% !important;
        border: none;
        padding: 15px 0 15px 15px;
        text-align: left;
        position: relative;
        border-bottom: 1px solid #f0f0f0;
    }
    
    .public-notices-table td:last-child {
        border-bottom: none;
    }
    
    .public-notices-table td:before {
        content: attr(data-title);
        font-weight: bold;
        display: block;
        margin-bottom: 5px;
        color: #333;
        font-size: 1.1em;
        top: -7px;
    }
    
    .notice-date:before {
        content: "Date:";
    }
    
    .notice-title:before {
        content: "Title:";
    }
    
    .notice-type:before {
        content: "Type:";
    }
    
    .notice-action:before {
        content: "Action:";
    }
    
    .view-notice-btn {
        display: block;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .pagination-links {
        gap: 3px;
    }
    
    .page-numbers {
        padding: 6px 10px;
        font-size: 0.9em;
    }
    
    .page-numbers.prev,
    .page-numbers.next {
        padding: 6px 12px;
    }
}