.gc-docs-wrapper {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
  max-width: 1200px;
  margin: 0 auto;
  background: #fff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

/* Controls Header */
.gc-docs-controls {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    gap: 15px;
    /* Federation Yellow Background */
    background: #efe0a5; 
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    color: #222; /* Dark text for contrast on yellow */
    border: none;
}

.gc-search-box {
    position: relative;
    flex: 1 1 300px;
}

.gc-search-box input.search {
    width: 100%;
    padding: 12px 15px 12px 45px;
    border: 2px solid transparent; /* Prepare for focus state */
    border-radius: 6px;
    font-size: 15px;
    background: #fff;
    color: #333;
    font-weight: 500;
    transition: all 0.2s;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.gc-search-box input.search:focus {
    outline: none;
    border-color: #7fb1d6; /* Light blue border on focus */
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.gc-search-box input.search::placeholder {
    color: #888;
}

.gc-search-box .dashicons {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #E6B807;
    font-size: 20px;
}

.gc-filters {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.gc-filters select {
    padding: 10px 20px;
    border: 2px solid transparent;
    border-radius: 6px;
    background: #fff;
    color: #333;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    appearance: none; /* Custom arrow could be added, but keeping it simple for now */
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23E6B807%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 10px;
    padding-right: 35px;
}

/* List Header */
.gc-docs-list-header {
  display: flex;
  padding: 12px 15px;
  background: #f0f0f1;
  font-weight: 600;
  color: #444;
  border-bottom: 2px solid #ddd;
  text-transform: uppercase;
  font-size: 13px;
  letter-spacing: 0.5px;
}

.gc-docs-list-header div {
  cursor: pointer;
}

.gc-docs-list-header div.sort:hover {
  color: #000;
  text-decoration: underline;
}

/* List Items */
.gc-docs-list {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

.gc-doc-item {
  border-bottom: 1px solid #eee;
  transition: background 0.2s ease;
}

.gc-doc-item:hover {
  background: #fcfcfc;
}

.gc-doc-row {
  display: flex;
  align-items: center;
  padding: 15px;
}

/* Columns */
.gc-col-icon {
  flex: 0 0 50px;
  text-align: center;
}

.gc-col-icon .dashicons {
  font-size: 32px;
  width: 32px;
  height: 32px;
  color: #888;
}

.gc-col-icon .dashicons.type-pdf {
  color: #d00;
}
.gc-col-icon .dashicons.type-xls,
.gc-col-icon .dashicons.type-xlsx {
  color: #1d6f42;
}
.gc-col-icon .dashicons.type-doc,
.gc-col-icon .dashicons.type-docx {
  color: #2b579a;
}
.gc-col-icon .dashicons.type-zip {
  color: #666;
}

.gc-col-date {
  flex: 0 0 100px;
  font-size: 14px;
  color: #666;
}

.gc-col-title {
  flex: 1;
  padding-right: 20px;
}

.gc-col-title h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
}

.gc-col-title h3 a {
  text-decoration: none;
  color: #111;
}

.gc-col-title h3 a:hover {
  color: #E6B807;
}

.gc-col-title .ref-num {
  display: inline-block;
  background: #e5e5e5;
  color: #555;
  font-size: 11px;
  padding: 2px 6px;
  border-radius: 3px;
  margin-top: 4px;
}

.gc-col-meta,
.gc-col-season {
  flex: 0 0 150px;
  font-size: 14px;
  color: #555;
}

.gc-col-action {
  flex: 0 0 120px;
  text-align: right;
}

.button-download {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  background-color: #f0f0f1;
  color: #333;
  border-radius: 4px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  transition: all 0.2s;
  border: 1px solid #ddd;
}

.button-download:hover {
  background-color: #E6B807;
  color: #fff;
  border-color: #E6B807;
}

.button-download .dashicons {
  font-size: 16px;
  width: 16px;
  height: 16px;
  margin-right: 5px;
  /* vertical-align: middle; */
}

/* Responsive */
@media (max-width: 768px) {
  .gc-docs-list-header {
    display: none;
  }

  .gc-doc-row {
    flex-wrap: wrap;
    position: relative;
  }

  .gc-col-icon {
    position: absolute;
    top: 15px;
    left: 10px;
  }

  .gc-col-title {
    flex: 0 0 100%;
    padding-left: 50px; /* Space for icon */
    margin-bottom: 10px;
  }

  .gc-col-date,
  .gc-col-meta,
  .gc-col-season {
    flex: 0 0 auto;
    margin-right: 15px;
    font-size: 12px;
    color: #888;
    background: #f5f5f5;
    padding: 2px 8px;
    border-radius: 10px;
    margin-bottom: 10px;
    padding-left: 50px; /* align with title text roughly or separate line */
  }

  /* Re-structuring for mobile card look */
  .gc-doc-row {
    display: grid;
    grid-template-areas:
      "icon title"
      "icon meta"
      "action action";
    grid-template-columns: 60px 1fr;
    gap: 5px;
  }

  .gc-col-icon {
    grid-area: icon;
    position: static;
    align-self: start;
    padding-top: 5px;
  }

  .gc-col-title {
    grid-area: title;
    padding-left: 0;
    margin-bottom: 0;
  }

  .gc-col-date,
  .gc-col-meta,
  .gc-col-season {
    grid-area: meta;
    display: inline-block;
    margin: 0 5px 5px 0;
    padding: 2px 8px;
    width: auto;
  }

  .gc-col-action {
    grid-area: action;
    width: 100%;
    text-align: left;
    margin-top: 10px;
  }

  .button-download {
    display: block;
    text-align: center;
    width: 100%;
  }
}
