/* Training Models Moderation Feed Styles */
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: var(--mantine-spacing-md);
}

.headerCard {
  background: light-dark(
    rgba(var(--mantine-color-blue-2-rgb), 0.3),
    rgba(var(--mantine-color-blue-8-rgb), 0.2)
  );
  border: 1px solid light-dark(
    var(--mantine-color-blue-3),
    var(--mantine-color-blue-7)
  );
}

.modelCard {
  background: light-dark(var(--mantine-color-white), var(--mantine-color-dark-6));
  box-shadow: light-dark(
    0 2px 8px rgba(0, 0, 0, 0.08),
    0 2px 8px rgba(0, 0, 0, 0.25)
  );
  border: 1px solid light-dark(var(--mantine-color-gray-3), var(--mantine-color-dark-4));
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: all 0.2s ease;

  &:hover {
    box-shadow: light-dark(
      0 4px 16px rgba(0, 0, 0, 0.12),
      0 4px 16px rgba(0, 0, 0, 0.35)
    );
    transform: translateY(-2px);
    border-color: light-dark(var(--mantine-color-gray-4), var(--mantine-color-gray-6));
  }
}

.modelTitle {
  color: light-dark(var(--mantine-color-gray-9), var(--mantine-color-gray-0));
  line-height: 1.3;
  font-weight: 700;
  margin-bottom: var(--mantine-spacing-xs);
}

/* Compact Meta Section */
.metaSection {
  padding: var(--mantine-spacing-sm);
  background: light-dark(
    linear-gradient(135deg, rgba(var(--mantine-color-gray-0-rgb), 0.8), rgba(var(--mantine-color-gray-1-rgb), 0.4)),
    linear-gradient(135deg, rgba(var(--mantine-color-dark-7-rgb), 0.6), rgba(var(--mantine-color-dark-6-rgb), 0.3))
  );
  border-radius: var(--mantine-radius-sm);
  border: 1px solid light-dark(var(--mantine-color-gray-2), var(--mantine-color-dark-5));
  box-shadow: light-dark(
    inset 0 1px 0 rgba(255, 255, 255, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.05)
  );
}

/* Compact Version Section */
.versionSection {
  margin-top: var(--mantine-spacing-sm); 
  border-radius: var(--mantine-radius-sm);
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
  position: relative;
}

/* Compact File Item */
.fileItem {
  padding: var(--mantine-spacing-sm);
  background: light-dark(
    linear-gradient(135deg, rgba(var(--mantine-color-yellow-0-rgb), 0.7), rgba(var(--mantine-color-yellow-1-rgb), 0.3)),
    linear-gradient(135deg, rgba(var(--mantine-color-dark-8-rgb), 0.8), rgba(var(--mantine-color-dark-7-rgb), 0.4))
  );
  border: 1px solid light-dark(
    var(--mantine-color-yellow-3),
    var(--mantine-color-dark-5)
  );
  border-radius: var(--mantine-radius-sm);
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
  width: 100%;

  &::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: light-dark(
      rgba(var(--mantine-color-yellow-4-rgb), 0.3),
      rgba(var(--mantine-color-yellow-6-rgb), 0.2)
    );
  }

  &:hover {
    background: light-dark(
      linear-gradient(135deg, rgba(var(--mantine-color-yellow-1-rgb), 0.9), rgba(var(--mantine-color-yellow-2-rgb), 0.5)),
      linear-gradient(135deg, rgba(var(--mantine-color-dark-7-rgb), 0.9), rgba(var(--mantine-color-dark-6-rgb), 0.6))
    );
    border-color: light-dark(var(--mantine-color-yellow-4), var(--mantine-color-yellow-6));
    transform: translateY(-1px);
    box-shadow: light-dark(
      0 2px 8px rgba(var(--mantine-color-yellow-6-rgb), 0.15),
      0 2px 8px rgba(0, 0, 0, 0.3)
    );
  }
}

/* Improved typography for better readability */
.modelCard {
  .mantine-Text-root {
    &[data-size="xs"] {
      font-size: 0.6875rem; // 11px
      line-height: 1.4;
    }
    
    &[data-size="sm"] {
      font-size: 0.8125rem; // 13px
      line-height: 1.4;
    }
  }

  .mantine-Badge-root {
    font-weight: 600;
    
    &[data-size="xs"] {
      font-size: 0.625rem; // 10px
      padding: 0.125rem 0.375rem; // 2px 6px
      min-height: 1.125rem; // 18px
    }
  }

  .mantine-Button-root {
    &[data-size="xs"] {
      font-size: 0.6875rem; // 11px
      font-weight: 600;
      min-height: 1.5rem; // 24px
      padding: 0.25rem 0.5rem; // 4px 8px
    }
  }
}