/* Inherit Elementor Theme Variables */
:root {
    --angie-primary: var(--e-global-color-primary, #0d6efd);
    --angie-secondary: var(--e-global-color-secondary, #6c757d);
    --angie-accent: var(--e-global-color-accent, #198754);
    --angie-text: var(--e-global-color-text, #212529);
}

.angie-notices-wrapper {
    font-family: var(--e-global-typography-primary-font-family), system-ui, -apple-system, sans-serif;
    color: var(--angie-text);
}

.angie-notices-header h2 {
    color: var(--angie-primary);
    font-weight: 700;
}

.angie-notices-header .badge {
    background-color: var(--angie-primary) !important;
}

.angie-notices-card {
    border: 1px solid rgba(0,0,0,0.08) !important;
    box-shadow: 0 4px 20px rgba(0,0,0,0.03) !important;
    transition: box-shadow 0.3s ease;
}

.angie-notices-card:hover {
    box-shadow: 0 6px 25px rgba(0,0,0,0.06) !important;
}

.angie-table-header {
    background-color: var(--angie-primary) !important;
}

.angie-table-header th {
    background-color: var(--angie-primary) !important;
    color: #fff !important;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    padding: 15px 12px !important;
    border-bottom: none !important;
}

#angie-notices-table tbody tr {
    transition: background-color 0.2s ease;
}

#angie-notices-table tbody tr:hover {
    background-color: rgba(var(--angie-secondary-rgb), 0.05) !important;
}

#angie-notices-table td {
    padding: 16px 12px;
    vertical-align: middle;
    border-bottom-color: rgba(0,0,0,0.05);
}

.angie-btn-download {
    background-color: var(--angie-accent);
    color: #fff;
    border: none;
    transition: all 0.3s ease;
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none; /* Removed underline */
}

.angie-btn-download:hover {
    background-color: var(--angie-primary);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(var(--angie-accent-rgb), 0.3);
    text-decoration: none; /* Kept text-decoration none on hover */
}

/* DataTables Overrides */
.dataTables_wrapper .dataTables_length select {
    border-radius: 6px;
    border-color: #dee2e6;
    padding: 6px 30px 6px 12px;
}

.dataTables_wrapper .dataTables_filter input {
    border-radius: 6px;
    border-color: #dee2e6;
    padding: 6px 12px;
    margin-left: 8px;
}

.dataTables_wrapper .dataTables_filter input:focus {
    border-color: var(--angie-primary);
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
    outline: none;
}

.dt-buttons .btn {
    border-radius: 6px !important;
    margin-right: 4px;
    font-size: 0.85rem;
    padding: 6px 12px;
    background-color: #f8f9fa;
    border-color: #dee2e6;
    color: #495057;
}

.dt-buttons .btn:hover {
    background-color: #e9ecef;
    color: var(--angie-primary);
}

.page-item.active .page-link {
    background-color: var(--angie-primary) !important;
    border-color: var(--angie-primary) !important;
}

.page-link {
    color: var(--angie-primary);
    border-radius: 6px;
    margin: 0 3px;
}

.dataTables_info {
    font-size: 0.85rem;
    color: #6c757d;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .angie-notices-header {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 10px;
    }
    
    .dt-buttons {
        margin-bottom: 15px;
        display: flex;
        flex-wrap: wrap;
        gap: 5px;
    }
    
    .dataTables_wrapper .row {
        align-items: center;
    }
}