/* Dynamic Table Widget Styles */
.dynamic-table-widget {
  width: 100%;
  margin-top: 15px;
}

.dynamic-table-container {
  border: 1px solid #00C8FF;
  overflow: hidden;
  border-top: 10px solid #194C9F;
  background: transparent;
  margin-top: 15px;
}

/* Header Styles */
.table-header {
  padding: 20px;
  border-bottom: 1px solid #00C8FF;
  background-color: transparent !important;
  text-align: center;
}

.table-header h3 {
  color: #000 !important;
  margin: 0;
  font-size: 18px;
  font-weight: 600;
}

/* Search Styles */
.table-search-container {
  position: relative;
}

.table-search-input {
  width: 100%;
  font-weight: lighter;
  font-size: 16px;
  outline: none;
  transition: border-color 0.3s ease;
  font-family: "Lexend", sans-serif;
  padding: 8px 16px !IMPORTANT;
  border-radius: 0 !important;
  border: 1px solid #686868 !important;
  padding-left: 45px !important;
}

.table-search-input:focus {
  border-color: #2e5bba;
  box-shadow: 0 0 0 2px rgba(46, 91, 186, 0.1);
}

.search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #16151C;
  pointer-events: none;
  font-weight: 600;
}

/* Table Content */
.table-content {
  /*min-height: 200px;*/
  transition: opacity 0.3s ease;
}

.table-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0;
  border-bottom: 1px solid #00C8FF;
  transition: background-color 0.2s ease;
}

.table-row:hover {
}

.table-row:last-child {
  border-bottom: none;
}

.table-cell {
  flex: 1;
}

.title-cell {
  flex: 2;
}

.title-cell h4 {
  font-size: 18px;
  font-weight: 400;
  color: #333;
  line-height: normal;
  font-family: 'Poppins';
  margin: 0;
}

.title-cell .excerpt {
  margin: 0;
  font-size: 14px;
  color: #666;
  line-height: 1.4;
}

.actions-cell {
  display: flex; 
  justify-content: flex-end;
  flex-shrink: 0;
}

/* Button Styles */
.table-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border: none;
  border-radius: 0;
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
  color: #ffffff;
  transition: all 0.3s ease;
  cursor: pointer;
  white-space: nowrap;
  font-family: 'Poppins';
}

.table-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
  text-decoration: none;
  color: #ffffff;
}

.table-btn i {
  font-size: 12px;
}

.view-btn {
  background-color: #194C9F;
}

.view-btn:hover {
  background-color: #1e4a9a;
}

.download-btn {
  background-color: #5bc0de;
}

.download-btn:hover {
  background-color: #31b0d5;
}

/* Pagination Styles - Matching Screenshot */
.table-pagination {padding: 12px 15px;border-top: 1px solid #00C8FF;}

.pagination-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.pagination-left {
  display: flex;
  align-items: center;
  gap: 15px;
  flex-wrap: wrap;
}

.show-entries {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 14px;
  color: #666;
}

.show-entries label {
  margin: 0;
  font-weight: normal;
}

.per-page-select {
  padding: 4px 8px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
  background: white;
  cursor: pointer;
}

.per-page-select:focus {
  outline: none;
  border-color: #2e5bba;
}

.showing-info {
  font-size: 14px;
  color: #666;
  white-space: nowrap;
}

.pagination-right {
  display: flex;
  align-items: center;
}

.pagination-buttons {
  display: flex;
  align-items: center;
  gap: 2px;
}

.page-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 32px;
  padding: 0 8px;
  border: 1px solid #ddd;
  background: #ffffff;
  color: #333;
  text-decoration: none;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s ease;
  cursor: pointer;
  user-select: none;
}

.page-btn:hover:not(.active) {
  background: #e9ecef;
  border-color: #adb5bd;
  text-decoration: none;
  color: #333;
}

.page-btn.active {
  background: #2e5bba;
  color: #ffffff;
  border-color: #2e5bba;
  cursor: default;
}

.page-btn.first-btn,
.page-btn.last-btn,
.page-btn.prev-btn,
.page-btn.next-btn {
  font-weight: bold;
  font-size: 16px;
}

.page-btn.first-btn:hover,
.page-btn.last-btn:hover,
.page-btn.prev-btn:hover,
.page-btn.next-btn:hover {
  background: #2e5bba;
  color: #ffffff;
  border-color: #2e5bba;
}

