/* ActivityLog.css */

/* Root container */
/* Root container */
.activityLogContainer {
  max-width: 1600px;

  background: #ffffff;
  border-radius: 2px;

  font-family: 'Roboto Condensed', Arial, sans-serif;
  border: 1px solid #e3e3e3;
}

/* Header */
/* Header */
.activityLogHeader {
  background: #2c3e50;
  color: #ffffff;
  padding: 6px 16px;
  /* margin-left: -12px; */
  font-size: 20px;
  font-weight: 500;
  border-bottom: 1px solid #1f2a35;
}

/* Filters section */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  padding: 6px 5px;
  align-items: center;
  border-bottom: 1px solid #f0f0f0;
  background: #fafafa;
}


.dateInput,
.gameSelect {
  padding: 8px 10px;
  min-width: 200px;
  border: 1px solid #d5d5d5;
  border-radius: 3px;
  font-size: 14px;
  outline: none;
}

.dateInput:focus,
.gameSelect:focus {
  border-color: #0088cc;
  box-shadow: 0 0 0 2px rgba(0, 136, 204, 0.15);
}

.gameSelect {
  min-width: 260px;
}

.submitBtn {
  background: #0088cc;
  font-family: 'Roboto Condensed', Arial, sans-serif;
  color: #ffffff;
  border: none;
  padding: 8px 24px;
  border-radius: 3px;
  cursor: pointer;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.submitBtn:hover {
  background: #0074ad;
}

/* Table controls (entries + search) */
.tableControls {
  display: flex;
  justify-content: space-between;
  padding: 7px 5px;
  align-items: center;
  font-size: 14px;
}

.entriesControl {
  display: flex;
  align-items: center;
  gap: 8px;
}

.entriesSelect {
  padding: 6px 8px;
  border: 1px solid #d5d5d5;
  border-radius: 3px;
  font-size: 14px;
  outline: none;
}

.entriesSelect:focus {
  border-color: #0088cc;
  box-shadow: 0 0 0 2px rgba(0, 136, 204, 0.15);
}

.searchControl {
  display: flex;
  align-items: center;
  gap: 8px;
}

.searchInput {
  padding: 6px 8px;
  border: 1px solid #d5d5d5;
  border-radius: 3px;
  min-width: 200px;
  font-size: 14px;
  outline: none;
}

.searchInput:focus {
  border-color: #0088cc;
  box-shadow: 0 0 0 2px rgba(0, 136, 204, 0.15);
}

/* Table wrapper */
.tableWrapper {
  padding: 0 4px 10px 4px;
}

/* Table styling */
.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.table th,
.table td {
  border: 1px solid #e0e0e0;
  padding: 8px 10px;
  text-align: left;
  vertical-align: middle;
}

.table th {
  background: #2c3e50;
  color: #ffffff;
  font-weight: 500;
  white-space: nowrap;
  border: 1px solid #1f2a35;
}

.evenRow {
  background: #ffffff;
}

.oddRow {
  background: #f9f9f9;
}

.table tbody tr:hover {
  background: #f0f8ff;
}

/* Pagination */
.pagination {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  padding: 15px;
  border-top: 1px solid #f0f0f0;
}

.paginationButtons {
  display: flex;
  gap: 5px;
}

.paginationBtn {
  padding: 6px 12px;
  border: 1px solid #ddd;
  background: #ffffff;
  color: #333;
  border-radius: 3px;
  cursor: pointer;
  font-size: 14px;
  min-width: auto;
}

.paginationBtn:hover:not(:disabled) {
  background: #f5f5f5;
  border-color: #ccc;
}

.paginationBtn:disabled {
  opacity: 0.6;
  cursor: default;
  background: #f9f9f9;
}

.pageInfo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: #333;
}

.pageInput {
  width: 50px;
  padding: 5px;
  border: 1px solid #ddd;
  border-radius: 3px;
  text-align: center;
  font-size: 14px;
  outline: none;
}

.pageInput:focus {
  border-color: #0088cc;
}

/* Colors for status (if you use them later) */
.greenText {
  color: #1bbc9b;
  font-weight: 500;
}

.redText {
  color: #e74c3c;
  font-weight: 500;
}

/* Responsive tweaks */
/* Responsive tweaks */
@media (max-width: 768px) {


  .activityLogHeader {
    background: #2c3e50;
    padding: 5px 16px;
    font-size: 15px;
    font-weight: 300;
    border-bottom: 1px solid #1f2a35;
  }

  .filters {
    flex-direction: column;
    align-items: stretch;
    gap: 7px;
  }

  .dateGroup {
    display: flex;
    gap: 10px;
    width: 100%;
  }

  .dateInput {
    flex: 1;
    width: 100%;
    min-width: 0;
    /* Allow shrinking below the global min-width */
    /* Ensure they take full width of their flex container */
  }

  .gameSelect {
    width: 100%;
    min-width: 0;
  }

  .submitBtn {
    width: 100%;
  }

  .tableControls {
    display: flex;
    flex-direction: row;
    /* Keep in row */
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    /* Allow wrapping if very small */
  }

  .entriesControl {
    font-size: 13px;
  }

  .searchControl {
    width: auto;
    /* Let it shrink/grow naturally */
    justify-content: flex-end;
    flex-grow: 1;
  }

  .searchInput {
    width: 100%;
    max-width: 150px;
    /* Fixed width or min-width for mobile search */
    min-width: unset;
  }

  .pagination {
    flex-wrap: wrap;
  }

  .tableWrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .table {
    min-width: 600px;
  }
}