/* FileGuard by Novas Technology — Front-end Styles */

/* File category listing */
.fg-file-list {
  margin: 16px 0;
}

.fg-cat-title {
  margin-bottom: 12px;
}

.fg-file-entries {
  list-style: none;
  padding: 0;
  margin: 0;
}

.fg-file-entry {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 12px;
  border-bottom: 1px solid #333;
  background: #1a1a1a;
}

.fg-file-entry:hover {
  background: #2a2a2a;
}

.fg-file-info {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  color: #fefa00;
  min-width: 0;
}

.fg-file-icon {
  font-size: 16px;
  flex-shrink: 0;
}

.fg-file-ext {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 3px;
  margin-right: 6px;
  letter-spacing: 0.5px;
  flex-shrink: 0;
  color: #000;
  background: #888;
  min-width: 36px;
  text-align: center;
}

.fg-ext-audio { background: #fefa00; color: #000; }
.fg-ext-video { background: #00bfff; color: #000; }
.fg-ext-archive { background: #ff8c00; color: #000; }
.fg-ext-other { background: #888; color: #fff; }

/* Subfolder navigation */
.fg-breadcrumb {
  margin: 8px 0 16px;
  font-size: 14px;
  color: #888;
}
.fg-breadcrumb a {
  color: #fefa00;
  text-decoration: none;
}
.fg-breadcrumb a:hover {
  text-decoration: underline;
}
.fg-breadcrumb span {
  color: #fff;
  font-weight: 700;
}

.fg-subcat-list {
  list-style: none;
  padding: 0;
  margin: 0 0 16px 0;
}

.fg-subcat-entry {
  background: #1a1a1a;
  border-bottom: 1px solid #333;
}

.fg-subcat-entry:hover {
  background: #2a2a2a;
}

.fg-subcat-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  text-decoration: none;
  color: #fefa00;
}

.fg-folder-icon {
  font-size: 18px;
}

.fg-subcat-name {
  flex: 1;
  font-weight: 600;
}

.fg-subcat-count {
  color: #888;
  font-size: 12px;
}

.fg-file-name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fg-file-size {
  color: #888;
  font-size: 12px;
  flex-shrink: 0;
}

.fg-file-buttons {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}

.fg-download-btn {
  color: #000;
  background: #fefa00;
  text-decoration: none;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 3px;
}

.fg-download-btn:hover {
  background: #fff;
  color: #000;
}

.fg-preview-btn {
  color: #888;
  text-decoration: none;
  font-size: 12px;
  padding: 4px 8px;
  border: 1px solid #444;
  border-radius: 3px;
}

.fg-preview-btn:hover {
  color: #fefa00;
  border-color: #fefa00;
}

/* Download Category button */
.fg-dlcat-btn {
  display: inline-block;
  margin: 12px 0;
  padding: 10px 14px;
  background: #fefa00;
  color: #000;
  font-weight: 700;
  border-radius: 4px;
  text-decoration: none;
}

.fg-dlcat-btn:hover {
  background: #fff;
}

/* No access message */
.fg-no-access {
  color: #888;
  font-style: italic;
}

/* Search */
.fg-search-wrap {
  max-width: 900px;
}

.fg-search-result:hover {
  background: #2a2a2a !important;
}

/* Registration form */
.fg-register-wrap {
  max-width: 600px;
}

.fg-register-form fieldset {
  margin-bottom: 20px;
  padding: 16px;
  border: 1px solid #444;
}

.fg-register-form legend {
  font-weight: 700;
  padding: 0 8px;
}

.fg-register-form p {
  margin-bottom: 10px;
}

.fg-register-form label {
  display: block;
  margin-bottom: 4px;
  font-weight: 600;
}

.fg-register-form input[type="text"],
.fg-register-form input[type="email"],
.fg-register-form input[type="password"] {
  width: 100%;
  padding: 8px;
  font-size: 14px;
}

.fg-level-option {
  display: block;
  padding: 10px;
  margin-bottom: 8px;
  border: 1px solid #444;
  cursor: pointer;
}

.fg-level-option:hover {
  border-color: #fefa00;
}

.fg-level-name {
  font-weight: 700;
  margin-left: 8px;
}

.fg-level-price {
  float: right;
  color: #fefa00;
}

.fg-level-desc {
  display: block;
  margin-top: 4px;
  margin-left: 28px;
  color: #888;
  font-size: 13px;
}

.fg-submit-btn {
  padding: 12px 30px;
  background: #fefa00;
  color: #000;
  font-weight: 700;
  font-size: 16px;
  border: none;
  cursor: pointer;
}

.fg-submit-btn:hover {
  background: #fff;
}

.fg-submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

#fg-card-element {
  padding: 12px;
  background: #1a1a1a;
  border: 1px solid #444;
}