.page-dots {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 32px;
  color: #666;
  font-size: 14px;
}

/* Loading Spinner */
.table-loading {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40px;
  position: relative;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #f3f3f3;
  border-top: 4px solid #2e5bba;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* No Posts Message */
.no-posts {
  padding: 40px 20px;
  text-align: center;
  color: #666;
}

.no-posts p {
  margin: 0;
  font-size: 16px;
}

/* Loading States */
.dynamic-table-container.loading .table-content {
  opacity: 0.5;
  pointer-events: none;
}

.dynamic-table-container.loading .table-pagination {
  opacity: 0.5;
  pointer-events: none;
}


/* Focus styles for accessibility */
.page-btn:focus {
  outline: 2px solid #2e5bba;
  outline-offset: 2px;
}

.table-search-input:focus {
  outline: 2px solid #2e5bba;
  outline-offset: 2px;
}

.per-page-select:focus {
  outline: 2px solid #2e5bba;
  outline-offset: 2px;
}


.table-cell.title-cell {
    padding: 16px 16px 16px 20px;
    width: 100% !important;
    max-width: 610px;
    border-right: 1px solid #00C8FF;
}

.table-cell.actions-cell {
    width: 100% !important;
    max-width: 294px;
}

.table-cell.actions-cell a.table-btn {
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
}
a.table-btn.view-btn {
    width: 100%;
    max-width: 87px;
    height: 40px;
}

a.table-btn.download-btn {
    width: 100%;
    max-width: 128px;
    height: 40px;
}

.table-cellinner-1st {
    width: 100%;
    max-width: 127px;
    display:flex;
    justify-content: center;
    border-right: 1px solid #00C8FF;
    align-items: center;
    padding: 1;
}

.table-cellinner-2st {
    width: 100%;
    max-width: 167px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.table-cell.actions-cell >  div {
    padding: 10px 0px;
}
.padding-head-botm {
    margin: 0 !IMPORTANT;
    padding-bottom: 15px;
    border-bottom: 1px solid #C6CAD1;
}
.padding-head-botm h2 {
    line-height: normal;
}
 
 
/* Responsive Design */
@media (max-width: 1300px) {
  .title-cell h4 {
    font-size: 16px; 
}
.table-cell.title-cell {
    padding: 12px 12px 12px 16px; 
}
.table-cell.actions-cell >  div {
    padding: 6px 10px;
}
.table-btn { 
    font-size: 14px; 
}
a.table-btn.view-btn { 
    height: 35px;
}
a.table-btn.download-btn { 
    max-width: 110px;
    height: 35px;
}
.dyamic-tabel-widget {
    margin: 0 !IMPORTANT;
}
.table-cellinner-1st { 
    max-width: 120px; 
}
}
@media (max-width: 1200px) {
 .table-cell.title-cell {
    max-width: 450px;
}
.table-cellinner-1st { 
    max-width: 124px; 
}
.table-cellinner-2st { 
    max-width: 175px; 
}
}
@media (max-width: 1024px) {
.table-cell.title-cell {
    max-width: 65%;
}
.table-cell.actions-cell { 
    max-width: 35%;
}
}

@media (max-width: 768px) {

.table-cell.title-cell {
    max-width: 60%;
}
.table-cell.actions-cell {
    max-width: 40%;
}
.title-cell h4 {
    font-size: 14px;
}
.table-header {
    padding: 15px; 
}
}


@media (max-width: 599px) {
.table-cell.title-cell {
    max-width: 55%;
}
.table-cell.actions-cell {
    max-width: 45%;
}
.table-btn {
    font-size: 12px;
}
a.table-btn.download-btn {
    max-width: max-content;
    height: 30px;
}
a.table-btn.view-btn {
    height: 30px;
    max-width: max-content;
}
.table-cell.title-cell {
    padding: 10px;
}
.table-header {
    padding: 12px; 
}
.table-header h3 { 
    font-size: 16px; 
}
}


@media (max-width: 520px) {
.table-cell.actions-cell {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 10px 5px;
    border-left: 1px solid #00aeef;
    max-width: 40%;
}
.table-cell.actions-cell > div {
    padding: 0;
}
.table-cell.title-cell {
    max-width: 60%;
    border-right: 0;
}
.table-cellinner-1st {
    border-right: 0;
}
}