.apl-container {
  max-width: 700px;
  margin: 20px auto;
  font-family: Arial, sans-serif;
}

.apl-controls {
  display: flex;
  gap: 10px;
  margin-bottom: 15px;
}

#apl-search {
  flex: 1;
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

#apl-sort {
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.apl-post {
  border-bottom: 1px solid #ddd;
  padding: 10px 0;
}

.apl-post h3 {
  margin: 0 0 5px;
  font-size: 18px;
}

.apl-post p {
  margin: 0 0 8px;
  color: #555;
}

#apl-loading p {
  color: #666;
  font-style: italic;
}

/* --- Date Range Picker Styling --- */
#dtpFrom {
    padding: 10px 12px;
    width: 230px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 14px;
    background-color: #fff;
    cursor: pointer;
    display: none;
}

.flatpickr-calendar {
    z-index: 999999 !important; /* ensures it appears on top of Elementor layers */
    font-family: inherit;
}

/* Optional: better visual alignment */
.apl-controls {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.apl-controls input, .apl-controls select {
    outline: none;
    transition: border-color 0.2s ease;
}

.apl-controls input:focus, .apl-controls select:focus {
    border-color: #0073aa;
}
