.slg-fm-frontend-list {
  list-style: none;
  padding: 0;
  margin: 0;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  overflow: hidden;
}

.slg-fm-frontend-list li {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid #f0f0f0;
  transition: background-color 0.2s;
}

.slg-fm-frontend-list li:last-child {
  border-bottom: none;
}

.slg-fm-frontend-list li:hover {
  background-color: #f8f9fa;
}

.slg-fm-frontend-list .file-icon {
  width: 24px;
  height: 24px;
  margin-right: 12px;
  flex-shrink: 0;
}

.slg-fm-frontend-list .file-name {
  flex-grow: 1;
  color: #2c3338;
  font-size: 14px;
  line-height: 1.4;
}

.slg-fm-frontend-list .file-actions {
  display: flex;
  gap: 12px;
  margin-left: 12px;
}

.slg-fm-frontend-list .file-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 4px;
  background: #fff;
  color: #2271b1;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s;
  border: 1px solid #2271b1;
}

.slg-fm-frontend-list .file-button:hover {
  background: #2271b1;
  color: #fff;
}

.slg-fm-frontend-list .file-button.view {
  border-color: #00a32a;
  color: #00a32a;
}

.slg-fm-frontend-list .file-button.view:hover {
  background: #00a32a;
  color: #fff;
}

.slg-fm-frontend-list .file-button .dashicons {
  font-size: 18px;
  width: 18px;
  height: 18px;
}

/* Grid Layout */
.slg-fm-style-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  padding: 20px;
}

.slg-fm-style-grid li {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: transform 0.2s, box-shadow 0.2s;
  padding: 0;
  border: none;
  overflow: hidden;
}

.slg-fm-style-grid li:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

.slg-fm-style-grid .file-icon {
  width: 48px;
  height: 48px;
  margin: 20px auto 12px;
}

.slg-fm-style-grid .file-name {
  text-align: center;
  padding: 0 16px;
  margin-bottom: 16px;
  font-weight: 500;
}

.slg-fm-style-grid .file-actions {
  margin: 0;
  padding: 16px;
  background: #f8f9fa;
  border-top: 1px solid #f0f0f0;
  justify-content: center;
}

/* Card Layout */
.slg-fm-style-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 20px;
}

.slg-fm-style-card li {
  background: #fff;
  border: 1px solid #e2e4e7;
  border-left: 4px solid #2271b1;
  padding: 16px;
  border-radius: 6px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  transition: transform 0.2s, box-shadow 0.2s;
}

.slg-fm-style-card li:hover {
  transform: translateX(4px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Search Field */
#slg-fm-search {
  width: 100%;
  padding: 12px 16px;
  margin-bottom: 20px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 14px;
  transition: all 0.2s;
}

#slg-fm-search:focus {
  border-color: #2271b1;
  outline: none;
  box-shadow: 0 0 0 1px #2271b1;
}

/* QR Code */
.slg-fm-qr-code {
  margin: 20px 0;
  padding: 20px;
  background: #f8f9fa;
  border-radius: 8px;
  text-align: center;
}

.slg-fm-qr-code img {
  max-width: 150px;
  height: auto;
  margin: 10px auto;
  display: block;
  border: 1px solid #ddd;
  padding: 8px;
  background: #fff;
  border-radius: 4px;
}
